diff --git a/static/css/app.css b/static/css/app.css deleted file mode 100644 index c9a4bef28..000000000 --- a/static/css/app.css +++ /dev/null @@ -1,3 +0,0 @@ -/* -! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com -*/*,:after,:before{border:0 solid #e1e8f0;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Inter;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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,pre,samp{font-family:JetBrains Mono,monospace;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{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-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,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#91a4b7;opacity:1}input::placeholder,textarea::placeholder{color:#91a4b7;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji}:focus,button:focus{outline:none}menu{margin:0;padding:0}*,:after,:before{--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:rgba(101,131,255,.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: }::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:rgba(101,131,255,.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: }.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}}.button-base{border-color:transparent;border-radius:.5rem;border-width:1px;display:inline-flex;font-size:.875rem;font-weight:500;line-height:1.25rem;padding:.5rem 1.25rem;white-space:nowrap}.button-blue{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(62 100 255/var(--tw-bg-opacity));border-color:transparent;color:rgb(255 255 255/var(--tw-text-opacity))}.button-blue:focus,.button-blue:hover{--tw-bg-opacity:1;background-color:rgb(45 76 219/var(--tw-bg-opacity))}.button-red{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(219 25 32/var(--tw-bg-opacity));border-color:transparent;color:rgb(255 255 255/var(--tw-text-opacity))}.button-red:focus,.button-red:hover{--tw-bg-opacity:1;background-color:rgb(188 18 39/var(--tw-bg-opacity))}.button-gray{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(240 245 249/var(--tw-bg-opacity));border-color:rgb(225 232 240/var(--tw-border-opacity));color:rgb(68 86 104/var(--tw-text-opacity))}.button-gray:focus,.button-gray:hover{--tw-bg-opacity:1;background-color:rgb(225 232 240/var(--tw-bg-opacity))}.button-outlined-blue{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(245 247 255/var(--tw-bg-opacity));border-color:rgb(62 100 255/var(--tw-border-opacity));color:rgb(62 100 255/var(--tw-text-opacity))}.button-outlined-blue:focus,.button-outlined-blue:hover{--tw-bg-opacity:1;background-color:rgb(236 240 255/var(--tw-bg-opacity))}.button-outlined-red{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(253 243 244/var(--tw-bg-opacity));border-color:rgb(219 25 32/var(--tw-border-opacity));color:rgb(219 25 32/var(--tw-text-opacity))}.button-outlined-red:focus,.button-outlined-red:hover{--tw-bg-opacity:1;background-color:rgb(252 232 233/var(--tw-bg-opacity))}.button-outlined-gray{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(202 213 224/var(--tw-border-opacity));color:rgb(68 86 104/var(--tw-text-opacity))}.button-base.disabled,.button-base:disabled,.button-outlined-gray:focus,.button-outlined-gray:hover{--tw-bg-opacity:1;background-color:rgb(240 245 249/var(--tw-bg-opacity))}.button-base.disabled,.button-base:disabled{--tw-text-opacity:1;border-color:transparent;color:rgb(145 164 183/var(--tw-text-opacity));cursor:default;pointer-events:none}.button-small{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity));border-color:rgb(225 232 240/var(--tw-border-opacity));color:rgb(68 86 104/var(--tw-text-opacity));padding:.25rem .5rem}.button-small:focus,.button-small:hover{--tw-bg-opacity:1;background-color:rgb(240 245 249/var(--tw-bg-opacity))}.button-square-icon{align-items:center;display:flex;justify-content:center;padding:.5rem}.button-square-icon i{font-size:1.25rem;line-height:1.75rem;line-height:1}.icon-button{--tw-text-opacity:1;align-items:center;border-radius:9999px;color:rgb(97 117 138/var(--tw-text-opacity));display:flex;justify-content:center;padding:.25rem}.icon-button:hover{--tw-text-opacity:1;color:rgb(13 24 41/var(--tw-text-opacity))}.icon-button:focus{--tw-bg-opacity:1;background-color:rgb(240 245 249/var(--tw-bg-opacity))}.icon-button.disabled,.icon-button:disabled{--tw-text-opacity:1;color:rgb(202 213 224/var(--tw-text-opacity));cursor:default;pointer-events:none}.icon-button i{line-height:1}.icon-outlined-button{border-radius:9999px;border-width:2px}.\!link{--tw-text-opacity:1;color:rgb(13 24 41/var(--tw-text-opacity));font-weight:500;text-decoration-line:underline}.\!link:hover{text-decoration-line:none}.link{--tw-text-opacity:1;color:rgb(13 24 41/var(--tw-text-opacity));font-weight:500;text-decoration-line:underline}.link:hover{text-decoration-line:none}.input{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity));border-color:rgb(225 232 240/var(--tw-border-opacity));border-radius:.5rem;border-width:1px;color:rgb(68 86 104/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;padding:.5rem .75rem;width:100%}.input::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(145 164 183/var(--tw-placeholder-opacity))}.input::placeholder{--tw-placeholder-opacity:1;color:rgb(145 164 183/var(--tw-placeholder-opacity))}:not(.phx-no-feedback).show-errors .input{--tw-border-opacity:1;border-color:rgb(241 163 166/var(--tw-border-opacity))}.input[type=color]{padding-bottom:0;padding-top:0;width:4rem}.input-range{--tw-bg-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgb(225 232 240/var(--tw-bg-opacity));border-radius:.5rem;height:8px}.input-range::-webkit-slider-thumb{--tw-bg-opacity:1;-webkit-appearance:none;appearance:none;background-color:rgb(62 100 255/var(--tw-bg-opacity));border-color:transparent;border-radius:.75rem;cursor:pointer;height:20px;width:20px}.input-range::-webkit-slider-thumb:hover{--tw-bg-opacity:1;background-color:rgb(45 76 219/var(--tw-bg-opacity))}.input-range::-moz-range-thumb{--tw-bg-opacity:1;-moz-appearance:none;appearance:none;background-color:rgb(62 100 255/var(--tw-bg-opacity));border-color:transparent;border-radius:.75rem;cursor:pointer;height:20px;width:20px}.input-range::-moz-range-thumb:hover{--tw-bg-opacity:1;background-color:rgb(45 76 219/var(--tw-bg-opacity))}.radio{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9.5' fill='%23fff' stroke='%23CAD5E0'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;cursor:pointer;height:20px;width:20px}.radio:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9.5' fill='%23fff' stroke='%233E64FF'/%3E%3Ccircle cx='10' cy='10' r='6' fill='%233E64FF'/%3E%3C/svg%3E")}.checkbox{--tw-border-opacity:1;--tw-text-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:rgb(202 213 224/var(--tw-border-opacity));border-radius:.25rem;border-width:1px;color:rgb(62 100 255/var(--tw-text-opacity));cursor:pointer;height:1.25rem;width:1.25rem}.checkbox:checked{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}.tiny-scrollbar::-webkit-scrollbar{height:.4rem;width:.4rem}.tiny-scrollbar::-webkit-scrollbar-thumb{--tw-bg-opacity:1;background-color:rgb(145 164 183/var(--tw-bg-opacity));border-radius:.25rem}.tiny-scrollbar::-webkit-scrollbar-track{--tw-bg-opacity:1;background-color:rgb(240 245 249/var(--tw-bg-opacity))}.tabs{display:flex;overflow-x:auto;width:100%}.tabs .tab{align-items:center;display:flex}.tabs .tab>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.tabs .tab{border-bottom-width:2px;border-color:rgb(240 245 249/var(--tw-border-opacity));color:rgb(145 164 183/var(--tw-text-opacity));padding:.5rem .75rem;white-space:nowrap}.tabs .tab,.tabs .tab.active{--tw-border-opacity:1;--tw-text-opacity:1}.tabs .tab.active{border-color:rgb(62 100 255/var(--tw-border-opacity));color:rgb(62 100 255/var(--tw-text-opacity))}.error-box{background-color:rgb(252 232 233/var(--tw-bg-opacity));color:rgb(233 117 121/var(--tw-text-opacity));padding:.5rem 1rem}.error-box,.info-box{--tw-bg-opacity:1;--tw-text-opacity:1;border-radius:.5rem;font-weight:500}.info-box{background-color:rgb(240 245 249/var(--tw-bg-opacity));color:rgb(97 117 138/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;padding:1rem}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{bottom:0;top:0}.-left-3{left:-.75rem}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-2{bottom:.5rem}.bottom-4{bottom:1rem}.bottom-\[0\.4rem\]{bottom:.4rem}.left-0{left:0}.left-\[64px\]{left:64px}.right-0{right:0}.right-1{right:.25rem}.right-1\.5{right:.375rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-6{right:1.5rem}.right-8{right:2rem}.right-\[1\.5rem\]{right:1.5rem}.top-0{top:0}.top-0\.5{top:.125rem}.top-1{top:.25rem}.top-1\.5{top:.375rem}.top-3{top:.75rem}.top-4{top:1rem}.top-5{top:1.25rem}.top-6{top:1.5rem}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-\[10000\]{z-index:10000}.z-\[1000\]{z-index:1000}.z-\[100\]{z-index:100}.z-\[1\]{z-index:1}.z-\[500\]{z-index:500}.z-\[600\]{z-index:600}.z-\[90\]{z-index:90}.-m-1{margin:-.25rem}.-m-4{margin:-1rem}.m-0{margin:0}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-2\.5{margin-left:.625rem;margin-right:.625rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-bottom:.25rem;margin-top:.25rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-4{margin-bottom:1rem;margin-top:1rem}.-mb-1{margin-bottom:-.25rem}.-mb-2{margin-bottom:-.5rem}.-ml-0{margin-left:0}.-ml-0\.5{margin-left:-.125rem}.-ml-1{margin-left:-.25rem}.-ml-1\.5{margin-left:-.375rem}.-ml-2{margin-left:-.5rem}.-mr-2{margin-right:-.5rem}.-mt-1{margin-top:-.25rem}.-mt-2{margin-top:-.5rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-32{margin-bottom:8rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.ml-\[-1px\]{margin-left:-1px}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-0\.5{margin-right:.125rem}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-0{height:0}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-52{height:13rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-80{height:20rem}.h-96{height:24rem}.h-\[10px\]{height:10px}.h-\[12px\]{height:12px}.h-\[150px\]{height:150px}.h-\[20rem\]{height:20rem}.h-full{height:100%}.h-screen{height:100vh}.max-h-52{max-height:13rem}.max-h-\[300px\]{max-height:300px}.max-h-\[500px\]{max-height:500px}.max-h-full{max-height:100%}.min-h-\[30rem\]{min-height:30rem}.min-h-\[38px\]{min-height:38px}.w-0{width:0}.w-1{width:.25rem}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\/4{width:75%}.w-4{width:1rem}.w-5{width:1.25rem}.w-5\/6{width:83.333333%}.w-6{width:1.5rem}.w-60{width:15rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-\[10px\]{width:10px}.w-\[12px\]{width:12px}.w-\[17rem\]{width:17rem}.w-\[20ch\]{width:20ch}.w-\[56px\]{width:56px}.w-auto{width:auto}.w-full{width:100%}.w-screen{width:100vw}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-6xl{max-width:72rem}.max-w-\[400px\]{max-width:400px}.max-w-\[600px\]{max-width:600px}.max-w-\[75\%\]{max-width:75%}.max-w-full{max-width:100%}.max-w-screen-lg{max-width:1024px}.max-w-screen-md{max-width:768px}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-1\/2{flex-basis:50%}.basis-4\/5{flex-basis:80%}.border-collapse{border-collapse:collapse}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.-translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y:-100%}.translate-x-full{--tw-translate-x:100%}.translate-x-full,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.place-content-start{place-content:start}.place-content-end{place-content:end}.place-content-between{place-content:space-between}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)));margin-right:calc(0px*var(--tw-space-x-reverse))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-x-12>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(3rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(3rem*var(--tw-space-x-reverse))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.25rem*var(--tw-space-x-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.space-y-10>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2.5rem*var(--tw-space-y-reverse));margin-top:calc(2.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-16>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(4rem*var(--tw-space-y-reverse));margin-top:calc(4rem*(1 - var(--tw-space-y-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.25rem*var(--tw-space-y-reverse));margin-top:calc(1.25rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.space-x-reverse>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.rounded-b-2xl{border-bottom-left-radius:1rem;border-bottom-right-radius:1rem}.rounded-b-lg{border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-l-none{border-bottom-left-radius:0;border-top-left-radius:0}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-br-lg{border-bottom-right-radius:.5rem}.rounded-tr-lg{border-top-right-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-\[3px\]{border-width:3px}.border-\[5px\]{border-width:5px}.border-y{border-top-width:1px}.border-b,.border-y{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l-4{border-left-width:4px}.border-l-\[1px\]{border-left-width:1px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-black\/10{border-color:rgba(0,0,0,.1)}.border-blue-400{--tw-border-opacity:1;border-color:rgb(139 162 255/var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity:1;border-color:rgb(101 131 255/var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity:1;border-color:rgb(62 100 255/var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity:1;border-color:rgb(240 245 249/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(225 232 240/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(202 213 224/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgb(145 164 183/var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity:1;border-color:rgb(97 117 138/var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity:1;border-color:rgb(48 66 84/var(--tw-border-opacity))}.border-gray-900{--tw-border-opacity:1;border-color:rgb(13 24 41/var(--tw-border-opacity))}.border-green-bright-300{--tw-border-opacity:1;border-color:rgb(134 239 172/var(--tw-border-opacity))}.border-neutral-200{--tw-border-opacity:1;border-color:rgb(229 229 229/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(241 163 166/var(--tw-border-opacity))}.border-red-400{--tw-border-opacity:1;border-color:rgb(233 117 121/var(--tw-border-opacity))}.border-red-500{--tw-border-opacity:1;border-color:rgb(226 71 77/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity:1;border-color:rgb(255 220 178/var(--tw-border-opacity))}.border-yellow-bright-200{--tw-border-opacity:1;border-color:rgb(254 240 138/var(--tw-border-opacity))}.bg-blue-100{--tw-bg-opacity:1;background-color:rgb(236 240 255/var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgb(216 224 255/var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity:1;background-color:rgb(139 162 255/var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(101 131 255/var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(62 100 255/var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity:1;background-color:rgb(45 76 219/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(240 245 249/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(225 232 240/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(202 213 224/var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity:1;background-color:rgb(145 164 183/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(97 117 138/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(48 66 84/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(13 24 41/var(--tw-bg-opacity))}.bg-gray-900\/95{background-color:rgba(13,24,41,.95)}.bg-green-400{--tw-bg-opacity:1;background-color:rgb(119 184 118/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(74 161 72/var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(29 137 26/var(--tw-bg-opacity))}.bg-green-bright-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(224 231 255/var(--tw-bg-opacity))}.bg-neutral-100{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity))}.bg-purple-100{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(252 232 233/var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity:1;background-color:rgb(248 209 210/var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity:1;background-color:rgb(233 117 121/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(226 71 77/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(255 247 236/var(--tw-bg-opacity))}.bg-yellow-600{--tw-bg-opacity:1;background-color:rgb(255 168 63/var(--tw-bg-opacity))}.bg-yellow-bright-200{--tw-bg-opacity:1;background-color:rgb(254 240 138/var(--tw-bg-opacity))}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.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}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[1px\]{padding-left:1px;padding-right:1px}.py-0{padding-bottom:0;padding-top:0}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-20{padding-bottom:5rem;padding-top:5rem}.py-24{padding-bottom:6rem;padding-top:6rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pb-10{padding-bottom:2.5rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pb-8{padding-bottom:2rem}.pl-1{padding-left:.25rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-20{padding-right:5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-1{padding-top:.25rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.align-text-bottom{vertical-align:text-bottom}.align-sub{vertical-align:sub}.font-logo{font-family:Red Hat Text}.font-mono{font-family:JetBrains Mono,monospace}.font-sans{font-family:Inter}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.75em\]{font-size:.75em}.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-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.not-italic{font-style:normal}.leading-4{line-height:1rem}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.text-blue-400{--tw-text-opacity:1;color:rgb(139 162 255/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(101 131 255/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(62 100 255/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(45 76 219/var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity:1;color:rgb(31 55 183/var(--tw-text-opacity))}.text-gray-100{--tw-text-opacity:1;color:rgb(240 245 249/var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity:1;color:rgb(225 232 240/var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity:1;color:rgb(202 213 224/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(145 164 183/var(--tw-text-opacity))}.text-gray-50{--tw-text-opacity:1;color:rgb(248 250 252/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(97 117 138/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(68 86 104/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(48 66 84/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(28 42 58/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(13 24 41/var(--tw-text-opacity))}.text-green-300{--tw-text-opacity:1;color:rgb(165 208 163/var(--tw-text-opacity))}.text-green-400{--tw-text-opacity:1;color:rgb(119 184 118/var(--tw-text-opacity))}.text-green-bright-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-red-400{--tw-text-opacity:1;color:rgb(233 117 121/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(226 71 77/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(219 25 32/var(--tw-text-opacity))}.text-red-900{--tw-text-opacity:1;color:rgb(127 7 43/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity:1;color:rgb(255 203 140/var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity:1;color:rgb(255 168 63/var(--tw-text-opacity))}.text-yellow-bright-300{--tw-text-opacity:1;color:rgb(253 224 71/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(145 164 183/var(--tw-placeholder-opacity))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity:1;color:rgb(145 164 183/var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow-\[0_15px_99px_-0px_rgba\(12\2c 24\2c 41\2c 0\.15\)\]{--tw-shadow:0 15px 99px -0px rgba(12,24,41,.15);--tw-shadow-colored:0 15px 99px -0px var(--tw-shadow-color)}.shadow-\[0_15px_99px_-0px_rgba\(12\2c 24\2c 41\2c 0\.15\)\],.shadow-sm{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 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.blur{--tw-blur:blur(8px)}.blur,.drop-shadow-sm{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)}.drop-shadow-sm{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,0,0,.05))}.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)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.delay-200{transition-delay:.2s}.duration-100{transition-duration:.1s}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.bg-editor{background-color:#282c34}body[data-editor-theme=light] .bg-editor{background-color:#fafafa}.font-editor{font-family:JetBrains Mono,Droid Sans Mono,"monospace";font-size:14px;font-variant-ligatures:none}.shadow-custom-1{box-shadow:10px 5px 25px -8px rgba(0,0,0,.2)}.flip-horizontally{transform:scaleY(-1)}.fade-in{animation:fade-in-frames .2s ease-out}.fade-out{animation:fade-out-frames .2s ease-in}@keyframes fade-in-frames{0%{opacity:0}to{opacity:1}}@keyframes fade-out-frames{0%{opacity:1}to{opacity:0}}.delay-200{animation:delay-frames .2s}@keyframes delay-frames{0%{height:0;opacity:0;width:0}99%{height:0;opacity:0;width:0}}.phx-no-feedback .invalid-feedback,.phx-no-feedback.invalid-feedback,iframe[hidden]{display:none}.phx-click-loading{opacity:.5;transition:opacity 1s ease-out}.phx-loading{cursor:wait}.markdown{--tw-text-opacity:1;color:rgb(48 66 84/var(--tw-text-opacity))}.markdown h1{font-size:1.875rem;line-height:2.25rem}.markdown h1,.markdown h2{--tw-text-opacity:1;color:rgb(28 42 58/var(--tw-text-opacity));font-weight:600;margin-bottom:1rem;margin-top:2rem}.markdown h2{font-size:1.5rem;line-height:2rem}.markdown h3{font-size:1.25rem}.markdown h3,.markdown h4{--tw-text-opacity:1;color:rgb(28 42 58/var(--tw-text-opacity));font-weight:600;line-height:1.75rem;margin-bottom:1rem;margin-top:2rem}.markdown h4{font-size:1.125rem}.markdown h5,.markdown h6{--tw-text-opacity:1;color:rgb(28 42 58/var(--tw-text-opacity));font-size:1rem;font-weight:600;line-height:1.5rem;margin-bottom:1rem;margin-top:2rem}.markdown p{margin-bottom:1rem;margin-top:1rem}.markdown ul{list-style-type:disc}.markdown ol,.markdown ul{list-style-position:outside;margin-bottom:1.25rem;margin-left:2rem;margin-top:1.25rem}.markdown ol{list-style-type:decimal}.markdown ul ul{list-style-type:circle}.markdown ul ul ul{list-style-type:square}.markdown .task-list-item{list-style-type:none}.markdown .task-list-item input[type=checkbox]{margin-left:-1.1rem;vertical-align:middle}.markdown ol>li,.markdown ul>li{margin-bottom:.25rem;margin-top:.25rem}.markdown li>ol,.markdown li>ul{margin-bottom:0;margin-top:0}.markdown blockquote{--tw-border-opacity:1;--tw-text-opacity:1;border-color:rgb(225 232 240/var(--tw-border-opacity));border-left-width:4px;color:rgb(97 117 138/var(--tw-text-opacity));margin-bottom:1rem;margin-top:1rem;padding-bottom:.5rem;padding-left:1rem;padding-top:.5rem}.markdown a{--tw-text-opacity:1;color:rgb(13 24 41/var(--tw-text-opacity));font-weight:500;text-decoration-line:underline}.markdown a:hover{text-decoration-line:none}.markdown img{margin:1rem auto}.markdown table::-webkit-scrollbar{height:.4rem;width:.4rem}.markdown table::-webkit-scrollbar-thumb{--tw-bg-opacity:1;background-color:rgb(145 164 183/var(--tw-bg-opacity));border-radius:.25rem}.markdown table::-webkit-scrollbar-track{--tw-bg-opacity:1;background-color:rgb(240 245 249/var(--tw-bg-opacity))}.markdown table{border-radius:.5rem;box-shadow:0 0 25px -5px rgba(0,0,0,.1),0 0 10px -5px rgba(0,0,0,.04);margin-bottom:1rem;margin-top:1rem;width:100%}.markdown table thead{text-align:left}.markdown table tbody tr,.markdown table thead tr{--tw-border-opacity:1;border-bottom-width:1px;border-color:rgb(225 232 240/var(--tw-border-opacity))}.markdown table tbody tr:last-child{border-bottom-width:0}.markdown table tbody tr:hover{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity))}.markdown table th{color:rgb(48 66 84/var(--tw-text-opacity));font-weight:600}.markdown table td,.markdown table th{--tw-text-opacity:1;padding:.75rem 1.5rem}.markdown table td{color:rgb(97 117 138/var(--tw-text-opacity))}.markdown table td[align=center],.markdown table th[align=center]{text-align:center}.markdown table td[align=right],.markdown table th[align=right]{text-align:right}.markdown code{--tw-bg-opacity:1;background-color:rgb(225 232 240/var(--tw-bg-opacity));border-radius:.5rem;font-family:JetBrains Mono,monospace;font-size:.875rem;font-variant-ligatures:none;line-height:1.25rem;padding:.1rem .5rem;vertical-align:middle}.markdown pre{display:flex;overflow:hidden}.markdown pre>code{background-color:#282c34;border-radius:.5rem;flex:1 1 0%;overflow:auto;padding:1rem;vertical-align:middle}body[data-editor-theme=light] .markdown pre>code{background-color:#fafafa}.markdown pre>code{color:#c4cad6;font-family:JetBrains Mono,Droid Sans Mono,"monospace";font-size:14px;font-variant-ligatures:none}.markdown kbd{--tw-border-opacity:1;border-color:rgb(202 213 224/var(--tw-border-opacity));border-radius:.5rem;border-width:1px;box-shadow:inset 0 -2px 0 0 #cad5e0;font-family:JetBrains Mono,monospace;font-size:.75rem;line-height:1rem;padding:.2rem .5rem;vertical-align:middle}.markdown>:first-child{margin-top:0}.markdown>:last-child{margin-bottom:0}.markdown .katex-display{margin-bottom:2rem;margin-top:2rem}[data-el-cell][data-type=markdown] .markdown h1,[data-el-cell][data-type=markdown] .markdown h2{font-size:0}[data-el-cell][data-type=markdown] .markdown h1:after,[data-el-cell][data-type=markdown] .markdown h2:after{--tw-text-opacity:1;color:rgb(233 117 121/var(--tw-text-opacity));content:"warning: heading levels 1 and 2 are reserved for notebook and section names, please use heading 3 and above.";font-size:1rem;font-weight:500;line-height:1.5rem}:root{--ansi-color-black:#000;--ansi-color-red:#ca1243;--ansi-color-green:#50a14f;--ansi-color-yellow:#c18401;--ansi-color-blue:#4078f2;--ansi-color-magenta:#a726a4;--ansi-color-cyan:#0184bc;--ansi-color-white:#fff;--ansi-color-light-black:#5c6370;--ansi-color-light-red:#e45649;--ansi-color-light-green:#34d399;--ansi-color-light-yellow:#fde68a;--ansi-color-light-blue:#61afef;--ansi-color-light-magenta:#c678dd;--ansi-color-light-cyan:#56b6c2;--ansi-color-light-white:#fff}[phx-hook=Highlight][data-highlighted]>[data-source]{display:none}[phx-hook=Dropzone][data-js-dragging]{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(255 247 236/var(--tw-bg-opacity));border-color:rgb(255 220 178/var(--tw-border-opacity))}[data-el-session]:not([data-js-insert-mode]) [data-el-insert-mode-indicator]{visibility:hidden}[data-el-session]:not([data-js-insert-mode]) [data-el-cell][data-type=markdown] [data-el-editor-box],[data-el-session]:not([data-js-insert-mode]) [data-el-cell][data-type=markdown][data-js-focused] [data-el-insert-image-button],[data-el-session][data-js-insert-mode] [data-el-cell][data-js-focused] [data-el-enable-insert-mode-button],[data-el-session][data-js-insert-mode] [data-el-cell][data-type=markdown]:not([data-js-focused]) [data-el-editor-box]{display:none}[data-el-notebook-headline]:hover [data-el-heading],[data-el-section-headline]:hover [data-el-heading]{--tw-border-opacity:1;border-color:rgb(216 224 255/var(--tw-border-opacity))}[data-el-notebook-headline][data-js-focused] [data-el-heading],[data-el-section-headline][data-js-focused] [data-el-heading]{--tw-border-opacity:1;border-color:rgb(178 193 255/var(--tw-border-opacity))}[data-el-section-headline]:not(:hover):not([data-js-focused]) [data-el-heading]+[data-el-section-actions]:not(:focus-within){display:none}[data-el-section]:not([data-js-collapsed]) [data-el-section-expand-button],[data-el-section]:not([data-js-collapsed]) [data-el-section-headline]:not(:hover):not([data-js-focused]) [data-el-section-collapse-button],[data-el-section]:not([data-js-collapsed])>[data-el-section-subheadline-collapsed],[data-el-section][data-js-collapsed] [data-el-section-collapse-button],[data-el-session]:not([data-js-view=code-zen]) [data-el-section][data-js-collapsed]>[data-el-section-content]{display:none}[data-el-cell][data-js-focused]{--tw-border-opacity:1;border-color:rgb(178 193 255/var(--tw-border-opacity))}[data-el-cell]:not([data-js-focused]) [data-el-actions]:not(:focus-within){opacity:0}[data-el-cell]:not([data-js-focused]) [data-el-actions]:not([data-primary]):not(:focus-within){pointer-events:none}[data-el-cell]:not([data-js-focused])[data-js-hover] [data-el-actions][data-primary]{opacity:1;pointer-events:auto}[data-el-cell][data-js-changed] [data-el-cell-status]{font-style:italic}[data-el-cell]:not([data-js-changed]) [data-el-cell-status] [data-el-change-indicator]{visibility:hidden}[data-el-sections-list-item][data-js-is-viewed]{--tw-text-opacity:1;color:rgb(13 24 41/var(--tw-text-opacity))}[data-el-cell]:not([data-js-focused])[data-js-hover] [data-el-cell-focus-indicator]{--tw-bg-opacity:1;background-color:rgb(216 224 255/var(--tw-bg-opacity))}[data-el-cell][data-js-focused] [data-el-cell-focus-indicator]{--tw-bg-opacity:1;background-color:rgb(178 193 255/var(--tw-bg-opacity))}[data-el-cell][data-js-amplified] [data-el-outputs-container]{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));left:calc(-45vw + 50%);margin:0;padding-bottom:4rem;padding-top:4rem;position:relative;width:90vw}[data-el-cell][data-js-amplified] [data-el-amplify-outputs-button] .icon-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(240 245 249/var(--tw-bg-opacity));color:rgb(13 24 41/var(--tw-text-opacity))}[data-el-cell][data-type=smart]:not([data-js-source-visible]) [data-el-editor-box]{height:0;overflow:hidden}[data-el-cell][data-type=smart][data-js-source-visible] [data-el-ui-box]{display:none}[data-el-session] [data-el-cell][data-type=setup]:not([data-eval-validity=fresh]:not([data-js-empty])):not([data-eval-errored]):not([data-js-changed]):not([data-js-focused]) [data-el-editor-box]{height:0;overflow:hidden}[data-el-session] [data-el-cell][data-type=setup][data-eval-errored] [data-el-info-box],[data-el-session] [data-el-cell][data-type=setup][data-eval-validity=fresh]:not([data-js-empty]) [data-el-info-box],[data-el-session] [data-el-cell][data-type=setup][data-js-changed] [data-el-info-box],[data-el-session] [data-el-cell][data-type=setup][data-js-focused] [data-el-info-box]{display:none}[data-el-cell][data-type=smart][data-js-source-visible] [data-el-toggle-source-button] .icon-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(240 245 249/var(--tw-bg-opacity));color:rgb(13 24 41/var(--tw-text-opacity))}[data-el-cell][data-type=smart][data-js-source-visible] [data-el-cell-status-container]{bottom:.5rem;position:absolute;right:.5rem}[data-el-output][data-border]>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;--tw-divide-opacity:1;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-color:rgb(225 232 240/var(--tw-divide-opacity));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}[data-el-output][data-border]{--tw-border-opacity:1;border-color:rgb(225 232 240/var(--tw-border-opacity));border-width:0 1px 1px;padding:1rem}[data-el-output][data-border]:first-child{border-top-left-radius:.5rem;border-top-right-radius:.5rem;border-top-width:1px}[data-el-output]:not([data-border])+[data-el-output][data-border]{border-top-width:1px}[data-el-output][data-border]:last-child{border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem;border-bottom-width:1px}[data-el-output]:not(:first-child){margin-top:.5rem}[data-el-output][data-border]+[data-el-output][data-border]{margin-top:0}[data-el-outputs-container]>[data-el-output]:first-child{margin-top:.5rem}[data-el-session]:not([data-js-side-panel-content=app-info]) [data-el-app-info],[data-el-session]:not([data-js-side-panel-content=clients-list]) [data-el-clients-list],[data-el-session]:not([data-js-side-panel-content=runtime-info]) [data-el-runtime-info],[data-el-session]:not([data-js-side-panel-content=secrets-list]) [data-el-secrets-list],[data-el-session]:not([data-js-side-panel-content=sections-list]) [data-el-sections-list],[data-el-session]:not([data-js-side-panel-content]) [data-el-side-panel]{display:none}[data-el-session][data-js-side-panel-content=app-info] [data-el-app-info-toggle],[data-el-session][data-js-side-panel-content=clients-list] [data-el-clients-list-toggle],[data-el-session][data-js-side-panel-content=runtime-info] [data-el-runtime-info-toggle],[data-el-session][data-js-side-panel-content=secrets-list] [data-el-secrets-list-toggle],[data-el-session][data-js-side-panel-content=sections-list] [data-el-sections-list-toggle]{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(48 66 84/var(--tw-bg-opacity));color:rgb(248 250 252/var(--tw-text-opacity))}[data-el-session][data-js-side-panel-content=app-info] [data-el-app-indicator]{--tw-border-opacity:1;border-color:rgb(48 66 84/var(--tw-border-opacity))}[data-el-clients-list-item]:not([data-js-followed]) [data-meta=unfollow],[data-el-clients-list-item][data-js-followed] [data-meta=follow],[data-el-session][data-js-view=code-zen] [data-el-actions],[data-el-session][data-js-view=code-zen] [data-el-cell][data-type=markdown],[data-el-session][data-js-view=code-zen] [data-el-insert-buttons],[data-el-session][data-js-view=code-zen] [data-el-section-headline],[data-el-session][data-js-view=code-zen] [data-el-section-subheadline-collapsed],[data-el-session][data-js-view=code-zen] [data-el-section-subheadline],[phx-hook=VirtualizedLines]:not(:hover) [data-el-clipcopy]{display:none}[data-el-session][data-js-view=code-zen] [data-el-sections-container]{margin-top:0}[data-el-session][data-js-view=code-zen] [data-el-sections-container]>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}[data-el-session][data-js-view=code-zen] [data-el-view-toggle=code-zen]{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}[data-el-session][data-js-view=presentation] [data-el-cell]:not([data-js-focused]),[data-el-session][data-js-view=presentation] [data-el-js-view-iframes] iframe:not([data-js-focused]),[data-el-session][data-js-view=presentation] [data-el-section-headline]:not([data-js-focused]),[data-el-session][data-js-view=presentation] [data-el-section-subheadline]:not([data-js-focused]){opacity:.1}[data-el-session][data-js-view=presentation] [data-el-side-panel],[data-el-session][data-js-view=presentation] [data-el-sidebar],[data-el-session][data-js-view=presentation] [data-el-toggle-sidebar]{display:none}[data-el-session][data-js-view=presentation] [data-el-view-toggle=presentation]{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}[data-el-session]:is([data-js-view=code-zen],[data-js-view=presentation]) [data-el-views-disabled]{display:none}[data-el-session]:not([data-js-view=code-zen],[data-js-view=presentation]) [data-el-views-enabled]{display:none}.tooltip{--distance:4px;--arrow-size:5px;--show-delay:0.5s;display:flex;position:relative}.tooltip.distant{--distance:28px}.tooltip.distant-medium{--distance:10px}.tooltip:before{background-color:#1c273c;border-radius:4px;color:#f0f5f9;content:attr(data-tooltip);font-size:12px;font-weight:500;padding:3px 12px;text-align:center;white-space:pre}.tooltip:after,.tooltip:before{display:block;position:absolute;transition-delay:0s;transition-duration:0s;transition-property:visibility;visibility:hidden;z-index:100}.tooltip:after{border-color:#1c273c;border-style:solid;border-width:var(--arrow-size);content:""}.tooltip:hover:after,.tooltip:hover:before{transition-delay:var(--show-delay);visibility:visible}.tooltip.top:before{bottom:100%;left:50%;transform:translate(-50%,calc(1px - var(--arrow-size) - var(--distance)))}.tooltip.top:after{border-bottom:none;border-left-color:transparent;border-right-color:transparent;bottom:100%;left:50%;transform:translate(-50%,calc(0px - var(--distance)))}.tooltip.bottom:before{left:50%;top:100%;transform:translate(-50%,calc(var(--arrow-size) - 1px + var(--distance)))}.tooltip.bottom-left:before{right:0;top:100%;transform:translateY(calc(var(--arrow-size) - 1px + var(--distance)))}.tooltip.bottom-left:after,.tooltip.bottom:after{border-left-color:transparent;border-right-color:transparent;border-top:none;left:50%;top:100%;transform:translate(-50%,var(--distance))}.tooltip.right:before{left:100%;top:50%;transform:translate(calc(var(--arrow-size) - 1px + var(--distance)),-50%)}.tooltip.right:after{border-bottom-color:transparent;border-left:none;border-top-color:transparent;left:100%;top:50%;transform:translate(var(--distance),-50%)}.tooltip.left:before{right:100%;top:50%;transform:translate(calc(1px - var(--arrow-size) - var(--distance)),-50%)}.tooltip.left:after{border-bottom-color:transparent;border-right:none;border-top-color:transparent;right:100%;top:50%;transform:translate(calc(0px - var(--distance)),-50%)}.monaco-hover p,.parameter-hints-widget p,.suggest-details p{margin-bottom:.5rem!important;margin-top:.5rem!important}.monaco-hover h1,.parameter-hints-widget h1,.suggest-details h1{font-size:1.25rem;font-weight:600;line-height:1.75rem;margin-bottom:.5rem;margin-top:1rem}.monaco-hover h2,.parameter-hints-widget h2,.suggest-details h2{font-size:1.125rem;font-weight:500;line-height:1.75rem;margin-bottom:.5rem;margin-top:1rem}.monaco-hover h3,.parameter-hints-widget h3,.suggest-details h3{font-weight:500;margin-bottom:.5rem;margin-top:1rem}.monaco-hover ul,.parameter-hints-widget ul,.suggest-details ul{list-style-type:disc}.monaco-hover ol,.parameter-hints-widget ol,.suggest-details ol{list-style-type:decimal}.monaco-hover hr,.parameter-hints-widget hr,.suggest-details hr{margin-bottom:.5rem!important;margin-top:.5rem!important}.monaco-hover blockquote,.parameter-hints-widget blockquote,.suggest-details blockquote{--tw-border-opacity:1;border-color:rgb(225 232 240/var(--tw-border-opacity));border-left-width:4px;margin-bottom:.5rem;margin-top:.5rem;padding-bottom:.125rem;padding-left:1rem;padding-top:.125rem}.monaco-hover div.monaco-tokenized-source,.parameter-hints-widget div.monaco-tokenized-source,.suggest-details div.monaco-tokenized-source{margin-bottom:.5rem;margin-top:.5rem;white-space:pre-wrap}.monaco-hover,.parameter-hints-widget,.suggest-details{z-index:100!important}.suggest-details .header p{padding-bottom:0!important;padding-top:.75rem!important}.parameter-hints-widget .markdown-docs hr{border-top:1px solid rgba(69,69,69,.5);margin-left:-8px;margin-right:-8px}.monaco-hover-content{max-height:300px!important;max-width:1000px!important}.suggest-details,.suggest-details-container{height:-moz-fit-content!important;height:fit-content!important;max-height:250px!important;max-width:420px!important;width:-moz-fit-content!important;width:fit-content!important}.suggest-details .header .type{padding-top:0!important}.docs.markdown-docs{margin:0!important}.monaco-editor .quick-input-list .monaco-list{max-height:300px!important}.monaco-cursor-widget-container{pointer-events:none;z-index:100}.monaco-cursor-widget-container .monaco-cursor-widget-cursor{pointer-events:auto;width:2px}.monaco-cursor-widget-container .monaco-cursor-widget-label{color:#f8fafc;font-size:12px;padding:1px 8px;pointer-events:auto;transform:translateY(-200%);transition-delay:1.5s;transition-duration:0s;transition-property:visibility;visibility:hidden;white-space:nowrap}.monaco-cursor-widget-container .monaco-cursor-widget-label:hover{visibility:visible}.monaco-cursor-widget-container .monaco-cursor-widget-cursor:hover+.monaco-cursor-widget-label{transition-delay:0s;visibility:visible}.monaco-cursor-widget-container.inline{display:flex!important}.monaco-cursor-widget-container.inline .monaco-cursor-widget-label{margin-left:2px;transform:none}.line-circle-red{background-color:red}.line-circle-green,.line-circle-red{border-radius:100%;border-style:solid;border-width:2px;box-sizing:border-box;height:15px!important;margin:3px;max-width:15px}.line-circle-green{background-color:green}.line-circle-grey{background-color:grey;border-radius:100%;border-style:solid;border-width:2px;box-sizing:border-box;height:15px!important;margin:3px;max-width:15px}.ri-livebook-deploy,.ri-livebook-runtime,.ri-livebook-save,.ri-livebook-secrets,.ri-livebook-sections,.ri-livebook-shortcuts,.ri-livebook-terminal{font-size:1.25rem;line-height:1.75rem;vertical-align:middle}.ri-livebook-sections:before{content:"\eade"}.ri-livebook-runtime:before{content:"\ebf0"}.ri-livebook-shortcuts:before{content:"\ee72"}.ri-livebook-secrets:before{content:"\eed0"}.ri-livebook-deploy:before{content:"\f096"}.ri-livebook-terminal:before{content:"\f1f8"}.ri-livebook-save:before{content:"\f0b3"}.invalid\:input--error:invalid{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(253 243 244/var(--tw-bg-opacity));border-color:rgb(219 25 32/var(--tw-border-opacity));color:rgb(219 25 32/var(--tw-text-opacity))}.first\:rounded-l-lg:first-child{border-bottom-left-radius:.5rem;border-top-left-radius:.5rem}.last\:rounded-r-lg:last-child{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}.last\:border-b-0:last-child{border-bottom-width:0}.last\:border-r:last-child{border-right-width:1px}.checked\:translate-x-full:checked{--tw-translate-x:100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.checked\:border-blue-600:checked{--tw-border-opacity:1;border-color:rgb(62 100 255/var(--tw-border-opacity))}.checked\:bg-white:checked{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.focus-within\:opacity-100:focus-within{opacity:1}.hover\:z-\[11\]:hover{z-index:11}.hover\:border-none:hover{border-style:none}.hover\:border-gray-200:hover{--tw-border-opacity:1;border-color:rgb(225 232 240/var(--tw-border-opacity))}.hover\:border-transparent:hover{border-color:transparent}.hover\:border-white:hover{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.hover\:bg-blue-50:hover{--tw-bg-opacity:1;background-color:rgb(245 247 255/var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(45 76 219/var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(240 245 249/var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity))}.hover\:bg-gray-500:hover{--tw-bg-opacity:1;background-color:rgb(97 117 138/var(--tw-bg-opacity))}.hover\:bg-green-bright-50:hover{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.hover\:bg-red-50:hover{--tw-bg-opacity:1;background-color:rgb(253 243 244/var(--tw-bg-opacity))}.hover\:bg-yellow-bright-50:hover{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity))}.hover\:text-gray-50:hover{--tw-text-opacity:1;color:rgb(248 250 252/var(--tw-text-opacity))}.hover\:text-gray-500:hover{--tw-text-opacity:1;color:rgb(97 117 138/var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity:1;color:rgb(68 86 104/var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity:1;color:rgb(28 42 58/var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity:1;color:rgb(13 24 41/var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.hover\:no-underline:hover{text-decoration-line:none}.hover\:\!opacity-100:hover{opacity:1!important}.hover\:opacity-100:hover{opacity:1}.focus\:bg-blue-50:focus{--tw-bg-opacity:1;background-color:rgb(245 247 255/var(--tw-bg-opacity))}.focus\:bg-blue-700:focus{--tw-bg-opacity:1;background-color:rgb(45 76 219/var(--tw-bg-opacity))}.focus\:bg-gray-100:focus{--tw-bg-opacity:1;background-color:rgb(240 245 249/var(--tw-bg-opacity))}.focus\:bg-gray-500:focus{--tw-bg-opacity:1;background-color:rgb(97 117 138/var(--tw-bg-opacity))}.focus\:bg-green-bright-50:focus{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.focus\:bg-red-50:focus{--tw-bg-opacity:1;background-color:rgb(253 243 244/var(--tw-bg-opacity))}.focus\:bg-yellow-bright-50:focus{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity))}.focus\:text-gray-50:focus{--tw-text-opacity:1;color:rgb(248 250 252/var(--tw-text-opacity))}.focus\:text-gray-600:focus{--tw-text-opacity:1;color:rgb(68 86 104/var(--tw-text-opacity))}.focus\:text-gray-800:focus{--tw-text-opacity:1;color:rgb(28 42 58/var(--tw-text-opacity))}.focus\:text-white:focus{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.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-gray-400:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(145 164 183/var(--tw-ring-opacity))}.active\:bg-gray-200:active{--tw-bg-opacity:1;background-color:rgb(225 232 240/var(--tw-bg-opacity))}.disabled\:pointer-events-none:disabled{pointer-events:none}.group:focus-within .group-focus-within\:flex{display:flex}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:flex{display:flex}.group:hover .group-hover\:text-blue-500{--tw-text-opacity:1;color:rgb(101 131 255/var(--tw-text-opacity))}.group:hover .group-hover\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.group:hover .group-hover\: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)}.group:hover .group-hover\:ring-white{--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity))}.peer:checked~.peer-checked\:bg-blue-600{--tw-bg-opacity:1;background-color:rgb(62 100 255/var(--tw-bg-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:block{display:block}:not(.phx-no-feedback).show-errors .phx-form-error\:border-red-600{--tw-border-opacity:1;border-color:rgb(219 25 32/var(--tw-border-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:text-red-600{--tw-text-opacity:1;color:rgb(219 25 32/var(--tw-text-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:placeholder-red-600::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(219 25 32/var(--tw-placeholder-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:placeholder-red-600::placeholder{--tw-placeholder-opacity:1;color:rgb(219 25 32/var(--tw-placeholder-opacity))}@media (min-width:640px){.sm\:fixed{position:fixed}.sm\:m-auto{margin:auto}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:w-72{width:18rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:gap-12{gap:3rem}.sm\:gap-3{gap:.75rem}.sm\:space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)));margin-right:calc(0px*var(--tw-space-x-reverse))}.sm\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2rem*var(--tw-space-x-reverse))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}.sm\:space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.sm\:space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.sm\:p-0{padding:0}.sm\:py-5{padding-bottom:1.25rem;padding-top:1.25rem}.sm\:pl-8{padding-left:2rem}.sm\:pr-16{padding-right:4rem}}@media (min-width:768px){.md\:static{position:static}.md\:fixed{position:fixed}.md\:left-4{left:1rem}.md\:flex{display:flex}.md\:hidden{display:none}.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:flex-col{flex-direction:column}.md\:items-end{align-items:flex-end}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2rem*var(--tw-space-x-reverse))}.md\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}.md\:px-12{padding-left:3rem;padding-right:3rem}.md\:px-20{padding-left:5rem;padding-right:5rem}.md\:py-2{padding-bottom:.5rem;padding-top:.5rem}.md\:py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.md\:py-5{padding-bottom:1.25rem;padding-top:1.25rem}.md\:py-6{padding-bottom:1.5rem;padding-top:1.5rem}.md\:py-7{padding-bottom:1.75rem;padding-top:1.75rem}.md\:py-8{padding-bottom:2rem;padding-top:2rem}.md\:pl-16{padding-left:4rem}.md\:pr-0{padding-right:0}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}}@media (min-width:1024px){.lg\:flex{display:flex}.lg\:w-1\/2{width:50%}.lg\:grow{flex-grow:1}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.lg\:whitespace-nowrap{white-space:nowrap}.lg\:pr-4{padding-right:1rem}}@media (min-width:1280px){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.\[\&\>\:first-child\:focus\]\:bg-gray-100>:first-child:focus,.\[\&\>\:first-child\:hover\]\:bg-gray-100>:first-child:hover{--tw-bg-opacity:1;background-color:rgb(240 245 249/var(--tw-bg-opacity))}.\[\&\>\:first-child\]\:flex>:first-child{display:flex}.\[\&\>\:first-child\]\:w-full>:first-child{width:100%}.\[\&\>\:first-child\]\:items-center>:first-child{align-items:center}.\[\&\>\:first-child\]\:space-x-3>:first-child>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.\[\&\>\:first-child\]\:whitespace-nowrap>:first-child{white-space:nowrap}.\[\&\>\:first-child\]\:px-5>:first-child{padding-left:1.25rem;padding-right:1.25rem}.\[\&\>\:first-child\]\:py-2>:first-child{padding-bottom:.5rem;padding-top:.5rem}@font-face{font-display:swap;font-family:remixicon;src:url(../js/4504b1fe216fbf391c33.eot?t=1684338274817);src:url(../js/4504b1fe216fbf391c33.eot?t=1684338274817#iefix) format("embedded-opentype"),url(../js/082b68b860510f7036f0.woff2?t=1684338274817) format("woff2"),url(../js/d7630016bbb194055f32.woff?t=1684338274817) format("woff"),url(../js/bc494a3a1aebeea65cee.ttf?t=1684338274817) format("truetype"),url(../js/ce0e40c97bfc62e3edab.svg?t=1684338274817#remixicon) format("svg")}[class*=" ri-"],[class^=ri-]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:remixicon!important;font-style:normal}.ri-lg{font-size:1.3333em;line-height:.75em;vertical-align:-.0667em}.ri-xl{font-size:1.5em;line-height:.6666em;vertical-align:-.075em}.ri-xxs{font-size:.5em}.ri-xs{font-size:.75em}.ri-sm{font-size:.875em}.ri-1x{font-size:1em}.ri-2x{font-size:2em}.ri-3x{font-size:3em}.ri-4x{font-size:4em}.ri-5x{font-size:5em}.ri-6x{font-size:6em}.ri-7x{font-size:7em}.ri-8x{font-size:8em}.ri-9x{font-size:9em}.ri-10x{font-size:10em}.ri-fw{text-align:center;width:1.25em}.ri-24-hours-fill:before{content:"\ea01"}.ri-24-hours-line:before{content:"\ea02"}.ri-4k-fill:before{content:"\ea03"}.ri-4k-line:before{content:"\ea04"}.ri-a-b:before{content:"\ea05"}.ri-account-box-fill:before{content:"\ea06"}.ri-account-box-line:before{content:"\ea07"}.ri-account-circle-fill:before{content:"\ea08"}.ri-account-circle-line:before{content:"\ea09"}.ri-account-pin-box-fill:before{content:"\ea0a"}.ri-account-pin-box-line:before{content:"\ea0b"}.ri-account-pin-circle-fill:before{content:"\ea0c"}.ri-account-pin-circle-line:before{content:"\ea0d"}.ri-add-box-fill:before{content:"\ea0e"}.ri-add-box-line:before{content:"\ea0f"}.ri-add-circle-fill:before{content:"\ea10"}.ri-add-circle-line:before{content:"\ea11"}.ri-add-fill:before{content:"\ea12"}.ri-add-line:before{content:"\ea13"}.ri-admin-fill:before{content:"\ea14"}.ri-admin-line:before{content:"\ea15"}.ri-advertisement-fill:before{content:"\ea16"}.ri-advertisement-line:before{content:"\ea17"}.ri-airplay-fill:before{content:"\ea18"}.ri-airplay-line:before{content:"\ea19"}.ri-alarm-fill:before{content:"\ea1a"}.ri-alarm-line:before{content:"\ea1b"}.ri-alarm-warning-fill:before{content:"\ea1c"}.ri-alarm-warning-line:before{content:"\ea1d"}.ri-album-fill:before{content:"\ea1e"}.ri-album-line:before{content:"\ea1f"}.ri-alert-fill:before{content:"\ea20"}.ri-alert-line:before{content:"\ea21"}.ri-aliens-fill:before{content:"\ea22"}.ri-aliens-line:before{content:"\ea23"}.ri-align-bottom:before{content:"\ea24"}.ri-align-center:before{content:"\ea25"}.ri-align-justify:before{content:"\ea26"}.ri-align-left:before{content:"\ea27"}.ri-align-right:before{content:"\ea28"}.ri-align-top:before{content:"\ea29"}.ri-align-vertically:before{content:"\ea2a"}.ri-alipay-fill:before{content:"\ea2b"}.ri-alipay-line:before{content:"\ea2c"}.ri-amazon-fill:before{content:"\ea2d"}.ri-amazon-line:before{content:"\ea2e"}.ri-anchor-fill:before{content:"\ea2f"}.ri-anchor-line:before{content:"\ea30"}.ri-ancient-gate-fill:before{content:"\ea31"}.ri-ancient-gate-line:before{content:"\ea32"}.ri-ancient-pavilion-fill:before{content:"\ea33"}.ri-ancient-pavilion-line:before{content:"\ea34"}.ri-android-fill:before{content:"\ea35"}.ri-android-line:before{content:"\ea36"}.ri-angularjs-fill:before{content:"\ea37"}.ri-angularjs-line:before{content:"\ea38"}.ri-anticlockwise-2-fill:before{content:"\ea39"}.ri-anticlockwise-2-line:before{content:"\ea3a"}.ri-anticlockwise-fill:before{content:"\ea3b"}.ri-anticlockwise-line:before{content:"\ea3c"}.ri-app-store-fill:before{content:"\ea3d"}.ri-app-store-line:before{content:"\ea3e"}.ri-apple-fill:before{content:"\ea3f"}.ri-apple-line:before{content:"\ea40"}.ri-apps-2-fill:before{content:"\ea41"}.ri-apps-2-line:before{content:"\ea42"}.ri-apps-fill:before{content:"\ea43"}.ri-apps-line:before{content:"\ea44"}.ri-archive-drawer-fill:before{content:"\ea45"}.ri-archive-drawer-line:before{content:"\ea46"}.ri-archive-fill:before{content:"\ea47"}.ri-archive-line:before{content:"\ea48"}.ri-arrow-down-circle-fill:before{content:"\ea49"}.ri-arrow-down-circle-line:before{content:"\ea4a"}.ri-arrow-down-fill:before{content:"\ea4b"}.ri-arrow-down-line:before{content:"\ea4c"}.ri-arrow-down-s-fill:before{content:"\ea4d"}.ri-arrow-down-s-line:before{content:"\ea4e"}.ri-arrow-drop-down-fill:before{content:"\ea4f"}.ri-arrow-drop-down-line:before{content:"\ea50"}.ri-arrow-drop-left-fill:before{content:"\ea51"}.ri-arrow-drop-left-line:before{content:"\ea52"}.ri-arrow-drop-right-fill:before{content:"\ea53"}.ri-arrow-drop-right-line:before{content:"\ea54"}.ri-arrow-drop-up-fill:before{content:"\ea55"}.ri-arrow-drop-up-line:before{content:"\ea56"}.ri-arrow-go-back-fill:before{content:"\ea57"}.ri-arrow-go-back-line:before{content:"\ea58"}.ri-arrow-go-forward-fill:before{content:"\ea59"}.ri-arrow-go-forward-line:before{content:"\ea5a"}.ri-arrow-left-circle-fill:before{content:"\ea5b"}.ri-arrow-left-circle-line:before{content:"\ea5c"}.ri-arrow-left-down-fill:before{content:"\ea5d"}.ri-arrow-left-down-line:before{content:"\ea5e"}.ri-arrow-left-fill:before{content:"\ea5f"}.ri-arrow-left-line:before{content:"\ea60"}.ri-arrow-left-right-fill:before{content:"\ea61"}.ri-arrow-left-right-line:before{content:"\ea62"}.ri-arrow-left-s-fill:before{content:"\ea63"}.ri-arrow-left-s-line:before{content:"\ea64"}.ri-arrow-left-up-fill:before{content:"\ea65"}.ri-arrow-left-up-line:before{content:"\ea66"}.ri-arrow-right-circle-fill:before{content:"\ea67"}.ri-arrow-right-circle-line:before{content:"\ea68"}.ri-arrow-right-down-fill:before{content:"\ea69"}.ri-arrow-right-down-line:before{content:"\ea6a"}.ri-arrow-right-fill:before{content:"\ea6b"}.ri-arrow-right-line:before{content:"\ea6c"}.ri-arrow-right-s-fill:before{content:"\ea6d"}.ri-arrow-right-s-line:before{content:"\ea6e"}.ri-arrow-right-up-fill:before{content:"\ea6f"}.ri-arrow-right-up-line:before{content:"\ea70"}.ri-arrow-up-circle-fill:before{content:"\ea71"}.ri-arrow-up-circle-line:before{content:"\ea72"}.ri-arrow-up-down-fill:before{content:"\ea73"}.ri-arrow-up-down-line:before{content:"\ea74"}.ri-arrow-up-fill:before{content:"\ea75"}.ri-arrow-up-line:before{content:"\ea76"}.ri-arrow-up-s-fill:before{content:"\ea77"}.ri-arrow-up-s-line:before{content:"\ea78"}.ri-artboard-2-fill:before{content:"\ea79"}.ri-artboard-2-line:before{content:"\ea7a"}.ri-artboard-fill:before{content:"\ea7b"}.ri-artboard-line:before{content:"\ea7c"}.ri-article-fill:before{content:"\ea7d"}.ri-article-line:before{content:"\ea7e"}.ri-aspect-ratio-fill:before{content:"\ea7f"}.ri-aspect-ratio-line:before{content:"\ea80"}.ri-asterisk:before{content:"\ea81"}.ri-at-fill:before{content:"\ea82"}.ri-at-line:before{content:"\ea83"}.ri-attachment-2:before{content:"\ea84"}.ri-attachment-fill:before{content:"\ea85"}.ri-attachment-line:before{content:"\ea86"}.ri-auction-fill:before{content:"\ea87"}.ri-auction-line:before{content:"\ea88"}.ri-award-fill:before{content:"\ea89"}.ri-award-line:before{content:"\ea8a"}.ri-baidu-fill:before{content:"\ea8b"}.ri-baidu-line:before{content:"\ea8c"}.ri-ball-pen-fill:before{content:"\ea8d"}.ri-ball-pen-line:before{content:"\ea8e"}.ri-bank-card-2-fill:before{content:"\ea8f"}.ri-bank-card-2-line:before{content:"\ea90"}.ri-bank-card-fill:before{content:"\ea91"}.ri-bank-card-line:before{content:"\ea92"}.ri-bank-fill:before{content:"\ea93"}.ri-bank-line:before{content:"\ea94"}.ri-bar-chart-2-fill:before{content:"\ea95"}.ri-bar-chart-2-line:before{content:"\ea96"}.ri-bar-chart-box-fill:before{content:"\ea97"}.ri-bar-chart-box-line:before{content:"\ea98"}.ri-bar-chart-fill:before{content:"\ea99"}.ri-bar-chart-grouped-fill:before{content:"\ea9a"}.ri-bar-chart-grouped-line:before{content:"\ea9b"}.ri-bar-chart-horizontal-fill:before{content:"\ea9c"}.ri-bar-chart-horizontal-line:before{content:"\ea9d"}.ri-bar-chart-line:before{content:"\ea9e"}.ri-barcode-box-fill:before{content:"\ea9f"}.ri-barcode-box-line:before{content:"\eaa0"}.ri-barcode-fill:before{content:"\eaa1"}.ri-barcode-line:before{content:"\eaa2"}.ri-barricade-fill:before{content:"\eaa3"}.ri-barricade-line:before{content:"\eaa4"}.ri-base-station-fill:before{content:"\eaa5"}.ri-base-station-line:before{content:"\eaa6"}.ri-basketball-fill:before{content:"\eaa7"}.ri-basketball-line:before{content:"\eaa8"}.ri-battery-2-charge-fill:before{content:"\eaa9"}.ri-battery-2-charge-line:before{content:"\eaaa"}.ri-battery-2-fill:before{content:"\eaab"}.ri-battery-2-line:before{content:"\eaac"}.ri-battery-charge-fill:before{content:"\eaad"}.ri-battery-charge-line:before{content:"\eaae"}.ri-battery-fill:before{content:"\eaaf"}.ri-battery-line:before{content:"\eab0"}.ri-battery-low-fill:before{content:"\eab1"}.ri-battery-low-line:before{content:"\eab2"}.ri-battery-saver-fill:before{content:"\eab3"}.ri-battery-saver-line:before{content:"\eab4"}.ri-battery-share-fill:before{content:"\eab5"}.ri-battery-share-line:before{content:"\eab6"}.ri-bear-smile-fill:before{content:"\eab7"}.ri-bear-smile-line:before{content:"\eab8"}.ri-behance-fill:before{content:"\eab9"}.ri-behance-line:before{content:"\eaba"}.ri-bell-fill:before{content:"\eabb"}.ri-bell-line:before{content:"\eabc"}.ri-bike-fill:before{content:"\eabd"}.ri-bike-line:before{content:"\eabe"}.ri-bilibili-fill:before{content:"\eabf"}.ri-bilibili-line:before{content:"\eac0"}.ri-bill-fill:before{content:"\eac1"}.ri-bill-line:before{content:"\eac2"}.ri-billiards-fill:before{content:"\eac3"}.ri-billiards-line:before{content:"\eac4"}.ri-bit-coin-fill:before{content:"\eac5"}.ri-bit-coin-line:before{content:"\eac6"}.ri-blaze-fill:before{content:"\eac7"}.ri-blaze-line:before{content:"\eac8"}.ri-bluetooth-connect-fill:before{content:"\eac9"}.ri-bluetooth-connect-line:before{content:"\eaca"}.ri-bluetooth-fill:before{content:"\eacb"}.ri-bluetooth-line:before{content:"\eacc"}.ri-blur-off-fill:before{content:"\eacd"}.ri-blur-off-line:before{content:"\eace"}.ri-body-scan-fill:before{content:"\eacf"}.ri-body-scan-line:before{content:"\ead0"}.ri-bold:before{content:"\ead1"}.ri-book-2-fill:before{content:"\ead2"}.ri-book-2-line:before{content:"\ead3"}.ri-book-3-fill:before{content:"\ead4"}.ri-book-3-line:before{content:"\ead5"}.ri-book-fill:before{content:"\ead6"}.ri-book-line:before{content:"\ead7"}.ri-book-mark-fill:before{content:"\ead8"}.ri-book-mark-line:before{content:"\ead9"}.ri-book-open-fill:before{content:"\eada"}.ri-book-open-line:before{content:"\eadb"}.ri-book-read-fill:before{content:"\eadc"}.ri-book-read-line:before{content:"\eadd"}.ri-booklet-fill:before{content:"\eade"}.ri-booklet-line:before{content:"\eadf"}.ri-bookmark-2-fill:before{content:"\eae0"}.ri-bookmark-2-line:before{content:"\eae1"}.ri-bookmark-3-fill:before{content:"\eae2"}.ri-bookmark-3-line:before{content:"\eae3"}.ri-bookmark-fill:before{content:"\eae4"}.ri-bookmark-line:before{content:"\eae5"}.ri-boxing-fill:before{content:"\eae6"}.ri-boxing-line:before{content:"\eae7"}.ri-braces-fill:before{content:"\eae8"}.ri-braces-line:before{content:"\eae9"}.ri-brackets-fill:before{content:"\eaea"}.ri-brackets-line:before{content:"\eaeb"}.ri-briefcase-2-fill:before{content:"\eaec"}.ri-briefcase-2-line:before{content:"\eaed"}.ri-briefcase-3-fill:before{content:"\eaee"}.ri-briefcase-3-line:before{content:"\eaef"}.ri-briefcase-4-fill:before{content:"\eaf0"}.ri-briefcase-4-line:before{content:"\eaf1"}.ri-briefcase-5-fill:before{content:"\eaf2"}.ri-briefcase-5-line:before{content:"\eaf3"}.ri-briefcase-fill:before{content:"\eaf4"}.ri-briefcase-line:before{content:"\eaf5"}.ri-bring-forward:before{content:"\eaf6"}.ri-bring-to-front:before{content:"\eaf7"}.ri-broadcast-fill:before{content:"\eaf8"}.ri-broadcast-line:before{content:"\eaf9"}.ri-brush-2-fill:before{content:"\eafa"}.ri-brush-2-line:before{content:"\eafb"}.ri-brush-3-fill:before{content:"\eafc"}.ri-brush-3-line:before{content:"\eafd"}.ri-brush-4-fill:before{content:"\eafe"}.ri-brush-4-line:before{content:"\eaff"}.ri-brush-fill:before{content:"\eb00"}.ri-brush-line:before{content:"\eb01"}.ri-bubble-chart-fill:before{content:"\eb02"}.ri-bubble-chart-line:before{content:"\eb03"}.ri-bug-2-fill:before{content:"\eb04"}.ri-bug-2-line:before{content:"\eb05"}.ri-bug-fill:before{content:"\eb06"}.ri-bug-line:before{content:"\eb07"}.ri-building-2-fill:before{content:"\eb08"}.ri-building-2-line:before{content:"\eb09"}.ri-building-3-fill:before{content:"\eb0a"}.ri-building-3-line:before{content:"\eb0b"}.ri-building-4-fill:before{content:"\eb0c"}.ri-building-4-line:before{content:"\eb0d"}.ri-building-fill:before{content:"\eb0e"}.ri-building-line:before{content:"\eb0f"}.ri-bus-2-fill:before{content:"\eb10"}.ri-bus-2-line:before{content:"\eb11"}.ri-bus-fill:before{content:"\eb12"}.ri-bus-line:before{content:"\eb13"}.ri-bus-wifi-fill:before{content:"\eb14"}.ri-bus-wifi-line:before{content:"\eb15"}.ri-cactus-fill:before{content:"\eb16"}.ri-cactus-line:before{content:"\eb17"}.ri-cake-2-fill:before{content:"\eb18"}.ri-cake-2-line:before{content:"\eb19"}.ri-cake-3-fill:before{content:"\eb1a"}.ri-cake-3-line:before{content:"\eb1b"}.ri-cake-fill:before{content:"\eb1c"}.ri-cake-line:before{content:"\eb1d"}.ri-calculator-fill:before{content:"\eb1e"}.ri-calculator-line:before{content:"\eb1f"}.ri-calendar-2-fill:before{content:"\eb20"}.ri-calendar-2-line:before{content:"\eb21"}.ri-calendar-check-fill:before{content:"\eb22"}.ri-calendar-check-line:before{content:"\eb23"}.ri-calendar-event-fill:before{content:"\eb24"}.ri-calendar-event-line:before{content:"\eb25"}.ri-calendar-fill:before{content:"\eb26"}.ri-calendar-line:before{content:"\eb27"}.ri-calendar-todo-fill:before{content:"\eb28"}.ri-calendar-todo-line:before{content:"\eb29"}.ri-camera-2-fill:before{content:"\eb2a"}.ri-camera-2-line:before{content:"\eb2b"}.ri-camera-3-fill:before{content:"\eb2c"}.ri-camera-3-line:before{content:"\eb2d"}.ri-camera-fill:before{content:"\eb2e"}.ri-camera-lens-fill:before{content:"\eb2f"}.ri-camera-lens-line:before{content:"\eb30"}.ri-camera-line:before{content:"\eb31"}.ri-camera-off-fill:before{content:"\eb32"}.ri-camera-off-line:before{content:"\eb33"}.ri-camera-switch-fill:before{content:"\eb34"}.ri-camera-switch-line:before{content:"\eb35"}.ri-capsule-fill:before{content:"\eb36"}.ri-capsule-line:before{content:"\eb37"}.ri-car-fill:before{content:"\eb38"}.ri-car-line:before{content:"\eb39"}.ri-car-washing-fill:before{content:"\eb3a"}.ri-car-washing-line:before{content:"\eb3b"}.ri-caravan-fill:before{content:"\eb3c"}.ri-caravan-line:before{content:"\eb3d"}.ri-cast-fill:before{content:"\eb3e"}.ri-cast-line:before{content:"\eb3f"}.ri-cellphone-fill:before{content:"\eb40"}.ri-cellphone-line:before{content:"\eb41"}.ri-celsius-fill:before{content:"\eb42"}.ri-celsius-line:before{content:"\eb43"}.ri-centos-fill:before{content:"\eb44"}.ri-centos-line:before{content:"\eb45"}.ri-character-recognition-fill:before{content:"\eb46"}.ri-character-recognition-line:before{content:"\eb47"}.ri-charging-pile-2-fill:before{content:"\eb48"}.ri-charging-pile-2-line:before{content:"\eb49"}.ri-charging-pile-fill:before{content:"\eb4a"}.ri-charging-pile-line:before{content:"\eb4b"}.ri-chat-1-fill:before{content:"\eb4c"}.ri-chat-1-line:before{content:"\eb4d"}.ri-chat-2-fill:before{content:"\eb4e"}.ri-chat-2-line:before{content:"\eb4f"}.ri-chat-3-fill:before{content:"\eb50"}.ri-chat-3-line:before{content:"\eb51"}.ri-chat-4-fill:before{content:"\eb52"}.ri-chat-4-line:before{content:"\eb53"}.ri-chat-check-fill:before{content:"\eb54"}.ri-chat-check-line:before{content:"\eb55"}.ri-chat-delete-fill:before{content:"\eb56"}.ri-chat-delete-line:before{content:"\eb57"}.ri-chat-download-fill:before{content:"\eb58"}.ri-chat-download-line:before{content:"\eb59"}.ri-chat-follow-up-fill:before{content:"\eb5a"}.ri-chat-follow-up-line:before{content:"\eb5b"}.ri-chat-forward-fill:before{content:"\eb5c"}.ri-chat-forward-line:before{content:"\eb5d"}.ri-chat-heart-fill:before{content:"\eb5e"}.ri-chat-heart-line:before{content:"\eb5f"}.ri-chat-history-fill:before{content:"\eb60"}.ri-chat-history-line:before{content:"\eb61"}.ri-chat-new-fill:before{content:"\eb62"}.ri-chat-new-line:before{content:"\eb63"}.ri-chat-off-fill:before{content:"\eb64"}.ri-chat-off-line:before{content:"\eb65"}.ri-chat-poll-fill:before{content:"\eb66"}.ri-chat-poll-line:before{content:"\eb67"}.ri-chat-private-fill:before{content:"\eb68"}.ri-chat-private-line:before{content:"\eb69"}.ri-chat-quote-fill:before{content:"\eb6a"}.ri-chat-quote-line:before{content:"\eb6b"}.ri-chat-settings-fill:before{content:"\eb6c"}.ri-chat-settings-line:before{content:"\eb6d"}.ri-chat-smile-2-fill:before{content:"\eb6e"}.ri-chat-smile-2-line:before{content:"\eb6f"}.ri-chat-smile-3-fill:before{content:"\eb70"}.ri-chat-smile-3-line:before{content:"\eb71"}.ri-chat-smile-fill:before{content:"\eb72"}.ri-chat-smile-line:before{content:"\eb73"}.ri-chat-upload-fill:before{content:"\eb74"}.ri-chat-upload-line:before{content:"\eb75"}.ri-chat-voice-fill:before{content:"\eb76"}.ri-chat-voice-line:before{content:"\eb77"}.ri-check-double-fill:before{content:"\eb78"}.ri-check-double-line:before{content:"\eb79"}.ri-check-fill:before{content:"\eb7a"}.ri-check-line:before{content:"\eb7b"}.ri-checkbox-blank-circle-fill:before{content:"\eb7c"}.ri-checkbox-blank-circle-line:before{content:"\eb7d"}.ri-checkbox-blank-fill:before{content:"\eb7e"}.ri-checkbox-blank-line:before{content:"\eb7f"}.ri-checkbox-circle-fill:before{content:"\eb80"}.ri-checkbox-circle-line:before{content:"\eb81"}.ri-checkbox-fill:before{content:"\eb82"}.ri-checkbox-indeterminate-fill:before{content:"\eb83"}.ri-checkbox-indeterminate-line:before{content:"\eb84"}.ri-checkbox-line:before{content:"\eb85"}.ri-checkbox-multiple-blank-fill:before{content:"\eb86"}.ri-checkbox-multiple-blank-line:before{content:"\eb87"}.ri-checkbox-multiple-fill:before{content:"\eb88"}.ri-checkbox-multiple-line:before{content:"\eb89"}.ri-china-railway-fill:before{content:"\eb8a"}.ri-china-railway-line:before{content:"\eb8b"}.ri-chrome-fill:before{content:"\eb8c"}.ri-chrome-line:before{content:"\eb8d"}.ri-clapperboard-fill:before{content:"\eb8e"}.ri-clapperboard-line:before{content:"\eb8f"}.ri-clipboard-fill:before{content:"\eb90"}.ri-clipboard-line:before{content:"\eb91"}.ri-clockwise-2-fill:before{content:"\eb92"}.ri-clockwise-2-line:before{content:"\eb93"}.ri-clockwise-fill:before{content:"\eb94"}.ri-clockwise-line:before{content:"\eb95"}.ri-close-circle-fill:before{content:"\eb96"}.ri-close-circle-line:before{content:"\eb97"}.ri-close-fill:before{content:"\eb98"}.ri-close-line:before{content:"\eb99"}.ri-closed-captioning-fill:before{content:"\eb9a"}.ri-closed-captioning-line:before{content:"\eb9b"}.ri-cloud-fill:before{content:"\eb9c"}.ri-cloud-line:before{content:"\eb9d"}.ri-cloud-off-fill:before{content:"\eb9e"}.ri-cloud-off-line:before{content:"\eb9f"}.ri-cloud-windy-fill:before{content:"\eba0"}.ri-cloud-windy-line:before{content:"\eba1"}.ri-cloudy-2-fill:before{content:"\eba2"}.ri-cloudy-2-line:before{content:"\eba3"}.ri-cloudy-fill:before{content:"\eba4"}.ri-cloudy-line:before{content:"\eba5"}.ri-code-box-fill:before{content:"\eba6"}.ri-code-box-line:before{content:"\eba7"}.ri-code-fill:before{content:"\eba8"}.ri-code-line:before{content:"\eba9"}.ri-code-s-fill:before{content:"\ebaa"}.ri-code-s-line:before{content:"\ebab"}.ri-code-s-slash-fill:before{content:"\ebac"}.ri-code-s-slash-line:before{content:"\ebad"}.ri-code-view:before{content:"\ebae"}.ri-codepen-fill:before{content:"\ebaf"}.ri-codepen-line:before{content:"\ebb0"}.ri-coin-fill:before{content:"\ebb1"}.ri-coin-line:before{content:"\ebb2"}.ri-coins-fill:before{content:"\ebb3"}.ri-coins-line:before{content:"\ebb4"}.ri-collage-fill:before{content:"\ebb5"}.ri-collage-line:before{content:"\ebb6"}.ri-command-fill:before{content:"\ebb7"}.ri-command-line:before{content:"\ebb8"}.ri-community-fill:before{content:"\ebb9"}.ri-community-line:before{content:"\ebba"}.ri-compass-2-fill:before{content:"\ebbb"}.ri-compass-2-line:before{content:"\ebbc"}.ri-compass-3-fill:before{content:"\ebbd"}.ri-compass-3-line:before{content:"\ebbe"}.ri-compass-4-fill:before{content:"\ebbf"}.ri-compass-4-line:before{content:"\ebc0"}.ri-compass-discover-fill:before{content:"\ebc1"}.ri-compass-discover-line:before{content:"\ebc2"}.ri-compass-fill:before{content:"\ebc3"}.ri-compass-line:before{content:"\ebc4"}.ri-compasses-2-fill:before{content:"\ebc5"}.ri-compasses-2-line:before{content:"\ebc6"}.ri-compasses-fill:before{content:"\ebc7"}.ri-compasses-line:before{content:"\ebc8"}.ri-computer-fill:before{content:"\ebc9"}.ri-computer-line:before{content:"\ebca"}.ri-contacts-book-2-fill:before{content:"\ebcb"}.ri-contacts-book-2-line:before{content:"\ebcc"}.ri-contacts-book-fill:before{content:"\ebcd"}.ri-contacts-book-line:before{content:"\ebce"}.ri-contacts-book-upload-fill:before{content:"\ebcf"}.ri-contacts-book-upload-line:before{content:"\ebd0"}.ri-contacts-fill:before{content:"\ebd1"}.ri-contacts-line:before{content:"\ebd2"}.ri-contrast-2-fill:before{content:"\ebd3"}.ri-contrast-2-line:before{content:"\ebd4"}.ri-contrast-drop-2-fill:before{content:"\ebd5"}.ri-contrast-drop-2-line:before{content:"\ebd6"}.ri-contrast-drop-fill:before{content:"\ebd7"}.ri-contrast-drop-line:before{content:"\ebd8"}.ri-contrast-fill:before{content:"\ebd9"}.ri-contrast-line:before{content:"\ebda"}.ri-copper-coin-fill:before{content:"\ebdb"}.ri-copper-coin-line:before{content:"\ebdc"}.ri-copper-diamond-fill:before{content:"\ebdd"}.ri-copper-diamond-line:before{content:"\ebde"}.ri-copyleft-fill:before{content:"\ebdf"}.ri-copyleft-line:before{content:"\ebe0"}.ri-copyright-fill:before{content:"\ebe1"}.ri-copyright-line:before{content:"\ebe2"}.ri-coreos-fill:before{content:"\ebe3"}.ri-coreos-line:before{content:"\ebe4"}.ri-coupon-2-fill:before{content:"\ebe5"}.ri-coupon-2-line:before{content:"\ebe6"}.ri-coupon-3-fill:before{content:"\ebe7"}.ri-coupon-3-line:before{content:"\ebe8"}.ri-coupon-4-fill:before{content:"\ebe9"}.ri-coupon-4-line:before{content:"\ebea"}.ri-coupon-5-fill:before{content:"\ebeb"}.ri-coupon-5-line:before{content:"\ebec"}.ri-coupon-fill:before{content:"\ebed"}.ri-coupon-line:before{content:"\ebee"}.ri-cpu-fill:before{content:"\ebef"}.ri-cpu-line:before{content:"\ebf0"}.ri-creative-commons-by-fill:before{content:"\ebf1"}.ri-creative-commons-by-line:before{content:"\ebf2"}.ri-creative-commons-fill:before{content:"\ebf3"}.ri-creative-commons-line:before{content:"\ebf4"}.ri-creative-commons-nc-fill:before{content:"\ebf5"}.ri-creative-commons-nc-line:before{content:"\ebf6"}.ri-creative-commons-nd-fill:before{content:"\ebf7"}.ri-creative-commons-nd-line:before{content:"\ebf8"}.ri-creative-commons-sa-fill:before{content:"\ebf9"}.ri-creative-commons-sa-line:before{content:"\ebfa"}.ri-creative-commons-zero-fill:before{content:"\ebfb"}.ri-creative-commons-zero-line:before{content:"\ebfc"}.ri-criminal-fill:before{content:"\ebfd"}.ri-criminal-line:before{content:"\ebfe"}.ri-crop-2-fill:before{content:"\ebff"}.ri-crop-2-line:before{content:"\ec00"}.ri-crop-fill:before{content:"\ec01"}.ri-crop-line:before{content:"\ec02"}.ri-css3-fill:before{content:"\ec03"}.ri-css3-line:before{content:"\ec04"}.ri-cup-fill:before{content:"\ec05"}.ri-cup-line:before{content:"\ec06"}.ri-currency-fill:before{content:"\ec07"}.ri-currency-line:before{content:"\ec08"}.ri-cursor-fill:before{content:"\ec09"}.ri-cursor-line:before{content:"\ec0a"}.ri-customer-service-2-fill:before{content:"\ec0b"}.ri-customer-service-2-line:before{content:"\ec0c"}.ri-customer-service-fill:before{content:"\ec0d"}.ri-customer-service-line:before{content:"\ec0e"}.ri-dashboard-2-fill:before{content:"\ec0f"}.ri-dashboard-2-line:before{content:"\ec10"}.ri-dashboard-3-fill:before{content:"\ec11"}.ri-dashboard-3-line:before{content:"\ec12"}.ri-dashboard-fill:before{content:"\ec13"}.ri-dashboard-line:before{content:"\ec14"}.ri-database-2-fill:before{content:"\ec15"}.ri-database-2-line:before{content:"\ec16"}.ri-database-fill:before{content:"\ec17"}.ri-database-line:before{content:"\ec18"}.ri-delete-back-2-fill:before{content:"\ec19"}.ri-delete-back-2-line:before{content:"\ec1a"}.ri-delete-back-fill:before{content:"\ec1b"}.ri-delete-back-line:before{content:"\ec1c"}.ri-delete-bin-2-fill:before{content:"\ec1d"}.ri-delete-bin-2-line:before{content:"\ec1e"}.ri-delete-bin-3-fill:before{content:"\ec1f"}.ri-delete-bin-3-line:before{content:"\ec20"}.ri-delete-bin-4-fill:before{content:"\ec21"}.ri-delete-bin-4-line:before{content:"\ec22"}.ri-delete-bin-5-fill:before{content:"\ec23"}.ri-delete-bin-5-line:before{content:"\ec24"}.ri-delete-bin-6-fill:before{content:"\ec25"}.ri-delete-bin-6-line:before{content:"\ec26"}.ri-delete-bin-7-fill:before{content:"\ec27"}.ri-delete-bin-7-line:before{content:"\ec28"}.ri-delete-bin-fill:before{content:"\ec29"}.ri-delete-bin-line:before{content:"\ec2a"}.ri-delete-column:before{content:"\ec2b"}.ri-delete-row:before{content:"\ec2c"}.ri-device-fill:before{content:"\ec2d"}.ri-device-line:before{content:"\ec2e"}.ri-device-recover-fill:before{content:"\ec2f"}.ri-device-recover-line:before{content:"\ec30"}.ri-dingding-fill:before{content:"\ec31"}.ri-dingding-line:before{content:"\ec32"}.ri-direction-fill:before{content:"\ec33"}.ri-direction-line:before{content:"\ec34"}.ri-disc-fill:before{content:"\ec35"}.ri-disc-line:before{content:"\ec36"}.ri-discord-fill:before{content:"\ec37"}.ri-discord-line:before{content:"\ec38"}.ri-discuss-fill:before{content:"\ec39"}.ri-discuss-line:before{content:"\ec3a"}.ri-dislike-fill:before{content:"\ec3b"}.ri-dislike-line:before{content:"\ec3c"}.ri-disqus-fill:before{content:"\ec3d"}.ri-disqus-line:before{content:"\ec3e"}.ri-divide-fill:before{content:"\ec3f"}.ri-divide-line:before{content:"\ec40"}.ri-donut-chart-fill:before{content:"\ec41"}.ri-donut-chart-line:before{content:"\ec42"}.ri-door-closed-fill:before{content:"\ec43"}.ri-door-closed-line:before{content:"\ec44"}.ri-door-fill:before{content:"\ec45"}.ri-door-line:before{content:"\ec46"}.ri-door-lock-box-fill:before{content:"\ec47"}.ri-door-lock-box-line:before{content:"\ec48"}.ri-door-lock-fill:before{content:"\ec49"}.ri-door-lock-line:before{content:"\ec4a"}.ri-door-open-fill:before{content:"\ec4b"}.ri-door-open-line:before{content:"\ec4c"}.ri-dossier-fill:before{content:"\ec4d"}.ri-dossier-line:before{content:"\ec4e"}.ri-douban-fill:before{content:"\ec4f"}.ri-douban-line:before{content:"\ec50"}.ri-double-quotes-l:before{content:"\ec51"}.ri-double-quotes-r:before{content:"\ec52"}.ri-download-2-fill:before{content:"\ec53"}.ri-download-2-line:before{content:"\ec54"}.ri-download-cloud-2-fill:before{content:"\ec55"}.ri-download-cloud-2-line:before{content:"\ec56"}.ri-download-cloud-fill:before{content:"\ec57"}.ri-download-cloud-line:before{content:"\ec58"}.ri-download-fill:before{content:"\ec59"}.ri-download-line:before{content:"\ec5a"}.ri-draft-fill:before{content:"\ec5b"}.ri-draft-line:before{content:"\ec5c"}.ri-drag-drop-fill:before{content:"\ec5d"}.ri-drag-drop-line:before{content:"\ec5e"}.ri-drag-move-2-fill:before{content:"\ec5f"}.ri-drag-move-2-line:before{content:"\ec60"}.ri-drag-move-fill:before{content:"\ec61"}.ri-drag-move-line:before{content:"\ec62"}.ri-dribbble-fill:before{content:"\ec63"}.ri-dribbble-line:before{content:"\ec64"}.ri-drive-fill:before{content:"\ec65"}.ri-drive-line:before{content:"\ec66"}.ri-drizzle-fill:before{content:"\ec67"}.ri-drizzle-line:before{content:"\ec68"}.ri-drop-fill:before{content:"\ec69"}.ri-drop-line:before{content:"\ec6a"}.ri-dropbox-fill:before{content:"\ec6b"}.ri-dropbox-line:before{content:"\ec6c"}.ri-dual-sim-1-fill:before{content:"\ec6d"}.ri-dual-sim-1-line:before{content:"\ec6e"}.ri-dual-sim-2-fill:before{content:"\ec6f"}.ri-dual-sim-2-line:before{content:"\ec70"}.ri-dv-fill:before{content:"\ec71"}.ri-dv-line:before{content:"\ec72"}.ri-dvd-fill:before{content:"\ec73"}.ri-dvd-line:before{content:"\ec74"}.ri-e-bike-2-fill:before{content:"\ec75"}.ri-e-bike-2-line:before{content:"\ec76"}.ri-e-bike-fill:before{content:"\ec77"}.ri-e-bike-line:before{content:"\ec78"}.ri-earth-fill:before{content:"\ec79"}.ri-earth-line:before{content:"\ec7a"}.ri-earthquake-fill:before{content:"\ec7b"}.ri-earthquake-line:before{content:"\ec7c"}.ri-edge-fill:before{content:"\ec7d"}.ri-edge-line:before{content:"\ec7e"}.ri-edit-2-fill:before{content:"\ec7f"}.ri-edit-2-line:before{content:"\ec80"}.ri-edit-box-fill:before{content:"\ec81"}.ri-edit-box-line:before{content:"\ec82"}.ri-edit-circle-fill:before{content:"\ec83"}.ri-edit-circle-line:before{content:"\ec84"}.ri-edit-fill:before{content:"\ec85"}.ri-edit-line:before{content:"\ec86"}.ri-eject-fill:before{content:"\ec87"}.ri-eject-line:before{content:"\ec88"}.ri-emotion-2-fill:before{content:"\ec89"}.ri-emotion-2-line:before{content:"\ec8a"}.ri-emotion-fill:before{content:"\ec8b"}.ri-emotion-happy-fill:before{content:"\ec8c"}.ri-emotion-happy-line:before{content:"\ec8d"}.ri-emotion-laugh-fill:before{content:"\ec8e"}.ri-emotion-laugh-line:before{content:"\ec8f"}.ri-emotion-line:before{content:"\ec90"}.ri-emotion-normal-fill:before{content:"\ec91"}.ri-emotion-normal-line:before{content:"\ec92"}.ri-emotion-sad-fill:before{content:"\ec93"}.ri-emotion-sad-line:before{content:"\ec94"}.ri-emotion-unhappy-fill:before{content:"\ec95"}.ri-emotion-unhappy-line:before{content:"\ec96"}.ri-empathize-fill:before{content:"\ec97"}.ri-empathize-line:before{content:"\ec98"}.ri-emphasis-cn:before{content:"\ec99"}.ri-emphasis:before{content:"\ec9a"}.ri-english-input:before{content:"\ec9b"}.ri-equalizer-fill:before{content:"\ec9c"}.ri-equalizer-line:before{content:"\ec9d"}.ri-eraser-fill:before{content:"\ec9e"}.ri-eraser-line:before{content:"\ec9f"}.ri-error-warning-fill:before{content:"\eca0"}.ri-error-warning-line:before{content:"\eca1"}.ri-evernote-fill:before{content:"\eca2"}.ri-evernote-line:before{content:"\eca3"}.ri-exchange-box-fill:before{content:"\eca4"}.ri-exchange-box-line:before{content:"\eca5"}.ri-exchange-cny-fill:before{content:"\eca6"}.ri-exchange-cny-line:before{content:"\eca7"}.ri-exchange-dollar-fill:before{content:"\eca8"}.ri-exchange-dollar-line:before{content:"\eca9"}.ri-exchange-fill:before{content:"\ecaa"}.ri-exchange-funds-fill:before{content:"\ecab"}.ri-exchange-funds-line:before{content:"\ecac"}.ri-exchange-line:before{content:"\ecad"}.ri-external-link-fill:before{content:"\ecae"}.ri-external-link-line:before{content:"\ecaf"}.ri-eye-2-fill:before{content:"\ecb0"}.ri-eye-2-line:before{content:"\ecb1"}.ri-eye-close-fill:before{content:"\ecb2"}.ri-eye-close-line:before{content:"\ecb3"}.ri-eye-fill:before{content:"\ecb4"}.ri-eye-line:before{content:"\ecb5"}.ri-eye-off-fill:before{content:"\ecb6"}.ri-eye-off-line:before{content:"\ecb7"}.ri-facebook-box-fill:before{content:"\ecb8"}.ri-facebook-box-line:before{content:"\ecb9"}.ri-facebook-circle-fill:before{content:"\ecba"}.ri-facebook-circle-line:before{content:"\ecbb"}.ri-facebook-fill:before{content:"\ecbc"}.ri-facebook-line:before{content:"\ecbd"}.ri-fahrenheit-fill:before{content:"\ecbe"}.ri-fahrenheit-line:before{content:"\ecbf"}.ri-feedback-fill:before{content:"\ecc0"}.ri-feedback-line:before{content:"\ecc1"}.ri-file-2-fill:before{content:"\ecc2"}.ri-file-2-line:before{content:"\ecc3"}.ri-file-3-fill:before{content:"\ecc4"}.ri-file-3-line:before{content:"\ecc5"}.ri-file-4-fill:before{content:"\ecc6"}.ri-file-4-line:before{content:"\ecc7"}.ri-file-add-fill:before{content:"\ecc8"}.ri-file-add-line:before{content:"\ecc9"}.ri-file-chart-2-fill:before{content:"\ecca"}.ri-file-chart-2-line:before{content:"\eccb"}.ri-file-chart-fill:before{content:"\eccc"}.ri-file-chart-line:before{content:"\eccd"}.ri-file-cloud-fill:before{content:"\ecce"}.ri-file-cloud-line:before{content:"\eccf"}.ri-file-code-fill:before{content:"\ecd0"}.ri-file-code-line:before{content:"\ecd1"}.ri-file-copy-2-fill:before{content:"\ecd2"}.ri-file-copy-2-line:before{content:"\ecd3"}.ri-file-copy-fill:before{content:"\ecd4"}.ri-file-copy-line:before{content:"\ecd5"}.ri-file-damage-fill:before{content:"\ecd6"}.ri-file-damage-line:before{content:"\ecd7"}.ri-file-download-fill:before{content:"\ecd8"}.ri-file-download-line:before{content:"\ecd9"}.ri-file-edit-fill:before{content:"\ecda"}.ri-file-edit-line:before{content:"\ecdb"}.ri-file-excel-2-fill:before{content:"\ecdc"}.ri-file-excel-2-line:before{content:"\ecdd"}.ri-file-excel-fill:before{content:"\ecde"}.ri-file-excel-line:before{content:"\ecdf"}.ri-file-fill:before{content:"\ece0"}.ri-file-forbid-fill:before{content:"\ece1"}.ri-file-forbid-line:before{content:"\ece2"}.ri-file-gif-fill:before{content:"\ece3"}.ri-file-gif-line:before{content:"\ece4"}.ri-file-history-fill:before{content:"\ece5"}.ri-file-history-line:before{content:"\ece6"}.ri-file-hwp-fill:before{content:"\ece7"}.ri-file-hwp-line:before{content:"\ece8"}.ri-file-info-fill:before{content:"\ece9"}.ri-file-info-line:before{content:"\ecea"}.ri-file-line:before{content:"\eceb"}.ri-file-list-2-fill:before{content:"\ecec"}.ri-file-list-2-line:before{content:"\eced"}.ri-file-list-3-fill:before{content:"\ecee"}.ri-file-list-3-line:before{content:"\ecef"}.ri-file-list-fill:before{content:"\ecf0"}.ri-file-list-line:before{content:"\ecf1"}.ri-file-lock-fill:before{content:"\ecf2"}.ri-file-lock-line:before{content:"\ecf3"}.ri-file-mark-fill:before{content:"\ecf4"}.ri-file-mark-line:before{content:"\ecf5"}.ri-file-music-fill:before{content:"\ecf6"}.ri-file-music-line:before{content:"\ecf7"}.ri-file-paper-2-fill:before{content:"\ecf8"}.ri-file-paper-2-line:before{content:"\ecf9"}.ri-file-paper-fill:before{content:"\ecfa"}.ri-file-paper-line:before{content:"\ecfb"}.ri-file-pdf-fill:before{content:"\ecfc"}.ri-file-pdf-line:before{content:"\ecfd"}.ri-file-ppt-2-fill:before{content:"\ecfe"}.ri-file-ppt-2-line:before{content:"\ecff"}.ri-file-ppt-fill:before{content:"\ed00"}.ri-file-ppt-line:before{content:"\ed01"}.ri-file-reduce-fill:before{content:"\ed02"}.ri-file-reduce-line:before{content:"\ed03"}.ri-file-search-fill:before{content:"\ed04"}.ri-file-search-line:before{content:"\ed05"}.ri-file-settings-fill:before{content:"\ed06"}.ri-file-settings-line:before{content:"\ed07"}.ri-file-shield-2-fill:before{content:"\ed08"}.ri-file-shield-2-line:before{content:"\ed09"}.ri-file-shield-fill:before{content:"\ed0a"}.ri-file-shield-line:before{content:"\ed0b"}.ri-file-shred-fill:before{content:"\ed0c"}.ri-file-shred-line:before{content:"\ed0d"}.ri-file-text-fill:before{content:"\ed0e"}.ri-file-text-line:before{content:"\ed0f"}.ri-file-transfer-fill:before{content:"\ed10"}.ri-file-transfer-line:before{content:"\ed11"}.ri-file-unknow-fill:before{content:"\ed12"}.ri-file-unknow-line:before{content:"\ed13"}.ri-file-upload-fill:before{content:"\ed14"}.ri-file-upload-line:before{content:"\ed15"}.ri-file-user-fill:before{content:"\ed16"}.ri-file-user-line:before{content:"\ed17"}.ri-file-warning-fill:before{content:"\ed18"}.ri-file-warning-line:before{content:"\ed19"}.ri-file-word-2-fill:before{content:"\ed1a"}.ri-file-word-2-line:before{content:"\ed1b"}.ri-file-word-fill:before{content:"\ed1c"}.ri-file-word-line:before{content:"\ed1d"}.ri-file-zip-fill:before{content:"\ed1e"}.ri-file-zip-line:before{content:"\ed1f"}.ri-film-fill:before{content:"\ed20"}.ri-film-line:before{content:"\ed21"}.ri-filter-2-fill:before{content:"\ed22"}.ri-filter-2-line:before{content:"\ed23"}.ri-filter-3-fill:before{content:"\ed24"}.ri-filter-3-line:before{content:"\ed25"}.ri-filter-fill:before{content:"\ed26"}.ri-filter-line:before{content:"\ed27"}.ri-filter-off-fill:before{content:"\ed28"}.ri-filter-off-line:before{content:"\ed29"}.ri-find-replace-fill:before{content:"\ed2a"}.ri-find-replace-line:before{content:"\ed2b"}.ri-finder-fill:before{content:"\ed2c"}.ri-finder-line:before{content:"\ed2d"}.ri-fingerprint-2-fill:before{content:"\ed2e"}.ri-fingerprint-2-line:before{content:"\ed2f"}.ri-fingerprint-fill:before{content:"\ed30"}.ri-fingerprint-line:before{content:"\ed31"}.ri-fire-fill:before{content:"\ed32"}.ri-fire-line:before{content:"\ed33"}.ri-firefox-fill:before{content:"\ed34"}.ri-firefox-line:before{content:"\ed35"}.ri-first-aid-kit-fill:before{content:"\ed36"}.ri-first-aid-kit-line:before{content:"\ed37"}.ri-flag-2-fill:before{content:"\ed38"}.ri-flag-2-line:before{content:"\ed39"}.ri-flag-fill:before{content:"\ed3a"}.ri-flag-line:before{content:"\ed3b"}.ri-flashlight-fill:before{content:"\ed3c"}.ri-flashlight-line:before{content:"\ed3d"}.ri-flask-fill:before{content:"\ed3e"}.ri-flask-line:before{content:"\ed3f"}.ri-flight-land-fill:before{content:"\ed40"}.ri-flight-land-line:before{content:"\ed41"}.ri-flight-takeoff-fill:before{content:"\ed42"}.ri-flight-takeoff-line:before{content:"\ed43"}.ri-flood-fill:before{content:"\ed44"}.ri-flood-line:before{content:"\ed45"}.ri-flow-chart:before{content:"\ed46"}.ri-flutter-fill:before{content:"\ed47"}.ri-flutter-line:before{content:"\ed48"}.ri-focus-2-fill:before{content:"\ed49"}.ri-focus-2-line:before{content:"\ed4a"}.ri-focus-3-fill:before{content:"\ed4b"}.ri-focus-3-line:before{content:"\ed4c"}.ri-focus-fill:before{content:"\ed4d"}.ri-focus-line:before{content:"\ed4e"}.ri-foggy-fill:before{content:"\ed4f"}.ri-foggy-line:before{content:"\ed50"}.ri-folder-2-fill:before{content:"\ed51"}.ri-folder-2-line:before{content:"\ed52"}.ri-folder-3-fill:before{content:"\ed53"}.ri-folder-3-line:before{content:"\ed54"}.ri-folder-4-fill:before{content:"\ed55"}.ri-folder-4-line:before{content:"\ed56"}.ri-folder-5-fill:before{content:"\ed57"}.ri-folder-5-line:before{content:"\ed58"}.ri-folder-add-fill:before{content:"\ed59"}.ri-folder-add-line:before{content:"\ed5a"}.ri-folder-chart-2-fill:before{content:"\ed5b"}.ri-folder-chart-2-line:before{content:"\ed5c"}.ri-folder-chart-fill:before{content:"\ed5d"}.ri-folder-chart-line:before{content:"\ed5e"}.ri-folder-download-fill:before{content:"\ed5f"}.ri-folder-download-line:before{content:"\ed60"}.ri-folder-fill:before{content:"\ed61"}.ri-folder-forbid-fill:before{content:"\ed62"}.ri-folder-forbid-line:before{content:"\ed63"}.ri-folder-history-fill:before{content:"\ed64"}.ri-folder-history-line:before{content:"\ed65"}.ri-folder-info-fill:before{content:"\ed66"}.ri-folder-info-line:before{content:"\ed67"}.ri-folder-keyhole-fill:before{content:"\ed68"}.ri-folder-keyhole-line:before{content:"\ed69"}.ri-folder-line:before{content:"\ed6a"}.ri-folder-lock-fill:before{content:"\ed6b"}.ri-folder-lock-line:before{content:"\ed6c"}.ri-folder-music-fill:before{content:"\ed6d"}.ri-folder-music-line:before{content:"\ed6e"}.ri-folder-open-fill:before{content:"\ed6f"}.ri-folder-open-line:before{content:"\ed70"}.ri-folder-received-fill:before{content:"\ed71"}.ri-folder-received-line:before{content:"\ed72"}.ri-folder-reduce-fill:before{content:"\ed73"}.ri-folder-reduce-line:before{content:"\ed74"}.ri-folder-settings-fill:before{content:"\ed75"}.ri-folder-settings-line:before{content:"\ed76"}.ri-folder-shared-fill:before{content:"\ed77"}.ri-folder-shared-line:before{content:"\ed78"}.ri-folder-shield-2-fill:before{content:"\ed79"}.ri-folder-shield-2-line:before{content:"\ed7a"}.ri-folder-shield-fill:before{content:"\ed7b"}.ri-folder-shield-line:before{content:"\ed7c"}.ri-folder-transfer-fill:before{content:"\ed7d"}.ri-folder-transfer-line:before{content:"\ed7e"}.ri-folder-unknow-fill:before{content:"\ed7f"}.ri-folder-unknow-line:before{content:"\ed80"}.ri-folder-upload-fill:before{content:"\ed81"}.ri-folder-upload-line:before{content:"\ed82"}.ri-folder-user-fill:before{content:"\ed83"}.ri-folder-user-line:before{content:"\ed84"}.ri-folder-warning-fill:before{content:"\ed85"}.ri-folder-warning-line:before{content:"\ed86"}.ri-folder-zip-fill:before{content:"\ed87"}.ri-folder-zip-line:before{content:"\ed88"}.ri-folders-fill:before{content:"\ed89"}.ri-folders-line:before{content:"\ed8a"}.ri-font-color:before{content:"\ed8b"}.ri-font-size-2:before{content:"\ed8c"}.ri-font-size:before{content:"\ed8d"}.ri-football-fill:before{content:"\ed8e"}.ri-football-line:before{content:"\ed8f"}.ri-footprint-fill:before{content:"\ed90"}.ri-footprint-line:before{content:"\ed91"}.ri-forbid-2-fill:before{content:"\ed92"}.ri-forbid-2-line:before{content:"\ed93"}.ri-forbid-fill:before{content:"\ed94"}.ri-forbid-line:before{content:"\ed95"}.ri-format-clear:before{content:"\ed96"}.ri-fridge-fill:before{content:"\ed97"}.ri-fridge-line:before{content:"\ed98"}.ri-fullscreen-exit-fill:before{content:"\ed99"}.ri-fullscreen-exit-line:before{content:"\ed9a"}.ri-fullscreen-fill:before{content:"\ed9b"}.ri-fullscreen-line:before{content:"\ed9c"}.ri-function-fill:before{content:"\ed9d"}.ri-function-line:before{content:"\ed9e"}.ri-functions:before{content:"\ed9f"}.ri-funds-box-fill:before{content:"\eda0"}.ri-funds-box-line:before{content:"\eda1"}.ri-funds-fill:before{content:"\eda2"}.ri-funds-line:before{content:"\eda3"}.ri-gallery-fill:before{content:"\eda4"}.ri-gallery-line:before{content:"\eda5"}.ri-gallery-upload-fill:before{content:"\eda6"}.ri-gallery-upload-line:before{content:"\eda7"}.ri-game-fill:before{content:"\eda8"}.ri-game-line:before{content:"\eda9"}.ri-gamepad-fill:before{content:"\edaa"}.ri-gamepad-line:before{content:"\edab"}.ri-gas-station-fill:before{content:"\edac"}.ri-gas-station-line:before{content:"\edad"}.ri-gatsby-fill:before{content:"\edae"}.ri-gatsby-line:before{content:"\edaf"}.ri-genderless-fill:before{content:"\edb0"}.ri-genderless-line:before{content:"\edb1"}.ri-ghost-2-fill:before{content:"\edb2"}.ri-ghost-2-line:before{content:"\edb3"}.ri-ghost-fill:before{content:"\edb4"}.ri-ghost-line:before{content:"\edb5"}.ri-ghost-smile-fill:before{content:"\edb6"}.ri-ghost-smile-line:before{content:"\edb7"}.ri-gift-2-fill:before{content:"\edb8"}.ri-gift-2-line:before{content:"\edb9"}.ri-gift-fill:before{content:"\edba"}.ri-gift-line:before{content:"\edbb"}.ri-git-branch-fill:before{content:"\edbc"}.ri-git-branch-line:before{content:"\edbd"}.ri-git-commit-fill:before{content:"\edbe"}.ri-git-commit-line:before{content:"\edbf"}.ri-git-merge-fill:before{content:"\edc0"}.ri-git-merge-line:before{content:"\edc1"}.ri-git-pull-request-fill:before{content:"\edc2"}.ri-git-pull-request-line:before{content:"\edc3"}.ri-git-repository-commits-fill:before{content:"\edc4"}.ri-git-repository-commits-line:before{content:"\edc5"}.ri-git-repository-fill:before{content:"\edc6"}.ri-git-repository-line:before{content:"\edc7"}.ri-git-repository-private-fill:before{content:"\edc8"}.ri-git-repository-private-line:before{content:"\edc9"}.ri-github-fill:before{content:"\edca"}.ri-github-line:before{content:"\edcb"}.ri-gitlab-fill:before{content:"\edcc"}.ri-gitlab-line:before{content:"\edcd"}.ri-global-fill:before{content:"\edce"}.ri-global-line:before{content:"\edcf"}.ri-globe-fill:before{content:"\edd0"}.ri-globe-line:before{content:"\edd1"}.ri-goblet-fill:before{content:"\edd2"}.ri-goblet-line:before{content:"\edd3"}.ri-google-fill:before{content:"\edd4"}.ri-google-line:before{content:"\edd5"}.ri-google-play-fill:before{content:"\edd6"}.ri-google-play-line:before{content:"\edd7"}.ri-government-fill:before{content:"\edd8"}.ri-government-line:before{content:"\edd9"}.ri-gps-fill:before{content:"\edda"}.ri-gps-line:before{content:"\eddb"}.ri-gradienter-fill:before{content:"\eddc"}.ri-gradienter-line:before{content:"\eddd"}.ri-grid-fill:before{content:"\edde"}.ri-grid-line:before{content:"\eddf"}.ri-group-2-fill:before{content:"\ede0"}.ri-group-2-line:before{content:"\ede1"}.ri-group-fill:before{content:"\ede2"}.ri-group-line:before{content:"\ede3"}.ri-guide-fill:before{content:"\ede4"}.ri-guide-line:before{content:"\ede5"}.ri-h-1:before{content:"\ede6"}.ri-h-2:before{content:"\ede7"}.ri-h-3:before{content:"\ede8"}.ri-h-4:before{content:"\ede9"}.ri-h-5:before{content:"\edea"}.ri-h-6:before{content:"\edeb"}.ri-hail-fill:before{content:"\edec"}.ri-hail-line:before{content:"\eded"}.ri-hammer-fill:before{content:"\edee"}.ri-hammer-line:before{content:"\edef"}.ri-hand-coin-fill:before{content:"\edf0"}.ri-hand-coin-line:before{content:"\edf1"}.ri-hand-heart-fill:before{content:"\edf2"}.ri-hand-heart-line:before{content:"\edf3"}.ri-hand-sanitizer-fill:before{content:"\edf4"}.ri-hand-sanitizer-line:before{content:"\edf5"}.ri-handbag-fill:before{content:"\edf6"}.ri-handbag-line:before{content:"\edf7"}.ri-hard-drive-2-fill:before{content:"\edf8"}.ri-hard-drive-2-line:before{content:"\edf9"}.ri-hard-drive-fill:before{content:"\edfa"}.ri-hard-drive-line:before{content:"\edfb"}.ri-hashtag:before{content:"\edfc"}.ri-haze-2-fill:before{content:"\edfd"}.ri-haze-2-line:before{content:"\edfe"}.ri-haze-fill:before{content:"\edff"}.ri-haze-line:before{content:"\ee00"}.ri-hd-fill:before{content:"\ee01"}.ri-hd-line:before{content:"\ee02"}.ri-heading:before{content:"\ee03"}.ri-headphone-fill:before{content:"\ee04"}.ri-headphone-line:before{content:"\ee05"}.ri-health-book-fill:before{content:"\ee06"}.ri-health-book-line:before{content:"\ee07"}.ri-heart-2-fill:before{content:"\ee08"}.ri-heart-2-line:before{content:"\ee09"}.ri-heart-3-fill:before{content:"\ee0a"}.ri-heart-3-line:before{content:"\ee0b"}.ri-heart-add-fill:before{content:"\ee0c"}.ri-heart-add-line:before{content:"\ee0d"}.ri-heart-fill:before{content:"\ee0e"}.ri-heart-line:before{content:"\ee0f"}.ri-heart-pulse-fill:before{content:"\ee10"}.ri-heart-pulse-line:before{content:"\ee11"}.ri-hearts-fill:before{content:"\ee12"}.ri-hearts-line:before{content:"\ee13"}.ri-heavy-showers-fill:before{content:"\ee14"}.ri-heavy-showers-line:before{content:"\ee15"}.ri-history-fill:before{content:"\ee16"}.ri-history-line:before{content:"\ee17"}.ri-home-2-fill:before{content:"\ee18"}.ri-home-2-line:before{content:"\ee19"}.ri-home-3-fill:before{content:"\ee1a"}.ri-home-3-line:before{content:"\ee1b"}.ri-home-4-fill:before{content:"\ee1c"}.ri-home-4-line:before{content:"\ee1d"}.ri-home-5-fill:before{content:"\ee1e"}.ri-home-5-line:before{content:"\ee1f"}.ri-home-6-fill:before{content:"\ee20"}.ri-home-6-line:before{content:"\ee21"}.ri-home-7-fill:before{content:"\ee22"}.ri-home-7-line:before{content:"\ee23"}.ri-home-8-fill:before{content:"\ee24"}.ri-home-8-line:before{content:"\ee25"}.ri-home-fill:before{content:"\ee26"}.ri-home-gear-fill:before{content:"\ee27"}.ri-home-gear-line:before{content:"\ee28"}.ri-home-heart-fill:before{content:"\ee29"}.ri-home-heart-line:before{content:"\ee2a"}.ri-home-line:before{content:"\ee2b"}.ri-home-smile-2-fill:before{content:"\ee2c"}.ri-home-smile-2-line:before{content:"\ee2d"}.ri-home-smile-fill:before{content:"\ee2e"}.ri-home-smile-line:before{content:"\ee2f"}.ri-home-wifi-fill:before{content:"\ee30"}.ri-home-wifi-line:before{content:"\ee31"}.ri-honor-of-kings-fill:before{content:"\ee32"}.ri-honor-of-kings-line:before{content:"\ee33"}.ri-honour-fill:before{content:"\ee34"}.ri-honour-line:before{content:"\ee35"}.ri-hospital-fill:before{content:"\ee36"}.ri-hospital-line:before{content:"\ee37"}.ri-hotel-bed-fill:before{content:"\ee38"}.ri-hotel-bed-line:before{content:"\ee39"}.ri-hotel-fill:before{content:"\ee3a"}.ri-hotel-line:before{content:"\ee3b"}.ri-hotspot-fill:before{content:"\ee3c"}.ri-hotspot-line:before{content:"\ee3d"}.ri-hq-fill:before{content:"\ee3e"}.ri-hq-line:before{content:"\ee3f"}.ri-html5-fill:before{content:"\ee40"}.ri-html5-line:before{content:"\ee41"}.ri-ie-fill:before{content:"\ee42"}.ri-ie-line:before{content:"\ee43"}.ri-image-2-fill:before{content:"\ee44"}.ri-image-2-line:before{content:"\ee45"}.ri-image-add-fill:before{content:"\ee46"}.ri-image-add-line:before{content:"\ee47"}.ri-image-edit-fill:before{content:"\ee48"}.ri-image-edit-line:before{content:"\ee49"}.ri-image-fill:before{content:"\ee4a"}.ri-image-line:before{content:"\ee4b"}.ri-inbox-archive-fill:before{content:"\ee4c"}.ri-inbox-archive-line:before{content:"\ee4d"}.ri-inbox-fill:before{content:"\ee4e"}.ri-inbox-line:before{content:"\ee4f"}.ri-inbox-unarchive-fill:before{content:"\ee50"}.ri-inbox-unarchive-line:before{content:"\ee51"}.ri-increase-decrease-fill:before{content:"\ee52"}.ri-increase-decrease-line:before{content:"\ee53"}.ri-indent-decrease:before{content:"\ee54"}.ri-indent-increase:before{content:"\ee55"}.ri-indeterminate-circle-fill:before{content:"\ee56"}.ri-indeterminate-circle-line:before{content:"\ee57"}.ri-information-fill:before{content:"\ee58"}.ri-information-line:before{content:"\ee59"}.ri-infrared-thermometer-fill:before{content:"\ee5a"}.ri-infrared-thermometer-line:before{content:"\ee5b"}.ri-ink-bottle-fill:before{content:"\ee5c"}.ri-ink-bottle-line:before{content:"\ee5d"}.ri-input-cursor-move:before{content:"\ee5e"}.ri-input-method-fill:before{content:"\ee5f"}.ri-input-method-line:before{content:"\ee60"}.ri-insert-column-left:before{content:"\ee61"}.ri-insert-column-right:before{content:"\ee62"}.ri-insert-row-bottom:before{content:"\ee63"}.ri-insert-row-top:before{content:"\ee64"}.ri-instagram-fill:before{content:"\ee65"}.ri-instagram-line:before{content:"\ee66"}.ri-install-fill:before{content:"\ee67"}.ri-install-line:before{content:"\ee68"}.ri-invision-fill:before{content:"\ee69"}.ri-invision-line:before{content:"\ee6a"}.ri-italic:before{content:"\ee6b"}.ri-kakao-talk-fill:before{content:"\ee6c"}.ri-kakao-talk-line:before{content:"\ee6d"}.ri-key-2-fill:before{content:"\ee6e"}.ri-key-2-line:before{content:"\ee6f"}.ri-key-fill:before{content:"\ee70"}.ri-key-line:before{content:"\ee71"}.ri-keyboard-box-fill:before{content:"\ee72"}.ri-keyboard-box-line:before{content:"\ee73"}.ri-keyboard-fill:before{content:"\ee74"}.ri-keyboard-line:before{content:"\ee75"}.ri-keynote-fill:before{content:"\ee76"}.ri-keynote-line:before{content:"\ee77"}.ri-knife-blood-fill:before{content:"\ee78"}.ri-knife-blood-line:before{content:"\ee79"}.ri-knife-fill:before{content:"\ee7a"}.ri-knife-line:before{content:"\ee7b"}.ri-landscape-fill:before{content:"\ee7c"}.ri-landscape-line:before{content:"\ee7d"}.ri-layout-2-fill:before{content:"\ee7e"}.ri-layout-2-line:before{content:"\ee7f"}.ri-layout-3-fill:before{content:"\ee80"}.ri-layout-3-line:before{content:"\ee81"}.ri-layout-4-fill:before{content:"\ee82"}.ri-layout-4-line:before{content:"\ee83"}.ri-layout-5-fill:before{content:"\ee84"}.ri-layout-5-line:before{content:"\ee85"}.ri-layout-6-fill:before{content:"\ee86"}.ri-layout-6-line:before{content:"\ee87"}.ri-layout-bottom-2-fill:before{content:"\ee88"}.ri-layout-bottom-2-line:before{content:"\ee89"}.ri-layout-bottom-fill:before{content:"\ee8a"}.ri-layout-bottom-line:before{content:"\ee8b"}.ri-layout-column-fill:before{content:"\ee8c"}.ri-layout-column-line:before{content:"\ee8d"}.ri-layout-fill:before{content:"\ee8e"}.ri-layout-grid-fill:before{content:"\ee8f"}.ri-layout-grid-line:before{content:"\ee90"}.ri-layout-left-2-fill:before{content:"\ee91"}.ri-layout-left-2-line:before{content:"\ee92"}.ri-layout-left-fill:before{content:"\ee93"}.ri-layout-left-line:before{content:"\ee94"}.ri-layout-line:before{content:"\ee95"}.ri-layout-masonry-fill:before{content:"\ee96"}.ri-layout-masonry-line:before{content:"\ee97"}.ri-layout-right-2-fill:before{content:"\ee98"}.ri-layout-right-2-line:before{content:"\ee99"}.ri-layout-right-fill:before{content:"\ee9a"}.ri-layout-right-line:before{content:"\ee9b"}.ri-layout-row-fill:before{content:"\ee9c"}.ri-layout-row-line:before{content:"\ee9d"}.ri-layout-top-2-fill:before{content:"\ee9e"}.ri-layout-top-2-line:before{content:"\ee9f"}.ri-layout-top-fill:before{content:"\eea0"}.ri-layout-top-line:before{content:"\eea1"}.ri-leaf-fill:before{content:"\eea2"}.ri-leaf-line:before{content:"\eea3"}.ri-lifebuoy-fill:before{content:"\eea4"}.ri-lifebuoy-line:before{content:"\eea5"}.ri-lightbulb-fill:before{content:"\eea6"}.ri-lightbulb-flash-fill:before{content:"\eea7"}.ri-lightbulb-flash-line:before{content:"\eea8"}.ri-lightbulb-line:before{content:"\eea9"}.ri-line-chart-fill:before{content:"\eeaa"}.ri-line-chart-line:before{content:"\eeab"}.ri-line-fill:before{content:"\eeac"}.ri-line-height:before{content:"\eead"}.ri-line-line:before{content:"\eeae"}.ri-link-m:before{content:"\eeaf"}.ri-link-unlink-m:before{content:"\eeb0"}.ri-link-unlink:before{content:"\eeb1"}.ri-link:before{content:"\eeb2"}.ri-linkedin-box-fill:before{content:"\eeb3"}.ri-linkedin-box-line:before{content:"\eeb4"}.ri-linkedin-fill:before{content:"\eeb5"}.ri-linkedin-line:before{content:"\eeb6"}.ri-links-fill:before{content:"\eeb7"}.ri-links-line:before{content:"\eeb8"}.ri-list-check-2:before{content:"\eeb9"}.ri-list-check:before{content:"\eeba"}.ri-list-ordered:before{content:"\eebb"}.ri-list-settings-fill:before{content:"\eebc"}.ri-list-settings-line:before{content:"\eebd"}.ri-list-unordered:before{content:"\eebe"}.ri-live-fill:before{content:"\eebf"}.ri-live-line:before{content:"\eec0"}.ri-loader-2-fill:before{content:"\eec1"}.ri-loader-2-line:before{content:"\eec2"}.ri-loader-3-fill:before{content:"\eec3"}.ri-loader-3-line:before{content:"\eec4"}.ri-loader-4-fill:before{content:"\eec5"}.ri-loader-4-line:before{content:"\eec6"}.ri-loader-5-fill:before{content:"\eec7"}.ri-loader-5-line:before{content:"\eec8"}.ri-loader-fill:before{content:"\eec9"}.ri-loader-line:before{content:"\eeca"}.ri-lock-2-fill:before{content:"\eecb"}.ri-lock-2-line:before{content:"\eecc"}.ri-lock-fill:before{content:"\eecd"}.ri-lock-line:before{content:"\eece"}.ri-lock-password-fill:before{content:"\eecf"}.ri-lock-password-line:before{content:"\eed0"}.ri-lock-unlock-fill:before{content:"\eed1"}.ri-lock-unlock-line:before{content:"\eed2"}.ri-login-box-fill:before{content:"\eed3"}.ri-login-box-line:before{content:"\eed4"}.ri-login-circle-fill:before{content:"\eed5"}.ri-login-circle-line:before{content:"\eed6"}.ri-logout-box-fill:before{content:"\eed7"}.ri-logout-box-line:before{content:"\eed8"}.ri-logout-box-r-fill:before{content:"\eed9"}.ri-logout-box-r-line:before{content:"\eeda"}.ri-logout-circle-fill:before{content:"\eedb"}.ri-logout-circle-line:before{content:"\eedc"}.ri-logout-circle-r-fill:before{content:"\eedd"}.ri-logout-circle-r-line:before{content:"\eede"}.ri-luggage-cart-fill:before{content:"\eedf"}.ri-luggage-cart-line:before{content:"\eee0"}.ri-luggage-deposit-fill:before{content:"\eee1"}.ri-luggage-deposit-line:before{content:"\eee2"}.ri-lungs-fill:before{content:"\eee3"}.ri-lungs-line:before{content:"\eee4"}.ri-mac-fill:before{content:"\eee5"}.ri-mac-line:before{content:"\eee6"}.ri-macbook-fill:before{content:"\eee7"}.ri-macbook-line:before{content:"\eee8"}.ri-magic-fill:before{content:"\eee9"}.ri-magic-line:before{content:"\eeea"}.ri-mail-add-fill:before{content:"\eeeb"}.ri-mail-add-line:before{content:"\eeec"}.ri-mail-check-fill:before{content:"\eeed"}.ri-mail-check-line:before{content:"\eeee"}.ri-mail-close-fill:before{content:"\eeef"}.ri-mail-close-line:before{content:"\eef0"}.ri-mail-download-fill:before{content:"\eef1"}.ri-mail-download-line:before{content:"\eef2"}.ri-mail-fill:before{content:"\eef3"}.ri-mail-forbid-fill:before{content:"\eef4"}.ri-mail-forbid-line:before{content:"\eef5"}.ri-mail-line:before{content:"\eef6"}.ri-mail-lock-fill:before{content:"\eef7"}.ri-mail-lock-line:before{content:"\eef8"}.ri-mail-open-fill:before{content:"\eef9"}.ri-mail-open-line:before{content:"\eefa"}.ri-mail-send-fill:before{content:"\eefb"}.ri-mail-send-line:before{content:"\eefc"}.ri-mail-settings-fill:before{content:"\eefd"}.ri-mail-settings-line:before{content:"\eefe"}.ri-mail-star-fill:before{content:"\eeff"}.ri-mail-star-line:before{content:"\ef00"}.ri-mail-unread-fill:before{content:"\ef01"}.ri-mail-unread-line:before{content:"\ef02"}.ri-mail-volume-fill:before{content:"\ef03"}.ri-mail-volume-line:before{content:"\ef04"}.ri-map-2-fill:before{content:"\ef05"}.ri-map-2-line:before{content:"\ef06"}.ri-map-fill:before{content:"\ef07"}.ri-map-line:before{content:"\ef08"}.ri-map-pin-2-fill:before{content:"\ef09"}.ri-map-pin-2-line:before{content:"\ef0a"}.ri-map-pin-3-fill:before{content:"\ef0b"}.ri-map-pin-3-line:before{content:"\ef0c"}.ri-map-pin-4-fill:before{content:"\ef0d"}.ri-map-pin-4-line:before{content:"\ef0e"}.ri-map-pin-5-fill:before{content:"\ef0f"}.ri-map-pin-5-line:before{content:"\ef10"}.ri-map-pin-add-fill:before{content:"\ef11"}.ri-map-pin-add-line:before{content:"\ef12"}.ri-map-pin-fill:before{content:"\ef13"}.ri-map-pin-line:before{content:"\ef14"}.ri-map-pin-range-fill:before{content:"\ef15"}.ri-map-pin-range-line:before{content:"\ef16"}.ri-map-pin-time-fill:before{content:"\ef17"}.ri-map-pin-time-line:before{content:"\ef18"}.ri-map-pin-user-fill:before{content:"\ef19"}.ri-map-pin-user-line:before{content:"\ef1a"}.ri-mark-pen-fill:before{content:"\ef1b"}.ri-mark-pen-line:before{content:"\ef1c"}.ri-markdown-fill:before{content:"\ef1d"}.ri-markdown-line:before{content:"\ef1e"}.ri-markup-fill:before{content:"\ef1f"}.ri-markup-line:before{content:"\ef20"}.ri-mastercard-fill:before{content:"\ef21"}.ri-mastercard-line:before{content:"\ef22"}.ri-mastodon-fill:before{content:"\ef23"}.ri-mastodon-line:before{content:"\ef24"}.ri-medal-2-fill:before{content:"\ef25"}.ri-medal-2-line:before{content:"\ef26"}.ri-medal-fill:before{content:"\ef27"}.ri-medal-line:before{content:"\ef28"}.ri-medicine-bottle-fill:before{content:"\ef29"}.ri-medicine-bottle-line:before{content:"\ef2a"}.ri-medium-fill:before{content:"\ef2b"}.ri-medium-line:before{content:"\ef2c"}.ri-men-fill:before{content:"\ef2d"}.ri-men-line:before{content:"\ef2e"}.ri-mental-health-fill:before{content:"\ef2f"}.ri-mental-health-line:before{content:"\ef30"}.ri-menu-2-fill:before{content:"\ef31"}.ri-menu-2-line:before{content:"\ef32"}.ri-menu-3-fill:before{content:"\ef33"}.ri-menu-3-line:before{content:"\ef34"}.ri-menu-4-fill:before{content:"\ef35"}.ri-menu-4-line:before{content:"\ef36"}.ri-menu-5-fill:before{content:"\ef37"}.ri-menu-5-line:before{content:"\ef38"}.ri-menu-add-fill:before{content:"\ef39"}.ri-menu-add-line:before{content:"\ef3a"}.ri-menu-fill:before{content:"\ef3b"}.ri-menu-fold-fill:before{content:"\ef3c"}.ri-menu-fold-line:before{content:"\ef3d"}.ri-menu-line:before{content:"\ef3e"}.ri-menu-unfold-fill:before{content:"\ef3f"}.ri-menu-unfold-line:before{content:"\ef40"}.ri-merge-cells-horizontal:before{content:"\ef41"}.ri-merge-cells-vertical:before{content:"\ef42"}.ri-message-2-fill:before{content:"\ef43"}.ri-message-2-line:before{content:"\ef44"}.ri-message-3-fill:before{content:"\ef45"}.ri-message-3-line:before{content:"\ef46"}.ri-message-fill:before{content:"\ef47"}.ri-message-line:before{content:"\ef48"}.ri-messenger-fill:before{content:"\ef49"}.ri-messenger-line:before{content:"\ef4a"}.ri-meteor-fill:before{content:"\ef4b"}.ri-meteor-line:before{content:"\ef4c"}.ri-mic-2-fill:before{content:"\ef4d"}.ri-mic-2-line:before{content:"\ef4e"}.ri-mic-fill:before{content:"\ef4f"}.ri-mic-line:before{content:"\ef50"}.ri-mic-off-fill:before{content:"\ef51"}.ri-mic-off-line:before{content:"\ef52"}.ri-mickey-fill:before{content:"\ef53"}.ri-mickey-line:before{content:"\ef54"}.ri-microscope-fill:before{content:"\ef55"}.ri-microscope-line:before{content:"\ef56"}.ri-microsoft-fill:before{content:"\ef57"}.ri-microsoft-line:before{content:"\ef58"}.ri-mind-map:before{content:"\ef59"}.ri-mini-program-fill:before{content:"\ef5a"}.ri-mini-program-line:before{content:"\ef5b"}.ri-mist-fill:before{content:"\ef5c"}.ri-mist-line:before{content:"\ef5d"}.ri-money-cny-box-fill:before{content:"\ef5e"}.ri-money-cny-box-line:before{content:"\ef5f"}.ri-money-cny-circle-fill:before{content:"\ef60"}.ri-money-cny-circle-line:before{content:"\ef61"}.ri-money-dollar-box-fill:before{content:"\ef62"}.ri-money-dollar-box-line:before{content:"\ef63"}.ri-money-dollar-circle-fill:before{content:"\ef64"}.ri-money-dollar-circle-line:before{content:"\ef65"}.ri-money-euro-box-fill:before{content:"\ef66"}.ri-money-euro-box-line:before{content:"\ef67"}.ri-money-euro-circle-fill:before{content:"\ef68"}.ri-money-euro-circle-line:before{content:"\ef69"}.ri-money-pound-box-fill:before{content:"\ef6a"}.ri-money-pound-box-line:before{content:"\ef6b"}.ri-money-pound-circle-fill:before{content:"\ef6c"}.ri-money-pound-circle-line:before{content:"\ef6d"}.ri-moon-clear-fill:before{content:"\ef6e"}.ri-moon-clear-line:before{content:"\ef6f"}.ri-moon-cloudy-fill:before{content:"\ef70"}.ri-moon-cloudy-line:before{content:"\ef71"}.ri-moon-fill:before{content:"\ef72"}.ri-moon-foggy-fill:before{content:"\ef73"}.ri-moon-foggy-line:before{content:"\ef74"}.ri-moon-line:before{content:"\ef75"}.ri-more-2-fill:before{content:"\ef76"}.ri-more-2-line:before{content:"\ef77"}.ri-more-fill:before{content:"\ef78"}.ri-more-line:before{content:"\ef79"}.ri-motorbike-fill:before{content:"\ef7a"}.ri-motorbike-line:before{content:"\ef7b"}.ri-mouse-fill:before{content:"\ef7c"}.ri-mouse-line:before{content:"\ef7d"}.ri-movie-2-fill:before{content:"\ef7e"}.ri-movie-2-line:before{content:"\ef7f"}.ri-movie-fill:before{content:"\ef80"}.ri-movie-line:before{content:"\ef81"}.ri-music-2-fill:before{content:"\ef82"}.ri-music-2-line:before{content:"\ef83"}.ri-music-fill:before{content:"\ef84"}.ri-music-line:before{content:"\ef85"}.ri-mv-fill:before{content:"\ef86"}.ri-mv-line:before{content:"\ef87"}.ri-navigation-fill:before{content:"\ef88"}.ri-navigation-line:before{content:"\ef89"}.ri-netease-cloud-music-fill:before{content:"\ef8a"}.ri-netease-cloud-music-line:before{content:"\ef8b"}.ri-netflix-fill:before{content:"\ef8c"}.ri-netflix-line:before{content:"\ef8d"}.ri-newspaper-fill:before{content:"\ef8e"}.ri-newspaper-line:before{content:"\ef8f"}.ri-node-tree:before{content:"\ef90"}.ri-notification-2-fill:before{content:"\ef91"}.ri-notification-2-line:before{content:"\ef92"}.ri-notification-3-fill:before{content:"\ef93"}.ri-notification-3-line:before{content:"\ef94"}.ri-notification-4-fill:before{content:"\ef95"}.ri-notification-4-line:before{content:"\ef96"}.ri-notification-badge-fill:before{content:"\ef97"}.ri-notification-badge-line:before{content:"\ef98"}.ri-notification-fill:before{content:"\ef99"}.ri-notification-line:before{content:"\ef9a"}.ri-notification-off-fill:before{content:"\ef9b"}.ri-notification-off-line:before{content:"\ef9c"}.ri-npmjs-fill:before{content:"\ef9d"}.ri-npmjs-line:before{content:"\ef9e"}.ri-number-0:before{content:"\ef9f"}.ri-number-1:before{content:"\efa0"}.ri-number-2:before{content:"\efa1"}.ri-number-3:before{content:"\efa2"}.ri-number-4:before{content:"\efa3"}.ri-number-5:before{content:"\efa4"}.ri-number-6:before{content:"\efa5"}.ri-number-7:before{content:"\efa6"}.ri-number-8:before{content:"\efa7"}.ri-number-9:before{content:"\efa8"}.ri-numbers-fill:before{content:"\efa9"}.ri-numbers-line:before{content:"\efaa"}.ri-nurse-fill:before{content:"\efab"}.ri-nurse-line:before{content:"\efac"}.ri-oil-fill:before{content:"\efad"}.ri-oil-line:before{content:"\efae"}.ri-omega:before{content:"\efaf"}.ri-open-arm-fill:before{content:"\efb0"}.ri-open-arm-line:before{content:"\efb1"}.ri-open-source-fill:before{content:"\efb2"}.ri-open-source-line:before{content:"\efb3"}.ri-opera-fill:before{content:"\efb4"}.ri-opera-line:before{content:"\efb5"}.ri-order-play-fill:before{content:"\efb6"}.ri-order-play-line:before{content:"\efb7"}.ri-organization-chart:before{content:"\efb8"}.ri-outlet-2-fill:before{content:"\efb9"}.ri-outlet-2-line:before{content:"\efba"}.ri-outlet-fill:before{content:"\efbb"}.ri-outlet-line:before{content:"\efbc"}.ri-page-separator:before{content:"\efbd"}.ri-pages-fill:before{content:"\efbe"}.ri-pages-line:before{content:"\efbf"}.ri-paint-brush-fill:before{content:"\efc0"}.ri-paint-brush-line:before{content:"\efc1"}.ri-paint-fill:before{content:"\efc2"}.ri-paint-line:before{content:"\efc3"}.ri-palette-fill:before{content:"\efc4"}.ri-palette-line:before{content:"\efc5"}.ri-pantone-fill:before{content:"\efc6"}.ri-pantone-line:before{content:"\efc7"}.ri-paragraph:before{content:"\efc8"}.ri-parent-fill:before{content:"\efc9"}.ri-parent-line:before{content:"\efca"}.ri-parentheses-fill:before{content:"\efcb"}.ri-parentheses-line:before{content:"\efcc"}.ri-parking-box-fill:before{content:"\efcd"}.ri-parking-box-line:before{content:"\efce"}.ri-parking-fill:before{content:"\efcf"}.ri-parking-line:before{content:"\efd0"}.ri-passport-fill:before{content:"\efd1"}.ri-passport-line:before{content:"\efd2"}.ri-patreon-fill:before{content:"\efd3"}.ri-patreon-line:before{content:"\efd4"}.ri-pause-circle-fill:before{content:"\efd5"}.ri-pause-circle-line:before{content:"\efd6"}.ri-pause-fill:before{content:"\efd7"}.ri-pause-line:before{content:"\efd8"}.ri-pause-mini-fill:before{content:"\efd9"}.ri-pause-mini-line:before{content:"\efda"}.ri-paypal-fill:before{content:"\efdb"}.ri-paypal-line:before{content:"\efdc"}.ri-pen-nib-fill:before{content:"\efdd"}.ri-pen-nib-line:before{content:"\efde"}.ri-pencil-fill:before{content:"\efdf"}.ri-pencil-line:before{content:"\efe0"}.ri-pencil-ruler-2-fill:before{content:"\efe1"}.ri-pencil-ruler-2-line:before{content:"\efe2"}.ri-pencil-ruler-fill:before{content:"\efe3"}.ri-pencil-ruler-line:before{content:"\efe4"}.ri-percent-fill:before{content:"\efe5"}.ri-percent-line:before{content:"\efe6"}.ri-phone-camera-fill:before{content:"\efe7"}.ri-phone-camera-line:before{content:"\efe8"}.ri-phone-fill:before{content:"\efe9"}.ri-phone-find-fill:before{content:"\efea"}.ri-phone-find-line:before{content:"\efeb"}.ri-phone-line:before{content:"\efec"}.ri-phone-lock-fill:before{content:"\efed"}.ri-phone-lock-line:before{content:"\efee"}.ri-picture-in-picture-2-fill:before{content:"\efef"}.ri-picture-in-picture-2-line:before{content:"\eff0"}.ri-picture-in-picture-exit-fill:before{content:"\eff1"}.ri-picture-in-picture-exit-line:before{content:"\eff2"}.ri-picture-in-picture-fill:before{content:"\eff3"}.ri-picture-in-picture-line:before{content:"\eff4"}.ri-pie-chart-2-fill:before{content:"\eff5"}.ri-pie-chart-2-line:before{content:"\eff6"}.ri-pie-chart-box-fill:before{content:"\eff7"}.ri-pie-chart-box-line:before{content:"\eff8"}.ri-pie-chart-fill:before{content:"\eff9"}.ri-pie-chart-line:before{content:"\effa"}.ri-pin-distance-fill:before{content:"\effb"}.ri-pin-distance-line:before{content:"\effc"}.ri-ping-pong-fill:before{content:"\effd"}.ri-ping-pong-line:before{content:"\effe"}.ri-pinterest-fill:before{content:"\efff"}.ri-pinterest-line:before{content:"\f000"}.ri-pinyin-input:before{content:"\f001"}.ri-pixelfed-fill:before{content:"\f002"}.ri-pixelfed-line:before{content:"\f003"}.ri-plane-fill:before{content:"\f004"}.ri-plane-line:before{content:"\f005"}.ri-plant-fill:before{content:"\f006"}.ri-plant-line:before{content:"\f007"}.ri-play-circle-fill:before{content:"\f008"}.ri-play-circle-line:before{content:"\f009"}.ri-play-fill:before{content:"\f00a"}.ri-play-line:before{content:"\f00b"}.ri-play-list-2-fill:before{content:"\f00c"}.ri-play-list-2-line:before{content:"\f00d"}.ri-play-list-add-fill:before{content:"\f00e"}.ri-play-list-add-line:before{content:"\f00f"}.ri-play-list-fill:before{content:"\f010"}.ri-play-list-line:before{content:"\f011"}.ri-play-mini-fill:before{content:"\f012"}.ri-play-mini-line:before{content:"\f013"}.ri-playstation-fill:before{content:"\f014"}.ri-playstation-line:before{content:"\f015"}.ri-plug-2-fill:before{content:"\f016"}.ri-plug-2-line:before{content:"\f017"}.ri-plug-fill:before{content:"\f018"}.ri-plug-line:before{content:"\f019"}.ri-polaroid-2-fill:before{content:"\f01a"}.ri-polaroid-2-line:before{content:"\f01b"}.ri-polaroid-fill:before{content:"\f01c"}.ri-polaroid-line:before{content:"\f01d"}.ri-police-car-fill:before{content:"\f01e"}.ri-police-car-line:before{content:"\f01f"}.ri-price-tag-2-fill:before{content:"\f020"}.ri-price-tag-2-line:before{content:"\f021"}.ri-price-tag-3-fill:before{content:"\f022"}.ri-price-tag-3-line:before{content:"\f023"}.ri-price-tag-fill:before{content:"\f024"}.ri-price-tag-line:before{content:"\f025"}.ri-printer-cloud-fill:before{content:"\f026"}.ri-printer-cloud-line:before{content:"\f027"}.ri-printer-fill:before{content:"\f028"}.ri-printer-line:before{content:"\f029"}.ri-product-hunt-fill:before{content:"\f02a"}.ri-product-hunt-line:before{content:"\f02b"}.ri-profile-fill:before{content:"\f02c"}.ri-profile-line:before{content:"\f02d"}.ri-projector-2-fill:before{content:"\f02e"}.ri-projector-2-line:before{content:"\f02f"}.ri-projector-fill:before{content:"\f030"}.ri-projector-line:before{content:"\f031"}.ri-psychotherapy-fill:before{content:"\f032"}.ri-psychotherapy-line:before{content:"\f033"}.ri-pulse-fill:before{content:"\f034"}.ri-pulse-line:before{content:"\f035"}.ri-pushpin-2-fill:before{content:"\f036"}.ri-pushpin-2-line:before{content:"\f037"}.ri-pushpin-fill:before{content:"\f038"}.ri-pushpin-line:before{content:"\f039"}.ri-qq-fill:before{content:"\f03a"}.ri-qq-line:before{content:"\f03b"}.ri-qr-code-fill:before{content:"\f03c"}.ri-qr-code-line:before{content:"\f03d"}.ri-qr-scan-2-fill:before{content:"\f03e"}.ri-qr-scan-2-line:before{content:"\f03f"}.ri-qr-scan-fill:before{content:"\f040"}.ri-qr-scan-line:before{content:"\f041"}.ri-question-answer-fill:before{content:"\f042"}.ri-question-answer-line:before{content:"\f043"}.ri-question-fill:before{content:"\f044"}.ri-question-line:before{content:"\f045"}.ri-question-mark:before{content:"\f046"}.ri-questionnaire-fill:before{content:"\f047"}.ri-questionnaire-line:before{content:"\f048"}.ri-quill-pen-fill:before{content:"\f049"}.ri-quill-pen-line:before{content:"\f04a"}.ri-radar-fill:before{content:"\f04b"}.ri-radar-line:before{content:"\f04c"}.ri-radio-2-fill:before{content:"\f04d"}.ri-radio-2-line:before{content:"\f04e"}.ri-radio-button-fill:before{content:"\f04f"}.ri-radio-button-line:before{content:"\f050"}.ri-radio-fill:before{content:"\f051"}.ri-radio-line:before{content:"\f052"}.ri-rainbow-fill:before{content:"\f053"}.ri-rainbow-line:before{content:"\f054"}.ri-rainy-fill:before{content:"\f055"}.ri-rainy-line:before{content:"\f056"}.ri-reactjs-fill:before{content:"\f057"}.ri-reactjs-line:before{content:"\f058"}.ri-record-circle-fill:before{content:"\f059"}.ri-record-circle-line:before{content:"\f05a"}.ri-record-mail-fill:before{content:"\f05b"}.ri-record-mail-line:before{content:"\f05c"}.ri-recycle-fill:before{content:"\f05d"}.ri-recycle-line:before{content:"\f05e"}.ri-red-packet-fill:before{content:"\f05f"}.ri-red-packet-line:before{content:"\f060"}.ri-reddit-fill:before{content:"\f061"}.ri-reddit-line:before{content:"\f062"}.ri-refresh-fill:before{content:"\f063"}.ri-refresh-line:before{content:"\f064"}.ri-refund-2-fill:before{content:"\f065"}.ri-refund-2-line:before{content:"\f066"}.ri-refund-fill:before{content:"\f067"}.ri-refund-line:before{content:"\f068"}.ri-registered-fill:before{content:"\f069"}.ri-registered-line:before{content:"\f06a"}.ri-remixicon-fill:before{content:"\f06b"}.ri-remixicon-line:before{content:"\f06c"}.ri-remote-control-2-fill:before{content:"\f06d"}.ri-remote-control-2-line:before{content:"\f06e"}.ri-remote-control-fill:before{content:"\f06f"}.ri-remote-control-line:before{content:"\f070"}.ri-repeat-2-fill:before{content:"\f071"}.ri-repeat-2-line:before{content:"\f072"}.ri-repeat-fill:before{content:"\f073"}.ri-repeat-line:before{content:"\f074"}.ri-repeat-one-fill:before{content:"\f075"}.ri-repeat-one-line:before{content:"\f076"}.ri-reply-all-fill:before{content:"\f077"}.ri-reply-all-line:before{content:"\f078"}.ri-reply-fill:before{content:"\f079"}.ri-reply-line:before{content:"\f07a"}.ri-reserved-fill:before{content:"\f07b"}.ri-reserved-line:before{content:"\f07c"}.ri-rest-time-fill:before{content:"\f07d"}.ri-rest-time-line:before{content:"\f07e"}.ri-restart-fill:before{content:"\f07f"}.ri-restart-line:before{content:"\f080"}.ri-restaurant-2-fill:before{content:"\f081"}.ri-restaurant-2-line:before{content:"\f082"}.ri-restaurant-fill:before{content:"\f083"}.ri-restaurant-line:before{content:"\f084"}.ri-rewind-fill:before{content:"\f085"}.ri-rewind-line:before{content:"\f086"}.ri-rewind-mini-fill:before{content:"\f087"}.ri-rewind-mini-line:before{content:"\f088"}.ri-rhythm-fill:before{content:"\f089"}.ri-rhythm-line:before{content:"\f08a"}.ri-riding-fill:before{content:"\f08b"}.ri-riding-line:before{content:"\f08c"}.ri-road-map-fill:before{content:"\f08d"}.ri-road-map-line:before{content:"\f08e"}.ri-roadster-fill:before{content:"\f08f"}.ri-roadster-line:before{content:"\f090"}.ri-robot-fill:before{content:"\f091"}.ri-robot-line:before{content:"\f092"}.ri-rocket-2-fill:before{content:"\f093"}.ri-rocket-2-line:before{content:"\f094"}.ri-rocket-fill:before{content:"\f095"}.ri-rocket-line:before{content:"\f096"}.ri-rotate-lock-fill:before{content:"\f097"}.ri-rotate-lock-line:before{content:"\f098"}.ri-rounded-corner:before{content:"\f099"}.ri-route-fill:before{content:"\f09a"}.ri-route-line:before{content:"\f09b"}.ri-router-fill:before{content:"\f09c"}.ri-router-line:before{content:"\f09d"}.ri-rss-fill:before{content:"\f09e"}.ri-rss-line:before{content:"\f09f"}.ri-ruler-2-fill:before{content:"\f0a0"}.ri-ruler-2-line:before{content:"\f0a1"}.ri-ruler-fill:before{content:"\f0a2"}.ri-ruler-line:before{content:"\f0a3"}.ri-run-fill:before{content:"\f0a4"}.ri-run-line:before{content:"\f0a5"}.ri-safari-fill:before{content:"\f0a6"}.ri-safari-line:before{content:"\f0a7"}.ri-safe-2-fill:before{content:"\f0a8"}.ri-safe-2-line:before{content:"\f0a9"}.ri-safe-fill:before{content:"\f0aa"}.ri-safe-line:before{content:"\f0ab"}.ri-sailboat-fill:before{content:"\f0ac"}.ri-sailboat-line:before{content:"\f0ad"}.ri-save-2-fill:before{content:"\f0ae"}.ri-save-2-line:before{content:"\f0af"}.ri-save-3-fill:before{content:"\f0b0"}.ri-save-3-line:before{content:"\f0b1"}.ri-save-fill:before{content:"\f0b2"}.ri-save-line:before{content:"\f0b3"}.ri-scales-2-fill:before{content:"\f0b4"}.ri-scales-2-line:before{content:"\f0b5"}.ri-scales-3-fill:before{content:"\f0b6"}.ri-scales-3-line:before{content:"\f0b7"}.ri-scales-fill:before{content:"\f0b8"}.ri-scales-line:before{content:"\f0b9"}.ri-scan-2-fill:before{content:"\f0ba"}.ri-scan-2-line:before{content:"\f0bb"}.ri-scan-fill:before{content:"\f0bc"}.ri-scan-line:before{content:"\f0bd"}.ri-scissors-2-fill:before{content:"\f0be"}.ri-scissors-2-line:before{content:"\f0bf"}.ri-scissors-cut-fill:before{content:"\f0c0"}.ri-scissors-cut-line:before{content:"\f0c1"}.ri-scissors-fill:before{content:"\f0c2"}.ri-scissors-line:before{content:"\f0c3"}.ri-screenshot-2-fill:before{content:"\f0c4"}.ri-screenshot-2-line:before{content:"\f0c5"}.ri-screenshot-fill:before{content:"\f0c6"}.ri-screenshot-line:before{content:"\f0c7"}.ri-sd-card-fill:before{content:"\f0c8"}.ri-sd-card-line:before{content:"\f0c9"}.ri-sd-card-mini-fill:before{content:"\f0ca"}.ri-sd-card-mini-line:before{content:"\f0cb"}.ri-search-2-fill:before{content:"\f0cc"}.ri-search-2-line:before{content:"\f0cd"}.ri-search-eye-fill:before{content:"\f0ce"}.ri-search-eye-line:before{content:"\f0cf"}.ri-search-fill:before{content:"\f0d0"}.ri-search-line:before{content:"\f0d1"}.ri-secure-payment-fill:before{content:"\f0d2"}.ri-secure-payment-line:before{content:"\f0d3"}.ri-seedling-fill:before{content:"\f0d4"}.ri-seedling-line:before{content:"\f0d5"}.ri-send-backward:before{content:"\f0d6"}.ri-send-plane-2-fill:before{content:"\f0d7"}.ri-send-plane-2-line:before{content:"\f0d8"}.ri-send-plane-fill:before{content:"\f0d9"}.ri-send-plane-line:before{content:"\f0da"}.ri-send-to-back:before{content:"\f0db"}.ri-sensor-fill:before{content:"\f0dc"}.ri-sensor-line:before{content:"\f0dd"}.ri-separator:before{content:"\f0de"}.ri-server-fill:before{content:"\f0df"}.ri-server-line:before{content:"\f0e0"}.ri-service-fill:before{content:"\f0e1"}.ri-service-line:before{content:"\f0e2"}.ri-settings-2-fill:before{content:"\f0e3"}.ri-settings-2-line:before{content:"\f0e4"}.ri-settings-3-fill:before{content:"\f0e5"}.ri-settings-3-line:before{content:"\f0e6"}.ri-settings-4-fill:before{content:"\f0e7"}.ri-settings-4-line:before{content:"\f0e8"}.ri-settings-5-fill:before{content:"\f0e9"}.ri-settings-5-line:before{content:"\f0ea"}.ri-settings-6-fill:before{content:"\f0eb"}.ri-settings-6-line:before{content:"\f0ec"}.ri-settings-fill:before{content:"\f0ed"}.ri-settings-line:before{content:"\f0ee"}.ri-shape-2-fill:before{content:"\f0ef"}.ri-shape-2-line:before{content:"\f0f0"}.ri-shape-fill:before{content:"\f0f1"}.ri-shape-line:before{content:"\f0f2"}.ri-share-box-fill:before{content:"\f0f3"}.ri-share-box-line:before{content:"\f0f4"}.ri-share-circle-fill:before{content:"\f0f5"}.ri-share-circle-line:before{content:"\f0f6"}.ri-share-fill:before{content:"\f0f7"}.ri-share-forward-2-fill:before{content:"\f0f8"}.ri-share-forward-2-line:before{content:"\f0f9"}.ri-share-forward-box-fill:before{content:"\f0fa"}.ri-share-forward-box-line:before{content:"\f0fb"}.ri-share-forward-fill:before{content:"\f0fc"}.ri-share-forward-line:before{content:"\f0fd"}.ri-share-line:before{content:"\f0fe"}.ri-shield-check-fill:before{content:"\f0ff"}.ri-shield-check-line:before{content:"\f100"}.ri-shield-cross-fill:before{content:"\f101"}.ri-shield-cross-line:before{content:"\f102"}.ri-shield-fill:before{content:"\f103"}.ri-shield-flash-fill:before{content:"\f104"}.ri-shield-flash-line:before{content:"\f105"}.ri-shield-keyhole-fill:before{content:"\f106"}.ri-shield-keyhole-line:before{content:"\f107"}.ri-shield-line:before{content:"\f108"}.ri-shield-star-fill:before{content:"\f109"}.ri-shield-star-line:before{content:"\f10a"}.ri-shield-user-fill:before{content:"\f10b"}.ri-shield-user-line:before{content:"\f10c"}.ri-ship-2-fill:before{content:"\f10d"}.ri-ship-2-line:before{content:"\f10e"}.ri-ship-fill:before{content:"\f10f"}.ri-ship-line:before{content:"\f110"}.ri-shirt-fill:before{content:"\f111"}.ri-shirt-line:before{content:"\f112"}.ri-shopping-bag-2-fill:before{content:"\f113"}.ri-shopping-bag-2-line:before{content:"\f114"}.ri-shopping-bag-3-fill:before{content:"\f115"}.ri-shopping-bag-3-line:before{content:"\f116"}.ri-shopping-bag-fill:before{content:"\f117"}.ri-shopping-bag-line:before{content:"\f118"}.ri-shopping-basket-2-fill:before{content:"\f119"}.ri-shopping-basket-2-line:before{content:"\f11a"}.ri-shopping-basket-fill:before{content:"\f11b"}.ri-shopping-basket-line:before{content:"\f11c"}.ri-shopping-cart-2-fill:before{content:"\f11d"}.ri-shopping-cart-2-line:before{content:"\f11e"}.ri-shopping-cart-fill:before{content:"\f11f"}.ri-shopping-cart-line:before{content:"\f120"}.ri-showers-fill:before{content:"\f121"}.ri-showers-line:before{content:"\f122"}.ri-shuffle-fill:before{content:"\f123"}.ri-shuffle-line:before{content:"\f124"}.ri-shut-down-fill:before{content:"\f125"}.ri-shut-down-line:before{content:"\f126"}.ri-side-bar-fill:before{content:"\f127"}.ri-side-bar-line:before{content:"\f128"}.ri-signal-tower-fill:before{content:"\f129"}.ri-signal-tower-line:before{content:"\f12a"}.ri-signal-wifi-1-fill:before{content:"\f12b"}.ri-signal-wifi-1-line:before{content:"\f12c"}.ri-signal-wifi-2-fill:before{content:"\f12d"}.ri-signal-wifi-2-line:before{content:"\f12e"}.ri-signal-wifi-3-fill:before{content:"\f12f"}.ri-signal-wifi-3-line:before{content:"\f130"}.ri-signal-wifi-error-fill:before{content:"\f131"}.ri-signal-wifi-error-line:before{content:"\f132"}.ri-signal-wifi-fill:before{content:"\f133"}.ri-signal-wifi-line:before{content:"\f134"}.ri-signal-wifi-off-fill:before{content:"\f135"}.ri-signal-wifi-off-line:before{content:"\f136"}.ri-sim-card-2-fill:before{content:"\f137"}.ri-sim-card-2-line:before{content:"\f138"}.ri-sim-card-fill:before{content:"\f139"}.ri-sim-card-line:before{content:"\f13a"}.ri-single-quotes-l:before{content:"\f13b"}.ri-single-quotes-r:before{content:"\f13c"}.ri-sip-fill:before{content:"\f13d"}.ri-sip-line:before{content:"\f13e"}.ri-skip-back-fill:before{content:"\f13f"}.ri-skip-back-line:before{content:"\f140"}.ri-skip-back-mini-fill:before{content:"\f141"}.ri-skip-back-mini-line:before{content:"\f142"}.ri-skip-forward-fill:before{content:"\f143"}.ri-skip-forward-line:before{content:"\f144"}.ri-skip-forward-mini-fill:before{content:"\f145"}.ri-skip-forward-mini-line:before{content:"\f146"}.ri-skull-2-fill:before{content:"\f147"}.ri-skull-2-line:before{content:"\f148"}.ri-skull-fill:before{content:"\f149"}.ri-skull-line:before{content:"\f14a"}.ri-skype-fill:before{content:"\f14b"}.ri-skype-line:before{content:"\f14c"}.ri-slack-fill:before{content:"\f14d"}.ri-slack-line:before{content:"\f14e"}.ri-slice-fill:before{content:"\f14f"}.ri-slice-line:before{content:"\f150"}.ri-slideshow-2-fill:before{content:"\f151"}.ri-slideshow-2-line:before{content:"\f152"}.ri-slideshow-3-fill:before{content:"\f153"}.ri-slideshow-3-line:before{content:"\f154"}.ri-slideshow-4-fill:before{content:"\f155"}.ri-slideshow-4-line:before{content:"\f156"}.ri-slideshow-fill:before{content:"\f157"}.ri-slideshow-line:before{content:"\f158"}.ri-smartphone-fill:before{content:"\f159"}.ri-smartphone-line:before{content:"\f15a"}.ri-snapchat-fill:before{content:"\f15b"}.ri-snapchat-line:before{content:"\f15c"}.ri-snowy-fill:before{content:"\f15d"}.ri-snowy-line:before{content:"\f15e"}.ri-sort-asc:before{content:"\f15f"}.ri-sort-desc:before{content:"\f160"}.ri-sound-module-fill:before{content:"\f161"}.ri-sound-module-line:before{content:"\f162"}.ri-soundcloud-fill:before{content:"\f163"}.ri-soundcloud-line:before{content:"\f164"}.ri-space-ship-fill:before{content:"\f165"}.ri-space-ship-line:before{content:"\f166"}.ri-space:before{content:"\f167"}.ri-spam-2-fill:before{content:"\f168"}.ri-spam-2-line:before{content:"\f169"}.ri-spam-3-fill:before{content:"\f16a"}.ri-spam-3-line:before{content:"\f16b"}.ri-spam-fill:before{content:"\f16c"}.ri-spam-line:before{content:"\f16d"}.ri-speaker-2-fill:before{content:"\f16e"}.ri-speaker-2-line:before{content:"\f16f"}.ri-speaker-3-fill:before{content:"\f170"}.ri-speaker-3-line:before{content:"\f171"}.ri-speaker-fill:before{content:"\f172"}.ri-speaker-line:before{content:"\f173"}.ri-spectrum-fill:before{content:"\f174"}.ri-spectrum-line:before{content:"\f175"}.ri-speed-fill:before{content:"\f176"}.ri-speed-line:before{content:"\f177"}.ri-speed-mini-fill:before{content:"\f178"}.ri-speed-mini-line:before{content:"\f179"}.ri-split-cells-horizontal:before{content:"\f17a"}.ri-split-cells-vertical:before{content:"\f17b"}.ri-spotify-fill:before{content:"\f17c"}.ri-spotify-line:before{content:"\f17d"}.ri-spy-fill:before{content:"\f17e"}.ri-spy-line:before{content:"\f17f"}.ri-stack-fill:before{content:"\f180"}.ri-stack-line:before{content:"\f181"}.ri-stack-overflow-fill:before{content:"\f182"}.ri-stack-overflow-line:before{content:"\f183"}.ri-stackshare-fill:before{content:"\f184"}.ri-stackshare-line:before{content:"\f185"}.ri-star-fill:before{content:"\f186"}.ri-star-half-fill:before{content:"\f187"}.ri-star-half-line:before{content:"\f188"}.ri-star-half-s-fill:before{content:"\f189"}.ri-star-half-s-line:before{content:"\f18a"}.ri-star-line:before{content:"\f18b"}.ri-star-s-fill:before{content:"\f18c"}.ri-star-s-line:before{content:"\f18d"}.ri-star-smile-fill:before{content:"\f18e"}.ri-star-smile-line:before{content:"\f18f"}.ri-steam-fill:before{content:"\f190"}.ri-steam-line:before{content:"\f191"}.ri-steering-2-fill:before{content:"\f192"}.ri-steering-2-line:before{content:"\f193"}.ri-steering-fill:before{content:"\f194"}.ri-steering-line:before{content:"\f195"}.ri-stethoscope-fill:before{content:"\f196"}.ri-stethoscope-line:before{content:"\f197"}.ri-sticky-note-2-fill:before{content:"\f198"}.ri-sticky-note-2-line:before{content:"\f199"}.ri-sticky-note-fill:before{content:"\f19a"}.ri-sticky-note-line:before{content:"\f19b"}.ri-stock-fill:before{content:"\f19c"}.ri-stock-line:before{content:"\f19d"}.ri-stop-circle-fill:before{content:"\f19e"}.ri-stop-circle-line:before{content:"\f19f"}.ri-stop-fill:before{content:"\f1a0"}.ri-stop-line:before{content:"\f1a1"}.ri-stop-mini-fill:before{content:"\f1a2"}.ri-stop-mini-line:before{content:"\f1a3"}.ri-store-2-fill:before{content:"\f1a4"}.ri-store-2-line:before{content:"\f1a5"}.ri-store-3-fill:before{content:"\f1a6"}.ri-store-3-line:before{content:"\f1a7"}.ri-store-fill:before{content:"\f1a8"}.ri-store-line:before{content:"\f1a9"}.ri-strikethrough-2:before{content:"\f1aa"}.ri-strikethrough:before{content:"\f1ab"}.ri-subscript-2:before{content:"\f1ac"}.ri-subscript:before{content:"\f1ad"}.ri-subtract-fill:before{content:"\f1ae"}.ri-subtract-line:before{content:"\f1af"}.ri-subway-fill:before{content:"\f1b0"}.ri-subway-line:before{content:"\f1b1"}.ri-subway-wifi-fill:before{content:"\f1b2"}.ri-subway-wifi-line:before{content:"\f1b3"}.ri-suitcase-2-fill:before{content:"\f1b4"}.ri-suitcase-2-line:before{content:"\f1b5"}.ri-suitcase-3-fill:before{content:"\f1b6"}.ri-suitcase-3-line:before{content:"\f1b7"}.ri-suitcase-fill:before{content:"\f1b8"}.ri-suitcase-line:before{content:"\f1b9"}.ri-sun-cloudy-fill:before{content:"\f1ba"}.ri-sun-cloudy-line:before{content:"\f1bb"}.ri-sun-fill:before{content:"\f1bc"}.ri-sun-foggy-fill:before{content:"\f1bd"}.ri-sun-foggy-line:before{content:"\f1be"}.ri-sun-line:before{content:"\f1bf"}.ri-superscript-2:before{content:"\f1c0"}.ri-superscript:before{content:"\f1c1"}.ri-surgical-mask-fill:before{content:"\f1c2"}.ri-surgical-mask-line:before{content:"\f1c3"}.ri-surround-sound-fill:before{content:"\f1c4"}.ri-surround-sound-line:before{content:"\f1c5"}.ri-survey-fill:before{content:"\f1c6"}.ri-survey-line:before{content:"\f1c7"}.ri-swap-box-fill:before{content:"\f1c8"}.ri-swap-box-line:before{content:"\f1c9"}.ri-swap-fill:before{content:"\f1ca"}.ri-swap-line:before{content:"\f1cb"}.ri-switch-fill:before{content:"\f1cc"}.ri-switch-line:before{content:"\f1cd"}.ri-sword-fill:before{content:"\f1ce"}.ri-sword-line:before{content:"\f1cf"}.ri-syringe-fill:before{content:"\f1d0"}.ri-syringe-line:before{content:"\f1d1"}.ri-t-box-fill:before{content:"\f1d2"}.ri-t-box-line:before{content:"\f1d3"}.ri-t-shirt-2-fill:before{content:"\f1d4"}.ri-t-shirt-2-line:before{content:"\f1d5"}.ri-t-shirt-air-fill:before{content:"\f1d6"}.ri-t-shirt-air-line:before{content:"\f1d7"}.ri-t-shirt-fill:before{content:"\f1d8"}.ri-t-shirt-line:before{content:"\f1d9"}.ri-table-2:before{content:"\f1da"}.ri-table-alt-fill:before{content:"\f1db"}.ri-table-alt-line:before{content:"\f1dc"}.ri-table-fill:before{content:"\f1dd"}.ri-table-line:before{content:"\f1de"}.ri-tablet-fill:before{content:"\f1df"}.ri-tablet-line:before{content:"\f1e0"}.ri-takeaway-fill:before{content:"\f1e1"}.ri-takeaway-line:before{content:"\f1e2"}.ri-taobao-fill:before{content:"\f1e3"}.ri-taobao-line:before{content:"\f1e4"}.ri-tape-fill:before{content:"\f1e5"}.ri-tape-line:before{content:"\f1e6"}.ri-task-fill:before{content:"\f1e7"}.ri-task-line:before{content:"\f1e8"}.ri-taxi-fill:before{content:"\f1e9"}.ri-taxi-line:before{content:"\f1ea"}.ri-taxi-wifi-fill:before{content:"\f1eb"}.ri-taxi-wifi-line:before{content:"\f1ec"}.ri-team-fill:before{content:"\f1ed"}.ri-team-line:before{content:"\f1ee"}.ri-telegram-fill:before{content:"\f1ef"}.ri-telegram-line:before{content:"\f1f0"}.ri-temp-cold-fill:before{content:"\f1f1"}.ri-temp-cold-line:before{content:"\f1f2"}.ri-temp-hot-fill:before{content:"\f1f3"}.ri-temp-hot-line:before{content:"\f1f4"}.ri-terminal-box-fill:before{content:"\f1f5"}.ri-terminal-box-line:before{content:"\f1f6"}.ri-terminal-fill:before{content:"\f1f7"}.ri-terminal-line:before{content:"\f1f8"}.ri-terminal-window-fill:before{content:"\f1f9"}.ri-terminal-window-line:before{content:"\f1fa"}.ri-test-tube-fill:before{content:"\f1fb"}.ri-test-tube-line:before{content:"\f1fc"}.ri-text-direction-l:before{content:"\f1fd"}.ri-text-direction-r:before{content:"\f1fe"}.ri-text-spacing:before{content:"\f1ff"}.ri-text-wrap:before{content:"\f200"}.ri-text:before{content:"\f201"}.ri-thermometer-fill:before{content:"\f202"}.ri-thermometer-line:before{content:"\f203"}.ri-thumb-down-fill:before{content:"\f204"}.ri-thumb-down-line:before{content:"\f205"}.ri-thumb-up-fill:before{content:"\f206"}.ri-thumb-up-line:before{content:"\f207"}.ri-thunderstorms-fill:before{content:"\f208"}.ri-thunderstorms-line:before{content:"\f209"}.ri-ticket-2-fill:before{content:"\f20a"}.ri-ticket-2-line:before{content:"\f20b"}.ri-ticket-fill:before{content:"\f20c"}.ri-ticket-line:before{content:"\f20d"}.ri-time-fill:before{content:"\f20e"}.ri-time-line:before{content:"\f20f"}.ri-timer-2-fill:before{content:"\f210"}.ri-timer-2-line:before{content:"\f211"}.ri-timer-fill:before{content:"\f212"}.ri-timer-flash-fill:before{content:"\f213"}.ri-timer-flash-line:before{content:"\f214"}.ri-timer-line:before{content:"\f215"}.ri-todo-fill:before{content:"\f216"}.ri-todo-line:before{content:"\f217"}.ri-toggle-fill:before{content:"\f218"}.ri-toggle-line:before{content:"\f219"}.ri-tools-fill:before{content:"\f21a"}.ri-tools-line:before{content:"\f21b"}.ri-tornado-fill:before{content:"\f21c"}.ri-tornado-line:before{content:"\f21d"}.ri-trademark-fill:before{content:"\f21e"}.ri-trademark-line:before{content:"\f21f"}.ri-traffic-light-fill:before{content:"\f220"}.ri-traffic-light-line:before{content:"\f221"}.ri-train-fill:before{content:"\f222"}.ri-train-line:before{content:"\f223"}.ri-train-wifi-fill:before{content:"\f224"}.ri-train-wifi-line:before{content:"\f225"}.ri-translate-2:before{content:"\f226"}.ri-translate:before{content:"\f227"}.ri-travesti-fill:before{content:"\f228"}.ri-travesti-line:before{content:"\f229"}.ri-treasure-map-fill:before{content:"\f22a"}.ri-treasure-map-line:before{content:"\f22b"}.ri-trello-fill:before{content:"\f22c"}.ri-trello-line:before{content:"\f22d"}.ri-trophy-fill:before{content:"\f22e"}.ri-trophy-line:before{content:"\f22f"}.ri-truck-fill:before{content:"\f230"}.ri-truck-line:before{content:"\f231"}.ri-tumblr-fill:before{content:"\f232"}.ri-tumblr-line:before{content:"\f233"}.ri-tv-2-fill:before{content:"\f234"}.ri-tv-2-line:before{content:"\f235"}.ri-tv-fill:before{content:"\f236"}.ri-tv-line:before{content:"\f237"}.ri-twitch-fill:before{content:"\f238"}.ri-twitch-line:before{content:"\f239"}.ri-twitter-fill:before{content:"\f23a"}.ri-twitter-line:before{content:"\f23b"}.ri-typhoon-fill:before{content:"\f23c"}.ri-typhoon-line:before{content:"\f23d"}.ri-u-disk-fill:before{content:"\f23e"}.ri-u-disk-line:before{content:"\f23f"}.ri-ubuntu-fill:before{content:"\f240"}.ri-ubuntu-line:before{content:"\f241"}.ri-umbrella-fill:before{content:"\f242"}.ri-umbrella-line:before{content:"\f243"}.ri-underline:before{content:"\f244"}.ri-uninstall-fill:before{content:"\f245"}.ri-uninstall-line:before{content:"\f246"}.ri-unsplash-fill:before{content:"\f247"}.ri-unsplash-line:before{content:"\f248"}.ri-upload-2-fill:before{content:"\f249"}.ri-upload-2-line:before{content:"\f24a"}.ri-upload-cloud-2-fill:before{content:"\f24b"}.ri-upload-cloud-2-line:before{content:"\f24c"}.ri-upload-cloud-fill:before{content:"\f24d"}.ri-upload-cloud-line:before{content:"\f24e"}.ri-upload-fill:before{content:"\f24f"}.ri-upload-line:before{content:"\f250"}.ri-usb-fill:before{content:"\f251"}.ri-usb-line:before{content:"\f252"}.ri-user-2-fill:before{content:"\f253"}.ri-user-2-line:before{content:"\f254"}.ri-user-3-fill:before{content:"\f255"}.ri-user-3-line:before{content:"\f256"}.ri-user-4-fill:before{content:"\f257"}.ri-user-4-line:before{content:"\f258"}.ri-user-5-fill:before{content:"\f259"}.ri-user-5-line:before{content:"\f25a"}.ri-user-6-fill:before{content:"\f25b"}.ri-user-6-line:before{content:"\f25c"}.ri-user-add-fill:before{content:"\f25d"}.ri-user-add-line:before{content:"\f25e"}.ri-user-fill:before{content:"\f25f"}.ri-user-follow-fill:before{content:"\f260"}.ri-user-follow-line:before{content:"\f261"}.ri-user-heart-fill:before{content:"\f262"}.ri-user-heart-line:before{content:"\f263"}.ri-user-line:before{content:"\f264"}.ri-user-location-fill:before{content:"\f265"}.ri-user-location-line:before{content:"\f266"}.ri-user-received-2-fill:before{content:"\f267"}.ri-user-received-2-line:before{content:"\f268"}.ri-user-received-fill:before{content:"\f269"}.ri-user-received-line:before{content:"\f26a"}.ri-user-search-fill:before{content:"\f26b"}.ri-user-search-line:before{content:"\f26c"}.ri-user-settings-fill:before{content:"\f26d"}.ri-user-settings-line:before{content:"\f26e"}.ri-user-shared-2-fill:before{content:"\f26f"}.ri-user-shared-2-line:before{content:"\f270"}.ri-user-shared-fill:before{content:"\f271"}.ri-user-shared-line:before{content:"\f272"}.ri-user-smile-fill:before{content:"\f273"}.ri-user-smile-line:before{content:"\f274"}.ri-user-star-fill:before{content:"\f275"}.ri-user-star-line:before{content:"\f276"}.ri-user-unfollow-fill:before{content:"\f277"}.ri-user-unfollow-line:before{content:"\f278"}.ri-user-voice-fill:before{content:"\f279"}.ri-user-voice-line:before{content:"\f27a"}.ri-video-add-fill:before{content:"\f27b"}.ri-video-add-line:before{content:"\f27c"}.ri-video-chat-fill:before{content:"\f27d"}.ri-video-chat-line:before{content:"\f27e"}.ri-video-download-fill:before{content:"\f27f"}.ri-video-download-line:before{content:"\f280"}.ri-video-fill:before{content:"\f281"}.ri-video-line:before{content:"\f282"}.ri-video-upload-fill:before{content:"\f283"}.ri-video-upload-line:before{content:"\f284"}.ri-vidicon-2-fill:before{content:"\f285"}.ri-vidicon-2-line:before{content:"\f286"}.ri-vidicon-fill:before{content:"\f287"}.ri-vidicon-line:before{content:"\f288"}.ri-vimeo-fill:before{content:"\f289"}.ri-vimeo-line:before{content:"\f28a"}.ri-vip-crown-2-fill:before{content:"\f28b"}.ri-vip-crown-2-line:before{content:"\f28c"}.ri-vip-crown-fill:before{content:"\f28d"}.ri-vip-crown-line:before{content:"\f28e"}.ri-vip-diamond-fill:before{content:"\f28f"}.ri-vip-diamond-line:before{content:"\f290"}.ri-vip-fill:before{content:"\f291"}.ri-vip-line:before{content:"\f292"}.ri-virus-fill:before{content:"\f293"}.ri-virus-line:before{content:"\f294"}.ri-visa-fill:before{content:"\f295"}.ri-visa-line:before{content:"\f296"}.ri-voice-recognition-fill:before{content:"\f297"}.ri-voice-recognition-line:before{content:"\f298"}.ri-voiceprint-fill:before{content:"\f299"}.ri-voiceprint-line:before{content:"\f29a"}.ri-volume-down-fill:before{content:"\f29b"}.ri-volume-down-line:before{content:"\f29c"}.ri-volume-mute-fill:before{content:"\f29d"}.ri-volume-mute-line:before{content:"\f29e"}.ri-volume-off-vibrate-fill:before{content:"\f29f"}.ri-volume-off-vibrate-line:before{content:"\f2a0"}.ri-volume-up-fill:before{content:"\f2a1"}.ri-volume-up-line:before{content:"\f2a2"}.ri-volume-vibrate-fill:before{content:"\f2a3"}.ri-volume-vibrate-line:before{content:"\f2a4"}.ri-vuejs-fill:before{content:"\f2a5"}.ri-vuejs-line:before{content:"\f2a6"}.ri-walk-fill:before{content:"\f2a7"}.ri-walk-line:before{content:"\f2a8"}.ri-wallet-2-fill:before{content:"\f2a9"}.ri-wallet-2-line:before{content:"\f2aa"}.ri-wallet-3-fill:before{content:"\f2ab"}.ri-wallet-3-line:before{content:"\f2ac"}.ri-wallet-fill:before{content:"\f2ad"}.ri-wallet-line:before{content:"\f2ae"}.ri-water-flash-fill:before{content:"\f2af"}.ri-water-flash-line:before{content:"\f2b0"}.ri-webcam-fill:before{content:"\f2b1"}.ri-webcam-line:before{content:"\f2b2"}.ri-wechat-2-fill:before{content:"\f2b3"}.ri-wechat-2-line:before{content:"\f2b4"}.ri-wechat-fill:before{content:"\f2b5"}.ri-wechat-line:before{content:"\f2b6"}.ri-wechat-pay-fill:before{content:"\f2b7"}.ri-wechat-pay-line:before{content:"\f2b8"}.ri-weibo-fill:before{content:"\f2b9"}.ri-weibo-line:before{content:"\f2ba"}.ri-whatsapp-fill:before{content:"\f2bb"}.ri-whatsapp-line:before{content:"\f2bc"}.ri-wheelchair-fill:before{content:"\f2bd"}.ri-wheelchair-line:before{content:"\f2be"}.ri-wifi-fill:before{content:"\f2bf"}.ri-wifi-line:before{content:"\f2c0"}.ri-wifi-off-fill:before{content:"\f2c1"}.ri-wifi-off-line:before{content:"\f2c2"}.ri-window-2-fill:before{content:"\f2c3"}.ri-window-2-line:before{content:"\f2c4"}.ri-window-fill:before{content:"\f2c5"}.ri-window-line:before{content:"\f2c6"}.ri-windows-fill:before{content:"\f2c7"}.ri-windows-line:before{content:"\f2c8"}.ri-windy-fill:before{content:"\f2c9"}.ri-windy-line:before{content:"\f2ca"}.ri-wireless-charging-fill:before{content:"\f2cb"}.ri-wireless-charging-line:before{content:"\f2cc"}.ri-women-fill:before{content:"\f2cd"}.ri-women-line:before{content:"\f2ce"}.ri-wubi-input:before{content:"\f2cf"}.ri-xbox-fill:before{content:"\f2d0"}.ri-xbox-line:before{content:"\f2d1"}.ri-xing-fill:before{content:"\f2d2"}.ri-xing-line:before{content:"\f2d3"}.ri-youtube-fill:before{content:"\f2d4"}.ri-youtube-line:before{content:"\f2d5"}.ri-zcool-fill:before{content:"\f2d6"}.ri-zcool-line:before{content:"\f2d7"}.ri-zhihu-fill:before{content:"\f2d8"}.ri-zhihu-line:before{content:"\f2d9"}.ri-zoom-in-fill:before{content:"\f2da"}.ri-zoom-in-line:before{content:"\f2db"}.ri-zoom-out-fill:before{content:"\f2dc"}.ri-zoom-out-line:before{content:"\f2dd"}.ri-zzz-fill:before{content:"\f2de"}.ri-zzz-line:before{content:"\f2df"}.ri-arrow-down-double-fill:before{content:"\f2e0"}.ri-arrow-down-double-line:before{content:"\f2e1"}.ri-arrow-left-double-fill:before{content:"\f2e2"}.ri-arrow-left-double-line:before{content:"\f2e3"}.ri-arrow-right-double-fill:before{content:"\f2e4"}.ri-arrow-right-double-line:before{content:"\f2e5"}.ri-arrow-turn-back-fill:before{content:"\f2e6"}.ri-arrow-turn-back-line:before{content:"\f2e7"}.ri-arrow-turn-forward-fill:before{content:"\f2e8"}.ri-arrow-turn-forward-line:before{content:"\f2e9"}.ri-arrow-up-double-fill:before{content:"\f2ea"}.ri-arrow-up-double-line:before{content:"\f2eb"}.ri-bard-fill:before{content:"\f2ec"}.ri-bard-line:before{content:"\f2ed"}.ri-bootstrap-fill:before{content:"\f2ee"}.ri-bootstrap-line:before{content:"\f2ef"}.ri-box-1-fill:before{content:"\f2f0"}.ri-box-1-line:before{content:"\f2f1"}.ri-box-2-fill:before{content:"\f2f2"}.ri-box-2-line:before{content:"\f2f3"}.ri-box-3-fill:before{content:"\f2f4"}.ri-box-3-line:before{content:"\f2f5"}.ri-brain-fill:before{content:"\f2f6"}.ri-brain-line:before{content:"\f2f7"}.ri-candle-fill:before{content:"\f2f8"}.ri-candle-line:before{content:"\f2f9"}.ri-cash-fill:before{content:"\f2fa"}.ri-cash-line:before{content:"\f2fb"}.ri-contract-left-fill:before{content:"\f2fc"}.ri-contract-left-line:before{content:"\f2fd"}.ri-contract-left-right-fill:before{content:"\f2fe"}.ri-contract-left-right-line:before{content:"\f2ff"}.ri-contract-right-fill:before{content:"\f300"}.ri-contract-right-line:before{content:"\f301"}.ri-contract-up-down-fill:before{content:"\f302"}.ri-contract-up-down-line:before{content:"\f303"}.ri-copilot-fill:before{content:"\f304"}.ri-copilot-line:before{content:"\f305"}.ri-corner-down-left-fill:before{content:"\f306"}.ri-corner-down-left-line:before{content:"\f307"}.ri-corner-down-right-fill:before{content:"\f308"}.ri-corner-down-right-line:before{content:"\f309"}.ri-corner-left-down-fill:before{content:"\f30a"}.ri-corner-left-down-line:before{content:"\f30b"}.ri-corner-left-up-fill:before{content:"\f30c"}.ri-corner-left-up-line:before{content:"\f30d"}.ri-corner-right-down-fill:before{content:"\f30e"}.ri-corner-right-down-line:before{content:"\f30f"}.ri-corner-right-up-fill:before{content:"\f310"}.ri-corner-right-up-line:before{content:"\f311"}.ri-corner-up-left-double-fill:before{content:"\f312"}.ri-corner-up-left-double-line:before{content:"\f313"}.ri-corner-up-left-fill:before{content:"\f314"}.ri-corner-up-left-line:before{content:"\f315"}.ri-corner-up-right-double-fill:before{content:"\f316"}.ri-corner-up-right-double-line:before{content:"\f317"}.ri-corner-up-right-fill:before{content:"\f318"}.ri-corner-up-right-line:before{content:"\f319"}.ri-cross-fill:before{content:"\f31a"}.ri-cross-line:before{content:"\f31b"}.ri-edge-new-fill:before{content:"\f31c"}.ri-edge-new-line:before{content:"\f31d"}.ri-equal-fill:before{content:"\f31e"}.ri-equal-line:before{content:"\f31f"}.ri-expand-left-fill:before{content:"\f320"}.ri-expand-left-line:before{content:"\f321"}.ri-expand-left-right-fill:before{content:"\f322"}.ri-expand-left-right-line:before{content:"\f323"}.ri-expand-right-fill:before{content:"\f324"}.ri-expand-right-line:before{content:"\f325"}.ri-expand-up-down-fill:before{content:"\f326"}.ri-expand-up-down-line:before{content:"\f327"}.ri-flickr-fill:before{content:"\f328"}.ri-flickr-line:before{content:"\f329"}.ri-forward-10-fill:before{content:"\f32a"}.ri-forward-10-line:before{content:"\f32b"}.ri-forward-15-fill:before{content:"\f32c"}.ri-forward-15-line:before{content:"\f32d"}.ri-forward-30-fill:before{content:"\f32e"}.ri-forward-30-line:before{content:"\f32f"}.ri-forward-5-fill:before{content:"\f330"}.ri-forward-5-line:before{content:"\f331"}.ri-graduation-cap-fill:before{content:"\f332"}.ri-graduation-cap-line:before{content:"\f333"}.ri-home-office-fill:before{content:"\f334"}.ri-home-office-line:before{content:"\f335"}.ri-hourglass-2-fill:before{content:"\f336"}.ri-hourglass-2-line:before{content:"\f337"}.ri-hourglass-fill:before{content:"\f338"}.ri-hourglass-line:before{content:"\f339"}.ri-javascript-fill:before{content:"\f33a"}.ri-javascript-line:before{content:"\f33b"}.ri-loop-left-fill:before{content:"\f33c"}.ri-loop-left-line:before{content:"\f33d"}.ri-loop-right-fill:before{content:"\f33e"}.ri-loop-right-line:before{content:"\f33f"}.ri-memories-fill:before{content:"\f340"}.ri-memories-line:before{content:"\f341"}.ri-meta-fill:before{content:"\f342"}.ri-meta-line:before{content:"\f343"}.ri-microsoft-loop-fill:before{content:"\f344"}.ri-microsoft-loop-line:before{content:"\f345"}.ri-nft-fill:before{content:"\f346"}.ri-nft-line:before{content:"\f347"}.ri-notion-fill:before{content:"\f348"}.ri-notion-line:before{content:"\f349"}.ri-openai-fill:before{content:"\f34a"}.ri-openai-line:before{content:"\f34b"}.ri-overline:before{content:"\f34c"}.ri-p2p-fill:before{content:"\f34d"}.ri-p2p-line:before{content:"\f34e"}.ri-presentation-fill:before{content:"\f34f"}.ri-presentation-line:before{content:"\f350"}.ri-replay-10-fill:before{content:"\f351"}.ri-replay-10-line:before{content:"\f352"}.ri-replay-15-fill:before{content:"\f353"}.ri-replay-15-line:before{content:"\f354"}.ri-replay-30-fill:before{content:"\f355"}.ri-replay-30-line:before{content:"\f356"}.ri-replay-5-fill:before{content:"\f357"}.ri-replay-5-line:before{content:"\f358"}.ri-school-fill:before{content:"\f359"}.ri-school-line:before{content:"\f35a"}.ri-shining-2-fill:before{content:"\f35b"}.ri-shining-2-line:before{content:"\f35c"}.ri-shining-fill:before{content:"\f35d"}.ri-shining-line:before{content:"\f35e"}.ri-sketching:before{content:"\f35f"}.ri-skip-down-fill:before{content:"\f360"}.ri-skip-down-line:before{content:"\f361"}.ri-skip-left-fill:before{content:"\f362"}.ri-skip-left-line:before{content:"\f363"}.ri-skip-right-fill:before{content:"\f364"}.ri-skip-right-line:before{content:"\f365"}.ri-skip-up-fill:before{content:"\f366"}.ri-skip-up-line:before{content:"\f367"}.ri-slow-down-fill:before{content:"\f368"}.ri-slow-down-line:before{content:"\f369"}.ri-sparkling-2-fill:before{content:"\f36a"}.ri-sparkling-2-line:before{content:"\f36b"}.ri-sparkling-fill:before{content:"\f36c"}.ri-sparkling-line:before{content:"\f36d"}.ri-speak-fill:before{content:"\f36e"}.ri-speak-line:before{content:"\f36f"}.ri-speed-up-fill:before{content:"\f370"}.ri-speed-up-line:before{content:"\f371"}.ri-tiktok-fill:before{content:"\f372"}.ri-tiktok-line:before{content:"\f373"}.ri-token-swap-fill:before{content:"\f374"}.ri-token-swap-line:before{content:"\f375"}.ri-unpin-fill:before{content:"\f376"}.ri-unpin-line:before{content:"\f377"}.ri-wechat-channels-fill:before{content:"\f378"}.ri-wechat-channels-line:before{content:"\f379"}.ri-wordpress-fill:before{content:"\f37a"}.ri-wordpress-line:before{content:"\f37b"}.ri-blender-fill:before{content:"\f37c"}.ri-blender-line:before{content:"\f37d"}.ri-emoji-sticker-fill:before{content:"\f37e"}.ri-emoji-sticker-line:before{content:"\f37f"}.ri-git-close-pull-request-fill:before{content:"\f380"}.ri-git-close-pull-request-line:before{content:"\f381"}.ri-instance-fill:before{content:"\f382"}.ri-instance-line:before{content:"\f383"}.ri-megaphone-fill:before{content:"\f384"}.ri-megaphone-line:before{content:"\f385"}.ri-pass-expired-fill:before{content:"\f386"}.ri-pass-expired-line:before{content:"\f387"}.ri-pass-pending-fill:before{content:"\f388"}.ri-pass-pending-line:before{content:"\f389"}.ri-pass-valid-fill:before{content:"\f38a"}.ri-pass-valid-line:before{content:"\f38b"}.ri-ai-generate:before{content:"\f38c"}.ri-calendar-close-fill:before{content:"\f38d"}.ri-calendar-close-line:before{content:"\f38e"}.ri-draggable:before{content:"\f38f"}.ri-font-family:before{content:"\f390"}.ri-font-mono:before{content:"\f391"}.ri-font-sans-serif:before{content:"\f392"}.ri-font-sans:before{content:"\f393"}.ri-hard-drive-3-fill:before{content:"\f394"}.ri-hard-drive-3-line:before{content:"\f395"}.ri-kick-fill:before{content:"\f396"}.ri-kick-line:before{content:"\f397"}.ri-list-check-3:before{content:"\f398"}.ri-list-indefinite:before{content:"\f399"}.ri-list-ordered-2:before{content:"\f39a"}.ri-list-radio:before{content:"\f39b"}.ri-openbase-fill:before{content:"\f39c"}.ri-openbase-line:before{content:"\f39d"}.ri-planet-fill:before{content:"\f39e"}.ri-planet-line:before{content:"\f39f"}.ri-prohibited-fill:before{content:"\f3a0"}.ri-prohibited-line:before{content:"\f3a1"}.ri-quote-text:before{content:"\f3a2"}.ri-seo-fill:before{content:"\f3a3"}.ri-seo-line:before{content:"\f3a4"}.ri-slash-commands:before{content:"\f3a5"}.ri-archive-2-fill:before{content:"\f3a6"}.ri-archive-2-line:before{content:"\f3a7"}.ri-inbox-2-fill:before{content:"\f3a8"}.ri-inbox-2-line:before{content:"\f3a9"}.ri-shake-hands-fill:before{content:"\f3aa"}.ri-shake-hands-line:before{content:"\f3ab"}.ri-supabase-fill:before{content:"\f3ac"}.ri-supabase-line:before{content:"\f3ad"}.ri-water-percent-fill:before{content:"\f3ae"}.ri-water-percent-line:before{content:"\f3af"}.ri-yuque-fill:before{content:"\f3b0"}.ri-yuque-line:before{content:"\f3b1"}@font-face{font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(../js/73ea273a72f4aca30ca5.woff2) format("woff2"),url(../js/d562e886c52f12660a41.woff) format("woff"),url(../js/853be92419a6c3766b9a.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(../js/a1abf90dfd72792a577a.woff2) format("woff2"),url(../js/d757c535a2e5902f1325.woff) format("woff"),url(../js/7489a2fbfb9bfe704420.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(../js/d6484fce1ef428d5bd94.woff2) format("woff2"),url(../js/db074fa22cf224af93d7.woff) format("woff"),url(../js/7e873d3833eb108a0758.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(../js/931d67ea207ab37ee693.woff2) format("woff2"),url(../js/354501bac435c3264834.woff) format("woff"),url(../js/4c761b3711973ab04edf.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(../js/172d3529b26f8cedef6b.woff2) format("woff2"),url(../js/6fdf0ac577be0ba82a4c.woff) format("woff"),url(../js/ed305b5434865e06ffde.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(../js/39890742bc957b368704.woff2) format("woff2"),url(../js/0c3b8929d377c0e9b2f3.woff) format("woff"),url(../js/8169508bf58f8bd92ad8.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(../js/20f389c4120be058d80a.woff2) format("woff2"),url(../js/428978dc7837d46de091.woff) format("woff"),url(../js/828abcb200061cffbaae.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(../js/fe2176f79edaa716e621.woff2) format("woff2"),url(../js/fd947498bc16392e76c2.woff) format("woff"),url(../js/fa675e5e4bec9eb250b6.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(../js/f650f111a3b890d116f1.woff2) format("woff2"),url(../js/4f35fbcc9ee8614c2bcc.woff) format("woff"),url(../js/9eba1d77abcf2aa6e94e.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(../js/dcbcbd93bac0470b462d.woff2) format("woff2"),url(../js/3f07ed67f06c720120ce.woff) format("woff"),url(../js/bf2d440b3a42ea78a998.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(../js/6d3d25f4820d0da8f01f.woff2) format("woff2"),url(../js/96759856b4e70f3a8338.woff) format("woff"),url(../js/8a5f936332e8028c7278.ttf) format("truetype")}@font-face{font-family:"KaTeX_SansSerif";font-style:normal;font-weight:700;src:url(../js/95591a929f0d32aa282a.woff2) format("woff2"),url(../js/b9cd458ac6d5889ff9c3.woff) format("woff"),url(../js/5b49f4993ae22d7975b4.ttf) format("truetype")}@font-face{font-family:"KaTeX_SansSerif";font-style:italic;font-weight:400;src:url(../js/7d393d382f3e7fb1c637.woff2) format("woff2"),url(../js/8d593cfaa96238d5e2f8.woff) format("woff"),url(../js/b257a18c016f37ee4543.ttf) format("truetype")}@font-face{font-family:"KaTeX_SansSerif";font-style:normal;font-weight:400;src:url(../js/cd5e231e0cc53b2cb2c0.woff2) format("woff2"),url(../js/02271ec5cb9f5b4588ac.woff) format("woff"),url(../js/2f7bc363fc5424ebda59.ttf) format("truetype")}@font-face{font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(../js/c81d1b2a4b75d3eded60.woff2) format("woff2"),url(../js/073b3402d036714b4370.woff) format("woff"),url(../js/fc9ba5249878cd8f8d88.ttf) format("truetype")}@font-face{font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(../js/6eec866c69313624be60.woff2) format("woff2"),url(../js/0108e89c9003e8c14ea3.woff) format("woff"),url(../js/6de7d4b539221a49e9e2.ttf) format("truetype")}@font-face{font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(../js/2960900c4f271311eb36.woff2) format("woff2"),url(../js/3a99e70aee4076660d38.woff) format("woff"),url(../js/57f5c1837853986ea1db.ttf) format("truetype")}@font-face{font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(../js/e1951519f6f0596f7356.woff2) format("woff2"),url(../js/7947224e8a9914fa332b.woff) format("woff"),url(../js/8d6b6822586eea3d3b20.ttf) format("truetype")}@font-face{font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(../js/e418bf257af1052628d8.woff2) format("woff2"),url(../js/aeffd8025cba3647f1a6.woff) format("woff"),url(../js/4ad7c7e8bb8d10a34bb7.ttf) format("truetype")}@font-face{font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(../js/c295e7f71970f03c0549.woff2) format("woff2"),url(../js/4c6b94fd1d07f8beff7c.woff) format("woff"),url(../js/c5c02d763c89380dcb4e.ttf) format("truetype")}.katex{font:normal 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.7"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.83333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.71428571em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.85714286em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14285714em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571429em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857143em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71428571em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714286em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857143em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96285714em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55428571em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.55555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.66666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.77777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.88888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.41666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.58333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.66666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.83333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.34722222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.41666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.48611111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.55555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.69444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.83333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44027778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.28935185em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.34722222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.40509259em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.46296296em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.52083333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.69444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.83333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023148em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981481em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108004em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.28929605em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.33751205em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.38572806em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.43394407em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216008em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.57859209em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.69431051em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.83317261em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961427em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.20096463em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.24115756em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.28135048em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.32154341em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.36173633em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.40192926em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.48231511em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.57877814em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.69453376em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.83360129em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:400;src:url(../js/fcc125c4fef4b94c8b13.woff2) format("woff2"),url(../js/3c63e27405d46e5051e9.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:400;src:url(../js/8684fef6e6411779f0b0.woff2) format("woff2"),url(../js/3862a5ab4538f364cdd5.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:400;src:url(../js/3f642a92b6e57b3a4b84.woff2) format("woff2"),url(../js/61350b97874888a6c0d8.woff) format("woff");unicode-range:u+1f??}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:400;src:url(../js/0278a49f9007106a0bf4.woff2) format("woff2"),url(../js/b31b8612d0c0c50eb73b.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:400;src:url(../js/789afb71d327988e2fc8.woff2) format("woff2"),url(../js/e0aaa99dabd63437b8b8.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:400;src:url(../js/3a7a76525d98d25962eb.woff2) format("woff2"),url(../js/3ccf133441ba225afa51.woff) format("woff");unicode-range:u+0100-02af,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:400;src:url(../js/be7cb18dc7caf47cf7e9.woff2) format("woff2"),url(../js/662f290710a57b8dfbbd.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:500;src:url(../js/a93857ed8d0b316d3572.woff2) format("woff2"),url(../js/a958cd9cefde0c860f31.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:500;src:url(../js/737dedc32b59205a84d9.woff2) format("woff2"),url(../js/d26ced9cf9d1de6f58e2.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:500;src:url(../js/80f07073e922d2bc65df.woff2) format("woff2"),url(../js/f901c410fa70dab81973.woff) format("woff");unicode-range:u+1f??}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:500;src:url(../js/4403838c26aa2155eb84.woff2) format("woff2"),url(../js/00f6278854fa806bec8d.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:500;src:url(../js/af96698e6248b5be6d91.woff2) format("woff2"),url(../js/b9f2103298f40694237f.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:500;src:url(../js/cd2491c30c7f25218ecd.woff2) format("woff2"),url(../js/084aa2381d74c9c49610.woff) format("woff");unicode-range:u+0100-02af,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:500;src:url(../js/c72c72b70c82b1f4bacf.woff2) format("woff2"),url(../js/d6b36fd8bebd5ec8d693.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:600;src:url(../js/c1791ace2adbca4163ca.woff2) format("woff2"),url(../js/dc282c735aecf1a075bb.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:600;src:url(../js/f17ec551fa8990736da1.woff2) format("woff2"),url(../js/d1af003c89b2d2cf9d63.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:600;src:url(../js/66b622a25da168cc60ec.woff2) format("woff2"),url(../js/9b9487d5f394093306c0.woff) format("woff");unicode-range:u+1f??}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:600;src:url(../js/c2ba769d6f2c3a8b76fc.woff2) format("woff2"),url(../js/c20733536b6e8452fde8.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:600;src:url(../js/fe7c406ffbd129b7aa88.woff2) format("woff2"),url(../js/7b2ceb8dc65cbce6ef40.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:600;src:url(../js/3cd8400fefcd41fe460c.woff2) format("woff2"),url(../js/db4e07ea68f28e55d31a.woff) format("woff");unicode-range:u+0100-02af,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:var(--fontsource-display,swap);font-family:Inter;font-style:normal;font-weight:600;src:url(../js/8f1e0300e8d26fa8919d.woff2) format("woff2"),url(../js/9b34e6f59c745b29663b.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:var(--fontsource-display,swap);font-family:Red Hat Text;font-style:normal;font-weight:400;src:url(../js/e42261ddd250a4ef3416.woff2) format("woff2"),url(../js/a060468818635fa45361.woff) format("woff");unicode-range:u+0100-02af,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:var(--fontsource-display,swap);font-family:Red Hat Text;font-style:normal;font-weight:400;src:url(../js/7bbae7f0e9ca13c175ab.woff2) format("woff2"),url(../js/90c546b77c36fd1eaf6c.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:var(--fontsource-display,swap);font-family:JetBrains Mono;font-style:normal;font-weight:400;src:url(../js/116395f5d16bf9918fd9.woff2) format("woff2"),url(../js/cd8b8fbbaf96659b9e3b.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:var(--fontsource-display,swap);font-family:JetBrains Mono;font-style:normal;font-weight:400;src:url(../js/ca5a5aa599cda836890b.woff2) format("woff2"),url(../js/e2bbac5ba4a6a947269b.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:var(--fontsource-display,swap);font-family:JetBrains Mono;font-style:normal;font-weight:400;src:url(../js/6e39ad95bc37a080358e.woff2) format("woff2"),url(../js/bfddc5b520da679cdcfb.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-display:var(--fontsource-display,swap);font-family:JetBrains Mono;font-style:normal;font-weight:400;src:url(../js/cabd61b169d456e75f62.woff2) format("woff2"),url(../js/fe6f4655fecf2c402699.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:var(--fontsource-display,swap);font-family:JetBrains Mono;font-style:normal;font-weight:400;src:url(../js/a7b2213a8b710149af01.woff2) format("woff2"),url(../js/f76468bfaf7d6e028b15.woff) format("woff");unicode-range:u+0100-02af,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:var(--fontsource-display,swap);font-family:JetBrains Mono;font-style:normal;font-weight:400;src:url(../js/4163112e566ed7697acf.woff2) format("woff2"),url(../js/6c1a3008005254946aef.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}.monaco-editor .accessibilityHelpWidget{background-color:var(--vscode-editorWidget-background);border:2px solid var(--vscode-contrastBorder);box-shadow:0 2px 8px var(--vscode-widget-shadow);color:var(--vscode-editorWidget-foreground);overflow:scroll;padding:10px;vertical-align:middle}.monaco-aria-container{left:-999em;position:absolute}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{background-color:var(--vscode-editorBracketMatch-background);border:1px solid var(--vscode-editorBracketMatch-border);box-sizing:border-box}@font-face{font-display:block;font-family:codicon;src:url(../js/fa2cc0ab9f0bec2b3365.ttf) format("truetype")}.codicon[class*=codicon-]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font:normal normal normal 16px/1 codicon;text-align:center;text-decoration:none;text-rendering:auto;text-transform:none;-moz-user-select:none;user-select:none;-webkit-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(1turn)}}.codicon-gear.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin,.codicon-sync.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.monaco-editor .codicon.codicon-symbol-array,.monaco-workbench .codicon.codicon-symbol-array{color:var(--vscode-symbolIcon-arrayForeground)}.monaco-editor .codicon.codicon-symbol-boolean,.monaco-workbench .codicon.codicon-symbol-boolean{color:var(--vscode-symbolIcon-booleanForeground)}.monaco-editor .codicon.codicon-symbol-class,.monaco-workbench .codicon.codicon-symbol-class{color:var(--vscode-symbolIcon-classForeground)}.monaco-editor .codicon.codicon-symbol-method,.monaco-workbench .codicon.codicon-symbol-method{color:var(--vscode-symbolIcon-methodForeground)}.monaco-editor .codicon.codicon-symbol-color,.monaco-workbench .codicon.codicon-symbol-color{color:var(--vscode-symbolIcon-colorForeground)}.monaco-editor .codicon.codicon-symbol-constant,.monaco-workbench .codicon.codicon-symbol-constant{color:var(--vscode-symbolIcon-constantForeground)}.monaco-editor .codicon.codicon-symbol-constructor,.monaco-workbench .codicon.codicon-symbol-constructor{color:var(--vscode-symbolIcon-constructorForeground)}.monaco-editor .codicon.codicon-symbol-enum,.monaco-editor .codicon.codicon-symbol-value,.monaco-workbench .codicon.codicon-symbol-enum,.monaco-workbench .codicon.codicon-symbol-value{color:var(--vscode-symbolIcon-enumeratorForeground)}.monaco-editor .codicon.codicon-symbol-enum-member,.monaco-workbench .codicon.codicon-symbol-enum-member{color:var(--vscode-symbolIcon-enumeratorMemberForeground)}.monaco-editor .codicon.codicon-symbol-event,.monaco-workbench .codicon.codicon-symbol-event{color:var(--vscode-symbolIcon-eventForeground)}.monaco-editor .codicon.codicon-symbol-field,.monaco-workbench .codicon.codicon-symbol-field{color:var(--vscode-symbolIcon-fieldForeground)}.monaco-editor .codicon.codicon-symbol-file,.monaco-workbench .codicon.codicon-symbol-file{color:var(--vscode-symbolIcon-fileForeground)}.monaco-editor .codicon.codicon-symbol-folder,.monaco-workbench .codicon.codicon-symbol-folder{color:var(--vscode-symbolIcon-folderForeground)}.monaco-editor .codicon.codicon-symbol-function,.monaco-workbench .codicon.codicon-symbol-function{color:var(--vscode-symbolIcon-functionForeground)}.monaco-editor .codicon.codicon-symbol-interface,.monaco-workbench .codicon.codicon-symbol-interface{color:var(--vscode-symbolIcon-interfaceForeground)}.monaco-editor .codicon.codicon-symbol-key,.monaco-workbench .codicon.codicon-symbol-key{color:var(--vscode-symbolIcon-keyForeground)}.monaco-editor .codicon.codicon-symbol-keyword,.monaco-workbench .codicon.codicon-symbol-keyword{color:var(--vscode-symbolIcon-keywordForeground)}.monaco-editor .codicon.codicon-symbol-module,.monaco-workbench .codicon.codicon-symbol-module{color:var(--vscode-symbolIcon-moduleForeground)}.monaco-editor .codicon.codicon-symbol-namespace,.monaco-workbench .codicon.codicon-symbol-namespace{color:var(--vscode-symbolIcon-namespaceForeground)}.monaco-editor .codicon.codicon-symbol-null,.monaco-workbench .codicon.codicon-symbol-null{color:var(--vscode-symbolIcon-nullForeground)}.monaco-editor .codicon.codicon-symbol-number,.monaco-workbench .codicon.codicon-symbol-number{color:var(--vscode-symbolIcon-numberForeground)}.monaco-editor .codicon.codicon-symbol-object,.monaco-workbench .codicon.codicon-symbol-object{color:var(--vscode-symbolIcon-objectForeground)}.monaco-editor .codicon.codicon-symbol-operator,.monaco-workbench .codicon.codicon-symbol-operator{color:var(--vscode-symbolIcon-operatorForeground)}.monaco-editor .codicon.codicon-symbol-package,.monaco-workbench .codicon.codicon-symbol-package{color:var(--vscode-symbolIcon-packageForeground)}.monaco-editor .codicon.codicon-symbol-property,.monaco-workbench .codicon.codicon-symbol-property{color:var(--vscode-symbolIcon-propertyForeground)}.monaco-editor .codicon.codicon-symbol-reference,.monaco-workbench .codicon.codicon-symbol-reference{color:var(--vscode-symbolIcon-referenceForeground)}.monaco-editor .codicon.codicon-symbol-snippet,.monaco-workbench .codicon.codicon-symbol-snippet{color:var(--vscode-symbolIcon-snippetForeground)}.monaco-editor .codicon.codicon-symbol-string,.monaco-workbench .codicon.codicon-symbol-string{color:var(--vscode-symbolIcon-stringForeground)}.monaco-editor .codicon.codicon-symbol-struct,.monaco-workbench .codicon.codicon-symbol-struct{color:var(--vscode-symbolIcon-structForeground)}.monaco-editor .codicon.codicon-symbol-text,.monaco-workbench .codicon.codicon-symbol-text{color:var(--vscode-symbolIcon-textForeground)}.monaco-editor .codicon.codicon-symbol-type-parameter,.monaco-workbench .codicon.codicon-symbol-type-parameter{color:var(--vscode-symbolIcon-typeParameterForeground)}.monaco-editor .codicon.codicon-symbol-unit,.monaco-workbench .codicon.codicon-symbol-unit{color:var(--vscode-symbolIcon-unitForeground)}.monaco-editor .codicon.codicon-symbol-variable,.monaco-workbench .codicon.codicon-symbol-variable{color:var(--vscode-symbolIcon-variableForeground)}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px;z-index:10000}.monaco-editor .monaco-editor-overlaymessage.below{padding-bottom:0;padding-top:8px;z-index:10000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:fadeIn .15s ease-out}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:fadeOut .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{background-color:var(--vscode-inputValidation-infoBackground);border:1px solid var(--vscode-inputValidation-infoBorder);color:var(--vscode-inputValidation-infoForeground);padding:1px 4px}.monaco-editor.hc-black .monaco-editor-overlaymessage .message,.monaco-editor.hc-light .monaco-editor-overlaymessage .message{border-width:2px}.monaco-editor .monaco-editor-overlaymessage .anchor{border:8px solid transparent;height:0!important;position:absolute;width:0!important;z-index:1000}.monaco-editor .monaco-editor-overlaymessage .anchor.top{border-bottom-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage .anchor.below{border-top-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage.below .anchor.below,.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.monaco-list{height:100%;position:relative;white-space:nowrap;width:100%}.monaco-list.mouse-support{-moz-user-select:none;user-select:none;-webkit-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{height:100%;position:relative;width:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{min-width:100%;width:auto}.monaco-list-row{box-sizing:border-box;overflow:hidden;position:absolute;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-multiple,.monaco-list.selection-single{outline:0!important}.monaco-drag-image{border-radius:10px;display:inline-block;font-size:12px;padding:1px 7px;position:absolute;z-index:1000}.monaco-list-type-filter-message{box-sizing:border-box;height:100%;left:0;opacity:.7;padding:40px 1em 1em;pointer-events:none;position:absolute;text-align:center;top:0;white-space:normal;width:100%}.monaco-list-type-filter-message:empty{display:none}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{background:transparent;opacity:1;transition:opacity .1s linear;z-index:11}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{display:none;position:absolute}.monaco-scrollable-element>.shadow.top{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;display:block;height:3px;left:3px;top:0;width:100%}.monaco-scrollable-element>.shadow.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset;display:block;height:100%;left:0;top:3px;width:3px}.monaco-scrollable-element>.shadow.top-left-corner{display:block;height:3px;left:0;top:0;width:3px}.monaco-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.scrollbar>.slider{background:var(--vscode-scrollbarSlider-background)}.monaco-scrollable-element>.scrollbar>.slider:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-scrollable-element>.scrollbar>.slider.active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-select-box-dropdown-padding{--dropdown-padding-top:1px;--dropdown-padding-bottom:1px}.hc-black .monaco-select-box-dropdown-padding,.hc-light .monaco-select-box-dropdown-padding{--dropdown-padding-top:3px;--dropdown-padding-bottom:4px}.monaco-select-box-dropdown-container{box-sizing:border-box;display:none}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown *{margin:0}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown a:focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown code{font-family:var(--monaco-monospace-font);line-height:15px}.monaco-select-box-dropdown-container.visible{border-bottom-left-radius:3px;border-bottom-right-radius:3px;display:flex;flex-direction:column;overflow:hidden;text-align:left;width:1px}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container{align-self:flex-start;box-sizing:border-box;flex:0 0 auto;overflow:hidden;padding-bottom:var(--dropdown-padding-bottom);padding-left:1px;padding-right:1px;padding-top:var(--dropdown-padding-top);width:100%}.monaco-select-box-dropdown-container>.select-box-details-pane{padding:5px}.hc-black .monaco-select-box-dropdown-container>.select-box-dropdown-list-container{padding-bottom:var(--dropdown-padding-bottom);padding-top:var(--dropdown-padding-top)}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row{cursor:pointer}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-text{float:left;overflow:hidden;padding-left:3.5px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-detail{float:left;opacity:.7;overflow:hidden;padding-left:3.5px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-decorator-right{float:right;overflow:hidden;padding-right:10px;text-overflow:ellipsis;white-space:nowrap}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.visually-hidden{height:1px;left:-10000px;overflow:hidden;position:absolute;top:auto;width:1px}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control{align-self:flex-start;flex:1 1 auto;opacity:0}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div{max-height:0;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div>.option-text-width-control{padding-left:4px;padding-right:8px;white-space:nowrap}.monaco-select-box{border-radius:2px;cursor:pointer;width:100%}.monaco-select-box-dropdown-container{font-size:13px;font-weight:400;text-transform:none}.monaco-action-bar .action-item.select-container{cursor:default}.monaco-action-bar .action-item .monaco-select-box{cursor:pointer;min-height:18px;min-width:100px;padding:2px 23px 2px 8px}.mac .monaco-action-bar .action-item .monaco-select-box{border-radius:5px;font-size:11px}.monaco-action-bar{height:100%;white-space:nowrap}.monaco-action-bar .actions-container{align-items:center;display:flex;height:100%;margin:0 auto;padding:0;width:100%}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{align-items:center;cursor:pointer;display:block;justify-content:center;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .codicon,.monaco-action-bar .action-item .icon{display:block}.monaco-action-bar .action-item .codicon{align-items:center;display:flex;height:16px;width:16px}.monaco-action-bar .action-label{border-radius:5px;display:flex;font-size:11px;padding:3px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{opacity:.6}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #bbb;display:block;margin-left:.8em;margin-right:.8em;padding-top:1px}.monaco-action-bar .action-item .action-label.separator{background-color:#bbb;cursor:default;height:16px;margin:5px 4px!important;min-width:1px;padding:0;width:1px}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{align-items:center;display:flex;flex:1;justify-content:center;margin-right:10px;max-width:170px;min-width:60px;overflow:hidden}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator{align-items:center;cursor:default;display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator>div{width:1px}.action-widget{background-color:var(--vscode-editorWidget-background);border:1px solid var(--vscode-editorWidget-border)!important;border-radius:0;color:var(--vscode-editorWidget-foreground);display:block;font-size:13px;max-width:500px;min-width:160px;width:100%;z-index:40}.context-view-block{z-index:-1}.context-view-block,.context-view-pointerBlock{cursor:auto;height:100%;left:0;position:fixed;top:0;width:100%}.context-view-pointerBlock{z-index:2}.action-widget .monaco-list{border:0!important;-moz-user-select:none;user-select:none;-webkit-user-select:none}.action-widget .monaco-list:focus:before{outline:0!important}.action-widget .monaco-list .monaco-scrollable-element{overflow:visible}.action-widget .monaco-list .monaco-list-row{cursor:pointer;padding:0 10px;touch-action:none;white-space:nowrap;width:100%}.action-widget .monaco-list .monaco-list-row.action.focused:not(.option-disabled){background-color:var(--vscode-quickInputList-focusBackground)!important;color:var(--vscode-quickInputList-focusForeground);outline:1px solid var(--vscode-menu-selectionBorder,transparent);outline-offset:-1px}.action-widget .monaco-list-row.group-header{color:var(--vscode-pickerGroup-foreground)!important;font-weight:600}.action-widget .monaco-list .group-header,.action-widget .monaco-list .option-disabled,.action-widget .monaco-list .option-disabled .focused,.action-widget .monaco-list .option-disabled .focused:before,.action-widget .monaco-list .option-disabled:before{-webkit-touch-callout:none;background-color:transparent!important;cursor:default!important;outline:0 solid!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}.action-widget .monaco-list-row.action{align-items:center;display:flex;gap:6px}.action-widget .monaco-list-row.action.option-disabled{color:var(--vscode-disabledForeground)}.action-widget .monaco-list-row.action.option-disabled .codicon{opacity:.4}.action-widget .monaco-list-row.action:not(.option-disabled) .codicon{color:inherit}.action-widget .monaco-list-row.action .title{flex:1;overflow:hidden;text-overflow:ellipsis}.action-widget .action-widget-action-bar{background-color:var(--vscode-editorHoverWidget-statusBarBackground);border-top:1px solid var(--vscode-editorHoverWidget-border)}.action-widget .action-widget-action-bar:before{content:"";display:block;width:100%}.action-widget .action-widget-action-bar .actions-container{padding:0 8px}.action-widget-action-bar .action-label{color:var(--vscode-textLink-activeForeground);font-size:12px;line-height:22px;padding:0;pointer-events:all}.action-widget-action-bar .action-item{margin-right:16px;pointer-events:none}.action-widget-action-bar .action-label:hover{background-color:transparent!important}.monaco-keybinding{align-items:center;display:flex;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{border-radius:3px;border-style:solid;border-width:1px;display:inline-block;font-size:11px;margin:0 2px;padding:3px 5px;vertical-align:middle}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}.monaco-editor .lightBulbWidget{align-items:center;display:flex;justify-content:center}.monaco-editor .lightBulbWidget:hover{cursor:pointer}.monaco-editor .lightBulbWidget.codicon-light-bulb{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .lightBulbWidget.codicon-lightbulb-autofix{color:var(--vscode-editorLightBulbAutoFix-foreground,var(--vscode-editorLightBulb-foreground))}.monaco-editor .lightBulbWidget:before{position:relative;z-index:2}.monaco-editor .lightBulbWidget:after{background-color:var(--vscode-editor-background);content:"";display:block;height:100%;left:0;opacity:.3;position:absolute;top:0;width:100%;z-index:1}.monaco-editor .codelens-decoration{font-feature-settings:var(--vscode-editorCodeLens-fontFeatureSettings);color:var(--vscode-editorCodeLens-foreground);display:inline-block;font-family:var(--vscode-editorCodeLens-fontFamily),var(--vscode-editorCodeLens-fontFamilyDefault);font-size:var(--vscode-editorCodeLens-fontSize);line-height:var(--vscode-editorCodeLens-lineHeight);overflow:hidden;padding-right:calc(var(--vscode-editorCodeLens-fontSize)*.5);text-overflow:ellipsis;white-space:nowrap}.monaco-editor .codelens-decoration>a,.monaco-editor .codelens-decoration>span{-moz-user-select:none;user-select:none;-webkit-user-select:none;vertical-align:sub;white-space:nowrap}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer}.monaco-editor .codelens-decoration>a:hover,.monaco-editor .codelens-decoration>a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration .codicon{color:currentColor!important;color:var(--vscode-editorCodeLens-foreground);font-size:var(--vscode-editorCodeLens-fontSize);line-height:var(--vscode-editorCodeLens-lineHeight);vertical-align:middle}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:fadein .1s linear}.colorpicker-widget{height:190px;-moz-user-select:none;user-select:none;-webkit-user-select:none}.colorpicker-color-decoration,.hc-light .colorpicker-color-decoration{border:.1em solid #000;box-sizing:border-box;cursor:pointer;display:inline-block;height:.8em;line-height:.8em;margin:.1em .2em 0;width:.8em}.hc-black .colorpicker-color-decoration,.vs-dark .colorpicker-color-decoration{border:.1em solid #eee}.colorpicker-header{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;display:flex;height:24px;image-rendering:pixelated;position:relative}.colorpicker-header .picked-color{align-items:center;color:#fff;cursor:pointer;display:flex;flex:1;justify-content:center;line-height:24px;width:240px}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px;left:8px;position:absolute}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{cursor:pointer;width:74px;z-index:inherit}.standalone-colorpicker{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground)}.colorpicker-header.standalone-colorpicker{border-bottom:none}.colorpicker-header .close-button{background-color:var(--vscode-editorHoverWidget-background);border-left:1px solid var(--vscode-editorHoverWidget-border);cursor:pointer}.colorpicker-header .close-button-inner-div{height:100%;text-align:center;width:100%}.colorpicker-header .close-button-inner-div:hover{background-color:var(--vscode-toolbar-hoverBackground)}.colorpicker-header .close-icon{padding:3px}.colorpicker-body{display:flex;padding:8px;position:relative}.colorpicker-body .saturation-wrap{flex:1;height:150px;min-width:220px;overflow:hidden;position:relative}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{border:1px solid #fff;border-radius:100%;box-shadow:0 0 2px rgba(0,0,0,.8);height:9px;margin:-5px 0 0 -5px;position:absolute;width:9px}.colorpicker-body .strip{height:150px;width:25px}.colorpicker-body .standalone-strip{height:122px;width:25px}.colorpicker-body .hue-strip{background:linear-gradient(180deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);cursor:grab;margin-left:8px;position:relative}.colorpicker-body .opacity-strip{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;cursor:grab;image-rendering:pixelated;margin-left:8px;position:relative}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{border:1px solid hsla(0,0%,100%,.71);box-shadow:0 0 1px rgba(0,0,0,.85);box-sizing:border-box;height:4px;left:-2px;position:absolute;top:0;width:calc(100% + 4px)}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.colorpicker-body .standalone-strip .standalone-overlay{height:122px;pointer-events:none}.standalone-colorpicker-body{border:1px solid transparent;border-bottom:1px solid var(--vscode-editorHoverWidget-border);display:block;overflow:hidden}.colorpicker-body .insert-button{background:var(--vscode-button-background);border:none;border-radius:2px;bottom:8px;color:var(--vscode-button-foreground);cursor:pointer;height:20px;position:absolute;right:8px;width:58px}.colorpicker-body .insert-button:hover{background:var(--vscode-button-hoverBackground)}.monaco-editor .goto-definition-link{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer;text-decoration:underline}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex;flex-wrap:nowrap;justify-content:space-between}.monaco-editor .peekview-widget .head .peekview-title{align-items:baseline;display:flex;font-size:13px;margin-left:20px;min-width:0;overflow:hidden;text-overflow:ellipsis}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;margin-left:.5em}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .filename,.monaco-editor .peekview-widget .head .peekview-title .meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{flex:1;padding-right:2px;text-align:right}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{align-self:center;margin-right:4px}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{-webkit-text-size-adjust:100%;color:var(--vscode-editor-foreground);overflow:visible;position:relative}.monaco-editor,.monaco-editor-background{background-color:var(--vscode-editor-background)}.monaco-editor .rangeHighlight{background-color:var(--vscode-editor-rangeHighlightBackground);border:1px solid var(--vscode-editor-rangeHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .rangeHighlight,.monaco-editor.hc-light .rangeHighlight{border-style:dotted}.monaco-editor .symbolHighlight{background-color:var(--vscode-editor-symbolHighlightBackground);border:1px solid var(--vscode-editor-symbolHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .symbolHighlight,.monaco-editor.hc-light .symbolHighlight{border-style:dotted}.monaco-editor .overflow-guard{overflow:hidden;position:relative}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .squiggly-error{border-bottom:4px double var(--vscode-editorError-border)}.monaco-editor .squiggly-error:before{background:var(--vscode-editorError-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-warning{border-bottom:4px double var(--vscode-editorWarning-border)}.monaco-editor .squiggly-warning:before{background:var(--vscode-editorWarning-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-info{border-bottom:4px double var(--vscode-editorInfo-border)}.monaco-editor .squiggly-info:before{background:var(--vscode-editorInfo-background);content:"";display:block;height:100%;width:100%}.monaco-editor .squiggly-hint{border-bottom:2px dotted var(--vscode-editorHint-border)}.monaco-editor.showUnused .squiggly-unnecessary{border-bottom:2px dashed var(--vscode-editorUnnecessaryCode-border)}.monaco-editor.showDeprecated .squiggly-inline-deprecated{text-decoration:line-through;text-decoration-color:var(--vscode-editor-foreground,inherit)}.monaco-editor .inputarea{background-color:transparent;border:none;color:transparent;margin:0;min-height:0;min-width:0;outline:none!important;overflow:hidden;padding:0;position:absolute;resize:none;z-index:-10}.monaco-editor .inputarea.ime-input{caret-color:var(--vscode-editorCursor-foreground);color:var(--vscode-editor-foreground);z-index:10}.monaco-editor .margin-view-overlays .line-numbers{box-sizing:border-box;cursor:default;display:inline-block;font-variant-numeric:tabular-nums;height:100%;position:absolute;text-align:right;vertical-align:middle}.monaco-editor .relative-current-line-number{display:inline-block;text-align:left;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.monaco-editor .line-numbers{color:var(--vscode-editorLineNumber-foreground)}.monaco-editor .line-numbers.active-line-number{color:var(--vscode-editorLineNumber-activeForeground)}.monaco-editor .margin{background-color:var(--vscode-editorGutter-background)}.monaco-mouse-cursor-text{cursor:text}.monaco-editor .margin-view-overlays .current-line,.monaco-editor .view-overlays .current-line{box-sizing:border-box;display:block;left:0;position:absolute;top:0}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{position:absolute}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .margin-view-overlays .cgmr{align-items:center;display:flex;position:absolute}.monaco-editor .lines-content .core-guide{box-sizing:border-box;position:absolute}.monaco-editor .lines-content .core-guide-indent{box-shadow:1px 0 0 0 var(--vscode-editorIndentGuide-background) inset}.monaco-editor .lines-content .core-guide-indent-active{box-shadow:1px 0 0 0 var(--vscode-editorIndentGuide-activeBackground,--vscode-editorIndentGuide-background) inset}.mtkcontrol{background:#960000!important;color:#fff!important}.mtkoverflow{background-color:var(--vscode-button-background,--vscode-editor-background);border-color:var(--vscode-contrastBorder);border-radius:2px;border-style:solid;border-width:1px;color:var(--vscode-button-foreground,--vscode-editor-foreground);cursor:pointer;padding:4px}.mtkoverflow:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{-moz-user-select:none;user-select:none;-webkit-user-select:none}.monaco-editor.mac .lines-content:hover,.monaco-editor.mac .view-line:hover,.monaco-editor.mac .view-lines:hover{-moz-user-select:text;user-select:text;-webkit-user-select:text;-ms-user-select:text}.monaco-editor.enable-user-select{-moz-user-select:initial;user-select:auto;-webkit-user-select:initial}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .mtkw,.monaco-editor .mtkz{color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .mtkz{display:inline-block}.monaco-editor .lines-decorations{background:#fff;position:absolute;top:0}.monaco-editor .margin-view-overlays .cldr{height:100%;position:absolute}.monaco-editor .margin-view-overlays .cmdr{height:100%;left:0;position:absolute;width:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover .minimap-slider.active,.monaco-editor .minimap.slider-mouseover:hover .minimap-slider{opacity:1}.monaco-editor .minimap-slider .minimap-slider-horizontal{background:var(--vscode-minimapSlider-background)}.monaco-editor .minimap-slider:hover .minimap-slider-horizontal{background:var(--vscode-minimapSlider-hoverBackground)}.monaco-editor .minimap-slider.active .minimap-slider-horizontal{background:var(--vscode-minimapSlider-activeBackground)}.monaco-editor .minimap-shadow-visible{box-shadow:var(--vscode-scrollbar-shadow) -6px 0 6px -6px inset}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{left:-6px;position:absolute;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{left:-1px;position:absolute;width:1px}.minimap.autohide{opacity:0;transition:opacity .5s}.minimap.autohide:hover{opacity:1}.monaco-editor .overlayWidgets{left:0;position:absolute;top:0}.monaco-editor .view-ruler{box-shadow:1px 0 0 0 var(--vscode-editorRuler-foreground) inset;position:absolute;top:0}.monaco-editor .scroll-decoration{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;height:6px;left:0;position:absolute;top:0}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .focused .selected-text{background-color:var(--vscode-editor-selectionBackground)}.monaco-editor .selected-text{background-color:var(--vscode-editor-inactiveSelectionBackground)}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor.hc-light .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-light .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-light .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-light .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{box-sizing:border-box;overflow:hidden;position:absolute}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{background:transparent!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{background:transparent!important;border-bottom-style:solid;border-bottom-width:2px}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{background:transparent!important;border-bottom-style:solid;border-bottom-width:1px}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}.monaco-editor .blockDecorations-container{pointer-events:none;position:absolute;top:0}.monaco-editor .blockDecorations-block{box-sizing:border-box;position:absolute}.monaco-editor .mwh{color:var(--vscode-editorWhitespace-foreground)!important;position:absolute}:root{--vscode-sash-size:4px}.monaco-sash{position:absolute;touch-action:none;z-index:35}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;height:100%;top:0;width:var(--vscode-sash-size)}.monaco-sash.horizontal{cursor:ns-resize;height:var(--vscode-sash-size);left:0;width:100%}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";cursor:all-scroll;display:block;height:calc(var(--vscode-sash-size)*2);position:absolute;width:calc(var(--vscode-sash-size)*2);z-index:100}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size)*-.5);top:calc(var(--vscode-sash-size)*-1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{bottom:calc(var(--vscode-sash-size)*-1);left:calc(var(--vscode-sash-size)*-.5)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size)*-1);top:calc(var(--vscode-sash-size)*-.5)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{right:calc(var(--vscode-sash-size)*-1);top:calc(var(--vscode-sash-size)*-.5)}.monaco-sash:before{background:transparent;content:"";height:100%;pointer-events:none;position:absolute;width:100%}.monaco-workbench:not(.reduce-motion) .monaco-sash:before{transition:background-color .1s ease-out}.monaco-sash.active:before,.monaco-sash.hover:before{background:var(--vscode-sash-hoverBorder)}.monaco-sash.vertical:before{left:calc(50% - var(--vscode-sash-hover-size)/2);width:var(--vscode-sash-hover-size)}.monaco-sash.horizontal:before{height:var(--vscode-sash-hover-size);top:calc(50% - var(--vscode-sash-hover-size)/2)}.pointer-events-disabled{pointer-events:none!important}.monaco-sash.debug{background:cyan}.monaco-sash.debug.disabled{background:rgba(0,255,255,.2)}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-editor .zone-widget{position:absolute;z-index:10}.monaco-editor .zone-widget .zone-widget-container{border-bottom-style:solid;border-bottom-width:0;border-top-style:solid;border-top-width:0;position:relative}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{border-radius:5px;display:flex!important;flex-direction:row}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;line-height:16px;margin-left:-3px;padding-left:0;padding-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{background-position:50%;background-repeat:no-repeat;background-size:16px;display:block}.monaco-action-bar .action-item.menu-entry .action-label.icon{background-position:50%;background-repeat:no-repeat;background-size:16px;height:16px;width:16px}.monaco-dropdown-with-default{border-radius:5px;display:flex!important;flex-direction:row}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{background-position:50%;background-repeat:no-repeat;background-size:16px;height:16px;width:16px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;line-height:16px;margin-left:-3px;padding-left:0;padding-right:0}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{background-position:50%;background-repeat:no-repeat;background-size:16px;display:block}.monaco-split-view2{height:100%;position:relative;width:100%}.monaco-split-view2>.sash-container{height:100%;pointer-events:none;position:absolute;width:100%}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:auto}.monaco-split-view2>.monaco-scrollable-element{height:100%;width:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{height:100%;position:relative;white-space:nowrap;width:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{position:absolute;white-space:normal}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{background-color:var(--separator-border);content:" ";left:0;pointer-events:none;position:absolute;top:0;z-index:5}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:100%;width:1px}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:1px;width:100%}.monaco-table{display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;white-space:nowrap;width:100%}.monaco-table>.monaco-split-view2{border-bottom:1px solid transparent}.monaco-table>.monaco-list{flex:1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{font-weight:700;height:100%;overflow:hidden;text-overflow:ellipsis;width:100%}.monaco-table-td,.monaco-table-th{box-sizing:border-box;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{border-left:1px solid transparent;content:"";left:calc(var(--vscode-sash-size)/2);position:absolute;width:0}.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2,.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-custom-toggle{border:1px solid transparent;border-radius:3px;box-sizing:border-box;cursor:pointer;float:left;height:20px;margin-left:2px;overflow:hidden;padding:1px;-moz-user-select:none;user-select:none;-webkit-user-select:none;width:20px}.monaco-custom-toggle:hover{background-color:var(--vscode-inputOption-hoverBackground)}.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{border:1px dashed var(--vscode-focusBorder)}.hc-black .monaco-custom-toggle,.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle,.hc-light .monaco-custom-toggle:hover{background:none}.monaco-custom-toggle.monaco-checkbox{background-size:16px!important;border:1px solid transparent;border-radius:3px;height:18px;margin-left:0;margin-right:9px;opacity:1;padding:0;width:18px}.monaco-custom-toggle.monaco-checkbox:not(.checked):before{visibility:hidden}.monaco-inputbox{border-radius:2px;box-sizing:border-box;display:block;font-size:inherit;padding:0;position:relative}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px 6px}.monaco-inputbox>.ibwrapper{height:100%;position:relative;width:100%}.monaco-inputbox>.ibwrapper>.input{border:none;box-sizing:border-box;color:inherit;display:inline-block;font-family:inherit;font-size:inherit;height:100%;line-height:inherit;resize:none;width:100%}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;outline:none;scrollbar-width:none}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{word-wrap:break-word;box-sizing:border-box;display:inline-block;left:0;position:absolute;top:0;visibility:hidden;white-space:pre-wrap;width:100%}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{word-wrap:break-word;box-sizing:border-box;display:inline-block;font-size:12px;line-height:17px;margin-top:-1px;overflow:hidden;padding:.4em;text-align:left;width:100%}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;height:16px;width:16px}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;right:2px;top:3px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.hc-light .monaco-findInput.highlight-0 .controls,.monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.hc-light .monaco-findInput.highlight-1 .controls,.monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:rgba(253,255,0,.8)}to{background:transparent}}@keyframes monaco-findInput-highlight-1{0%{background:rgba(253,255,0,.8)}99%{background:transparent}}@keyframes monaco-findInput-highlight-dark-0{0%{background:hsla(0,0%,100%,.44)}to{background:transparent}}@keyframes monaco-findInput-highlight-dark-1{0%{background:hsla(0,0%,100%,.44)}99%{background:transparent}}.monaco-tl-row{align-items:center;display:flex;height:100%;position:relative}.monaco-tl-row.disabled{cursor:default}.monaco-tl-indent{height:100%;left:16px;pointer-events:none;position:absolute;top:0}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{border-left:1px solid transparent;box-sizing:border-box;display:inline-block;height:100%}.monaco-workbench:not(.reduce-motion) .monaco-tl-indent>.indent-guide{transition:border-color .1s linear}.monaco-tl-contents,.monaco-tl-twistie{height:100%}.monaco-tl-twistie{align-items:center;display:flex!important;flex-shrink:0;font-size:10px;justify-content:center;padding-right:6px;text-align:right;transform:translateX(3px);width:16px}.monaco-tl-contents{flex:1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:codicon-spin 1.25s steps(30) infinite}.monaco-tree-type-filter{border:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px;display:flex;margin:0 6px;max-width:200px;padding:3px;position:absolute;top:0;z-index:100}.monaco-workbench:not(.reduce-motion) .monaco-tree-type-filter{transition:top .3s}.monaco-tree-type-filter.disabled{top:-40px!important}.monaco-tree-type-filter-grab{align-items:center;cursor:grab;display:flex!important;justify-content:center;margin-right:2px}.monaco-tree-type-filter-grab.grabbing{cursor:grabbing}.monaco-tree-type-filter-input{flex:1}.monaco-tree-type-filter-input .monaco-inputbox{height:23px}.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.input,.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.mirror{padding:2px 4px}.monaco-tree-type-filter-input .monaco-findInput>.controls{top:2px}.monaco-tree-type-filter-actionbar{margin-left:4px}.monaco-tree-type-filter-actionbar .monaco-action-bar .action-label{padding:2px}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-bottom-width:1px;border-top-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;padding:3em 0;text-align:center;width:100%}.monaco-editor .reference-zone-widget .ref-tree{background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-lineForeground);line-height:23px}.monaco-editor .reference-zone-widget .ref-tree .reference{overflow:hidden;text-overflow:ellipsis}.monaco-editor .reference-zone-widget .ref-tree .reference-file{color:var(--vscode-peekViewResult-fileForeground);display:inline-flex;height:100%;width:100%}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows>.monaco-list-row.selected:not(.highlighted){background-color:var(--vscode-peekViewResult-selectionBackground);color:var(--vscode-peekViewResult-selectionForeground)!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-left:auto;margin-right:12px}.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight{background-color:var(--vscode-peekViewResult-matchHighlightBackground)}.monaco-editor .reference-zone-widget .preview .reference-decoration{background-color:var(--vscode-peekViewEditor-matchHighlightBackground);border:2px solid var(--vscode-peekViewEditor-matchHighlightBorder);box-sizing:border-box}.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input,.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor .reference-zone-widget .preview .monaco-editor .margin{background-color:var(--vscode-peekViewEditorGutter-background)}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file,.monaco-editor.hc-light .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-editor.hc-black .reference-zone-widget .ref-tree .referenceMatch .highlight,.monaco-editor.hc-light .reference-zone-widget .ref-tree .referenceMatch .highlight{border:1px dotted var(--vscode-contrastActiveBorder,transparent);box-sizing:border-box}.monaco-count-badge{border-radius:11px;box-sizing:border-box;display:inline-block;font-size:11px;font-weight:400;line-height:11px;min-height:18px;min-width:18px;padding:3px 6px;text-align:center}.monaco-count-badge.long{border-radius:2px;line-height:normal;min-height:auto;padding:2px 3px}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-position:0;background-repeat:no-repeat;background-size:16px;display:inline-block;flex-shrink:0;height:22px;line-height:inherit!important;padding-right:6px;vertical-align:top;width:16px}.monaco-icon-label-container.disabled{color:var(--vscode-disabledForeground)}.monaco-icon-label>.monaco-icon-label-container{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-size:.9em;margin-left:.5em;opacity:.7;white-space:pre}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{font-style:italic}.monaco-icon-label.deprecated{opacity:.66;text-decoration:line-through}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{text-decoration:line-through}.monaco-icon-label:after{font-size:90%;font-weight:600;margin:auto 16px 0 5px;opacity:.75;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-hover{animation:fadein .1s linear;box-sizing:initial;cursor:default;line-height:1.5em;overflow:hidden;position:absolute;-moz-user-select:text;user-select:text;-webkit-user-select:text;z-index:50}.monaco-hover.hidden{display:none}.monaco-hover a:hover:not(.disabled){cursor:pointer}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){word-wrap:break-word;max-width:500px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover .code,.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6,.monaco-hover p,.monaco-hover ul{margin:8px 0}.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{line-height:1.1}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{border-left:0;border-right:0;box-sizing:border-box;height:1px;margin:4px -8px -4px}.monaco-hover .code:first-child,.monaco-hover p:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover .code:last-child,.monaco-hover p:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ol,.monaco-hover ul{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:pre-wrap}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .info{font-style:italic;padding:0 8px}.monaco-hover .hover-row.status-bar .actions{display:flex;padding:0 8px}.monaco-hover .hover-row.status-bar .actions .action-container{cursor:pointer;margin-right:16px}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link,.monaco-hover .hover-contents a.code-link:hover{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{border-bottom:1px solid transparent;color:var(--vscode-textLink-foreground);text-decoration:underline;text-underline-position:under}.monaco-hover .hover-contents a.code-link>span:hover{color:var(--vscode-textLink-activeForeground)}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{display:inline-block;margin-bottom:4px}.monaco-hover-content .action-container a{-webkit-user-select:none;-moz-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{cursor:default;opacity:.4;pointer-events:none}.monaco-editor .rendered-markdown kbd{background-color:var(--vscode-keybindingLabel-background);border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);border-radius:3px;border-style:solid;border-width:1px;box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);color:var(--vscode-keybindingLabel-foreground);padding:1px 3px;vertical-align:middle}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;margin-right:4px;vertical-align:text-top}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{font-style:italic;opacity:.6}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{padding:8px 12px 0 20px;position:absolute;-moz-user-select:text;user-select:text;-webkit-user-select:text;white-space:pre}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{color:inherit;opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{border-bottom:1px solid transparent;color:var(--vscode-textLink-foreground);color:var(--vscode-textLink-activeForeground);text-decoration:underline;text-underline-position:under}.monaco-editor .marker-widget .descriptioncontainer .filename{cursor:pointer}.extension-editor .codicon.codicon-error,.extensions-viewlet>.extensions .codicon.codicon-error,.markers-panel .marker-icon .codicon.codicon-error,.markers-panel .marker-icon.error,.monaco-editor .zone-widget .codicon.codicon-error,.preferences-editor .codicon.codicon-error,.text-search-provider-messages .providerMessage .codicon.codicon-error{color:var(--vscode-problemsErrorIcon-foreground)}.extension-editor .codicon.codicon-warning,.extensions-viewlet>.extensions .codicon.codicon-warning,.markers-panel .marker-icon .codicon.codicon-warning,.markers-panel .marker-icon.warning,.monaco-editor .zone-widget .codicon.codicon-warning,.preferences-editor .codicon.codicon-warning,.text-search-provider-messages .providerMessage .codicon.codicon-warning{color:var(--vscode-problemsWarningIcon-foreground)}.extension-editor .codicon.codicon-info,.extensions-viewlet>.extensions .codicon.codicon-info,.markers-panel .marker-icon .codicon.codicon-info,.markers-panel .marker-icon.info,.monaco-editor .zone-widget .codicon.codicon-info,.preferences-editor .codicon.codicon-info,.text-search-provider-messages .providerMessage .codicon.codicon-info{color:var(--vscode-problemsInfoIcon-foreground)}.monaco-editor .hoverHighlight{background-color:var(--vscode-editor-hoverHighlightBackground)}.monaco-editor .monaco-hover{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground)}.monaco-editor .monaco-hover a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .monaco-hover .hover-row .actions{background-color:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-editor .monaco-hover code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .inlineSuggestionsHints.withBorder{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);z-index:39}.monaco-editor .inlineSuggestionsHints a,.monaco-editor .inlineSuggestionsHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineSuggestionsHints .keybinding{display:flex;margin-left:4px;opacity:.6}.monaco-editor .inlineSuggestionsHints .keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.monaco-editor .inlineSuggestionsHints .custom-actions .action-item:nth-child(2) a{display:flex;justify-content:center;min-width:19px}.monaco-editor .inlineSuggestionStatusBarItemLabel{margin-right:2px}.monaco-toolbar{height:100%}.monaco-toolbar .toolbar-toggle-more{display:inline-block;padding:0}.inline-editor-progress-decoration{display:inline-block;height:1em;width:1em}.inline-progress-widget{align-items:center;display:flex!important;justify-content:center}.inline-progress-widget .icon{font-size:80%!important}.inline-progress-widget:hover .icon{animation:none;font-size:90%!important}.inline-progress-widget:hover .icon:before{content:"\ea76"}.monaco-editor.hc-light .dnd-target,.monaco-editor.vs .dnd-target{border-right:2px dotted #000;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #aeafad;color:#51504f}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff;color:#000}.monaco-editor.hc-black.mac.mouse-default .view-lines,.monaco-editor.hc-light.mac.mouse-default .view-lines,.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines{cursor:default}.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.hc-light.mac.mouse-copy .view-lines,.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines{cursor:copy}.monaco-text-button{align-items:center;border:1px solid var(--vscode-button-border,transparent);border-radius:2px;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;line-height:18px;padding:4px;text-align:center;width:100%}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled,.monaco-button.disabled:focus{cursor:default;opacity:.4!important}.monaco-text-button .codicon{color:inherit!important;margin:0 .2em}.monaco-text-button.monaco-text-button-with-short-label{flex-direction:row;flex-wrap:wrap;height:28px;overflow:hidden;padding:0 4px}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label{flex-basis:100%}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{flex-grow:1;overflow:hidden;width:0}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label,.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{align-items:center;display:flex;font-style:inherit;font-weight:400;justify-content:center;padding:4px 0}.monaco-button-dropdown{cursor:pointer;display:flex}.monaco-button-dropdown.disabled{cursor:default}.monaco-button-dropdown>.monaco-button:focus{outline-offset:-1px!important}.monaco-button-dropdown.disabled>.monaco-button-dropdown-separator,.monaco-button-dropdown.disabled>.monaco-button.disabled,.monaco-button-dropdown.disabled>.monaco-button.disabled:focus{opacity:.4!important}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-right-width:0!important}.monaco-button-dropdown .monaco-button-dropdown-separator{cursor:default;padding:4px 0}.monaco-button-dropdown .monaco-button-dropdown-separator>div{height:100%;width:1px}.monaco-button-dropdown>.monaco-button.monaco-dropdown-button{border:1px solid var(--vscode-button-border,transparent);border-left-width:0!important;border-radius:0 2px 2px 0}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-radius:2px 0 0 2px}.monaco-description-button{align-items:center;display:flex;flex-direction:column;margin:4px 5px}.monaco-description-button .monaco-button-description{font-size:11px;font-style:italic;padding:4px 20px}.monaco-description-button .monaco-button-description,.monaco-description-button .monaco-button-label{align-items:center;display:flex;justify-content:center}.monaco-description-button .monaco-button-description>.codicon,.monaco-description-button .monaco-button-label>.codicon{color:inherit!important;margin:0 .2em}.post-drop-widget{background-color:var(--vscode-editorWidget-background);border:1px solid var(--vscode-widget-border,transparent);border-radius:4px;box-shadow:0 0 8px 2px var(--vscode-widget-shadow);overflow:hidden}.post-drop-widget .monaco-button{border:none;border-radius:0;padding:2px}.post-drop-widget .monaco-button:hover{background-color:var(--vscode-button-secondaryHoverBackground)!important}.post-drop-widget .monaco-button .codicon{margin:0}.monaco-editor .findOptionsWidget{background-color:var(--vscode-editorWidget-background);border:2px solid var(--vscode-contrastBorder);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);color:var(--vscode-editorWidget-foreground)}.monaco-editor .find-widget{border-bottom-left-radius:4px;border-bottom-right-radius:4px;box-sizing:border-box;height:33px;line-height:19px;overflow:hidden;padding:0 4px;position:absolute;transform:translateY(calc(-100% - 10px));transition:transform .2s linear;z-index:35}.monaco-workbench.reduce-motion .monaco-editor .find-widget{transition:transform 0ms linear}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-editor .find-widget .monaco-inputbox .input{background-color:transparent;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{display:flex;font-size:12px;margin:3px 0 0 17px}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-bottom:2px;padding-top:2px}.monaco-editor .find-widget>.find-part .find-actions,.monaco-editor .find-widget>.replace-part .replace-actions{align-items:center;display:flex;height:25px}.monaco-editor .find-widget .monaco-findInput{display:flex;flex:1;vertical-align:middle}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{box-sizing:border-box;display:flex;flex:initial;height:25px;line-height:23px;margin:0 0 0 3px;padding:2px 0 0 2px;text-align:center;vertical-align:middle}.monaco-editor .find-widget .button{align-items:center;background-position:50%;background-repeat:no-repeat;border-radius:5px;cursor:pointer;display:flex;flex:initial;height:16px;justify-content:center;margin-left:3px;padding:3px;width:16px}.monaco-editor .find-widget .codicon-find-selection{border-radius:5px;height:22px;padding:3px;width:22px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{padding:1px 6px;top:-1px;width:auto}.monaco-editor .find-widget .button.toggle{border-radius:0;box-sizing:border-box;height:100%;left:3px;position:absolute;top:0;width:18px}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{color:var(--vscode-disabledForeground);cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{display:flex;flex:auto;flex-grow:0;flex-shrink:0;position:relative;vertical-align:middle}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;right:2px;top:3px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .findMatch{animation-duration:0;animation-name:inherit!important}.monaco-editor .find-widget .monaco-sash{left:0!important}.monaco-editor.hc-black .find-widget .button:before{left:2px;position:relative;top:1px}.monaco-editor .margin-view-overlays .codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-manual-expanded{align-items:center;cursor:pointer;display:flex;font-size:140%;justify-content:center;margin-left:2px;opacity:0;transition:opacity .5s}.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-expanded{transition:initial}.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays:hover .codicon{opacity:1}.monaco-editor .inline-folded:after{color:grey;content:"\22EF";cursor:pointer;display:inline;line-height:1em;margin:.1em .2em 0}.monaco-editor .folded-background{background-color:var(--vscode-editor-foldBackground)}.monaco-editor .cldr.codicon.codicon-folding-collapsed,.monaco-editor .cldr.codicon.codicon-folding-expanded,.monaco-editor .cldr.codicon.codicon-folding-manual-collapsed,.monaco-editor .cldr.codicon.codicon-folding-manual-expanded{color:var(--vscode-editorGutter-foldingControlForeground)!important}.monaco-editor .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MyIgaGVpZ2h0PSIzNiIgZmlsbD0ibm9uZSI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsPSIjNDI0MjQyIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00OC4wMzYgNC4wMUg0LjAwOFYzMi4wM2g0NC4wMjhWNC4wMVpNNC4wMDguMDA4QTQuMDAzIDQuMDAzIDAgMCAwIC4wMDUgNC4wMVYzMi4wM2E0LjAwMyA0LjAwMyAwIDAgMCA0LjAwMyA0LjAwMmg0NC4wMjhhNC4wMDMgNC4wMDMgMCAwIDAgNC4wMDMtNC4wMDJWNC4wMUE0LjAwMyA0LjAwMyAwIDAgMCA0OC4wMzYuMDA4SDQuMDA4Wk04LjAxIDguMDEzaDQuMDAzdjQuMDAzSDguMDFWOC4wMTNabTEyLjAwOCAwaC00LjAwMnY0LjAwM2g0LjAwMlY4LjAxM1ptNC4wMDMgMGg0LjAwMnY0LjAwM2gtNC4wMDJWOC4wMTNabTEyLjAwOCAwaC00LjAwM3Y0LjAwM2g0LjAwM1Y4LjAxM1ptNC4wMDIgMGg0LjAwM3Y0LjAwM0g0MC4wM1Y4LjAxM1ptLTI0LjAxNSA4LjAwNUg4LjAxdjQuMDAzaDguMDA2di00LjAwM1ptNC4wMDIgMGg0LjAwM3Y0LjAwM2gtNC4wMDN2LTQuMDAzWm0xMi4wMDggMGgtNC4wMDN2NC4wMDNoNC4wMDN2LTQuMDAzWm0xMi4wMDggMHY0LjAwM2gtOC4wMDV2LTQuMDAzaDguMDA1Wm0tMzIuMDIxIDguMDA1SDguMDF2NC4wMDNoNC4wMDN2LTQuMDAzWm00LjAwMyAwaDIwLjAxM3Y0LjAwM0gxNi4wMTZ2LTQuMDAzWm0yOC4wMTggMEg0MC4wM3Y0LjAwM2g0LjAwM3YtNC4wMDNaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDUzdjM2SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+) 50% no-repeat;border:4px solid #f6f6f6;border-radius:4px;height:36px;margin:0;min-height:0;min-width:0;overflow:hidden;padding:0;position:absolute;resize:none;width:58px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MyIgaGVpZ2h0PSIzNiIgZmlsbD0ibm9uZSI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsPSIjQzVDNUM1IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00OC4wMzYgNC4wMUg0LjAwOFYzMi4wM2g0NC4wMjhWNC4wMVpNNC4wMDguMDA4QTQuMDAzIDQuMDAzIDAgMCAwIC4wMDUgNC4wMVYzMi4wM2E0LjAwMyA0LjAwMyAwIDAgMCA0LjAwMyA0LjAwMmg0NC4wMjhhNC4wMDMgNC4wMDMgMCAwIDAgNC4wMDMtNC4wMDJWNC4wMUE0LjAwMyA0LjAwMyAwIDAgMCA0OC4wMzYuMDA4SDQuMDA4Wk04LjAxIDguMDEzaDQuMDAzdjQuMDAzSDguMDFWOC4wMTNabTEyLjAwOCAwaC00LjAwMnY0LjAwM2g0LjAwMlY4LjAxM1ptNC4wMDMgMGg0LjAwMnY0LjAwM2gtNC4wMDJWOC4wMTNabTEyLjAwOCAwaC00LjAwM3Y0LjAwM2g0LjAwM1Y4LjAxM1ptNC4wMDIgMGg0LjAwM3Y0LjAwM0g0MC4wM1Y4LjAxM1ptLTI0LjAxNSA4LjAwNUg4LjAxdjQuMDAzaDguMDA2di00LjAwM1ptNC4wMDIgMGg0LjAwM3Y0LjAwM2gtNC4wMDN2LTQuMDAzWm0xMi4wMDggMGgtNC4wMDN2NC4wMDNoNC4wMDN2LTQuMDAzWm0xMi4wMDggMHY0LjAwM2gtOC4wMDV2LTQuMDAzaDguMDA1Wm0tMzIuMDIxIDguMDA1SDguMDF2NC4wMDNoNC4wMDN2LTQuMDAzWm00LjAwMyAwaDIwLjAxM3Y0LjAwM0gxNi4wMTZ2LTQuMDAzWm0yOC4wMTggMEg0MC4wM3Y0LjAwM2g0LjAwM3YtNC4wMDNaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDUzdjM2SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+) 50% no-repeat;border:4px solid #252526}.monaco-editor.vs .valueSetReplacement{outline:solid 2px var(--vscode-editorBracketMatch-border)}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:transparent;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{cursor:pointer;display:inline-block;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{font-size:0;opacity:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text .ghost-text{font-style:italic}.monaco-editor .inline-completion-text-to-replace{text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-decoration,.monaco-editor .ghost-text-decoration-preview,.monaco-editor .suggest-preview-text .ghost-text{background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border);color:var(--vscode-editorGhostText-foreground)!important}.monaco-editor .snippet-placeholder{background-color:var(--vscode-editor-snippetTabstopHighlightBackground,transparent);min-width:2px;outline-color:var(--vscode-editor-snippetTabstopHighlightBorder,transparent);outline-style:solid;outline-width:1px}.monaco-editor .finish-snippet-placeholder{background-color:var(--vscode-editor-snippetFinalTabstopHighlightBackground,transparent);outline-color:var(--vscode-editor-snippetFinalTabstopHighlightBorder,transparent);outline-style:solid;outline-width:1px}.monaco-editor .suggest-widget{display:flex;flex-direction:column;width:430px;z-index:40}.monaco-editor .suggest-widget.message{align-items:center;flex-direction:row}.monaco-editor .suggest-details,.monaco-editor .suggest-widget{background-color:var(--vscode-editorSuggestWidget-background);border-color:var(--vscode-editorSuggestWidget-border);border-style:solid;border-width:1px;flex:0 1 auto;width:100%}.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-light .suggest-details,.monaco-editor.hc-light .suggest-widget{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{border-top:1px solid var(--vscode-editorSuggestWidget-border);box-sizing:border-box;display:none;flex-flow:row nowrap;font-size:80%;justify-content:space-between;overflow:hidden;padding:0 4px;width:100%}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{color:var(--vscode-editorSuggestWidgetStatus-foreground)}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list{-moz-user-select:none;user-select:none;-webkit-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{background-position:2px 2px;background-repeat:no-repeat;-mox-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:flex;padding-right:10px;touch-action:none;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused{color:var(--vscode-editorSuggestWidget-selectedForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .codicon{color:var(--vscode-editorSuggestWidget-selectedIconForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;justify-content:space-between;overflow:hidden;text-overflow:ellipsis;white-space:pre}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.focused)>.contents>.main .monaco-icon-label{color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-highlightForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-focusHighlightForeground)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;cursor:pointer;font-size:14px;opacity:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;right:2px;top:6px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{opacity:.6;overflow:hidden;text-overflow:ellipsis}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{align-self:center;font-size:85%;line-height:normal;margin-left:12px;opacity:.4;overflow:hidden;text-overflow:ellipsis}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{font-size:85%;margin-left:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-grow:1;flex-shrink:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{flex-shrink:4;max-width:70%;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;height:18px;position:absolute;right:10px;visibility:hidden;width:18px}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{background-position:50%;background-repeat:no-repeat;background-size:80%;display:block;height:16px;margin-left:2px;width:16px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{align-items:center;display:flex;margin-right:4px}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{border:.1em solid #000;display:inline-block;height:.7em;margin:0 0 0 .3em;width:.7em}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{color:var(--vscode-editorSuggestWidget-foreground);cursor:default;display:flex;flex-direction:column}.monaco-editor .suggest-details.focused{border-color:var(--vscode-focusBorder)}.monaco-editor .suggest-details a{color:var(--vscode-textLink-foreground)}.monaco-editor .suggest-details a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .suggest-details code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;height:100%;width:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2;margin:0 24px 0 0;opacity:.7;overflow:hidden;padding:4px 0 12px 5px;text-overflow:ellipsis;white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{margin:0;padding:4px 5px;white-space:pre-wrap}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px;overflow:hidden}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{min-height:calc(1rem + 8px);padding:0;white-space:normal}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .monaco-tokenized-source{white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{word-wrap:break-word;white-space:pre-wrap}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ol,.monaco-editor .suggest-details ul{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);padding:10px;-moz-user-select:text;user-select:text;-webkit-user-select:text;z-index:50}.monaco-editor.hc-black .tokens-inspect-widget,.monaco-editor.hc-light .tokens-inspect-widget{border-width:2px}.monaco-editor .tokens-inspect-widget .tokens-inspect-separator{background-color:var(--vscode-editorHoverWidget-border);border:0;height:1px}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{float:right;font-size:60%;font-weight:400}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)}.monaco-editor .linked-editing-decoration{background-color:var(--vscode-editor-linkedEditingBackground);min-width:1px}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}.monaco-editor .detected-link-active{color:var(--vscode-editorLink-activeForeground)!important;cursor:pointer}.monaco-editor .focused .selectionHighlight{background-color:var(--vscode-editor-selectionHighlightBackground);border:1px solid var(--vscode-editor-selectionHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .focused .selectionHighlight,.monaco-editor.hc-light .focused .selectionHighlight{border-style:dotted}.monaco-editor .wordHighlight{background-color:var(--vscode-editor-wordHighlightBackground);border:1px solid var(--vscode-editor-wordHighlightBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlight,.monaco-editor.hc-light .wordHighlight{border-style:dotted}.monaco-editor .wordHighlightStrong{background-color:var(--vscode-editor-wordHighlightStrongBackground);border:1px solid var(--vscode-editor-wordHighlightStrongBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlightStrong,.monaco-editor.hc-light .wordHighlightStrong{border-style:dotted}.monaco-editor .wordHighlightText{background-color:var(--vscode-editor-wordHighlightTextBackground);border:1px solid var(--vscode-editor-wordHighlightTextBorder);box-sizing:border-box}.monaco-editor.hc-black .wordHighlightText,.monaco-editor.hc-light .wordHighlightText{border-style:dotted}.monaco-editor .parameter-hints-widget{background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-editorHoverWidget-foreground);cursor:default;display:flex;flex-direction:column;line-height:1.5em;z-index:39}.hc-black .monaco-editor .parameter-hints-widget,.hc-light .monaco-editor .parameter-hints-widget{border-width:2px}.monaco-editor .parameter-hints-widget>.phwrapper{display:flex;flex-direction:row;max-width:440px}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.multiple .body:before{border-left:1px solid var(--vscode-editorHoverWidget-border);content:"";display:block;height:100%;opacity:.5;position:absolute}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .body,.monaco-editor .parameter-hints-widget .monaco-scrollable-element{display:flex;flex:1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px;position:relative}.monaco-editor .parameter-hints-widget .signature.has-docs:after{border-bottom:1px solid var(--vscode-editorHoverWidget-border);content:"";display:block;left:0;opacity:.5;padding-top:4px;position:absolute;width:100%}.monaco-editor .parameter-hints-widget .docs{padding:0 10px 0 5px;white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs a{color:var(--vscode-textLink-foreground)}.monaco-editor .parameter-hints-widget .docs a:hover{color:var(--vscode-textLink-activeForeground);cursor:pointer}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:normal}.monaco-editor .parameter-hints-widget .docs code{background-color:var(--vscode-textCodeBlock-background);border-radius:3px;font-family:var(--monaco-monospace-font);padding:0 .4em}.monaco-editor .parameter-hints-widget .docs .code,.monaco-editor .parameter-hints-widget .docs .monaco-tokenized-source{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .controls{align-items:center;display:none;flex-direction:column;justify-content:flex-end;min-width:22px}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{background-repeat:no-repeat;cursor:pointer;height:16px;width:16px}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{font-family:var(--monaco-monospace-font);height:12px;line-height:12px;text-align:center}.monaco-editor .parameter-hints-widget .signature .parameter.active{color:var(--vscode-editorHoverWidget-highlightForeground);font-weight:700}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:700;margin-right:.5em}.monaco-editor .rename-box{border-radius:4px;color:inherit;z-index:100}.monaco-editor .rename-box.preview{padding:4px 4px 0}.monaco-editor .rename-box .rename-input{border-radius:2px;padding:3px}.monaco-editor .rename-box .rename-label{display:none;opacity:.8}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .sticky-line{color:var(--vscode-editorLineNumber-foreground);display:inline-block;overflow:hidden;white-space:nowrap}.monaco-editor .sticky-line-number{float:left;text-align:right}.monaco-editor .sticky-line-root{background-color:inherit;overflow:hidden;white-space:nowrap;width:100%}.monaco-editor.hc-black .sticky-widget,.monaco-editor.hc-light .sticky-widget{border-bottom:1px solid var(--vscode-contrastBorder)}.monaco-editor .sticky-line-root:hover{background-color:var(--vscode-editorStickyScrollHover-background);cursor:pointer}.monaco-editor .sticky-widget{background-color:var(--vscode-editorStickyScroll-background);box-shadow:var(--vscode-scrollbar-shadow) 0 3px 2px -2px;width:100%;z-index:4}.monaco-editor .sticky-widget.peek{background-color:var(--vscode-peekViewEditorStickyScroll-background)}.monaco-editor .unicode-highlight{background-color:var(--vscode-editorUnicodeHighlight-background);border:1px solid var(--vscode-editorUnicodeHighlight-border);box-sizing:border-box}.editor-banner{background:var(--vscode-banner-background);box-sizing:border-box;cursor:default;display:flex;font-size:12px;height:26px;overflow:visible;width:100%}.editor-banner .icon-container{align-items:center;display:flex;flex-shrink:0;padding:0 6px 0 10px}.editor-banner .icon-container.custom-icon{background-position:50%;background-repeat:no-repeat;background-size:16px;margin:0 6px 0 10px;padding:0;width:16px}.editor-banner .message-container{align-items:center;display:flex;line-height:26px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-banner .message-container p{-webkit-margin-before:0;-webkit-margin-after:0;margin-block-end:0;margin-block-start:0}.editor-banner .message-actions-container{flex-grow:1;flex-shrink:0;line-height:26px;margin:0 4px}.editor-banner .message-actions-container a.monaco-button{margin:2px 8px;padding:0 12px;width:inherit}.editor-banner .message-actions-container a{margin-left:12px;padding:3px;text-decoration:underline}.editor-banner .action-container{padding:0 10px 0 6px}.editor-banner{background-color:var(--vscode-banner-background)}.editor-banner,.editor-banner .action-container .codicon,.editor-banner .message-actions-container .monaco-link{color:var(--vscode-banner-foreground)}.editor-banner .icon-container .codicon{color:var(--vscode-banner-iconForeground)}.monaco-link{color:var(--vscode-textLink-foreground)}.monaco-link:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor{--monaco-monospace-font:"SF Mono",Monaco,Menlo,Consolas,"Ubuntu Mono","Liberation Mono","DejaVu Sans Mono","Courier New",monospace;font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif}.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-light .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;top:0;width:1px}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:rgba(0,0,0,.03)}.monaco-diff-editor.vs-dark .diffOverview{background:hsla(0,0%,100%,.01)}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:transparent}.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-light .scrollbar{background:none}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:hsla(0,0%,67%,.4)}.modified-in-monaco-diff-editor.hc-black .slider.active,.modified-in-monaco-diff-editor.hc-light .slider.active{background:none}.monaco-diff-editor .delete-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-editor .insert-sign{align-items:center;display:flex!important;font-size:11px!important;opacity:.7!important}.monaco-diff-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-diff-editor.hc-light .delete-sign,.monaco-diff-editor.hc-light .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-editor.hc-black .insert-sign,.monaco-editor.hc-light .delete-sign,.monaco-editor.hc-light .insert-sign{opacity:1}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .inline-deleted-margin-view-zone{text-align:right}.monaco-editor .arrow-revert-change{position:absolute;z-index:10}.monaco-editor .arrow-revert-change:hover{cursor:pointer}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}.monaco-diff-editor .char-insert,.monaco-editor .char-insert{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-diff-editor .line-insert,.monaco-editor .line-insert{background-color:var(--vscode-diffEditor-insertedLineBackground,--vscode-diffEditor-insertedTextBackground)}.monaco-editor .char-insert,.monaco-editor .line-insert{border:1px solid var(--vscode-diffEditor-insertedTextBorder);box-sizing:border-box}.monaco-editor.hc-black .char-insert,.monaco-editor.hc-black .line-insert,.monaco-editor.hc-light .char-insert,.monaco-editor.hc-light .line-insert{border-style:dashed}.monaco-editor .char-delete,.monaco-editor .line-delete{border:1px solid var(--vscode-diffEditor-removedTextBorder);box-sizing:border-box}.monaco-editor.hc-black .char-delete,.monaco-editor.hc-black .line-delete,.monaco-editor.hc-light .char-delete,.monaco-editor.hc-light .line-delete{border-style:dashed}.monaco-diff-editor .gutter-insert,.monaco-editor .gutter-insert,.monaco-editor .inline-added-margin-view-zone{background-color:var(--vscode-diffEditorGutter-insertedLineBackground,--vscode-diffEditor-insertedLineBackground,--vscode-diffEditor-insertedTextBackground)}.monaco-diff-editor .char-delete,.monaco-editor .char-delete{background-color:var(--vscode-diffEditor-removedTextBackground)}.monaco-diff-editor .line-delete,.monaco-editor .line-delete{background-color:var(--vscode-diffEditor-removedLineBackground,--vscode-diffEditor-removedTextBackground)}.monaco-diff-editor .gutter-delete,.monaco-editor .gutter-delete,.monaco-editor .inline-deleted-margin-view-zone{background-color:var(--vscode-diffEditorGutter-removedLineBackground,--vscode-diffEditor-removedLineBackground,--vscode-diffEditor-removedTextBackground)}.monaco-diff-editor.side-by-side .editor.modified{border-left:1px solid var(--vscode-diffEditor-border);box-shadow:-6px 0 5px -5px var(--vscode-scrollbar-shadow)}.monaco-diff-editor .diffViewport{background:var(--vscode-scrollbarSlider-background)}.monaco-diff-editor .diffViewport:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-diff-editor .diffViewport:active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-diff-editor .diff-review-line-number{color:var(--vscode-editorLineNumber-foreground);display:inline-block;text-align:right}.monaco-diff-editor .diff-review{position:absolute;-moz-user-select:none;user-select:none;-webkit-user-select:none}.monaco-diff-editor .diff-review-summary{padding-left:10px}.monaco-diff-editor .diff-review-shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset;position:absolute}.monaco-diff-editor .diff-review-row{white-space:pre}.monaco-diff-editor .diff-review-table{display:table;min-width:100%}.monaco-diff-editor .diff-review-row{display:table-row;width:100%}.monaco-diff-editor .diff-review-spacer{display:inline-block;vertical-align:middle;width:10px}.monaco-diff-editor .diff-review-spacer>.codicon{font-size:9px!important}.monaco-diff-editor .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px}.monaco-diff-editor .diff-review-actions .action-label{height:16px;margin:2px 0;width:16px}.context-view{position:absolute}.context-view.fixed{all:initial;color:inherit;font-family:inherit;font-size:13px;position:fixed}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.hc-light .quick-input-widget .monaco-highlighted-label .highlight{color:#0f4a85}.monaco-keybinding>.monaco-keybinding-key{background-color:hsla(0,0%,87%,.4);border:1px solid hsla(0,0%,80%,.4);border-bottom-color:hsla(0,0%,73%,.4);box-shadow:inset 0 -1px 0 hsla(0,0%,73%,.4);color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:1px solid #6fc3df;box-shadow:none;color:#fff}.hc-light .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:1px solid #0f4a85;box-shadow:none;color:#292929}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:hsla(0,0%,50%,.17);border:1px solid rgba(51,51,51,.6);border-bottom-color:rgba(68,68,68,.6);box-shadow:inset 0 -1px 0 rgba(68,68,68,.6);color:#ccc}.monaco-progress-container{height:5px;overflow:hidden;width:100%}.monaco-progress-container .progress-bit{display:none;height:5px;left:0;position:absolute;width:2%}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-duration:4s;animation-iteration-count:infinite;animation-name:progress;animation-timing-function:linear;transform:translateZ(0)}.monaco-progress-container.infinite.infinite-long-running .progress-bit{animation-timing-function:steps(100)}@keyframes progress{0%{transform:translateX(0) scaleX(1)}50%{transform:translateX(2500%) scaleX(3)}to{transform:translateX(4900%) scaleX(1)}}.quick-input-widget{-webkit-app-region:no-drag;border-radius:6px;left:50%;margin-left:-300px;position:absolute;width:600px;z-index:2550}.quick-input-titlebar{align-items:center;border-top-left-radius:5px;border-top-right-radius:5px;display:flex}.quick-input-left-action-bar{display:flex;flex:1;margin-left:4px}.quick-input-title{overflow:hidden;padding:3px 0;text-align:center;text-overflow:ellipsis}.quick-input-right-action-bar{display:flex;flex:1;margin-right:4px}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:50%;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px}.quick-input-header .quick-input-description{margin:4px 2px}.quick-input-header{display:flex;padding:8px 6px 6px}.quick-input-widget.hidden-input .quick-input-header{margin-bottom:0;padding:0}.quick-input-and-message{display:flex;flex-direction:column;flex-grow:1;min-width:0;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{display:flex;flex-grow:1;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{left:-10000px;position:absolute}.quick-input-count{align-items:center;align-self:center;display:flex;position:absolute;right:4px}.quick-input-count .monaco-count-badge{border-radius:2px;line-height:normal;min-height:auto;padding:2px 4px;vertical-align:middle}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{align-items:center;display:flex;font-size:11px;height:25px;padding:0 6px}.quick-input-message{margin-top:-1px;overflow-wrap:break-word;padding:5px}.quick-input-message>.codicon{margin:0 .2em;vertical-align:text-bottom}.quick-input-message a{color:inherit}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-progress.monaco-progress-container,.quick-input-progress.monaco-progress-container .progress-bit{height:2px}.quick-input-list{line-height:22px}.quick-input-widget.hidden-input .quick-input-list{margin-top:4px;padding-bottom:4px}.quick-input-list .monaco-list{max-height:440px;overflow:hidden;padding-bottom:5px}.quick-input-list .monaco-scrollable-element{padding:0 5px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;display:flex;height:100%;overflow:hidden;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-style:solid;border-top-width:1px}.quick-input-list .monaco-list-row{border-radius:3px}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{display:flex;flex:1;height:100%;overflow:hidden}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-rows{display:flex;flex:1;flex-direction:column;height:100%;margin-left:5px;overflow:hidden;text-overflow:ellipsis}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{align-items:center;display:flex}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label>span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{line-height:normal;opacity:.7;overflow:hidden;text-overflow:ellipsis}.quick-input-list .monaco-highlighted-label .highlight{font-weight:700}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:4px}.quick-input-list .quick-input-list-entry-action-bar{display:flex;flex:0;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:0 2px 2px}.quick-input-list .quick-input-list-entry-action-bar{margin-right:4px;margin-top:1px}.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:none} \ No newline at end of file diff --git a/static/js/00f6278854fa806bec8d.woff b/static/js/00f6278854fa806bec8d.woff deleted file mode 100644 index a450fa7ac..000000000 Binary files a/static/js/00f6278854fa806bec8d.woff and /dev/null differ diff --git a/static/js/0108e89c9003e8c14ea3.woff b/static/js/0108e89c9003e8c14ea3.woff deleted file mode 100644 index 7f292d911..000000000 Binary files a/static/js/0108e89c9003e8c14ea3.woff and /dev/null differ diff --git a/static/js/02271ec5cb9f5b4588ac.woff b/static/js/02271ec5cb9f5b4588ac.woff deleted file mode 100644 index 31b84829b..000000000 Binary files a/static/js/02271ec5cb9f5b4588ac.woff and /dev/null differ diff --git a/static/js/0278a49f9007106a0bf4.woff2 b/static/js/0278a49f9007106a0bf4.woff2 deleted file mode 100644 index 143a941b8..000000000 Binary files a/static/js/0278a49f9007106a0bf4.woff2 and /dev/null differ diff --git a/static/js/073b3402d036714b4370.woff b/static/js/073b3402d036714b4370.woff deleted file mode 100644 index 0e7da821e..000000000 Binary files a/static/js/073b3402d036714b4370.woff and /dev/null differ diff --git a/static/js/082b68b860510f7036f0.woff2 b/static/js/082b68b860510f7036f0.woff2 deleted file mode 100644 index 8217a0775..000000000 Binary files a/static/js/082b68b860510f7036f0.woff2 and /dev/null differ diff --git a/static/js/084aa2381d74c9c49610.woff b/static/js/084aa2381d74c9c49610.woff deleted file mode 100644 index cfbd116b6..000000000 Binary files a/static/js/084aa2381d74c9c49610.woff and /dev/null differ diff --git a/static/js/0c3b8929d377c0e9b2f3.woff b/static/js/0c3b8929d377c0e9b2f3.woff deleted file mode 100644 index f38136ac1..000000000 Binary files a/static/js/0c3b8929d377c0e9b2f3.woff and /dev/null differ diff --git a/static/js/116395f5d16bf9918fd9.woff2 b/static/js/116395f5d16bf9918fd9.woff2 deleted file mode 100644 index aef48986f..000000000 Binary files a/static/js/116395f5d16bf9918fd9.woff2 and /dev/null differ diff --git a/static/js/161.js b/static/js/161.js deleted file mode 100644 index 91e7dc7d6..000000000 --- a/static/js/161.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[161],{7161:(e,t,s)=>{s.d(t,{diagram:()=>N});var o=s(77415),a=s(45625),r=s(74309),i=s(31460),n=s(62335);s(93628),s(17967),s(27856),s(29451),s(69368);const d="rect",c="rectWithTitle",l="statediagram",p=`${l}-state`,b="transition",g=`${b} note-edge`,h=`${l}-note`,u=`${l}-cluster`,y=`${l}-cluster-alt`,f="parent",w="note",x="----",$=`${x}${w}`,m=`${x}${f}`,T="fill:none",S="fill: #333",k="text",D="normal";let A={},v=0;function B(e="",t=0,s="",o=x){return`state-${e}${null!==s&&s.length>0?`${o}${s}`:""}-${t}`}const E=(e,t,s,a,r,n)=>{const l=s.id,b=null==(x=a[l])?"":x.classes?x.classes.join(" "):"";var x;if("root"!==l){let t=d;!0===s.start&&(t="start"),!1===s.start&&(t="end"),s.type!==o.D&&(t=s.type),A[l]||(A[l]={id:l,shape:t,description:i.e.sanitizeText(l,(0,i.c)()),classes:`${b} ${p}`});const a=A[l];s.description&&(Array.isArray(a.description)?(a.shape=c,a.description.push(s.description)):a.description.length>0?(a.shape=c,a.description===l?a.description=[s.description]:a.description=[a.description,s.description]):(a.shape=d,a.description=s.description),a.description=i.e.sanitizeTextOrArray(a.description,(0,i.c)())),1===a.description.length&&a.shape===c&&(a.shape=d),!a.type&&s.doc&&(i.l.info("Setting cluster for ",l,R(s)),a.type="group",a.dir=R(s),a.shape=s.type===o.a?"divider":"roundedWithTitle",a.classes=a.classes+" "+u+" "+(n?y:""));const r={labelStyle:"",shape:a.shape,labelText:a.description,classes:a.classes,style:"",id:l,dir:a.dir,domId:B(l,v),type:a.type,padding:15,centerLabel:!0};if(s.note){const t={labelStyle:"",shape:"note",labelText:s.note.text,classes:h,style:"",id:l+$+"-"+v,domId:B(l,v,w),type:a.type,padding:15},o={labelStyle:"",shape:"noteGroup",labelText:s.note.text,classes:a.classes,style:"",id:l+m,domId:B(l,v,f),type:"group",padding:0};v++;const i=l+m;e.setNode(i,o),e.setNode(t.id,t),e.setNode(l,r),e.setParent(l,i),e.setParent(t.id,i);let n=l,d=t.id;"left of"===s.note.position&&(n=t.id,d=l),e.setEdge(n,d,{arrowhead:"none",arrowType:"",style:T,labelStyle:"",classes:g,arrowheadStyle:S,labelpos:"c",labelType:k,thickness:D})}else e.setNode(l,r)}t&&"root"!==t.id&&(i.l.trace("Setting node ",l," to be child of its parent ",t.id),e.setParent(l,t.id)),s.doc&&(i.l.trace("Adding nodes children "),C(e,s,s.doc,a,r,!n))},C=(e,t,s,a,r,n)=>{i.l.trace("items",s),s.forEach((s=>{switch(s.stmt){case o.b:case o.D:E(e,t,s,a,r,n);break;case o.S:{E(e,t,s.state1,a,r,n),E(e,t,s.state2,a,r,n);const o={id:"edge"+v,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:T,labelStyle:"",label:i.e.sanitizeText(s.description,(0,i.c)()),arrowheadStyle:S,labelpos:"c",labelType:k,thickness:D,classes:b};e.setEdge(s.state1.id,s.state2.id,o,v),v++}}}))},R=(e,t=o.c)=>{let s=t;if(e.doc)for(let t=0;t{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,o.d.clear()}}}}]); \ No newline at end of file diff --git a/static/js/172d3529b26f8cedef6b.woff2 b/static/js/172d3529b26f8cedef6b.woff2 deleted file mode 100644 index 735f6948d..000000000 Binary files a/static/js/172d3529b26f8cedef6b.woff2 and /dev/null differ diff --git a/static/js/187.js b/static/js/187.js deleted file mode 100644 index 528a6db2c..000000000 --- a/static/js/187.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[187],{77187:(t,e,u)=>{u.d(e,{d:()=>st,f:()=>ut,p:()=>n});var s=u(74309),i=u(31460),r=function(){var t=function(t,e,u,s){for(u=u||{},s=t.length;s--;u[t[s]]=e);return u},e=[1,9],u=[1,7],s=[1,6],i=[1,8],r=[1,20,21,22,23,38,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],n=[2,10],c=[1,20],a=[1,21],o=[1,22],l=[1,23],h=[1,30],A=[1,32],d=[1,33],p=[1,34],y=[1,62],E=[1,48],f=[1,52],D=[1,36],k=[1,37],b=[1,38],g=[1,39],_=[1,40],F=[1,56],C=[1,63],B=[1,51],T=[1,53],m=[1,55],S=[1,59],v=[1,60],x=[1,41],L=[1,42],R=[1,43],I=[1,44],N=[1,61],$=[1,50],O=[1,54],P=[1,57],w=[1,58],U=[1,49],V=[1,66],M=[1,71],G=[1,20,21,22,23,38,42,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],Y=[1,75],K=[1,74],W=[1,76],j=[20,21,23,81,82],H=[1,99],Q=[1,104],z=[1,107],X=[1,108],q=[1,101],Z=[1,106],J=[1,109],tt=[1,102],et=[1,114],ut=[1,113],st=[1,103],it=[1,105],rt=[1,110],nt=[1,111],ct=[1,112],at=[1,115],ot=[20,21,22,23,81,82],lt=[20,21,22,23,53,81,82],ht=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,92,96,106,107,110,112,113,123,124,125,126,127,128],At=[20,21,23],dt=[20,21,23,52,66,67,81,82,92,96,106,107,110,112,113,123,124,125,126,127,128],pt=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],yt=[52,66,67,92,96,106,107,110,112,113,123,124,125,126,127,128],Et=[1,150],ft=[1,158],Dt=[1,159],kt=[1,160],bt=[1,161],gt=[1,145],_t=[1,146],Ft=[1,141],Ct=[1,142],Bt=[1,153],Tt=[1,154],mt=[1,155],St=[1,156],vt=[1,157],xt=[1,162],Lt=[1,163],Rt=[1,148],It=[1,151],Nt=[1,147],$t=[1,144],Ot=[20,21,22,23,38,42,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],Pt=[1,166],wt=[20,21,22,23,26,52,66,67,92,106,107,110,112,113,123,124,125,126,127,128],Ut=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,87,88,89,90,91,92,93,96,106,107,110,112,113,114,115,123,124,125,126,127,128],Vt=[12,21,22,24],Mt=[22,107],Gt=[1,251],Yt=[1,246],Kt=[1,247],Wt=[1,255],jt=[1,252],Ht=[1,249],Qt=[1,248],zt=[1,250],Xt=[1,253],qt=[1,254],Zt=[1,256],Jt=[1,274],te=[20,21,23,107],ee=[20,21,22,23,66,67,87,103,106,107,110,111,112,113,114],ue={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,MD_STR:85,keywords:86,STYLE:87,LINKSTYLE:88,CLASSDEF:89,CLASS:90,CLICK:91,DOWN:92,UP:93,textNoTags:94,textNoTagsToken:95,DEFAULT:96,stylesOpt:97,alphaNum:98,CALLBACKNAME:99,CALLBACKARGS:100,HREF:101,LINK_TARGET:102,HEX:103,numList:104,INTERPOLATE:105,NUM:106,COMMA:107,style:108,styleComponent:109,MINUS:110,UNIT:111,BRKT:112,DOT:113,PCT:114,TAGSTART:115,alphaNumToken:116,idStringToken:117,alphaNumStatement:118,direction_tb:119,direction_bt:120,direction_rl:121,direction_lr:122,PUNCTUATION:123,UNICODE_TEXT:124,PLUS:125,EQUALS:126,MULT:127,UNDERSCORE:128,graphCodeTokens:129,ARROW_CROSS:130,ARROW_POINT:131,ARROW_CIRCLE:132,ARROW_OPEN:133,QUOTE:134,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND",71:"DIAMOND_START",72:"DIAMOND_STOP",73:"TAGEND",74:"TRAPSTART",75:"TRAPEND",76:"INVTRAPSTART",77:"INVTRAPEND",80:"TESTSTR",81:"START_LINK",82:"LINK",84:"STR",85:"MD_STR",87:"STYLE",88:"LINKSTYLE",89:"CLASSDEF",90:"CLASS",91:"CLICK",92:"DOWN",93:"UP",96:"DEFAULT",99:"CALLBACKNAME",100:"CALLBACKARGS",101:"HREF",102:"LINK_TARGET",103:"HEX",105:"INTERPOLATE",106:"NUM",107:"COMMA",110:"MINUS",111:"UNIT",112:"BRKT",113:"DOT",114:"PCT",115:"TAGSTART",119:"direction_tb",120:"direction_bt",121:"direction_rl",122:"direction_lr",123:"PUNCTUATION",124:"UNICODE_TEXT",125:"PLUS",126:"EQUALS",127:"MULT",128:"UNDERSCORE",130:"ARROW_CROSS",131:"ARROW_POINT",132:"ARROW_CIRCLE",133:"ARROW_OPEN",134:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[50,1],[50,5],[50,3],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,8],[51,4],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,4],[51,4],[51,1],[49,2],[49,3],[49,3],[49,1],[49,3],[78,1],[79,3],[39,1],[39,2],[39,1],[39,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[94,1],[94,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[104,1],[104,3],[97,1],[97,3],[108,1],[108,2],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[95,1],[95,1],[95,1],[95,1],[54,1],[54,2],[98,1],[98,2],[118,1],[118,1],[118,1],[118,1],[43,1],[43,1],[43,1],[43,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1],[129,1]],performAction:function(t,e,u,s,i,r,n){var c=r.length-1;switch(i){case 5:s.parseDirective("%%{","open_directive");break;case 6:s.parseDirective(r[c],"type_directive");break;case 7:r[c]=r[c].trim().replace(/'/g,'"'),s.parseDirective(r[c],"arg_directive");break;case 8:s.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:(!Array.isArray(r[c])||r[c].length>0)&&r[c-1].push(r[c]),this.$=r[c-1];break;case 12:case 97:case 153:case 155:case 156:case 78:case 151:this.$=r[c];break;case 19:s.setDirection("TB"),this.$="TB";break;case 20:s.setDirection(r[c-1]),this.$=r[c-1];break;case 35:this.$=r[c-1].nodes;break;case 41:this.$=s.addSubGraph(r[c-6],r[c-1],r[c-4]);break;case 42:this.$=s.addSubGraph(r[c-3],r[c-1],r[c-3]);break;case 43:this.$=s.addSubGraph(void 0,r[c-1],void 0);break;case 45:this.$=r[c].trim(),s.setAccTitle(this.$);break;case 46:case 47:this.$=r[c].trim(),s.setAccDescription(this.$);break;case 51:s.addLink(r[c-2].stmt,r[c],r[c-1]),this.$={stmt:r[c],nodes:r[c].concat(r[c-2].nodes)};break;case 52:s.addLink(r[c-3].stmt,r[c-1],r[c-2]),this.$={stmt:r[c-1],nodes:r[c-1].concat(r[c-3].nodes)};break;case 53:this.$={stmt:r[c-1],nodes:r[c-1]};break;case 54:this.$={stmt:r[c],nodes:r[c]};break;case 55:case 124:case 126:this.$=[r[c]];break;case 56:this.$=r[c-4].concat(r[c]);break;case 57:this.$=[r[c-2]],s.setClass(r[c-2],r[c]);break;case 58:this.$=r[c-3],s.addVertex(r[c-3],r[c-1],"square");break;case 59:this.$=r[c-3],s.addVertex(r[c-3],r[c-1],"doublecircle");break;case 60:this.$=r[c-5],s.addVertex(r[c-5],r[c-2],"circle");break;case 61:this.$=r[c-3],s.addVertex(r[c-3],r[c-1],"ellipse");break;case 62:this.$=r[c-3],s.addVertex(r[c-3],r[c-1],"stadium");break;case 63:this.$=r[c-3],s.addVertex(r[c-3],r[c-1],"subroutine");break;case 64:this.$=r[c-7],s.addVertex(r[c-7],r[c-1],"rect",void 0,void 0,void 0,Object.fromEntries([[r[c-5],r[c-3]]]));break;case 65:this.$=r[c-3],s.addVertex(r[c-3],r[c-1],"cylinder");break;case 66:this.$=r[c-3],s.addVertex(r[c-3],r[c-1],"round");break;case 67:this.$=r[c-3],s.addVertex(r[c-3],r[c-1],"diamond");break;case 68:this.$=r[c-5],s.addVertex(r[c-5],r[c-2],"hexagon");break;case 69:this.$=r[c-3],s.addVertex(r[c-3],r[c-1],"odd");break;case 70:this.$=r[c-3],s.addVertex(r[c-3],r[c-1],"trapezoid");break;case 71:this.$=r[c-3],s.addVertex(r[c-3],r[c-1],"inv_trapezoid");break;case 72:this.$=r[c-3],s.addVertex(r[c-3],r[c-1],"lean_right");break;case 73:this.$=r[c-3],s.addVertex(r[c-3],r[c-1],"lean_left");break;case 74:this.$=r[c],s.addVertex(r[c]);break;case 75:r[c-1].text=r[c],this.$=r[c-1];break;case 76:case 77:r[c-2].text=r[c-1],this.$=r[c-2];break;case 79:var a=s.destructLink(r[c],r[c-2]);this.$={type:a.type,stroke:a.stroke,length:a.length,text:r[c-1]};break;case 80:a=s.destructLink(r[c]),this.$={type:a.type,stroke:a.stroke,length:a.length};break;case 81:this.$=r[c-1];break;case 82:case 84:this.$={text:r[c],type:"text"};break;case 83:this.$={text:r[c-1].text+""+r[c],type:r[c-1].type};break;case 85:this.$={text:r[c],type:"markdown"};break;case 98:case 154:case 152:this.$=r[c-1]+""+r[c];break;case 99:case 100:this.$=r[c-4],s.addClass(r[c-2],r[c]);break;case 101:this.$=r[c-4],s.setClass(r[c-2],r[c]);break;case 102:case 110:this.$=r[c-1],s.setClickEvent(r[c-1],r[c]);break;case 103:case 111:this.$=r[c-3],s.setClickEvent(r[c-3],r[c-2]),s.setTooltip(r[c-3],r[c]);break;case 104:this.$=r[c-2],s.setClickEvent(r[c-2],r[c-1],r[c]);break;case 105:this.$=r[c-4],s.setClickEvent(r[c-4],r[c-3],r[c-2]),s.setTooltip(r[c-4],r[c]);break;case 106:case 112:this.$=r[c-1],s.setLink(r[c-1],r[c]);break;case 107:case 113:this.$=r[c-3],s.setLink(r[c-3],r[c-2]),s.setTooltip(r[c-3],r[c]);break;case 108:case 114:this.$=r[c-3],s.setLink(r[c-3],r[c-2],r[c]);break;case 109:case 115:this.$=r[c-5],s.setLink(r[c-5],r[c-4],r[c]),s.setTooltip(r[c-5],r[c-2]);break;case 116:this.$=r[c-4],s.addVertex(r[c-2],void 0,void 0,r[c]);break;case 117:case 119:this.$=r[c-4],s.updateLink(r[c-2],r[c]);break;case 118:this.$=r[c-4],s.updateLink([r[c-2]],r[c]);break;case 120:this.$=r[c-8],s.updateLinkInterpolate([r[c-6]],r[c-2]),s.updateLink([r[c-6]],r[c]);break;case 121:this.$=r[c-8],s.updateLinkInterpolate(r[c-6],r[c-2]),s.updateLink(r[c-6],r[c]);break;case 122:this.$=r[c-6],s.updateLinkInterpolate([r[c-4]],r[c]);break;case 123:this.$=r[c-6],s.updateLinkInterpolate(r[c-4],r[c]);break;case 125:case 127:r[c-2].push(r[c]),this.$=r[c-2];break;case 129:this.$=r[c-1]+r[c];break;case 157:this.$="v";break;case 158:this.$="-";break;case 159:this.$={stmt:"dir",value:"TB"};break;case 160:this.$={stmt:"dir",value:"BT"};break;case 161:this.$={stmt:"dir",value:"RL"};break;case 162:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:e,16:4,21:u,22:s,24:i},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:e,16:4,21:u,22:s,24:i},t(r,n,{17:11}),{7:12,13:[1,13]},{16:14,21:u,22:s,24:i},{16:15,21:u,22:s,24:i},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:c,21:a,22:o,23:l,32:24,33:25,34:26,35:27,36:28,37:29,38:h,43:31,44:A,46:d,48:p,50:35,51:45,52:y,54:46,66:E,67:f,87:D,88:k,89:b,90:g,91:_,92:F,96:C,106:B,107:T,110:m,112:S,113:v,117:47,119:x,120:L,121:R,122:I,123:N,124:$,125:O,126:P,127:w,128:U},{8:64,10:[1,65],15:V},t([10,15],[2,6]),t(r,[2,17]),t(r,[2,18]),t(r,[2,19]),{20:[1,68],21:[1,69],22:M,27:67,30:70},t(G,[2,11]),t(G,[2,12]),t(G,[2,13]),t(G,[2,14]),t(G,[2,15]),t(G,[2,16]),{9:72,20:Y,21:K,23:W,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:Y,21:K,23:W},{9:81,20:Y,21:K,23:W},{9:82,20:Y,21:K,23:W},{9:83,20:Y,21:K,23:W},{9:84,20:Y,21:K,23:W},{9:86,20:Y,21:K,22:[1,85],23:W},t(G,[2,44]),{45:[1,87]},{47:[1,88]},t(G,[2,47]),t(j,[2,54],{30:89,22:M}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:H,52:Q,66:z,67:X,84:[1,97],92:q,98:96,99:[1,94],101:[1,95],106:Z,107:J,110:tt,112:et,113:ut,116:100,118:98,123:st,124:it,125:rt,126:nt,127:ct,128:at},t(G,[2,159]),t(G,[2,160]),t(G,[2,161]),t(G,[2,162]),t(ot,[2,55],{53:[1,116]}),t(lt,[2,74],{117:129,40:[1,117],52:y,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:E,67:f,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],92:F,96:C,106:B,107:T,110:m,112:S,113:v,123:N,124:$,125:O,126:P,127:w,128:U}),t(ht,[2,151]),t(ht,[2,176]),t(ht,[2,177]),t(ht,[2,178]),t(ht,[2,179]),t(ht,[2,180]),t(ht,[2,181]),t(ht,[2,182]),t(ht,[2,183]),t(ht,[2,184]),t(ht,[2,185]),t(ht,[2,186]),t(ht,[2,187]),t(ht,[2,188]),t(ht,[2,189]),t(ht,[2,190]),t(ht,[2,191]),{9:130,20:Y,21:K,23:W},{11:131,14:[1,132]},t(At,[2,8]),t(r,[2,20]),t(r,[2,26]),t(r,[2,27]),{21:[1,133]},t(dt,[2,34],{30:134,22:M}),t(G,[2,35]),{50:135,51:45,52:y,54:46,66:E,67:f,92:F,96:C,106:B,107:T,110:m,112:S,113:v,117:47,123:N,124:$,125:O,126:P,127:w,128:U},t(pt,[2,48]),t(pt,[2,49]),t(pt,[2,50]),t(yt,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:Et,24:ft,26:Dt,38:kt,39:139,42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:140,84:Ft,85:Ct,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},t([52,66,67,68,80,92,96,106,107,110,112,113,123,124,125,126,127,128],[2,80]),t(G,[2,36]),t(G,[2,37]),t(G,[2,38]),t(G,[2,39]),t(G,[2,40]),{22:Et,24:ft,26:Dt,38:kt,39:164,42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:140,84:Ft,85:Ct,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},t(Ot,n,{17:165}),t(G,[2,45]),t(G,[2,46]),t(j,[2,53],{52:Pt}),{26:H,52:Q,66:z,67:X,92:q,98:167,103:[1,168],106:Z,107:J,110:tt,112:et,113:ut,116:100,118:98,123:st,124:it,125:rt,126:nt,127:ct,128:at},{96:[1,169],104:170,106:[1,171]},{26:H,52:Q,66:z,67:X,92:q,96:[1,172],98:173,106:Z,107:J,110:tt,112:et,113:ut,116:100,118:98,123:st,124:it,125:rt,126:nt,127:ct,128:at},{26:H,52:Q,66:z,67:X,92:q,98:174,106:Z,107:J,110:tt,112:et,113:ut,116:100,118:98,123:st,124:it,125:rt,126:nt,127:ct,128:at},t(At,[2,102],{22:[1,175],100:[1,176]}),t(At,[2,106],{22:[1,177]}),t(At,[2,110],{116:100,118:179,22:[1,178],26:H,52:Q,66:z,67:X,92:q,106:Z,107:J,110:tt,112:et,113:ut,123:st,124:it,125:rt,126:nt,127:ct,128:at}),t(At,[2,112],{22:[1,180]}),t(wt,[2,153]),t(wt,[2,155]),t(wt,[2,156]),t(wt,[2,157]),t(wt,[2,158]),t(Ut,[2,163]),t(Ut,[2,164]),t(Ut,[2,165]),t(Ut,[2,166]),t(Ut,[2,167]),t(Ut,[2,168]),t(Ut,[2,169]),t(Ut,[2,170]),t(Ut,[2,171]),t(Ut,[2,172]),t(Ut,[2,173]),t(Ut,[2,174]),t(Ut,[2,175]),{52:y,54:181,66:E,67:f,92:F,96:C,106:B,107:T,110:m,112:S,113:v,117:47,123:N,124:$,125:O,126:P,127:w,128:U},{22:Et,24:ft,26:Dt,38:kt,39:182,42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:140,84:Ft,85:Ct,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,39:183,42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:140,84:Ft,85:Ct,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,39:185,42:bt,52:Q,57:[1,184],66:z,67:X,73:gt,81:_t,83:140,84:Ft,85:Ct,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,39:186,42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:140,84:Ft,85:Ct,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,39:187,42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:140,84:Ft,85:Ct,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,39:188,42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:140,84:Ft,85:Ct,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{66:[1,189]},{22:Et,24:ft,26:Dt,38:kt,39:190,42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:140,84:Ft,85:Ct,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,39:191,42:bt,52:Q,66:z,67:X,71:[1,192],73:gt,81:_t,83:140,84:Ft,85:Ct,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,39:193,42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:140,84:Ft,85:Ct,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,39:194,42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:140,84:Ft,85:Ct,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,39:195,42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:140,84:Ft,85:Ct,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},t(ht,[2,152]),t(Vt,[2,3]),{8:196,15:V},{15:[2,7]},t(r,[2,28]),t(dt,[2,33]),t(j,[2,51],{30:197,22:M}),t(yt,[2,75],{22:[1,198]}),{22:[1,199]},{22:Et,24:ft,26:Dt,38:kt,39:200,42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:140,84:Ft,85:Ct,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,42:bt,52:Q,66:z,67:X,73:gt,81:_t,82:[1,201],83:202,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},t(Ut,[2,82]),t(Ut,[2,84]),t(Ut,[2,85]),t(Ut,[2,141]),t(Ut,[2,142]),t(Ut,[2,143]),t(Ut,[2,144]),t(Ut,[2,145]),t(Ut,[2,146]),t(Ut,[2,147]),t(Ut,[2,148]),t(Ut,[2,149]),t(Ut,[2,150]),t(Ut,[2,86]),t(Ut,[2,87]),t(Ut,[2,88]),t(Ut,[2,89]),t(Ut,[2,90]),t(Ut,[2,91]),t(Ut,[2,92]),t(Ut,[2,93]),t(Ut,[2,94]),t(Ut,[2,95]),t(Ut,[2,96]),{9:204,20:Y,21:K,22:Et,23:W,24:ft,26:Dt,38:kt,40:[1,203],42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:202,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{18:18,19:19,20:c,21:a,22:o,23:l,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,205],43:31,44:A,46:d,48:p,50:35,51:45,52:y,54:46,66:E,67:f,87:D,88:k,89:b,90:g,91:_,92:F,96:C,106:B,107:T,110:m,112:S,113:v,117:47,119:x,120:L,121:R,122:I,123:N,124:$,125:O,126:P,127:w,128:U},{22:M,30:206},{22:[1,207],26:H,52:Q,66:z,67:X,92:q,106:Z,107:J,110:tt,112:et,113:ut,116:100,118:179,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:[1,208]},{22:[1,209]},{22:[1,210],107:[1,211]},t(Mt,[2,124]),{22:[1,212]},{22:[1,213],26:H,52:Q,66:z,67:X,92:q,106:Z,107:J,110:tt,112:et,113:ut,116:100,118:179,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:[1,214],26:H,52:Q,66:z,67:X,92:q,106:Z,107:J,110:tt,112:et,113:ut,116:100,118:179,123:st,124:it,125:rt,126:nt,127:ct,128:at},{84:[1,215]},t(At,[2,104],{22:[1,216]}),{84:[1,217],102:[1,218]},{84:[1,219]},t(wt,[2,154]),{84:[1,220],102:[1,221]},t(ot,[2,57],{117:129,52:y,66:E,67:f,92:F,96:C,106:B,107:T,110:m,112:S,113:v,123:N,124:$,125:O,126:P,127:w,128:U}),{22:Et,24:ft,26:Dt,38:kt,41:[1,222],42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:202,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,42:bt,52:Q,56:[1,223],66:z,67:X,73:gt,81:_t,83:202,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,39:224,42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:140,84:Ft,85:Ct,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,42:bt,52:Q,58:[1,225],66:z,67:X,73:gt,81:_t,83:202,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,42:bt,52:Q,60:[1,226],66:z,67:X,73:gt,81:_t,83:202,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,42:bt,52:Q,62:[1,227],66:z,67:X,73:gt,81:_t,83:202,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,42:bt,52:Q,64:[1,228],66:z,67:X,73:gt,81:_t,83:202,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{67:[1,229]},{22:Et,24:ft,26:Dt,38:kt,42:bt,52:Q,66:z,67:X,70:[1,230],73:gt,81:_t,83:202,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,42:bt,52:Q,66:z,67:X,72:[1,231],73:gt,81:_t,83:202,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,39:232,42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:140,84:Ft,85:Ct,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,41:[1,233],42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:202,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,42:bt,52:Q,66:z,67:X,73:gt,75:[1,234],77:[1,235],81:_t,83:202,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{22:Et,24:ft,26:Dt,38:kt,42:bt,52:Q,66:z,67:X,73:gt,75:[1,237],77:[1,236],81:_t,83:202,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{9:238,20:Y,21:K,23:W},t(j,[2,52],{52:Pt}),t(yt,[2,77]),t(yt,[2,76]),{22:Et,24:ft,26:Dt,38:kt,42:bt,52:Q,66:z,67:X,68:[1,239],73:gt,81:_t,83:202,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},t(yt,[2,79]),t(Ut,[2,83]),{22:Et,24:ft,26:Dt,38:kt,39:240,42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:140,84:Ft,85:Ct,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},t(Ot,n,{17:241}),t(G,[2,43]),{51:242,52:y,54:46,66:E,67:f,92:F,96:C,106:B,107:T,110:m,112:S,113:v,117:47,123:N,124:$,125:O,126:P,127:w,128:U},{22:Gt,66:Yt,67:Kt,87:Wt,97:243,103:jt,106:Ht,108:244,109:245,110:Qt,111:zt,112:Xt,113:qt,114:Zt},{22:Gt,66:Yt,67:Kt,87:Wt,97:257,103:jt,106:Ht,108:244,109:245,110:Qt,111:zt,112:Xt,113:qt,114:Zt},{22:Gt,66:Yt,67:Kt,87:Wt,97:258,103:jt,105:[1,259],106:Ht,108:244,109:245,110:Qt,111:zt,112:Xt,113:qt,114:Zt},{22:Gt,66:Yt,67:Kt,87:Wt,97:260,103:jt,105:[1,261],106:Ht,108:244,109:245,110:Qt,111:zt,112:Xt,113:qt,114:Zt},{106:[1,262]},{22:Gt,66:Yt,67:Kt,87:Wt,97:263,103:jt,106:Ht,108:244,109:245,110:Qt,111:zt,112:Xt,113:qt,114:Zt},{22:Gt,66:Yt,67:Kt,87:Wt,97:264,103:jt,106:Ht,108:244,109:245,110:Qt,111:zt,112:Xt,113:qt,114:Zt},{26:H,52:Q,66:z,67:X,92:q,98:265,106:Z,107:J,110:tt,112:et,113:ut,116:100,118:98,123:st,124:it,125:rt,126:nt,127:ct,128:at},t(At,[2,103]),{84:[1,266]},t(At,[2,107],{22:[1,267]}),t(At,[2,108]),t(At,[2,111]),t(At,[2,113],{22:[1,268]}),t(At,[2,114]),t(lt,[2,58]),t(lt,[2,59]),{22:Et,24:ft,26:Dt,38:kt,42:bt,52:Q,58:[1,269],66:z,67:X,73:gt,81:_t,83:202,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},t(lt,[2,66]),t(lt,[2,61]),t(lt,[2,62]),t(lt,[2,63]),{66:[1,270]},t(lt,[2,65]),t(lt,[2,67]),{22:Et,24:ft,26:Dt,38:kt,42:bt,52:Q,66:z,67:X,72:[1,271],73:gt,81:_t,83:202,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},t(lt,[2,69]),t(lt,[2,70]),t(lt,[2,72]),t(lt,[2,71]),t(lt,[2,73]),t(Vt,[2,4]),t([22,52,66,67,92,96,106,107,110,112,113,123,124,125,126,127,128],[2,81]),{22:Et,24:ft,26:Dt,38:kt,41:[1,272],42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:202,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{18:18,19:19,20:c,21:a,22:o,23:l,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,273],43:31,44:A,46:d,48:p,50:35,51:45,52:y,54:46,66:E,67:f,87:D,88:k,89:b,90:g,91:_,92:F,96:C,106:B,107:T,110:m,112:S,113:v,117:47,119:x,120:L,121:R,122:I,123:N,124:$,125:O,126:P,127:w,128:U},t(ot,[2,56]),t(At,[2,116],{107:Jt}),t(te,[2,126],{109:275,22:Gt,66:Yt,67:Kt,87:Wt,103:jt,106:Ht,110:Qt,111:zt,112:Xt,113:qt,114:Zt}),t(ee,[2,128]),t(ee,[2,130]),t(ee,[2,131]),t(ee,[2,132]),t(ee,[2,133]),t(ee,[2,134]),t(ee,[2,135]),t(ee,[2,136]),t(ee,[2,137]),t(ee,[2,138]),t(ee,[2,139]),t(ee,[2,140]),t(At,[2,117],{107:Jt}),t(At,[2,118],{107:Jt}),{22:[1,276]},t(At,[2,119],{107:Jt}),{22:[1,277]},t(Mt,[2,125]),t(At,[2,99],{107:Jt}),t(At,[2,100],{107:Jt}),t(At,[2,101],{116:100,118:179,26:H,52:Q,66:z,67:X,92:q,106:Z,107:J,110:tt,112:et,113:ut,123:st,124:it,125:rt,126:nt,127:ct,128:at}),t(At,[2,105]),{102:[1,278]},{102:[1,279]},{58:[1,280]},{68:[1,281]},{72:[1,282]},{9:283,20:Y,21:K,23:W},t(G,[2,42]),{22:Gt,66:Yt,67:Kt,87:Wt,103:jt,106:Ht,108:284,109:245,110:Qt,111:zt,112:Xt,113:qt,114:Zt},t(ee,[2,129]),{26:H,52:Q,66:z,67:X,92:q,98:285,106:Z,107:J,110:tt,112:et,113:ut,116:100,118:98,123:st,124:it,125:rt,126:nt,127:ct,128:at},{26:H,52:Q,66:z,67:X,92:q,98:286,106:Z,107:J,110:tt,112:et,113:ut,116:100,118:98,123:st,124:it,125:rt,126:nt,127:ct,128:at},t(At,[2,109]),t(At,[2,115]),t(lt,[2,60]),{22:Et,24:ft,26:Dt,38:kt,39:287,42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:140,84:Ft,85:Ct,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},t(lt,[2,68]),t(Ot,n,{17:288}),t(te,[2,127],{109:275,22:Gt,66:Yt,67:Kt,87:Wt,103:jt,106:Ht,110:Qt,111:zt,112:Xt,113:qt,114:Zt}),t(At,[2,122],{116:100,118:179,22:[1,289],26:H,52:Q,66:z,67:X,92:q,106:Z,107:J,110:tt,112:et,113:ut,123:st,124:it,125:rt,126:nt,127:ct,128:at}),t(At,[2,123],{116:100,118:179,22:[1,290],26:H,52:Q,66:z,67:X,92:q,106:Z,107:J,110:tt,112:et,113:ut,123:st,124:it,125:rt,126:nt,127:ct,128:at}),{22:Et,24:ft,26:Dt,38:kt,41:[1,291],42:bt,52:Q,66:z,67:X,73:gt,81:_t,83:202,86:152,87:Bt,88:Tt,89:mt,90:St,91:vt,92:xt,93:Lt,95:143,96:Rt,106:Z,107:J,110:It,112:et,113:ut,114:Nt,115:$t,116:149,123:st,124:it,125:rt,126:nt,127:ct,128:at},{18:18,19:19,20:c,21:a,22:o,23:l,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,292],43:31,44:A,46:d,48:p,50:35,51:45,52:y,54:46,66:E,67:f,87:D,88:k,89:b,90:g,91:_,92:F,96:C,106:B,107:T,110:m,112:S,113:v,117:47,119:x,120:L,121:R,122:I,123:N,124:$,125:O,126:P,127:w,128:U},{22:Gt,66:Yt,67:Kt,87:Wt,97:293,103:jt,106:Ht,108:244,109:245,110:Qt,111:zt,112:Xt,113:qt,114:Zt},{22:Gt,66:Yt,67:Kt,87:Wt,97:294,103:jt,106:Ht,108:244,109:245,110:Qt,111:zt,112:Xt,113:qt,114:Zt},t(lt,[2,64]),t(G,[2,41]),t(At,[2,120],{107:Jt}),t(At,[2,121],{107:Jt})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(t,e){if(!e.recoverable){var u=new Error(t);throw u.hash=e,u}this.trace(t)},parse:function(t){var e=[0],u=[],s=[null],i=[],r=this.table,n="",c=0,a=0,o=i.slice.call(arguments,1),l=Object.create(this.lexer),h={yy:{}};for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy,A)&&(h.yy[A]=this.yy[A]);l.setInput(t,h.yy),h.yy.lexer=l,h.yy.parser=this,void 0===l.yylloc&&(l.yylloc={});var d=l.yylloc;i.push(d);var p=l.options&&l.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,E,f,D,k,b,g,_,F,C={};;){if(E=e[e.length-1],this.defaultActions[E]?f=this.defaultActions[E]:(null==y&&(F=void 0,"number"!=typeof(F=u.pop()||l.lex()||1)&&(F instanceof Array&&(F=(u=F).pop()),F=this.symbols_[F]||F),y=F),f=r[E]&&r[E][y]),void 0===f||!f.length||!f[0]){var B;for(k in _=[],r[E])this.terminals_[k]&&k>2&&_.push("'"+this.terminals_[k]+"'");B=l.showPosition?"Parse error on line "+(c+1)+":\n"+l.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==y?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(B,{text:l.match,token:this.terminals_[y]||y,line:l.yylineno,loc:d,expected:_})}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+y);switch(f[0]){case 1:e.push(y),s.push(l.yytext),i.push(l.yylloc),e.push(f[1]),y=null,a=l.yyleng,n=l.yytext,c=l.yylineno,d=l.yylloc;break;case 2:if(b=this.productions_[f[1]][1],C.$=s[s.length-b],C._$={first_line:i[i.length-(b||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(b||1)].first_column,last_column:i[i.length-1].last_column},p&&(C._$.range=[i[i.length-(b||1)].range[0],i[i.length-1].range[1]]),void 0!==(D=this.performAction.apply(C,[n,a,c,h.yy,f[1],s,i].concat(o))))return D;b&&(e=e.slice(0,-1*b*2),s=s.slice(0,-1*b),i=i.slice(0,-1*b)),e.push(this.productions_[f[1]][0]),s.push(C.$),i.push(C._$),g=r[e[e.length-2]][e[e.length-1]],e.push(g);break;case 3:return!0}}return!0}},se={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,u=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.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:u?(u.length===s.length?this.yylloc.first_column:0)+s[s.length-u.length].length-u[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var u,s,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],u=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var r in i)this[r]=i[r];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,u,s;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),r=0;re[0].length)){if(e=u,s=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(u,i[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,u,s){switch(u){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:return this.begin("acc_title"),44;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),46;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 14:case 16:case 25:case 28:case 31:case 34:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:this.begin("md_string");break;case 13:return"MD_STR";case 15:this.begin("string");break;case 17:return"STR";case 18:return 87;case 19:return 96;case 20:return 88;case 21:return 105;case 22:return 89;case 23:return 90;case 24:this.begin("href");break;case 26:return 101;case 27:this.begin("callbackname");break;case 29:this.popState(),this.begin("callbackargs");break;case 30:return 99;case 32:return 100;case 33:this.begin("click");break;case 35:return 91;case 36:case 37:case 38:return t.lex.firstGraph()&&this.begin("dir"),24;case 39:return 38;case 40:return 42;case 41:case 42:case 43:case 44:return 102;case 45:return this.popState(),25;case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:return this.popState(),26;case 56:return 119;case 57:return 120;case 58:return 121;case 59:return 122;case 60:return 106;case 61:return 112;case 62:return 53;case 63:return 67;case 64:return 52;case 65:return 20;case 66:return 107;case 67:return 127;case 68:case 69:case 70:case 71:return 82;case 72:case 73:case 74:return 81;case 75:return 59;case 76:return 60;case 77:return 61;case 78:return 62;case 79:return 63;case 80:return 64;case 81:return 65;case 82:return 69;case 83:return 70;case 84:return 55;case 85:return 56;case 86:return 110;case 87:return 113;case 88:return 128;case 89:return 125;case 90:return 114;case 91:case 92:return 126;case 93:return 115;case 94:return 73;case 95:return 93;case 96:return"SEP";case 97:return 92;case 98:return 66;case 99:return 75;case 100:return 74;case 101:return 77;case 102:return 76;case 103:return 123;case 104:return 124;case 105:return 68;case 106:return 57;case 107:return 58;case 108:return 40;case 109:return 41;case 110:return 71;case 111:return 72;case 112:return 134;case 113:return 21;case 114:return 22;case 115:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[31,32],inclusive:!1},callbackname:{rules:[28,29,30],inclusive:!1},href:{rules:[25,26],inclusive:!1},click:{rules:[34,35],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[45,46,47,48,49,50,51,52,53,54,55],inclusive:!1},acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},md_string:{rules:[13,14],inclusive:!1},string:{rules:[16,17],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,15,18,19,20,21,22,23,24,27,33,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115],inclusive:!0}}};function ie(){this.yy={}}return ue.lexer=se,ie.prototype=ue,ue.Parser=ie,new ie}();r.parser=r;const n=r;let c,a,o=0,l=(0,i.c)(),h={},A=[],d={},p=[],y={},E={},f=0,D=!0,k=[];const b=t=>i.e.sanitizeText(t,l),g=function(t,e,u){i.m.parseDirective(this,t,e,u)},_=function(t){const e=Object.keys(h);for(const u of e)if(h[u].id===t)return h[u].domId;return t},F=function(t,e,u,s,r,n,c={}){let a,A=t;void 0!==A&&0!==A.trim().length&&(void 0===h[A]&&(h[A]={id:A,labelType:"text",domId:"flowchart-"+A+"-"+o,styles:[],classes:[]}),o++,void 0!==e?(l=(0,i.c)(),a=b(e.text.trim()),h[A].labelType=e.type,'"'===a[0]&&'"'===a[a.length-1]&&(a=a.substring(1,a.length-1)),h[A].text=a):void 0===h[A].text&&(h[A].text=t),void 0!==u&&(h[A].type=u),null!=s&&s.forEach((function(t){h[A].styles.push(t)})),null!=r&&r.forEach((function(t){h[A].classes.push(t)})),void 0!==n&&(h[A].dir=n),void 0===h[A].props?h[A].props=c:void 0!==c&&Object.assign(h[A].props,c))},C=function(t,e,u){const s={start:t,end:e,type:void 0,text:"",labelType:"text"};i.l.info("abc78 Got edge...",s);const r=u.text;void 0!==r&&(s.text=b(r.text.trim()),'"'===s.text[0]&&'"'===s.text[s.text.length-1]&&(s.text=s.text.substring(1,s.text.length-1)),s.labelType=r.type),void 0!==u&&(s.type=u.type,s.stroke=u.stroke,s.length=u.length),A.push(s)},B=function(t,e,u){let s,r;for(i.l.info("addLink (abc78)",t,e,u),s=0;s/)&&(c="LR"),c.match(/.*v/)&&(c="TB"),"TD"===c&&(c="TB")},x=function(t,e){t.split(",").forEach((function(t){let u=t;void 0!==h[u]&&h[u].classes.push(e),void 0!==y[u]&&y[u].classes.push(e)}))},L=function(t,e,u){t.split(",").forEach((function(t){void 0!==h[t]&&(h[t].link=i.u.formatUrl(e,l),h[t].linkTarget=u)})),x(t,"clickable")},R=function(t){return E[t]},I=function(t,e,u){t.split(",").forEach((function(t){!function(t,e,u){let s=_(t);if("loose"!==(0,i.c)().securityLevel)return;if(void 0===e)return;let r=[];if("string"==typeof u){r=u.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t")),t.classed("hover",!0)})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),(0,s.Ys)(this).classed("hover",!1)}))};k.push(U);const V=function(t="gen-1"){h={},d={},A=[],k=[U],p=[],y={},f=0,E=[],D=!0,a=t,(0,i.v)()},M=t=>{a=t||"gen-2"},G=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},Y=function(t,e,u){let s=t.text.trim(),r=u.text;t===u&&u.text.match(/\s/)&&(s=void 0);let n=[];const{nodeList:c,dir:o}=function(t){const e={boolean:{},number:{},string:{}},u=[];let s;return{nodeList:t.filter((function(t){const i=typeof t;return t.stmt&&"dir"===t.stmt?(s=t.value,!1):""!==t.trim()&&(i in e?!e[i].hasOwnProperty(t)&&(e[i][t]=!0):!u.includes(t)&&u.push(t))})),dir:s}}(n.concat.apply(n,e));if(n=c,"gen-1"===a)for(let t=0;t2e3)return;if(j[W]=e,p[e].id===t)return{result:!0,count:0};let s=0,i=1;for(;s=0){const u=H(t,e);if(u.result)return{result:!0,count:i+u.count};i+=u.count}s+=1}return{result:!1,count:i}},Q=function(t){return j[t]},z=function(){W=-1,p.length>0&&H("none",p.length-1)},X=function(){return p},q=()=>!!D&&(D=!1,!0),Z=(t,e)=>{const u=(t=>{const e=t.trim();let u=e.slice(0,-1),s="arrow_open";switch(e.slice(-1)){case"x":s="arrow_cross","x"===e[0]&&(s="double_"+s,u=u.slice(1));break;case">":s="arrow_point","<"===e[0]&&(s="double_"+s,u=u.slice(1));break;case"o":s="arrow_circle","o"===e[0]&&(s="double_"+s,u=u.slice(1))}let i="normal",r=u.length-1;"="===u[0]&&(i="thick"),"~"===u[0]&&(i="invisible");let n=((t,e)=>{const u=e.length;let s=0;for(let t=0;t{let e=t.trim(),u="arrow_open";switch(e[0]){case"<":u="arrow_point",e=e.slice(1);break;case"x":u="arrow_cross",e=e.slice(1);break;case"o":u="arrow_circle",e=e.slice(1)}let s="normal";return e.includes("=")&&(s="thick"),e.includes(".")&&(s="dotted"),{type:u,stroke:s}})(e),s.stroke!==u.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===s.type)s.type=u.type;else{if(s.type!==u.type)return{type:"INVALID",stroke:"INVALID"};s.type="double_"+s.type}return"double_arrow"===s.type&&(s.type="double_arrow_point"),s.length=u.length,s}return u},J=(t,e)=>{let u=!1;return t.forEach((t=>{t.nodes.indexOf(e)>=0&&(u=!0)})),u},tt=(t,e)=>{const u=[];return t.nodes.forEach(((s,i)=>{J(e,s)||u.push(t.nodes[i])})),{nodes:u}},et={firstGraph:q},ut={parseDirective:g,defaultConfig:()=>i.G.flowchart,setAccTitle:i.s,getAccTitle:i.g,getAccDescription:i.a,setAccDescription:i.b,addVertex:F,lookUpDomId:_,addLink:B,updateLinkInterpolate:T,updateLink:m,addClass:S,setDirection:v,setClass:x,setTooltip:function(t,e){t.split(",").forEach((function(t){void 0!==e&&(E["gen-1"===a?_(t):t]=b(e))}))},getTooltip:R,setClickEvent:I,setLink:L,bindFunctions:N,getDirection:$,getVertices:O,getEdges:P,getClasses:w,clear:V,setGen:M,defaultStyle:G,addSubGraph:Y,getDepthFirstPos:Q,indexNodes:z,getSubGraphs:X,destructLink:Z,lex:et,exists:J,makeUniq:tt,setDiagramTitle:i.r,getDiagramTitle:i.t},st=Object.freeze(Object.defineProperty({__proto__:null,addClass:S,addLink:B,addSingleLink:C,addSubGraph:Y,addVertex:F,bindFunctions:N,clear:V,default:ut,defaultStyle:G,destructLink:Z,firstGraph:q,getClasses:w,getDepthFirstPos:Q,getDirection:$,getEdges:P,getSubGraphs:X,getTooltip:R,getVertices:O,indexNodes:z,lex:et,lookUpDomId:_,parseDirective:g,setClass:x,setClickEvent:I,setDirection:v,setGen:M,setLink:L,updateLink:m,updateLinkInterpolate:T},Symbol.toStringTag,{value:"Module"}))}}]); \ No newline at end of file diff --git a/static/js/20f389c4120be058d80a.woff2 b/static/js/20f389c4120be058d80a.woff2 deleted file mode 100644 index 5931794de..000000000 Binary files a/static/js/20f389c4120be058d80a.woff2 and /dev/null differ diff --git a/static/js/220.js b/static/js/220.js deleted file mode 100644 index 7b95cb68a..000000000 --- a/static/js/220.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[220],{59220:(t,e,a)=>{a.d(e,{diagram:()=>f});var i=a(77415),n=a(74309),d=a(29451),r=a(45625),s=a(31460);a(93628),a(17967),a(27856);const o={},c=(t,e,a)=>{const i=(0,s.c)().state.padding,n=2*(0,s.c)().state.padding,d=t.node().getBBox(),r=d.width,o=d.x,c=t.append("text").attr("x",0).attr("y",(0,s.c)().state.titleShift).attr("font-size",(0,s.c)().state.fontSize).attr("class","state-title").text(e.id),g=c.node().getBBox().width+n;let p,h=Math.max(g,r);h===r&&(h+=n);const l=t.node().getBBox();e.doc,p=o-i,g>r&&(p=(r-h)/2+i),Math.abs(o-l.x)r&&(p=o-(g-r)/2);const x=1-(0,s.c)().state.textHeight;return t.insert("rect",":first-child").attr("x",p).attr("y",x).attr("class",a?"alt-composit":"composit").attr("width",h).attr("height",l.height+(0,s.c)().state.textHeight+(0,s.c)().state.titleShift+1).attr("rx","0"),c.attr("x",p+i),g<=r&&c.attr("x",o+(h-n)/2-g/2+i),t.insert("rect",":first-child").attr("x",p).attr("y",(0,s.c)().state.titleShift-(0,s.c)().state.textHeight-(0,s.c)().state.padding).attr("width",h).attr("height",3*(0,s.c)().state.textHeight).attr("rx",(0,s.c)().state.radius),t.insert("rect",":first-child").attr("x",p).attr("y",(0,s.c)().state.titleShift-(0,s.c)().state.textHeight-(0,s.c)().state.padding).attr("width",h).attr("height",l.height+3+2*(0,s.c)().state.textHeight).attr("rx",(0,s.c)().state.radius),t},g=function(t,e){const a=e.id,i={id:a,label:e.id,width:0,height:0},n=t.append("g").attr("id",a).attr("class","stateGroup");"start"===e.type&&(t=>{t.append("circle").attr("class","start-state").attr("r",(0,s.c)().state.sizeUnit).attr("cx",(0,s.c)().state.padding+(0,s.c)().state.sizeUnit).attr("cy",(0,s.c)().state.padding+(0,s.c)().state.sizeUnit)})(n),"end"===e.type&&(t=>{t.append("circle").attr("class","end-state-outer").attr("r",(0,s.c)().state.sizeUnit+(0,s.c)().state.miniPadding).attr("cx",(0,s.c)().state.padding+(0,s.c)().state.sizeUnit+(0,s.c)().state.miniPadding).attr("cy",(0,s.c)().state.padding+(0,s.c)().state.sizeUnit+(0,s.c)().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",(0,s.c)().state.sizeUnit).attr("cx",(0,s.c)().state.padding+(0,s.c)().state.sizeUnit+2).attr("cy",(0,s.c)().state.padding+(0,s.c)().state.sizeUnit+2)})(n),"fork"!==e.type&&"join"!==e.type||((t,e)=>{let a=(0,s.c)().state.forkWidth,i=(0,s.c)().state.forkHeight;if(e.parentId){let t=a;a=i,i=t}t.append("rect").style("stroke","black").style("fill","black").attr("width",a).attr("height",i).attr("x",(0,s.c)().state.padding).attr("y",(0,s.c)().state.padding)})(n,e),"note"===e.type&&((t,e)=>{e.attr("class","state-note");const a=e.append("rect").attr("x",0).attr("y",(0,s.c)().state.padding),i=e.append("g"),{textWidth:n,textHeight:d}=((t,e,a,i)=>{let n=0;const d=i.append("text");d.style("text-anchor","start"),d.attr("class","noteText");let r=t.replace(/\r\n/g,"
");r=r.replace(/\n/g,"
");const o=r.split(s.e.lineBreakRegex);let c=1.25*(0,s.c)().state.noteMargin;for(const t of o){const e=t.trim();if(e.length>0){const t=d.append("tspan");t.text(e),0===c&&(c+=t.node().getBBox().height),n+=c,t.attr("x",0+(0,s.c)().state.noteMargin),t.attr("y",0+n+1.25*(0,s.c)().state.noteMargin)}}return{textWidth:d.node().getBBox().width,textHeight:n}})(t,0,0,i);a.attr("height",d+2*(0,s.c)().state.noteMargin),a.attr("width",n+2*(0,s.c)().state.noteMargin)})(e.note.text,n),"divider"===e.type&&(t=>{t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",(0,s.c)().state.textHeight).attr("class","divider").attr("x2",2*(0,s.c)().state.textHeight).attr("y1",0).attr("y2",0)})(n),"default"===e.type&&0===e.descriptions.length&&((t,e)=>{const a=t.append("text").attr("x",2*(0,s.c)().state.padding).attr("y",(0,s.c)().state.textHeight+2*(0,s.c)().state.padding).attr("font-size",(0,s.c)().state.fontSize).attr("class","state-title").text(e.id).node().getBBox();t.insert("rect",":first-child").attr("x",(0,s.c)().state.padding).attr("y",(0,s.c)().state.padding).attr("width",a.width+2*(0,s.c)().state.padding).attr("height",a.height+2*(0,s.c)().state.padding).attr("rx",(0,s.c)().state.radius)})(n,e),"default"===e.type&&e.descriptions.length>0&&((t,e)=>{const a=t.append("text").attr("x",2*(0,s.c)().state.padding).attr("y",(0,s.c)().state.textHeight+1.3*(0,s.c)().state.padding).attr("font-size",(0,s.c)().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),i=a.height,n=t.append("text").attr("x",(0,s.c)().state.padding).attr("y",i+.4*(0,s.c)().state.padding+(0,s.c)().state.dividerMargin+(0,s.c)().state.textHeight).attr("class","state-description");let d=!0,r=!0;e.descriptions.forEach((function(t){d||(function(t,e,a){const i=t.append("tspan").attr("x",2*(0,s.c)().state.padding).text(e);a||i.attr("dy",(0,s.c)().state.textHeight)}(n,t,r),r=!1),d=!1}));const o=t.append("line").attr("x1",(0,s.c)().state.padding).attr("y1",(0,s.c)().state.padding+i+(0,s.c)().state.dividerMargin/2).attr("y2",(0,s.c)().state.padding+i+(0,s.c)().state.dividerMargin/2).attr("class","descr-divider"),c=n.node().getBBox(),g=Math.max(c.width,a.width);o.attr("x2",g+3*(0,s.c)().state.padding),t.insert("rect",":first-child").attr("x",(0,s.c)().state.padding).attr("y",(0,s.c)().state.padding).attr("width",g+2*(0,s.c)().state.padding).attr("height",c.height+i+2*(0,s.c)().state.padding).attr("rx",(0,s.c)().state.radius)})(n,e);const d=n.node().getBBox();return i.width=d.width+2*(0,s.c)().state.padding,i.height=d.height+2*(0,s.c)().state.padding,r=i,o[a]=r,i;var r};let p,h=0;const l={},x=(t,e,a,o,u,f,y)=>{const w=new r.k({compound:!0,multigraph:!0});let b,m=!0;for(b=0;b{const e=t.parentElement;let a=0,i=0;e&&(e.parentElement&&(a=e.parentElement.getBBox().width),i=parseInt(e.getAttribute("data-x-shift"),10),Number.isNaN(i)&&(i=0)),t.setAttribute("x1",0-i+8),t.setAttribute("x2",a-i-8)}))):s.l.debug("No Node "+t+": "+JSON.stringify(w.node(t)))}));let M=v.getBBox();w.edges().forEach((function(t){void 0!==t&&void 0!==w.edge(t)&&(s.l.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(w.edge(t))),function(t,e,a){e.points=e.points.filter((t=>!Number.isNaN(t.y)));const d=e.points,r=(0,n.jvg)().x((function(t){return t.x})).y((function(t){return t.y})).curve(n.$0Z),o=t.append("path").attr("d",r(d)).attr("id","edge"+h).attr("class","transition");let c="";if((0,s.c)().state.arrowMarkerAbsolute&&(c=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,c=c.replace(/\(/g,"\\("),c=c.replace(/\)/g,"\\)")),o.attr("marker-end","url("+c+"#"+function(t){switch(t){case i.d.relationType.AGGREGATION:return"aggregation";case i.d.relationType.EXTENSION:return"extension";case i.d.relationType.COMPOSITION:return"composition";case i.d.relationType.DEPENDENCY:return"dependency"}}(i.d.relationType.DEPENDENCY)+"End)"),void 0!==a.title){const i=t.append("g").attr("class","stateLabel"),{x:n,y:d}=s.u.calcLabelPosition(e.points),r=s.e.getRows(a.title);let o=0;const c=[];let g=0,p=0;for(let t=0;t<=r.length;t++){const e=i.append("text").attr("text-anchor","middle").text(r[t]).attr("x",n).attr("y",d+o),a=e.node().getBBox();if(g=Math.max(g,a.width),p=Math.min(p,a.x),s.l.info(a.x,n,d+o),0===o){const t=e.node().getBBox();o=t.height,s.l.info("Title height",o,d)}c.push(e)}let h=o*r.length;if(r.length>1){const t=(r.length-1)*o*.5;c.forEach(((e,a)=>e.attr("y",d+a*o-t))),h=o*r.length}const l=i.node().getBBox();i.insert("rect",":first-child").attr("class","box").attr("x",n-g/2-(0,s.c)().state.padding/2).attr("y",d-h/2-(0,s.c)().state.padding/2-3.5).attr("width",g+(0,s.c)().state.padding).attr("height",h+(0,s.c)().state.padding),s.l.info(l)}h++}(e,w.edge(t),w.edge(t).relation))})),M=v.getBBox();const S={id:a||"root",label:a||"root",width:0,height:0};return S.width=M.width+2*p.padding,S.height=M.height+2*p.padding,s.l.debug("Doc rendered",S,w),S},u={setConf:function(){},draw:function(t,e,a,i){p=(0,s.c)().state;const d=(0,s.c)().securityLevel;let o;"sandbox"===d&&(o=(0,n.Ys)("#i"+e));const c="sandbox"===d?(0,n.Ys)(o.nodes()[0].contentDocument.body):(0,n.Ys)("body"),g="sandbox"===d?o.nodes()[0].contentDocument:document;s.l.debug("Rendering diagram "+t);const h=c.select(`[id='${e}']`);h.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z"),new r.k({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel((function(){return{}}));const l=i.db.getRootDoc();x(l,h,void 0,!1,c,g,i);const u=p.padding,f=h.node().getBBox(),y=f.width+2*u,w=f.height+2*u,b=1.75*y;(0,s.i)(h,w,b,p.useMaxWidth),h.attr("viewBox",`${f.x-p.padding} ${f.y-p.padding} `+y+" "+w)}},f={parser:i.p,db:i.d,renderer:u,styles:i.s,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,i.d.clear()}}}}]); \ No newline at end of file diff --git a/static/js/227.js b/static/js/227.js deleted file mode 100644 index f72116138..000000000 --- a/static/js/227.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[227],{17227:(t,e,r)=>{r.d(e,{diagram:()=>v});var i=r(31460),a=r(45625),n=r(74309),s=r(29451);const o=[];for(let t=0;t<256;++t)o.push((t+256).toString(16).slice(1));const c=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,l=function(t){if(!function(t){return"string"==typeof t&&c.test(t)}(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=255&e,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=255&e,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=255&e,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=255&e,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=255&e,r};function h(t,e,r,i){switch(t){case 0:return e&r^~e&i;case 1:case 3:return e^r^i;case 2:return e&r^e&i^r&i}}function d(t,e){return t<>>32-e}const y=function(t,e,r){function i(t,e,r,i){var a;if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r>>0;l=c,c=o,o=d(s,30)>>>0,s=a,a=n}r[0]=r[0]+a>>>0,r[1]=r[1]+s>>>0,r[2]=r[2]+o>>>0,r[3]=r[3]+c>>>0,r[4]=r[4]+l>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}(n),n[6]=15&n[6]|80,n[8]=63&n[8]|128,r){i=i||0;for(let t=0;t<16;++t)r[i+t]=n[t];return r}return function(t,e=0){return(o[t[e+0]]+o[t[e+1]]+o[t[e+2]]+o[t[e+3]]+"-"+o[t[e+4]]+o[t[e+5]]+"-"+o[t[e+6]]+o[t[e+7]]+"-"+o[t[e+8]]+o[t[e+9]]+"-"+o[t[e+10]]+o[t[e+11]]+o[t[e+12]]+o[t[e+13]]+o[t[e+14]]+o[t[e+15]]).toLowerCase()}(n)}try{i.name="v5"}catch(t){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}();r(93628),r(17967),r(27856);var u=function(){var t=function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},e=[1,2],r=[1,5],i=[6,9,11,23,25,27,29,30,31,52],a=[1,17],n=[1,18],s=[1,19],o=[1,20],c=[1,21],l=[1,22],h=[1,25],d=[1,30],y=[1,31],u=[1,32],p=[1,33],_=[1,34],f=[6,9,11,15,20,23,25,27,29,30,31,44,45,46,47,48,52],g=[1,46],m=[30,31,49,50],E=[4,6,9,11,23,25,27,29,30,31,52],O=[44,45,46,47,48],b=[22,37],k=[1,66],R=[1,65],N=[22,37,39,41],T={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,ENTITY_NAME:31,attribute:32,attributeType:33,attributeName:34,attributeKeyTypeList:35,attributeComment:36,ATTRIBUTE_WORD:37,attributeKeyType:38,COMMA:39,ATTRIBUTE_KEY:40,COMMENT:41,cardinality:42,relType:43,ZERO_OR_ONE:44,ZERO_OR_MORE:45,ONE_OR_MORE:46,ONLY_ONE:47,MD_PARENT:48,NON_IDENTIFYING:49,IDENTIFYING:50,WORD:51,open_directive:52,type_directive:53,arg_directive:54,close_directive:55,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:"ENTITY_NAME",37:"ATTRIBUTE_WORD",39:"COMMA",40:"ATTRIBUTE_KEY",41:"COMMENT",44:"ZERO_OR_ONE",45:"ZERO_OR_MORE",46:"ONE_OR_MORE",47:"ONLY_ONE",48:"MD_PARENT",49:"NON_IDENTIFYING",50:"IDENTIFYING",51:"WORD",52:"open_directive",53:"type_directive",54:"arg_directive",55:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,1],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[35,3],[38,1],[36,1],[18,3],[42,1],[42,1],[42,1],[42,1],[42,1],[43,1],[43,1],[19,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,r,i,a,n,s){var o=n.length-1;switch(a){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:n[o-1].push(n[o]),this.$=n[o-1];break;case 5:case 6:case 20:case 44:case 28:case 29:case 32:this.$=n[o];break;case 12:i.addEntity(n[o-4]),i.addEntity(n[o-2]),i.addRelationship(n[o-4],n[o],n[o-2],n[o-3]);break;case 13:i.addEntity(n[o-3]),i.addAttributes(n[o-3],n[o-1]);break;case 14:i.addEntity(n[o-2]);break;case 15:i.addEntity(n[o]);break;case 16:case 17:this.$=n[o].trim(),i.setAccTitle(this.$);break;case 18:case 19:this.$=n[o].trim(),i.setAccDescription(this.$);break;case 21:case 42:case 43:case 33:this.$=n[o].replace(/"/g,"");break;case 22:case 30:this.$=[n[o]];break;case 23:n[o].push(n[o-1]),this.$=n[o];break;case 24:this.$={attributeType:n[o-1],attributeName:n[o]};break;case 25:this.$={attributeType:n[o-2],attributeName:n[o-1],attributeKeyTypeList:n[o]};break;case 26:this.$={attributeType:n[o-2],attributeName:n[o-1],attributeComment:n[o]};break;case 27:this.$={attributeType:n[o-3],attributeName:n[o-2],attributeKeyTypeList:n[o-1],attributeComment:n[o]};break;case 31:n[o-2].push(n[o]),this.$=n[o-2];break;case 34:this.$={cardA:n[o],relType:n[o-1],cardB:n[o-2]};break;case 35:this.$=i.Cardinality.ZERO_OR_ONE;break;case 36:this.$=i.Cardinality.ZERO_OR_MORE;break;case 37:this.$=i.Cardinality.ONE_OR_MORE;break;case 38:this.$=i.Cardinality.ONLY_ONE;break;case 39:this.$=i.Cardinality.MD_PARENT;break;case 40:this.$=i.Identification.NON_IDENTIFYING;break;case 41:this.$=i.Identification.IDENTIFYING;break;case 45:i.parseDirective("%%{","open_directive");break;case 46:i.parseDirective(n[o],"type_directive");break;case 47:n[o]=n[o].trim().replace(/'/g,'"'),i.parseDirective(n[o],"arg_directive");break;case 48:i.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:e,7:3,12:4,52:r},{1:[3]},t(i,[2,3],{5:6}),{3:7,4:e,7:3,12:4,52:r},{13:8,53:[1,9]},{53:[2,45]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:a,25:n,27:s,29:o,30:c,31:l,52:r},{1:[2,2]},{14:23,15:[1,24],55:h},t([15,55],[2,46]),t(i,[2,8],{1:[2,1]}),t(i,[2,4]),{7:15,10:26,12:4,17:16,23:a,25:n,27:s,29:o,30:c,31:l,52:r},t(i,[2,6]),t(i,[2,7]),t(i,[2,11]),t(i,[2,15],{18:27,42:29,20:[1,28],44:d,45:y,46:u,47:p,48:_}),{24:[1,35]},{26:[1,36]},{28:[1,37]},t(i,[2,19]),t(f,[2,20]),t(f,[2,21]),{11:[1,38]},{16:39,54:[1,40]},{11:[2,48]},t(i,[2,5]),{17:41,30:c,31:l},{21:42,22:[1,43],32:44,33:45,37:g},{43:47,49:[1,48],50:[1,49]},t(m,[2,35]),t(m,[2,36]),t(m,[2,37]),t(m,[2,38]),t(m,[2,39]),t(i,[2,16]),t(i,[2,17]),t(i,[2,18]),t(E,[2,9]),{14:50,55:h},{55:[2,47]},{15:[1,51]},{22:[1,52]},t(i,[2,14]),{21:53,22:[2,22],32:44,33:45,37:g},{34:54,37:[1,55]},{37:[2,28]},{42:56,44:d,45:y,46:u,47:p,48:_},t(O,[2,40]),t(O,[2,41]),{11:[1,57]},{19:58,30:[1,61],31:[1,60],51:[1,59]},t(i,[2,13]),{22:[2,23]},t(b,[2,24],{35:62,36:63,38:64,40:k,41:R}),t([22,37,40,41],[2,29]),t([30,31],[2,34]),t(E,[2,10]),t(i,[2,12]),t(i,[2,42]),t(i,[2,43]),t(i,[2,44]),t(b,[2,25],{36:67,39:[1,68],41:R}),t(b,[2,26]),t(N,[2,30]),t(b,[2,33]),t(N,[2,32]),t(b,[2,27]),{38:69,40:k},t(N,[2,31])],defaultActions:{5:[2,45],7:[2,2],25:[2,48],40:[2,47],46:[2,28],53:[2,23]},parseError:function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},parse:function(t){var e=[0],r=[],i=[null],a=[],n=this.table,s="",o=0,c=0,l=a.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(d.yy[y]=this.yy[y]);h.setInput(t,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var u=h.yylloc;a.push(u);var p=h.options&&h.options.ranges;"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,f,g,m,E,O,b,k,R,N={};;){if(f=e[e.length-1],this.defaultActions[f]?g=this.defaultActions[f]:(null==_&&(R=void 0,"number"!=typeof(R=r.pop()||h.lex()||1)&&(R instanceof Array&&(R=(r=R).pop()),R=this.symbols_[R]||R),_=R),g=n[f]&&n[f][_]),void 0===g||!g.length||!g[0]){var T;for(E in k=[],n[f])this.terminals_[E]&&E>2&&k.push("'"+this.terminals_[E]+"'");T=h.showPosition?"Parse error on line "+(o+1)+":\n"+h.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==_?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[_]||_,line:h.yylineno,loc:u,expected:k})}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+f+", token: "+_);switch(g[0]){case 1:e.push(_),i.push(h.yytext),a.push(h.yylloc),e.push(g[1]),_=null,c=h.yyleng,s=h.yytext,o=h.yylineno,u=h.yylloc;break;case 2:if(O=this.productions_[g[1]][1],N.$=i[i.length-O],N._$={first_line:a[a.length-(O||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(O||1)].first_column,last_column:a[a.length-1].last_column},p&&(N._$.range=[a[a.length-(O||1)].range[0],a[a.length-1].range[1]]),void 0!==(m=this.performAction.apply(N,[s,c,o,d.yy,g[1],i,a].concat(l))))return m;O&&(e=e.slice(0,-1*O*2),i=i.slice(0,-1*O),a=a.slice(0,-1*O)),e.push(this.productions_[g[1]][0]),i.push(N.$),a.push(N._$),b=n[e[e.length-2]][e[e.length-1]],e.push(b);break;case 3:return!0}}return!0}},x={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.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:r?(r.length===i.length?this.yylloc.first_column:0)+i[i.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var r,i,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var n in a)this[n]=a[n];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),n=0;ne[0].length)){if(e=r,i=n,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,a[n])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,a[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,r,i){switch(r){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),52;case 8:return this.begin("type_directive"),53;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),55;case 11:return 54;case 12:return 11;case 13:case 20:case 25:break;case 14:return 9;case 15:return 31;case 16:return 51;case 17:return 4;case 18:return this.begin("block"),20;case 19:return 39;case 21:return 40;case 22:case 23:return 37;case 24:return 41;case 26:return this.popState(),22;case 27:case 57:return e.yytext[0];case 28:case 32:case 33:case 46:return 44;case 29:case 30:case 31:case 39:case 41:case 48:return 46;case 34:case 35:case 36:case 37:case 38:case 40:case 47:return 45;case 42:case 43:case 44:case 45:return 47;case 49:return 48;case 50:case 53:case 54:case 55:return 49;case 51:case 52:return 50;case 56:return 30;case 58:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[19,20,21,22,23,24,25,26,27],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58],inclusive:!0}}};function A(){this.yy={}}return T.lexer=x,A.prototype=T,T.Parser=A,new A}();u.parser=u;const p=u;let _={},f=[];const g=function(t){return void 0===_[t]&&(_[t]={attributes:[]},i.l.info("Added new entity :",t)),_[t]},m={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(t,e,r){i.m.parseDirective(this,t,e,r)},getConfig:()=>(0,i.c)().er,addEntity:g,addAttributes:function(t,e){let r,a=g(t);for(r=e.length-1;r>=0;r--)a.attributes.push(e[r]),i.l.debug("Added attribute ",e[r].attributeName)},getEntities:()=>_,addRelationship:function(t,e,r,a){let n={entityA:t,roleA:e,entityB:r,relSpec:a};f.push(n),i.l.debug("Added new relationship :",n)},getRelationships:()=>f,clear:function(){_={},f=[],(0,i.v)()},setAccTitle:i.s,getAccTitle:i.g,setAccDescription:i.b,getAccDescription:i.a,setDiagramTitle:i.r,getDiagramTitle:i.t},E={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},O=E,b=/[^\dA-Za-z](\W)*/g;let k={},R=new Map;const N=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")};let T=0;const x="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function A(t=""){return t.length>0?`${t}-`:""}const v={parser:p,db:m,renderer:{setConf:function(t){const e=Object.keys(t);for(const r of e)k[r]=t[r]},draw:function(t,e,r,o){k=(0,i.c)().er,i.l.info("Drawing ER diagram");const c=(0,i.c)().securityLevel;let l;"sandbox"===c&&(l=(0,n.Ys)("#i"+e));const h=("sandbox"===c?(0,n.Ys)(l.nodes()[0].contentDocument.body):(0,n.Ys)("body")).select(`[id='${e}']`);let d;(function(t,e){let r;t.append("defs").append("marker").attr("id",E.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",E.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",E.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",E.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",E.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",E.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",E.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",E.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=t.append("defs").append("marker").attr("id",E.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=t.append("defs").append("marker").attr("id",E.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(h,k),d=new a.k({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:k.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));const u=function(t,e,r){let a;return Object.keys(e).forEach((function(n){const s=function(t="",e=""){const r=t.replace(b,"");return`${A(e)}${A(r)}${y(t,x)}`}(n,"entity");R.set(n,s);const o=t.append("g").attr("id",s);a=void 0===a?s:a;const c="text-"+s,l=o.append("text").classed("er entityLabel",!0).attr("id",c).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",(0,i.c)().fontFamily).style("font-size",k.fontSize+"px").text(n),{width:h,height:d}=((t,e,r)=>{const a=k.entityPadding/3,n=k.entityPadding/3,s=.85*k.fontSize,o=e.node().getBBox(),c=[];let l=!1,h=!1,d=0,y=0,u=0,p=0,_=o.height+2*a,f=1;r.forEach((t=>{void 0!==t.attributeKeyTypeList&&t.attributeKeyTypeList.length>0&&(l=!0),void 0!==t.attributeComment&&(h=!0)})),r.forEach((r=>{const n=`${e.node().id}-attr-${f}`;let o=0;const g=(0,i.x)(r.attributeType),m=t.append("text").classed("er entityLabel",!0).attr("id",`${n}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",(0,i.c)().fontFamily).style("font-size",s+"px").text(g),E=t.append("text").classed("er entityLabel",!0).attr("id",`${n}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",(0,i.c)().fontFamily).style("font-size",s+"px").text(r.attributeName),O={};O.tn=m,O.nn=E;const b=m.node().getBBox(),k=E.node().getBBox();if(d=Math.max(d,b.width),y=Math.max(y,k.width),o=Math.max(b.height,k.height),l){const e=void 0!==r.attributeKeyTypeList?r.attributeKeyTypeList.join(","):"",a=t.append("text").classed("er entityLabel",!0).attr("id",`${n}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",(0,i.c)().fontFamily).style("font-size",s+"px").text(e);O.kn=a;const c=a.node().getBBox();u=Math.max(u,c.width),o=Math.max(o,c.height)}if(h){const e=t.append("text").classed("er entityLabel",!0).attr("id",`${n}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",(0,i.c)().fontFamily).style("font-size",s+"px").text(r.attributeComment||"");O.cn=e;const a=e.node().getBBox();p=Math.max(p,a.width),o=Math.max(o,a.height)}O.height=o,c.push(O),_+=o+2*a,f+=1}));let g=4;l&&(g+=2),h&&(g+=2);const m=d+y+u+p,E={width:Math.max(k.minEntityWidth,Math.max(o.width+2*k.entityPadding,m+n*g)),height:r.length>0?_:Math.max(k.minEntityHeight,o.height+2*k.entityPadding)};if(r.length>0){const r=Math.max(0,(E.width-m-n*g)/(g/2));e.attr("transform","translate("+E.width/2+","+(a+o.height/2)+")");let i=o.height+2*a,s="attributeBoxOdd";c.forEach((e=>{const o=i+a+e.height/2;e.tn.attr("transform","translate("+n+","+o+")");const c=t.insert("rect","#"+e.tn.node().id).classed(`er ${s}`,!0).attr("x",0).attr("y",i).attr("width",d+2*n+r).attr("height",e.height+2*a),_=parseFloat(c.attr("x"))+parseFloat(c.attr("width"));e.nn.attr("transform","translate("+(_+n)+","+o+")");const f=t.insert("rect","#"+e.nn.node().id).classed(`er ${s}`,!0).attr("x",_).attr("y",i).attr("width",y+2*n+r).attr("height",e.height+2*a);let g=parseFloat(f.attr("x"))+parseFloat(f.attr("width"));if(l){e.kn.attr("transform","translate("+(g+n)+","+o+")");const c=t.insert("rect","#"+e.kn.node().id).classed(`er ${s}`,!0).attr("x",g).attr("y",i).attr("width",u+2*n+r).attr("height",e.height+2*a);g=parseFloat(c.attr("x"))+parseFloat(c.attr("width"))}h&&(e.cn.attr("transform","translate("+(g+n)+","+o+")"),t.insert("rect","#"+e.cn.node().id).classed(`er ${s}`,"true").attr("x",g).attr("y",i).attr("width",p+2*n+r).attr("height",e.height+2*a)),i+=e.height+2*a,s="attributeBoxOdd"===s?"attributeBoxEven":"attributeBoxOdd"}))}else E.height=Math.max(k.minEntityHeight,_),e.attr("transform","translate("+E.width/2+","+E.height/2+")");return E})(o,l,e[n].attributes),u=o.insert("rect","#"+c).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",h).attr("height",d).node().getBBox();r.setNode(s,{width:u.width,height:u.height,shape:"rect",id:s})})),a}(h,o.db.getEntities(),d),p=function(t,e){return t.forEach((function(t){e.setEdge(R.get(t.entityA),R.get(t.entityB),{relationship:t},N(t))})),t}(o.db.getRelationships(),d);var _,f;(0,s.bK)(d),_=h,(f=d).nodes().forEach((function(t){void 0!==t&&void 0!==f.node(t)&&_.select("#"+t).attr("transform","translate("+(f.node(t).x-f.node(t).width/2)+","+(f.node(t).y-f.node(t).height/2)+" )")})),p.forEach((function(t){!function(t,e,r,a,s){T++;const o=r.edge(R.get(e.entityA),R.get(e.entityB),N(e)),c=(0,n.jvg)().x((function(t){return t.x})).y((function(t){return t.y})).curve(n.$0Z),l=t.insert("path","#"+a).classed("er relationshipLine",!0).attr("d",c(o.points)).style("stroke",k.stroke).style("fill","none");e.relSpec.relType===s.db.Identification.NON_IDENTIFYING&&l.attr("stroke-dasharray","8,8");let h="";switch(k.arrowMarkerAbsolute&&(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,h=h.replace(/\(/g,"\\("),h=h.replace(/\)/g,"\\)")),e.relSpec.cardA){case s.db.Cardinality.ZERO_OR_ONE:l.attr("marker-end","url("+h+"#"+O.ZERO_OR_ONE_END+")");break;case s.db.Cardinality.ZERO_OR_MORE:l.attr("marker-end","url("+h+"#"+O.ZERO_OR_MORE_END+")");break;case s.db.Cardinality.ONE_OR_MORE:l.attr("marker-end","url("+h+"#"+O.ONE_OR_MORE_END+")");break;case s.db.Cardinality.ONLY_ONE:l.attr("marker-end","url("+h+"#"+O.ONLY_ONE_END+")");break;case s.db.Cardinality.MD_PARENT:l.attr("marker-end","url("+h+"#"+O.MD_PARENT_END+")")}switch(e.relSpec.cardB){case s.db.Cardinality.ZERO_OR_ONE:l.attr("marker-start","url("+h+"#"+O.ZERO_OR_ONE_START+")");break;case s.db.Cardinality.ZERO_OR_MORE:l.attr("marker-start","url("+h+"#"+O.ZERO_OR_MORE_START+")");break;case s.db.Cardinality.ONE_OR_MORE:l.attr("marker-start","url("+h+"#"+O.ONE_OR_MORE_START+")");break;case s.db.Cardinality.ONLY_ONE:l.attr("marker-start","url("+h+"#"+O.ONLY_ONE_START+")");break;case s.db.Cardinality.MD_PARENT:l.attr("marker-start","url("+h+"#"+O.MD_PARENT_START+")")}const d=l.node().getTotalLength(),y=l.node().getPointAtLength(.5*d),u="rel"+T,p=t.append("text").classed("er relationshipLabel",!0).attr("id",u).attr("x",y.x).attr("y",y.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",(0,i.c)().fontFamily).style("font-size",k.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+u).classed("er relationshipLabelBox",!0).attr("x",y.x-p.width/2).attr("y",y.y-p.height/2).attr("width",p.width).attr("height",p.height)}(h,t,d,u,o)}));const g=k.diagramPadding;i.u.insertTitle(h,"entityTitleText",k.titleTopMargin,o.db.getDiagramTitle());const m=h.node().getBBox(),v=m.width+2*g,M=m.height+2*g;(0,i.i)(h,M,v,k.useMaxWidth),h.attr("viewBox",`${m.x-g} ${m.y-g} ${v} ${M}`)}},styles:t=>`\n .entityBox {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n }\n\n .attributeBoxOdd {\n fill: ${t.attributeBackgroundColorOdd};\n stroke: ${t.nodeBorder};\n }\n\n .attributeBoxEven {\n fill: ${t.attributeBackgroundColorEven};\n stroke: ${t.nodeBorder};\n }\n\n .relationshipLabelBox {\n fill: ${t.tertiaryColor};\n opacity: 0.7;\n background-color: ${t.tertiaryColor};\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ${t.lineColor};\n }\n\n .entityTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n } \n #MD_PARENT_START {\n fill: #f5f5f5 !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n }\n #MD_PARENT_END {\n fill: #f5f5f5 !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n }\n \n`}}}]); \ No newline at end of file diff --git a/static/js/240.js b/static/js/240.js deleted file mode 100644 index edfe18a43..000000000 --- a/static/js/240.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 240.js.LICENSE.txt */ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[240],{92240:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>i,language:()=>o});var i={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:'"',close:'"'}],autoClosingPairs:[{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["comment"]},{open:'"""',close:'"""'},{open:"`",close:"`",notIn:["string","comment"]},{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"<<",close:">>"}],indentationRules:{increaseIndentPattern:/^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,decreaseIndentPattern:/^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/}},o={defaultToken:"source",tokenPostfix:".elixir",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"<<",close:">>",token:"delimiter.angle.special"}],declarationKeywords:["def","defp","defn","defnp","defguard","defguardp","defmacro","defmacrop","defdelegate","defcallback","defmacrocallback","defmodule","defprotocol","defexception","defimpl","defstruct"],operatorKeywords:["and","in","not","or","when"],namespaceKeywords:["alias","import","require","use"],otherKeywords:["after","case","catch","cond","do","else","end","fn","for","if","quote","raise","receive","rescue","super","throw","try","unless","unquote_splicing","unquote","with"],constants:["true","false","nil"],nameBuiltin:["__MODULE__","__DIR__","__ENV__","__CALLER__","__STACKTRACE__"],operator:/-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,variableName:/[a-z_][a-zA-Z0-9_]*[?!]?/,atomName:/[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,specialAtomName:/\.\.\.|<<>>|%\{\}|%|\{\}/,aliasPart:/[A-Z][a-zA-Z0-9_]*/,moduleName:/@aliasPart(?:\.@aliasPart)*/,sigilSymmetricDelimiter:/"""|'''|"|'|\/|\|/,sigilStartDelimiter:/@sigilSymmetricDelimiter|<|\{|\[|\(/,sigilEndDelimiter:/@sigilSymmetricDelimiter|>|\}|\]|\)/,sigilModifiers:/[a-zA-Z0-9]*/,decimal:/\d(?:_?\d)*/,hex:/[0-9a-fA-F](_?[0-9a-fA-F])*/,octal:/[0-7](_?[0-7])*/,binary:/[01](_?[01])*/,escape:/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,tokenizer:{root:[{include:"@whitespace"},{include:"@comments"},{include:"@keywordsShorthand"},{include:"@numbers"},{include:"@identifiers"},{include:"@strings"},{include:"@atoms"},{include:"@sigils"},{include:"@attributes"},{include:"@symbols"}],whitespace:[[/\s+/,"white"]],comments:[[/(#)(.*)/,["comment.punctuation","comment"]]],keywordsShorthand:[[/(@atomName)(:)(\s+)/,["constant","constant.punctuation","white"]],[/"(?=([^"]|#\{.*?\}|\\")*":)/,{token:"constant.delimiter",next:"@doubleQuotedStringKeyword"}],[/'(?=([^']|#\{.*?\}|\\')*':)/,{token:"constant.delimiter",next:"@singleQuotedStringKeyword"}]],doubleQuotedStringKeyword:[[/":/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringKeyword:[[/':/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],numbers:[[/0b@binary/,"number.binary"],[/0o@octal/,"number.octal"],[/0x@hex/,"number.hex"],[/@decimal\.@decimal([eE]-?@decimal)?/,"number.float"],[/@decimal/,"number"]],identifiers:[[/\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/,["keyword.declaration","white",{cases:{unquote:"keyword","@default":"function"}}]],[/(@variableName)(?=\s*\.?\s*\()/,{cases:{"@declarationKeywords":"keyword.declaration","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@default":"function.call"}}],[/(@moduleName)(\s*)(\.)(\s*)(@variableName)/,["type.identifier","white","operator","white","function.call"]],[/(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/,["constant.punctuation","constant","white","operator","white","function.call"]],[/(\|>)(\s*)(@variableName)/,["operator","white",{cases:{"@otherKeywords":"keyword","@default":"function.call"}}]],[/(&)(\s*)(@variableName)/,["operator","white","function.call"]],[/@variableName/,{cases:{"@declarationKeywords":"keyword.declaration","@operatorKeywords":"keyword.operator","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@constants":"constant.language","@nameBuiltin":"variable.language","_.*":"comment.unused","@default":"identifier"}}],[/@moduleName/,"type.identifier"]],strings:[[/"""/,{token:"string.delimiter",next:"@doubleQuotedHeredoc"}],[/'''/,{token:"string.delimiter",next:"@singleQuotedHeredoc"}],[/"/,{token:"string.delimiter",next:"@doubleQuotedString"}],[/'/,{token:"string.delimiter",next:"@singleQuotedString"}]],doubleQuotedHeredoc:[[/"""/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedHeredoc:[[/'''/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],doubleQuotedString:[[/"/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedString:[[/'/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],atoms:[[/(:)(@atomName)/,["constant.punctuation","constant"]],[/:"/,{token:"constant.delimiter",next:"@doubleQuotedStringAtom"}],[/:'/,{token:"constant.delimiter",next:"@singleQuotedStringAtom"}]],doubleQuotedStringAtom:[[/"/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringAtom:[[/'/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],sigils:[[/~[a-z]@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.interpol"}],[/~[A-Z]@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.noInterpol"}]],sigil:[[/~([a-zA-Z])\{/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.{.}"}],[/~([a-zA-Z])\[/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.[.]"}],[/~([a-zA-Z])\(/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.(.)"}],[/~([a-zA-Z])\"}],[/~([a-zA-Z])(@sigilSymmetricDelimiter)/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.$2.$2"}]],"sigilStart.interpol.s":[[/~s@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.s":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContentInterpol"}],"sigilStart.noInterpol.S":[[/~S@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.S":[[/(^|[^\\])\\@sigilEndDelimiter/,"string"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContent"}],"sigilStart.interpol.r":[[/~r@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.r":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContentInterpol"}],"sigilStart.noInterpol.R":[[/~R@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.R":[[/(^|[^\\])\\@sigilEndDelimiter/,"regexp"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContent"}],"sigilStart.interpol":[[/~([a-zA-Z])@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContentInterpol"}],"sigilStart.noInterpol":[[/~([a-zA-Z])@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol":[[/(^|[^\\])\\@sigilEndDelimiter/,"sigil"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContent"}],attributes:[[/\@(module|type)?doc (~[sS])?"""/,{token:"comment.block.documentation",next:"@doubleQuotedHeredocDocstring"}],[/\@(module|type)?doc (~[sS])?'''/,{token:"comment.block.documentation",next:"@singleQuotedHeredocDocstring"}],[/\@(module|type)?doc (~[sS])?"/,{token:"comment.block.documentation",next:"@doubleQuotedStringDocstring"}],[/\@(module|type)?doc (~[sS])?'/,{token:"comment.block.documentation",next:"@singleQuotedStringDocstring"}],[/\@(module|type)?doc false/,"comment.block.documentation"],[/\@(@variableName)/,"variable"]],doubleQuotedHeredocDocstring:[[/"""/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],singleQuotedHeredocDocstring:[[/'''/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],doubleQuotedStringDocstring:[[/"/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],singleQuotedStringDocstring:[[/'/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],symbols:[[/\?(\\.|[^\\\s])/,"number.constant"],[/&\d+/,"operator"],[/<<<|>>>/,"operator"],[/[()\[\]\{\}]|<<|>>/,"@brackets"],[/\.\.\./,"identifier"],[/=>/,"punctuation"],[/@operator/,"operator"],[/[:;,.%]/,"punctuation"]],stringContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringContent"}],stringContent:[[/./,"string"]],stringConstantContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringConstantContent"}],stringConstantContent:[[/./,"constant"]],regexpContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@regexpContent"}],regexpContent:[[/(\s)(#)(\s.*)$/,["white","comment.punctuation","comment"]],[/./,"regexp"]],sigilContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@sigilContent"}],sigilContent:[[/./,"sigil"]],docstringContent:[[/./,"comment.block.documentation"]],escapeChar:[[/@escape/,"constant.character.escape"]],interpolation:[[/#{/,{token:"delimiter.bracket.embed",next:"@interpolationContinue"}]],interpolationContinue:[[/}/,{token:"delimiter.bracket.embed",next:"@pop"}],{include:"@root"}]}}}}]); \ No newline at end of file diff --git a/static/js/240.js.LICENSE.txt b/static/js/240.js.LICENSE.txt deleted file mode 100644 index 8ef59e134..000000000 --- a/static/js/240.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/static/js/288.js b/static/js/288.js deleted file mode 100644 index 1e28ca2eb..000000000 --- a/static/js/288.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[288],{43349:(e,t,r)=>{r.d(t,{a:()=>l});var n=r(96225);function l(e,t){var r=e.append("foreignObject").attr("width","100000"),l=r.append("xhtml:div");l.attr("xmlns","http://www.w3.org/1999/xhtml");var o=t.label;switch(typeof o){case"function":l.insert(o);break;case"object":l.insert((function(){return o}));break;default:l.html(o)}n.bg(l,t.labelStyle),l.style("display","inline-block"),l.style("white-space","nowrap");var a=l.node().getBoundingClientRect();return r.attr("width",a.width).attr("height",a.height),r}},96225:(e,t,r)=>{r.d(t,{$p:()=>d,O1:()=>a,WR:()=>p,bF:()=>o,bg:()=>c});var n=r(37514),l=r(73234);function o(e,t){return!!e.children(t).length}function a(e){return i(e.v)+":"+i(e.w)+":"+i(e.name)}var s=/:/g;function i(e){return e?String(e).replace(s,"\\:"):""}function c(e,t){t&&e.attr("style",t)}function d(e,t,r){t&&e.attr("class",t).attr("class",r+" "+e.attr("class"))}function p(e,t){var r=t.graph();if(n.Z(r)){var o=r.transition;if(l.Z(o))return o(e)}return e}},73288:(e,t,r)=>{r.d(t,{diagram:()=>a});var n=r(77187),l=r(96534),o=r(31460);r(74309),r(45625),r(29451),r(69368),r(93628),r(17967),r(27856);const a={parser:n.p,db:n.f,renderer:l.f,styles:l.a,init:e=>{e.flowchart||(e.flowchart={}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,(0,o.q)({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}}),l.f.setConf(e.flowchart),n.f.clear(),n.f.setGen("gen-2")}}},96534:(e,t,r)=>{r.d(t,{a:()=>g,f:()=>h});var n=r(45625),l=r(74309),o=r(77187),a=r(31460),s=r(62335),i=r(43349),c=r(75971),d=r(91767);const p=(e,t)=>c.Z.lang.round(d.Z.parse(e)[t]);var b=r(51117);const f={},w=function(e,t,r,n,l,o){const s=n.select(`[id="${r}"]`);Object.keys(e).forEach((function(r){const n=e[r];let c="default";n.classes.length>0&&(c=n.classes.join(" ")),c+=" flowchart-label";const d=(0,a.k)(n.styles);let p,b=void 0!==n.text?n.text:n.id;if(a.l.info("vertex",n,n.labelType),"markdown"===n.labelType)a.l.info("vertex",n,n.labelType);else if((0,a.n)((0,a.c)().flowchart.htmlLabels)){const e={label:b.replace(/fa[blrs]?:fa-[\w-]+/g,(e=>``))};p=(0,i.a)(s,e).node(),p.parentNode.removeChild(p)}else{const e=l.createElementNS("http://www.w3.org/2000/svg","text");e.setAttribute("style",d.labelStyle.replace("color:","fill:"));const t=b.split(a.e.lineBreakRegex);for(const r of t){const t=l.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.setAttribute("dy","1em"),t.setAttribute("x","1"),t.textContent=r,e.appendChild(t)}p=e}let f=0,w="";switch(n.type){case"round":f=5,w="rect";break;case"square":case"group":default:w="rect";break;case"diamond":w="question";break;case"hexagon":w="hexagon";break;case"odd":case"odd_right":w="rect_left_inv_arrow";break;case"lean_right":w="lean_right";break;case"lean_left":w="lean_left";break;case"trapezoid":w="trapezoid";break;case"inv_trapezoid":w="inv_trapezoid";break;case"circle":w="circle";break;case"ellipse":w="ellipse";break;case"stadium":w="stadium";break;case"subroutine":w="subroutine";break;case"cylinder":w="cylinder";break;case"doublecircle":w="doublecircle"}t.setNode(n.id,{labelStyle:d.labelStyle,shape:w,labelText:b,labelType:n.labelType,rx:f,ry:f,class:c,style:d.style,id:n.id,link:n.link,linkTarget:n.linkTarget,tooltip:o.db.getTooltip(n.id)||"",domId:o.db.lookUpDomId(n.id),haveCallback:n.haveCallback,width:"group"===n.type?500:void 0,dir:n.dir,type:n.type,props:n.props,padding:(0,a.c)().flowchart.padding}),a.l.info("setNode",{labelStyle:d.labelStyle,labelType:n.labelType,shape:w,labelText:b,rx:f,ry:f,class:c,style:d.style,id:n.id,domId:o.db.lookUpDomId(n.id),width:"group"===n.type?500:void 0,type:n.type,dir:n.dir,props:n.props,padding:(0,a.c)().flowchart.padding})}))},u=function(e,t,r){a.l.info("abc78 edges = ",e);let n,o,s=0,i={};if(void 0!==e.defaultStyle){const t=(0,a.k)(e.defaultStyle);n=t.style,o=t.labelStyle}e.forEach((function(r){s++;const c="L-"+r.start+"-"+r.end;void 0===i[c]?(i[c]=0,a.l.info("abc78 new entry",c,i[c])):(i[c]++,a.l.info("abc78 new entry",c,i[c]));let d=c+"-"+i[c];a.l.info("abc78 new link id to be used is",c,d,i[c]);const p="LS-"+r.start,b="LE-"+r.end,w={style:"",labelStyle:""};switch(w.minlen=r.length||1,"arrow_open"===r.type?w.arrowhead="none":w.arrowhead="normal",w.arrowTypeStart="arrow_open",w.arrowTypeEnd="arrow_open",r.type){case"double_arrow_cross":w.arrowTypeStart="arrow_cross";case"arrow_cross":w.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":w.arrowTypeStart="arrow_point";case"arrow_point":w.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":w.arrowTypeStart="arrow_circle";case"arrow_circle":w.arrowTypeEnd="arrow_circle"}let u="",h="";switch(r.stroke){case"normal":u="fill:none;",void 0!==n&&(u=n),void 0!==o&&(h=o),w.thickness="normal",w.pattern="solid";break;case"dotted":w.thickness="normal",w.pattern="dotted",w.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":w.thickness="thick",w.pattern="solid",w.style="stroke-width: 3.5px;fill:none;";break;case"invisible":w.thickness="invisible",w.pattern="solid",w.style="stroke-width: 0;fill:none;"}if(void 0!==r.style){const e=(0,a.k)(r.style);u=e.style,h=e.labelStyle}w.style=w.style+=u,w.labelStyle=w.labelStyle+=h,void 0!==r.interpolate?w.curve=(0,a.o)(r.interpolate,l.c_6):void 0!==e.defaultInterpolate?w.curve=(0,a.o)(e.defaultInterpolate,l.c_6):w.curve=(0,a.o)(f.curve,l.c_6),void 0===r.text?void 0!==r.style&&(w.arrowheadStyle="fill: #333"):(w.arrowheadStyle="fill: #333",w.labelpos="c"),w.labelType=r.labelType,w.label=r.text.replace(a.e.lineBreakRegex,"\n"),void 0===r.style&&(w.style=w.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),w.labelStyle=w.labelStyle.replace("color:","fill:"),w.id=d,w.classes="flowchart-link "+p+" "+b,t.setEdge(r.start,r.end,w,s)}))},h={setConf:function(e){const t=Object.keys(e);for(const r of t)f[r]=e[r]},addVertices:w,addEdges:u,getClasses:function(e,t){a.l.info("Extracting classes"),t.db.clear();try{return t.parse(e),t.db.getClasses()}catch(e){return}},draw:async function(e,t,r,i){a.l.info("Drawing flowchart"),i.db.clear(),o.f.setGen("gen-2"),i.parser.parse(e);let c=i.db.getDirection();void 0===c&&(c="TD");const{securityLevel:d,flowchart:p}=(0,a.c)(),b=p.nodeSpacing||50,f=p.rankSpacing||50;let h;"sandbox"===d&&(h=(0,l.Ys)("#i"+t));const g="sandbox"===d?(0,l.Ys)(h.nodes()[0].contentDocument.body):(0,l.Ys)("body"),y="sandbox"===d?h.nodes()[0].contentDocument:document,k=new n.k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:b,ranksep:f,marginx:0,marginy:0}).setDefaultEdgeLabel((function(){return{}}));let x;const v=i.db.getSubGraphs();a.l.info("Subgraphs - ",v);for(let e=v.length-1;e>=0;e--)x=v[e],a.l.info("Subgraph - ",x),i.db.addVertex(x.id,{text:x.title,type:x.labelType},"group",void 0,x.classes,x.dir);const m=i.db.getVertices(),S=i.db.getEdges();a.l.info("Edges",S);let T=0;for(T=v.length-1;T>=0;T--){x=v[T],(0,l.td_)("cluster").append("text");for(let e=0;e`.label {\n font-family: ${e.fontFamily};\n color: ${e.nodeTextColor||e.textColor};\n }\n .cluster-label text {\n fill: ${e.titleColor};\n }\n .cluster-label span,p {\n color: ${e.titleColor};\n }\n\n .label text,span,p {\n fill: ${e.nodeTextColor||e.textColor};\n color: ${e.nodeTextColor||e.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${e.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${e.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${e.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${e.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${((e,t)=>{const r=p,n=r(e,"r"),l=r(e,"g"),o=r(e,"b");return b.Z(n,l,o,.5)})(e.edgeLabelBackground)};\n // background-color: \n }\n\n .cluster rect {\n fill: ${e.clusterBkg};\n stroke: ${e.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n .cluster span,p {\n color: ${e.titleColor};\n }\n /* .cluster div {\n color: ${e.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${e.fontFamily};\n font-size: 12px;\n background: ${e.tertiaryColor};\n border: 1px solid ${e.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n }\n`}}]); \ No newline at end of file diff --git a/static/js/295.js b/static/js/295.js deleted file mode 100644 index c214ee623..000000000 --- a/static/js/295.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[295],{62295:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>l,language:()=>d});var o=n(1593),r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,a=(e,t,n,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of s(t))c.call(e,a)||a===n||r(e,a,{get:()=>t[a],enumerable:!(o=i(t,a))||o.enumerable});return e},p={};a(p,o,"default");var g={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}},l={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:p.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:p.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:p.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:p.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},d={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:g.operators,symbols:g.symbols,escapes:g.escapes,digits:g.digits,octaldigits:g.octaldigits,binarydigits:g.binarydigits,hexdigits:g.hexdigits,regexpctl:g.regexpctl,regexpesc:g.regexpesc,tokenizer:g.tokenizer}}}]); \ No newline at end of file diff --git a/static/js/2960900c4f271311eb36.woff2 b/static/js/2960900c4f271311eb36.woff2 deleted file mode 100644 index e1bccfe24..000000000 Binary files a/static/js/2960900c4f271311eb36.woff2 and /dev/null differ diff --git a/static/js/2f7bc363fc5424ebda59.ttf b/static/js/2f7bc363fc5424ebda59.ttf deleted file mode 100644 index 537279f6b..000000000 Binary files a/static/js/2f7bc363fc5424ebda59.ttf and /dev/null differ diff --git a/static/js/302.js b/static/js/302.js deleted file mode 100644 index 1bb449d4c..000000000 --- a/static/js/302.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[302],{78302:(t,e,a)=>{a.d(e,{diagram:()=>g});var r=a(72970),n=a(74309),i=a(29451),d=a(45625),s=a(31460),o=a(12711);a(93628),a(17967),a(27856);let l={};const p=function(t){const e=Object.entries(l).find((e=>e[1].label===t));if(e)return e[0]},c={draw:function(t,e,a,r){const c=(0,s.c)().class;l={},s.l.info("Rendering diagram "+t);const g=(0,s.c)().securityLevel;let h;"sandbox"===g&&(h=(0,n.Ys)("#i"+e));const f="sandbox"===g?(0,n.Ys)(h.nodes()[0].contentDocument.body):(0,n.Ys)("body"),u=f.select(`[id='${e}']`);var x;(x=u).append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),x.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),x.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),x.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),x.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),x.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),x.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),x.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z");const y=new d.k({multigraph:!0});y.setGraph({isMultiGraph:!0}),y.setDefaultEdgeLabel((function(){return{}}));const b=r.db.getClasses(),m=Object.keys(b);for(const t of m){const e=b[t],a=o.s.drawClass(u,e,c,r);l[a.id]=a,y.setNode(a.id,a),s.l.info("Org height: "+a.height)}r.db.getRelations().forEach((function(t){s.l.info("tjoho"+p(t.id1)+p(t.id2)+JSON.stringify(t)),y.setEdge(p(t.id1),p(t.id2),{relation:t},t.title||"DEFAULT")})),r.db.getNotes().forEach((function(t){s.l.debug(`Adding note: ${JSON.stringify(t)}`);const e=o.s.drawNote(u,t,c,r);l[e.id]=e,y.setNode(e.id,e),t.class&&t.class in b&&y.setEdge(t.id,p(t.class),{relation:{id1:t.id,id2:t.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")})),(0,i.bK)(y),y.nodes().forEach((function(t){void 0!==t&&void 0!==y.node(t)&&(s.l.debug("Node "+t+": "+JSON.stringify(y.node(t))),f.select("#"+(r.db.lookUpDomId(t)||t)).attr("transform","translate("+(y.node(t).x-y.node(t).width/2)+","+(y.node(t).y-y.node(t).height/2)+" )"))})),y.edges().forEach((function(t){void 0!==t&&void 0!==y.edge(t)&&(s.l.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(y.edge(t))),o.s.drawEdge(u,y.edge(t),y.edge(t).relation,c,r))}));const w=u.node().getBBox(),k=w.width+40,E=w.height+40;(0,s.i)(u,E,k,c.useMaxWidth);const L=`${w.x-20} ${w.y-20} ${k} ${E}`;s.l.debug(`viewBox ${L}`),u.attr("viewBox",L)}},g={parser:r.p,db:r.d,renderer:c,styles:r.s,init:t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,r.d.clear()}}},12711:(t,e,a)=>{a.d(e,{p:()=>s,s:()=>p});var r=a(74309),n=a(31460);let i=0;const d=function(t){let e=t.id;return t.type&&(e+="<"+t.type+">"),e},s=function(t){let e="",a="",r="",i="",d=t.substring(0,1),s=t.substring(t.length-1,t.length);d.match(/[#+~-]/)&&(i=d);let o=/[\s\w)~]/;s.match(o)||(a=l(s));const p=""===i?0:1;let c=""===a?t.length:t.length-1;const g=(t=t.substring(p,c)).indexOf("("),h=t.indexOf(")");if(g>1&&h>g&&h<=t.length){let d=t.substring(0,g).trim();const s=t.substring(g+1,h);if(e=i+d+"("+(0,n.x)(s.trim())+")",h0&&(k+=e.cssClasses.join(" "));const E=l.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",w.width+2*a.padding).attr("height",w.height+a.padding+.5*a.dividerMargin).attr("class",k).node().getBBox().width;return p.node().childNodes.forEach((function(t){t.setAttribute("x",(E-t.getBBox().width)/2)})),e.tooltip&&p.insert("title").text(e.tooltip),u.attr("x2",E),b.attr("x2",E),s.width=E,s.height=w.height+a.padding+.5*a.dividerMargin,s},drawEdge:function(t,e,a,d,s){const o=function(t){switch(t){case s.db.relationType.AGGREGATION:return"aggregation";case s.db.relationType.EXTENSION:return"extension";case s.db.relationType.COMPOSITION:return"composition";case s.db.relationType.DEPENDENCY:return"dependency";case s.db.relationType.LOLLIPOP:return"lollipop"}};e.points=e.points.filter((t=>!Number.isNaN(t.y)));const l=e.points,p=(0,r.jvg)().x((function(t){return t.x})).y((function(t){return t.y})).curve(r.$0Z),c=t.append("path").attr("d",p(l)).attr("id","edge"+i).attr("class","relation");let g,h,f="";d.arrowMarkerAbsolute&&(f=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,f=f.replace(/\(/g,"\\("),f=f.replace(/\)/g,"\\)")),1==a.relation.lineType&&c.attr("class","relation dashed-line"),10==a.relation.lineType&&c.attr("class","relation dotted-line"),"none"!==a.relation.type1&&c.attr("marker-start","url("+f+"#"+o(a.relation.type1)+"Start)"),"none"!==a.relation.type2&&c.attr("marker-end","url("+f+"#"+o(a.relation.type2)+"End)");const u=e.points.length;let x,y,b,m,w=n.u.calcLabelPosition(e.points);if(g=w.x,h=w.y,u%2!=0&&u>1){let t=n.u.calcCardinalityPosition("none"!==a.relation.type1,e.points,e.points[0]),r=n.u.calcCardinalityPosition("none"!==a.relation.type2,e.points,e.points[u-1]);n.l.debug("cardinality_1_point "+JSON.stringify(t)),n.l.debug("cardinality_2_point "+JSON.stringify(r)),x=t.x,y=t.y,b=r.x,m=r.y}if(void 0!==a.title){const e=t.append("g").attr("class","classLabel"),r=e.append("text").attr("class","label").attr("x",g).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(a.title);window.label=r;const n=r.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",n.x-d.padding/2).attr("y",n.y-d.padding/2).attr("width",n.width+d.padding).attr("height",n.height+d.padding)}n.l.info("Rendering relation "+JSON.stringify(a)),void 0!==a.relationTitle1&&"none"!==a.relationTitle1&&t.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",x).attr("y",y).attr("fill","black").attr("font-size","6").text(a.relationTitle1),void 0!==a.relationTitle2&&"none"!==a.relationTitle2&&t.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",b).attr("y",m).attr("fill","black").attr("font-size","6").text(a.relationTitle2),i++},drawNote:function(t,e,a,r){n.l.debug("Rendering note ",e,a);const i=e.id,d={id:i,text:e.text,width:0,height:0},s=t.append("g").attr("id",i).attr("class","classGroup");let o=s.append("text").attr("y",a.textHeight+a.padding).attr("x",0);const l=JSON.parse(`"${e.text}"`).split("\n");l.forEach((function(t){n.l.debug(`Adding line: ${t}`),o.append("tspan").text(t).attr("class","title").attr("dy",a.textHeight)}));const p=s.node().getBBox(),c=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",p.width+2*a.padding).attr("height",p.height+l.length*a.textHeight+a.padding+.5*a.dividerMargin).node().getBBox().width;return o.node().childNodes.forEach((function(t){t.setAttribute("x",(c-t.getBBox().width)/2)})),d.width=c,d.height=p.height+l.length*a.textHeight+a.padding+.5*a.dividerMargin,d},parseMember:s}}}]); \ No newline at end of file diff --git a/static/js/335.js b/static/js/335.js deleted file mode 100644 index ee5936fa3..000000000 --- a/static/js/335.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[335],{69368:(e,t,n)=>{n.d(t,{c:()=>l});var r=n(49360),i=n(49103);const a=function(e){return(0,i.Z)(e,4)};var d=n(43836);function l(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:o(e),edges:s(e)};return r.Z(e.graph())||(t.value=a(e.graph())),t}function o(e){return d.Z(e.nodes(),(function(t){var n=e.node(t),i=e.parent(t),a={v:t};return r.Z(n)||(a.value=n),r.Z(i)||(a.parent=i),a}))}function s(e){return d.Z(e.edges(),(function(t){var n=e.edge(t),i={v:t.v,w:t.w};return r.Z(t.name)||(i.name=t.name),r.Z(n)||(i.value=n),i}))}n(95351)},62335:(e,t,n)=>{n.d(t,{r:()=>X});var r=n(29451),i=n(69368),a=n(18999),d=n(31460),l=n(45625),o=n(87705),s=n(74309);let c={},h={},g={};const f=(e,t)=>(d.l.trace("In isDecendant",t," ",e," = ",h[t].includes(e)),!!h[t].includes(e)),u=(e,t,n,r)=>{d.l.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const i=t.children(e)||[];e!==r&&i.push(e),d.l.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach((i=>{if(t.children(i).length>0)u(i,t,n,r);else{const a=t.node(i);d.l.info("cp ",i," to ",r," with parent ",e),n.setNode(i,a),r!==t.parent(i)&&(d.l.warn("Setting parent",i,t.parent(i)),n.setParent(i,t.parent(i))),e!==r&&i!==e?(d.l.debug("Setting parent",i,e),n.setParent(i,e)):(d.l.info("In copy ",e,"root",r,"data",t.node(e),r),d.l.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const l=t.edges(i);d.l.debug("Copying Edges",l),l.forEach((i=>{d.l.info("Edge",i);const a=t.edge(i.v,i.w,i.name);d.l.info("Edge data",a,r);try{((e,t)=>(d.l.info("Decendants of ",t," is ",h[t]),d.l.info("Edge is ",e),e.v!==t&&e.w!==t&&(h[t]?h[t].includes(e.v)||f(e.v,t)||f(e.w,t)||h[t].includes(e.w):(d.l.debug("Tilt, ",t,",not in decendants"),!1))))(i,r)?(d.l.info("Copying as ",i.v,i.w,a,i.name),n.setEdge(i.v,i.w,a,i.name),d.l.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):d.l.info("Skipping copy of edge ",i.v,"--\x3e",i.w," rootId: ",r," clusterId:",e)}catch(e){d.l.error(e)}}))}d.l.debug("Removing node",i),t.removeNode(i)}))},w=(e,t)=>{const n=t.children(e);let r=[...n];for(const i of n)g[i]=e,r=[...r,...w(i,t)];return r},p=(e,t)=>{d.l.trace("Searching",e);const n=t.children(e);if(d.l.trace("Searching children of id ",e,n),n.length<1)return d.l.trace("This is a valid node",e),e;for(const r of n){const n=p(r,t);if(n)return d.l.trace("Found replacement for",e," => ",n),n}},v=e=>c[e]&&c[e].externalConnections&&c[e]?c[e].id:e,y=(e,t)=>{if(d.l.warn("extractor - ",t,i.c(e),e.children("D")),t>10)return void d.l.error("Bailing out");let n=e.nodes(),r=!1;for(const t of n){const n=e.children(t);r=r||n.length>0}if(r){d.l.debug("Nodes = ",n,t);for(const r of n)if(d.l.debug("Extracting node",r,c,c[r]&&!c[r].externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",t),c[r])if(!c[r].externalConnections&&e.children(r)&&e.children(r).length>0){d.l.warn("Cluster without external connections, without a parent and with children",r,t);let n="TB"===e.graph().rankdir?"LR":"TB";c[r]&&c[r].clusterData&&c[r].clusterData.dir&&(n=c[r].clusterData.dir,d.l.warn("Fixing dir",c[r].clusterData.dir,n));const a=new l.k({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));d.l.warn("Old graph before copy",i.c(e)),u(r,e,a,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:c[r].clusterData,labelText:c[r].labelText,graph:a}),d.l.warn("New graph after copy node: (",r,")",i.c(a)),d.l.debug("Old graph after copy",i.c(e))}else d.l.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!c[r].externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),t),d.l.debug(c);else d.l.debug("Not a cluster",r,t);n=e.nodes(),d.l.warn("New list of nodes",n);for(const r of n){const n=e.node(r);d.l.warn(" Now next level",r,n),n.clusterNode&&y(n.graph,t+1)}}else d.l.debug("Done, no node has children",e.nodes())},x=(e,t)=>{if(0===t.length)return[];let n=Object.assign(t);return t.forEach((t=>{const r=e.children(t),i=x(e,r);n=[...n,...i]})),n},m={rect:(e,t)=>{d.l.info("Creating subgraph rect for ",t.id,t);const n=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),r=n.insert("rect",":first-child"),i=(0,d.n)((0,d.c)().flowchart.htmlLabels),l=n.insert("g").attr("class","cluster-label"),c="markdown"===t.labelType?(0,o.c)(l,t.labelText,{style:t.labelStyle,useHtmlLabels:i}):l.node().appendChild((0,a.c)(t.labelText,t.labelStyle,void 0,!0));let h=c.getBBox();if((0,d.n)((0,d.c)().flowchart.htmlLabels)){const e=c.children[0],t=(0,s.Ys)(c);h=e.getBoundingClientRect(),t.attr("width",h.width),t.attr("height",h.height)}const g=0*t.padding,f=g/2,u=t.width<=h.width+g?h.width+g:t.width;t.width<=h.width+g?t.diff=(h.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,d.l.trace("Data ",t,JSON.stringify(t)),r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-u/2).attr("y",t.y-t.height/2-f).attr("width",u).attr("height",t.height+g),i?l.attr("transform","translate("+(t.x-h.width/2)+", "+(t.y-t.height/2)+")"):l.attr("transform","translate("+t.x+", "+(t.y-t.height/2)+")");const w=r.node().getBBox();return t.width=w.width,t.height=w.height,t.intersect=function(e){return(0,a.i)(t,e)},n},roundedWithTitle:(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),i=n.insert("g").attr("class","cluster-label"),l=n.append("rect"),o=i.node().appendChild((0,a.c)(t.labelText,t.labelStyle,void 0,!0));let c=o.getBBox();if((0,d.n)((0,d.c)().flowchart.htmlLabels)){const e=o.children[0],t=(0,s.Ys)(o);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}c=o.getBBox();const h=0*t.padding,g=h/2,f=t.width<=c.width+t.padding?c.width+t.padding:t.width;t.width<=c.width+t.padding?t.diff=(c.width+0*t.padding-t.width)/2:t.diff=-t.padding/2,r.attr("class","outer").attr("x",t.x-f/2-g).attr("y",t.y-t.height/2-g).attr("width",f+h).attr("height",t.height+h),l.attr("class","inner").attr("x",t.x-f/2-g).attr("y",t.y-t.height/2-g+c.height-1).attr("width",f+h).attr("height",t.height+h-c.height-3),i.attr("transform","translate("+(t.x-c.width/2)+", "+(t.y-t.height/2-t.padding/3+((0,d.n)((0,d.c)().flowchart.htmlLabels)?5:3))+")");const u=r.node().getBBox();return t.height=u.height,t.intersect=function(e){return(0,a.i)(t,e)},n},noteGroup:(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,d=i/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-d).attr("y",t.y-t.height/2-d).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const l=r.node().getBBox();return t.width=l.width,t.height=l.height,t.intersect=function(e){return(0,a.i)(t,e)},n},divider:(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,d=i/2;r.attr("class","divider").attr("x",t.x-t.width/2-d).attr("y",t.y-t.height/2).attr("width",t.width+i).attr("height",t.height+i);const l=r.node().getBBox();return t.width=l.width,t.height=l.height,t.diff=-t.padding/2,t.intersect=function(e){return(0,a.i)(t,e)},n}};let b={};const N=async(e,t,n,l)=>{d.l.info("Graph in recursive render: XXX",i.c(t),l);const o=t.graph().rankdir;d.l.trace("Dir in recursive render - dir:",o);const s=e.insert("g").attr("class","root");t.nodes()?d.l.info("Recursive render XXX",t.nodes()):d.l.info("No nodes found for",t),t.edges().length>0&&d.l.trace("Recursive edges",t.edge(t.edges()[0]));const h=s.insert("g").attr("class","clusters"),g=s.insert("g").attr("class","edgePaths"),f=s.insert("g").attr("class","edgeLabels"),u=s.insert("g").attr("class","nodes");await Promise.all(t.nodes().map((async function(e){const r=t.node(e);if(void 0!==l){const n=JSON.parse(JSON.stringify(l.clusterData));d.l.info("Setting data for cluster XXX (",e,") ",n,l),t.setNode(l.id,n),t.parent(e)||(d.l.trace("Setting parent",e,l.id),t.setParent(e,l.id,n))}if(d.l.info("(Insert) Node XXX"+e+": "+JSON.stringify(t.node(e))),r&&r.clusterNode){d.l.info("Cluster identified",e,r.width,t.node(e));const i=await N(u,r.graph,n,t.node(e)),l=i.elem;(0,a.u)(r,l),r.diff=i.diff||0,d.l.info("Node bounds (abc123)",e,r,r.width,r.x,r.y),(0,a.s)(l,r),d.l.warn("Recursive render complete ",l,r)}else t.children(e).length>0?(d.l.info("Cluster - the non recursive path XXX",e,r.id,r,t),d.l.info(p(r.id,t)),c[r.id]={id:p(r.id,t),node:r}):(d.l.info("Node - the non recursive path",e,r.id,r),await(0,a.e)(u,t.node(e),o))}))),t.edges().forEach((function(e){const n=t.edge(e.v,e.w,e.name);d.l.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),d.l.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(t.edge(e))),d.l.info("Fix",c,"ids:",e.v,e.w,"Translateing: ",c[e.v],c[e.w]),(0,a.f)(f,n)})),t.edges().forEach((function(e){d.l.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e))})),d.l.info("#############################################"),d.l.info("### Layout ###"),d.l.info("#############################################"),d.l.info(t),(0,r.bK)(t),d.l.info("Graph after layout:",i.c(t));let w=0;return(e=>x(e,e.children()))(t).forEach((function(e){const n=t.node(e);d.l.info("Position "+e+": "+JSON.stringify(t.node(e))),d.l.info("Position "+e+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n&&n.clusterNode?(0,a.p)(n):t.children(e).length>0?(((e,t)=>{d.l.trace("Inserting cluster");const n=t.shape||"rect";b[t.id]=m[n](e,t)})(h,n),c[n.id].node=n):(0,a.p)(n)})),t.edges().forEach((function(e){const r=t.edge(e);d.l.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(r),r);const i=(0,a.g)(g,e,r,c,n,t);(0,a.h)(r,i)})),t.nodes().forEach((function(e){const n=t.node(e);d.l.info(e,n.type,n.diff),"group"===n.type&&(w=n.diff)})),{elem:s,diff:w}},X=async(e,t,n,r,l)=>{(0,a.a)(e,n,r,l),(0,a.b)(),(0,a.d)(),b={},h={},g={},c={},d.l.warn("Graph at first:",i.c(t)),((e,t)=>{e?(d.l.debug("Opting in, graph "),e.nodes().forEach((function(t){e.children(t).length>0&&(d.l.warn("Cluster identified",t," Replacement id in edges: ",p(t,e)),h[t]=w(t,e),c[t]={id:p(t,e),clusterData:e.node(t)})})),e.nodes().forEach((function(t){const n=e.children(t),r=e.edges();n.length>0?(d.l.debug("Cluster identified",t,h),r.forEach((e=>{e.v!==t&&e.w!==t&&f(e.v,t)^f(e.w,t)&&(d.l.warn("Edge: ",e," leaves cluster ",t),d.l.warn("Decendants of XXX ",t,": ",h[t]),c[t].externalConnections=!0)}))):d.l.debug("Not a cluster ",t,h)})),e.edges().forEach((function(t){const n=e.edge(t);d.l.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),d.l.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let r=t.v,i=t.w;if(d.l.warn("Fix XXX",c,"ids:",t.v,t.w,"Translating: ",c[t.v]," --- ",c[t.w]),c[t.v]&&c[t.w]&&c[t.v]===c[t.w]){d.l.warn("Fixing and trixing link to self - removing XXX",t.v,t.w,t.name),d.l.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),r=v(t.v),i=v(t.w),e.removeEdge(t.v,t.w,t.name);const a=t.w+"---"+t.v;e.setNode(a,{domId:a,id:a,labelStyle:"",labelText:n.label,padding:0,shape:"labelRect",style:""});const l=JSON.parse(JSON.stringify(n)),o=JSON.parse(JSON.stringify(n));l.label="",l.arrowTypeEnd="none",o.label="",l.fromCluster=t.v,o.toCluster=t.v,e.setEdge(r,a,l,t.name+"-cyclic-special"),e.setEdge(a,i,o,t.name+"-cyclic-special")}else(c[t.v]||c[t.w])&&(d.l.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),r=v(t.v),i=v(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v&&(n.fromCluster=t.v),i!==t.w&&(n.toCluster=t.w),d.l.warn("Fix Replacing with XXX",r,i,t.name),e.setEdge(r,i,n,t.name))})),d.l.warn("Adjusted Graph",i.c(e)),y(e,0),d.l.trace(c)):d.l.debug("Opting out, no graph ")})(t),d.l.warn("Graph after:",i.c(t)),await N(e,t,r)}}}]); \ No newline at end of file diff --git a/static/js/34.js b/static/js/34.js deleted file mode 100644 index 6973c65ce..000000000 --- a/static/js/34.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[34],{17295:(n,t,e)=>{n.exports=function n(t,e,i){function r(a,u){if(!e[a]){if(!t[a]){if(c)return c(a,!0);var o=new Error("Cannot find module '"+a+"'");throw o.code="MODULE_NOT_FOUND",o}var s=e[a]={exports:{}};t[a][0].call(s.exports,(function(n){return r(t[a][1][n]||n)}),s,s.exports,n,t,e,i)}return e[a].exports}for(var c=void 0,a=0;a0&&void 0!==arguments[0]?arguments[0]:{},i=e.defaultLayoutOptions,c=void 0===i?{}:i,u=e.algorithms,o=void 0===u?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:u,s=e.workerFactory,h=e.workerUrl;if(r(this,n),this.defaultLayoutOptions=c,this.initialized=!1,void 0===h&&void 0===s)throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var f=s;void 0!==h&&void 0===s&&(f=function(n){return new Worker(n)});var l=f(h);if("function"!=typeof l.postMessage)throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new a(l),this.worker.postMessage({cmd:"register",algorithms:o}).then((function(n){return t.initialized=!0})).catch(console.err)}return i(n,[{key:"layout",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.layoutOptions,i=void 0===e?this.defaultLayoutOptions:e,r=t.logging,c=void 0!==r&&r,a=t.measureExecutionTime,u=void 0!==a&&a;return n?this.worker.postMessage({cmd:"layout",graph:n,layoutOptions:i,options:{logging:c,measureExecutionTime:u}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),n}();e.default=c;var a=function(){function n(t){var e=this;if(r(this,n),void 0===t)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=t,this.worker.onmessage=function(n){setTimeout((function(){e.receive(e,n)}),0)}}return i(n,[{key:"postMessage",value:function(n){var t=this.id||0;this.id=t+1,n.id=t;var e=this;return new Promise((function(i,r){e.resolvers[t]=function(n,t){n?(e.convertGwtStyleError(n),r(n)):i(t)},e.worker.postMessage(n)}))}},{key:"receive",value:function(n,t){var e=t.data,i=n.resolvers[e.id];i&&(delete n.resolvers[e.id],e.error?i(e.error):i(null,e.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(n){if(n){var t=n.__java$exception;t&&(t.cause&&t.cause.backingJsObject&&(n.cause=t.cause.backingJsObject,this.convertGwtStyleError(n.cause)),delete n.__java$exception)}}}]),n}()},{}],2:[function(n,t,i){(function(n){(function(){"use strict";var e;function r(){}function c(){}function a(){}function u(){}function o(){}function s(){}function h(){}function f(){}function l(){}function b(){}function w(){}function d(){}function g(){}function p(){}function v(){}function m(){}function y(){}function k(){}function j(){}function E(){}function T(){}function M(){}function S(){}function P(){}function I(){}function C(){}function O(){}function A(){}function $(){}function L(){}function N(){}function x(){}function D(){}function R(){}function K(){}function _(){}function F(){}function B(){}function H(){}function q(){}function G(){}function z(){}function U(){}function X(){}function W(){}function V(){}function Q(){}function Y(){}function J(){}function Z(){}function nn(){}function tn(){}function en(){}function rn(){}function cn(){}function an(){}function un(){}function on(){}function sn(){}function hn(){}function fn(){}function ln(){}function bn(){}function wn(){}function dn(){}function gn(){}function pn(){}function vn(){}function mn(){}function yn(){}function kn(){}function jn(){}function En(){}function Tn(){}function Mn(){}function Sn(){}function Pn(){}function In(){}function Cn(){}function On(){}function An(){}function $n(){}function Ln(){}function Nn(){}function xn(){}function Dn(){}function Rn(){}function Kn(){}function _n(){}function Fn(){}function Bn(){}function Hn(){}function qn(){}function Gn(){}function zn(){}function Un(){}function Xn(){}function Wn(){}function Vn(){}function Qn(){}function Yn(){}function Jn(){}function Zn(){}function nt(){}function tt(){}function et(){}function it(){}function rt(){}function ct(){}function at(){}function ut(){}function ot(){}function st(){}function ht(){}function ft(){}function lt(){}function bt(){}function wt(){}function dt(){}function gt(){}function pt(){}function vt(){}function mt(){}function yt(){}function kt(){}function jt(){}function Et(){}function Tt(){}function Mt(){}function St(){}function Pt(){}function It(){}function Ct(){}function Ot(){}function At(){}function $t(){}function Lt(){}function Nt(){}function xt(){}function Dt(){}function Rt(){}function Kt(){}function _t(){}function Ft(){}function Bt(){}function Ht(){}function qt(){}function Gt(){}function zt(){}function Ut(){}function Xt(){}function Wt(){}function Vt(){}function Qt(){}function Yt(){}function Jt(){}function Zt(){}function ne(){}function te(){}function ee(){}function ie(){}function re(){}function ce(){}function ae(){}function ue(){}function oe(){}function se(){}function he(){}function fe(){}function le(){}function be(){}function we(){}function de(){}function ge(){}function pe(){}function ve(){}function me(){}function ye(){}function ke(){}function je(){}function Ee(){}function Te(){}function Me(){}function Se(){}function Pe(){}function Ie(){}function Ce(){}function Oe(){}function Ae(){}function $e(){}function Le(){}function Ne(){}function xe(){}function De(){}function Re(){}function Ke(){}function _e(){}function Fe(){}function Be(){}function He(){}function qe(){}function Ge(){}function ze(){}function Ue(){}function Xe(){}function We(){}function Ve(){}function Qe(){}function Ye(){}function Je(){}function Ze(){}function ni(){}function ti(){}function ei(){}function ii(){}function ri(){}function ci(){}function ai(){}function ui(){}function oi(){}function si(){}function hi(){}function fi(){}function li(){}function bi(){}function wi(){}function di(){}function gi(){}function pi(){}function vi(){}function mi(){}function yi(){}function ki(){}function ji(){}function Ei(){}function Ti(){}function Mi(){}function Si(){}function Pi(){}function Ii(){}function Ci(){}function Oi(){}function Ai(){}function $i(){}function Li(){}function Ni(){}function xi(){}function Di(){}function Ri(){}function Ki(){}function _i(){}function Fi(){}function Bi(){}function Hi(){}function qi(){}function Gi(){}function zi(){}function Ui(){}function Xi(){}function Wi(){}function Vi(){}function Qi(){}function Yi(){}function Ji(){}function Zi(){}function nr(){}function tr(){}function er(){}function ir(){}function rr(){}function cr(){}function ar(){}function ur(){}function or(){}function sr(){}function hr(){}function fr(){}function lr(){}function br(){}function wr(){}function dr(){}function gr(){}function pr(){}function vr(){}function mr(){}function yr(){}function kr(){}function jr(){}function Er(){}function Tr(){}function Mr(){}function Sr(){}function Pr(){}function Ir(){}function Cr(){}function Or(){}function Ar(){}function $r(){}function Lr(){}function Nr(){}function xr(){}function Dr(){}function Rr(){}function Kr(){}function _r(){}function Fr(){}function Br(){}function Hr(){}function qr(){}function Gr(){}function zr(){}function Ur(){}function Xr(){}function Wr(){}function Vr(){}function Qr(){}function Yr(){}function Jr(){}function Zr(){}function nc(){}function tc(){}function ec(){}function ic(){}function rc(){}function cc(){}function ac(){}function uc(){}function oc(){}function sc(){}function hc(){}function fc(){}function lc(){}function bc(){}function wc(){}function dc(){}function gc(){}function pc(){}function vc(){}function mc(){}function yc(){}function kc(){}function jc(){}function Ec(){}function Tc(){}function Mc(){}function Sc(){}function Pc(){}function Ic(){}function Cc(){}function Oc(){}function Ac(){}function $c(){}function Lc(){}function Nc(){}function xc(){}function Dc(){}function Rc(){}function Kc(){}function _c(){}function Fc(){}function Bc(){}function Hc(){}function qc(){}function Gc(){}function zc(){}function Uc(){}function Xc(){}function Wc(){}function Vc(){}function Qc(){}function Yc(){}function Jc(){}function Zc(){}function na(){}function ta(){}function ea(){}function ia(){}function ra(){}function ca(){}function aa(){}function ua(){}function oa(){}function sa(){}function ha(){}function fa(){}function la(){}function ba(){}function wa(){}function da(){}function ga(){}function pa(){}function va(){}function ma(){}function ya(){}function ka(){}function ja(){}function Ea(){}function Ta(){}function Ma(){}function Sa(){}function Pa(){}function Ia(){}function Ca(){}function Oa(){}function Aa(){}function $a(){}function La(){}function Na(){}function xa(){}function Da(){}function Ra(){}function Ka(){}function _a(){}function Fa(){}function Ba(){}function Ha(){}function qa(){}function Ga(){}function za(){}function Ua(){}function Xa(){}function Wa(){}function Va(){}function Qa(){}function Ya(){}function Ja(){}function Za(){}function nu(){}function tu(){}function eu(){}function iu(){}function ru(){}function cu(){}function au(){}function uu(){}function ou(){}function su(){}function hu(){}function fu(){}function lu(){}function bu(){}function wu(){}function du(){}function gu(){}function pu(){}function vu(){}function mu(){}function yu(){}function ku(){}function ju(){}function Eu(){}function Tu(){}function Mu(){}function Su(){}function Pu(){}function Iu(){}function Cu(){}function Ou(){}function Au(){}function $u(){}function Lu(){}function Nu(){}function xu(){}function Du(){}function Ru(){}function Ku(){}function _u(){}function Fu(){}function Bu(){}function Hu(){}function qu(){}function Gu(){}function zu(){}function Uu(){}function Xu(){}function Wu(){}function Vu(){}function Qu(){}function Yu(){}function Ju(){}function Zu(){}function no(){}function to(){}function eo(){}function io(){}function ro(){}function co(){}function ao(){}function uo(){}function oo(){}function so(){}function ho(){}function fo(){}function lo(){}function bo(){}function wo(){}function go(){}function po(){}function vo(){}function mo(){}function yo(){}function ko(){}function jo(){}function Eo(){}function To(){}function Mo(){}function So(){}function Po(){}function Io(){}function Co(){}function Oo(){}function Ao(){}function $o(){}function Lo(){}function No(){}function xo(){}function Do(){}function Ro(){}function Ko(){}function _o(){}function Fo(){}function Bo(){}function Ho(){}function qo(){}function Go(){}function zo(){}function Uo(){}function Xo(){}function Wo(){}function Vo(){}function Qo(){}function Yo(){}function Jo(){}function Zo(){}function ns(){}function ts(){}function es(){}function is(){}function rs(){}function cs(){}function as(){}function us(){}function os(){}function ss(){}function hs(){}function fs(){}function ls(){}function bs(){}function ws(){}function ds(){}function gs(){}function ps(){}function vs(){}function ms(){}function ys(){}function ks(){}function js(){}function Es(){}function Ts(){}function Ms(){}function Ss(){}function Ps(){}function Is(){}function Cs(){}function Os(){}function As(){}function $s(){}function Ls(){}function Ns(){}function xs(){}function Ds(){}function Rs(){}function Ks(){}function _s(){}function Fs(){}function Bs(){}function Hs(){}function qs(){}function Gs(){}function zs(){}function Us(){}function Xs(){}function Ws(){}function Vs(){}function Qs(){}function Ys(){}function Js(){}function Zs(){}function nh(){}function th(){}function eh(){}function ih(){}function rh(){}function ch(){}function ah(){}function uh(){}function oh(){}function sh(){}function hh(){}function fh(){}function lh(){}function bh(){}function wh(){}function dh(){}function gh(){}function ph(){}function vh(){}function mh(){}function yh(){}function kh(){}function jh(){}function Eh(){}function Th(){}function Mh(){}function Sh(){}function Ph(){}function Ih(){}function Ch(){}function Oh(){}function Ah(){}function $h(){}function Lh(){}function Nh(){}function xh(){}function Dh(){}function Rh(){}function Kh(){}function _h(){gm()}function Fh(){O6()}function Bh(){len()}function Hh(){pcn()}function qh(){Eon()}function Gh(){Bdn()}function zh(){Lrn()}function Uh(){Wrn()}function Xh(){QE()}function Wh(){UE()}function Vh(){Ax()}function Qh(){YE()}function Yh(){m2()}function Jh(){ZE()}function Zh(){eQ()}function nf(){P0()}function tf(){uY()}function ef(){oz()}function rf(){A6()}function cf(){Qun()}function af(){I0()}function uf(){gX()}function of(){Ajn()}function sf(){Rrn()}function hf(){sz()}function ff(){gjn()}function lf(){az()}function bf(){C0()}function wf(){e5()}function df(){bz()}function gf(){MY()}function pf(){nT()}function vf(){lln()}function mf(){_rn()}function yf(){b3()}function kf(){Dun()}function jf(){Hdn()}function Ef(){lin()}function Tf(){cln()}function Mf(){i4()}function Sf(){fz()}function Pf(){epn()}function If(){uln()}function Cf(){Jln()}function Of(){IY()}function Af(){Run()}function $f(){Cjn()}function Lf(){L6()}function Nf(){Onn()}function xf(){Jvn()}function Df(){dx()}function Rf(){W2()}function Kf(){Fpn()}function _f(n){vB(n)}function Ff(n){this.a=n}function Bf(n){this.a=n}function Hf(n){this.a=n}function qf(n){this.a=n}function Gf(n){this.a=n}function zf(n){this.a=n}function Uf(n){this.a=n}function Xf(n){this.a=n}function Wf(n){this.a=n}function Vf(n){this.a=n}function Qf(n){this.a=n}function Yf(n){this.a=n}function Jf(n){this.a=n}function Zf(n){this.a=n}function nl(n){this.a=n}function tl(n){this.a=n}function el(n){this.a=n}function il(n){this.a=n}function rl(n){this.a=n}function cl(n){this.a=n}function al(n){this.a=n}function ul(n){this.b=n}function ol(n){this.c=n}function sl(n){this.a=n}function hl(n){this.a=n}function fl(n){this.a=n}function ll(n){this.a=n}function bl(n){this.a=n}function wl(n){this.a=n}function dl(n){this.a=n}function gl(n){this.a=n}function pl(n){this.a=n}function vl(n){this.a=n}function ml(n){this.a=n}function yl(n){this.a=n}function kl(n){this.a=n}function jl(n){this.a=n}function El(n){this.a=n}function Tl(n){this.a=n}function Ml(n){this.a=n}function Sl(){this.a=[]}function Pl(n,t){n.a=t}function Il(n,t){n.j=t}function Cl(n,t){n.c=t}function Ol(n,t){n.d=t}function Al(n,t){n.k=t}function $l(n,t){n.c=t}function Ll(n,t){n.a=t}function Nl(n,t){n.a=t}function xl(n,t){n.f=t}function Dl(n,t){n.a=t}function Rl(n,t){n.b=t}function Kl(n,t){n.d=t}function _l(n,t){n.i=t}function Fl(n,t){n.o=t}function Bl(n,t){n.e=t}function Hl(n,t){n.g=t}function ql(n,t){n.e=t}function Gl(n,t){n.f=t}function zl(n,t){n.f=t}function Ul(n,t){n.n=t}function Xl(n){n.b=n.a}function Wl(n){n.c=n.d.d}function Vl(n){this.d=n}function Ql(n){this.a=n}function Yl(n){this.a=n}function Jl(n){this.a=n}function Zl(n){this.a=n}function nb(n){this.a=n}function tb(n){this.a=n}function eb(n){this.a=n}function ib(n){this.a=n}function rb(n){this.a=n}function cb(n){this.a=n}function ab(n){this.a=n}function ub(n){this.a=n}function ob(n){this.a=n}function sb(n){this.a=n}function hb(n){this.b=n}function fb(n){this.b=n}function lb(n){this.b=n}function bb(n){this.a=n}function wb(n){this.a=n}function db(n){this.a=n}function gb(n){this.c=n}function pb(n){this.c=n}function vb(n){this.c=n}function mb(n){this.a=n}function yb(n){this.a=n}function kb(n){this.a=n}function jb(n){this.a=n}function Eb(n){this.a=n}function Tb(n){this.a=n}function Mb(n){this.a=n}function Sb(n){this.a=n}function Pb(n){this.a=n}function Ib(n){this.a=n}function Cb(n){this.a=n}function Ob(n){this.a=n}function Ab(n){this.a=n}function $b(n){this.a=n}function Lb(n){this.a=n}function Nb(n){this.a=n}function xb(n){this.a=n}function Db(n){this.a=n}function Rb(n){this.a=n}function Kb(n){this.a=n}function _b(n){this.a=n}function Fb(n){this.a=n}function Bb(n){this.a=n}function Hb(n){this.a=n}function qb(n){this.a=n}function Gb(n){this.a=n}function zb(n){this.a=n}function Ub(n){this.a=n}function Xb(n){this.a=n}function Wb(n){this.a=n}function Vb(n){this.a=n}function Qb(n){this.a=n}function Yb(n){this.a=n}function Jb(n){this.a=n}function Zb(n){this.a=n}function nw(n){this.a=n}function tw(n){this.a=n}function ew(n){this.a=n}function iw(n){this.a=n}function rw(n){this.a=n}function cw(n){this.a=n}function aw(n){this.a=n}function uw(n){this.a=n}function ow(n){this.a=n}function sw(n){this.a=n}function hw(n){this.e=n}function fw(n){this.a=n}function lw(n){this.a=n}function bw(n){this.a=n}function ww(n){this.a=n}function dw(n){this.a=n}function gw(n){this.a=n}function pw(n){this.a=n}function vw(n){this.a=n}function mw(n){this.a=n}function yw(n){this.a=n}function kw(n){this.a=n}function jw(n){this.a=n}function Ew(n){this.a=n}function Tw(n){this.a=n}function Mw(n){this.a=n}function Sw(n){this.a=n}function Pw(n){this.a=n}function Iw(n){this.a=n}function Cw(n){this.a=n}function Ow(n){this.a=n}function Aw(n){this.a=n}function $w(n){this.a=n}function Lw(n){this.a=n}function Nw(n){this.a=n}function xw(n){this.a=n}function Dw(n){this.a=n}function Rw(n){this.a=n}function Kw(n){this.a=n}function _w(n){this.a=n}function Fw(n){this.a=n}function Bw(n){this.a=n}function Hw(n){this.a=n}function qw(n){this.a=n}function Gw(n){this.a=n}function zw(n){this.a=n}function Uw(n){this.a=n}function Xw(n){this.a=n}function Ww(n){this.a=n}function Vw(n){this.a=n}function Qw(n){this.a=n}function Yw(n){this.a=n}function Jw(n){this.a=n}function Zw(n){this.a=n}function nd(n){this.a=n}function td(n){this.a=n}function ed(n){this.a=n}function id(n){this.a=n}function rd(n){this.a=n}function cd(n){this.a=n}function ad(n){this.a=n}function ud(n){this.a=n}function od(n){this.a=n}function sd(n){this.a=n}function hd(n){this.c=n}function fd(n){this.b=n}function ld(n){this.a=n}function bd(n){this.a=n}function wd(n){this.a=n}function dd(n){this.a=n}function gd(n){this.a=n}function pd(n){this.a=n}function vd(n){this.a=n}function md(n){this.a=n}function yd(n){this.a=n}function kd(n){this.a=n}function jd(n){this.a=n}function Ed(n){this.a=n}function Td(n){this.a=n}function Md(n){this.a=n}function Sd(n){this.a=n}function Pd(n){this.a=n}function Id(n){this.a=n}function Cd(n){this.a=n}function Od(n){this.a=n}function Ad(n){this.a=n}function $d(n){this.a=n}function Ld(n){this.a=n}function Nd(n){this.a=n}function xd(n){this.a=n}function Dd(n){this.a=n}function Rd(n){this.a=n}function Kd(n){this.a=n}function _d(n){this.a=n}function Fd(n){this.a=n}function Bd(n){this.a=n}function Hd(n){this.a=n}function qd(n){this.a=n}function Gd(n){this.a=n}function zd(n){this.a=n}function Ud(n){this.a=n}function Xd(n){this.a=n}function Wd(n){this.a=n}function Vd(n){this.a=n}function Qd(n){this.a=n}function Yd(n){this.a=n}function Jd(n){this.a=n}function Zd(n){this.a=n}function ng(n){this.a=n}function tg(n){this.a=n}function eg(n){this.a=n}function ig(n){this.a=n}function rg(n){this.a=n}function cg(n){this.a=n}function ag(n){this.a=n}function ug(n){this.a=n}function og(n){this.a=n}function sg(n){this.a=n}function hg(n){this.a=n}function fg(n){this.a=n}function lg(n){this.a=n}function bg(n){this.a=n}function wg(n){this.a=n}function dg(n){this.a=n}function gg(n){this.a=n}function pg(n){this.a=n}function vg(n){this.a=n}function mg(n){this.a=n}function yg(n){this.a=n}function kg(n){this.a=n}function jg(n){this.a=n}function Eg(n){this.a=n}function Tg(n){this.a=n}function Mg(n){this.a=n}function Sg(n){this.a=n}function Pg(n){this.a=n}function Ig(n){this.a=n}function Cg(n){this.a=n}function Og(n){this.b=n}function Ag(n){this.f=n}function $g(n){this.a=n}function Lg(n){this.a=n}function Ng(n){this.a=n}function xg(n){this.a=n}function Dg(n){this.a=n}function Rg(n){this.a=n}function Kg(n){this.a=n}function _g(n){this.a=n}function Fg(n){this.a=n}function Bg(n){this.a=n}function Hg(n){this.a=n}function qg(n){this.b=n}function Gg(n){this.c=n}function zg(n){this.e=n}function Ug(n){this.a=n}function Xg(n){this.a=n}function Wg(n){this.a=n}function Vg(n){this.a=n}function Qg(n){this.a=n}function Yg(n){this.d=n}function Jg(n){this.a=n}function Zg(n){this.a=n}function np(n){this.e=n}function tp(){this.a=0}function ep(){$C(this)}function ip(){AC(this)}function rp(){U_(this)}function cp(){QB(this)}function ap(){}function up(){this.c=Wat}function op(n,t){n.b+=t}function sp(n){n.b=new gy}function hp(n){return n.e}function fp(n){return n.a}function lp(n){return n.a}function bp(n){return n.a}function wp(n){return n.a}function dp(n){return n.a}function gp(){return null}function pp(){return null}function vp(n,t){n.b=t-n.b}function mp(n,t){n.a=t-n.a}function yp(n,t){t.ad(n.a)}function kp(n,t){n.e=t,t.b=n}function jp(n){px(),this.a=n}function Ep(n){px(),this.a=n}function Tp(n){px(),this.a=n}function Mp(n){VF(),this.a=n}function Sp(n){$q(),p_n.be(n)}function Pp(){OA.call(this)}function Ip(){OA.call(this)}function Cp(){Pp.call(this)}function Op(){Pp.call(this)}function Ap(){Pp.call(this)}function $p(){Pp.call(this)}function Lp(){Pp.call(this)}function Np(){Pp.call(this)}function xp(){Pp.call(this)}function Dp(){Pp.call(this)}function Rp(){Pp.call(this)}function Kp(){Pp.call(this)}function _p(){Pp.call(this)}function Fp(){this.a=this}function Bp(){this.Bb|=256}function Hp(){this.b=new xI}function qp(){qp=O,new rp}function Gp(){Cp.call(this)}function zp(n,t){n.length=t}function Up(n,t){eD(n.a,t)}function Xp(n,t){K3(n.e,t)}function Wp(n){kfn(n.c,n.b)}function Vp(n){this.a=function(n){var t;return(t=gon(n))>34028234663852886e22?JTn:t<-34028234663852886e22?ZTn:t}(n)}function Qp(){this.a=new rp}function Yp(){this.a=new rp}function Jp(){this.a=new ip}function Zp(){this.a=new ip}function nv(){this.a=new ip}function tv(){this.a=new kn}function ev(){this.a=new WV}function iv(){this.a=new bt}function rv(){this.a=new jE}function cv(){this.a=new gU}function av(){this.a=new NG}function uv(){this.a=new aN}function ov(){this.a=new ip}function sv(){this.a=new ip}function hv(){this.a=new ip}function fv(){this.a=new ip}function lv(){this.d=new ip}function bv(){this.a=new Qp}function wv(){this.a=new rp}function dv(){this.b=new rp}function gv(){this.b=new ip}function pv(){this.e=new ip}function vv(){this.d=new ip}function mv(){this.a=new cf}function yv(){ip.call(this)}function kv(){Jp.call(this)}function jv(){sN.call(this)}function Ev(){sv.call(this)}function Tv(){Mv.call(this)}function Mv(){ap.call(this)}function Sv(){ap.call(this)}function Pv(){Sv.call(this)}function Iv(){Eq.call(this)}function Cv(){Eq.call(this)}function Ov(){um.call(this)}function Av(){um.call(this)}function $v(){um.call(this)}function Lv(){om.call(this)}function Nv(){ME.call(this)}function xv(){eo.call(this)}function Dv(){eo.call(this)}function Rv(){bm.call(this)}function Kv(){bm.call(this)}function _v(){rp.call(this)}function Fv(){rp.call(this)}function Bv(){rp.call(this)}function Hv(){Qp.call(this)}function qv(){T0.call(this)}function Gv(){Bp.call(this)}function zv(){zO.call(this)}function Uv(){zO.call(this)}function Xv(){rp.call(this)}function Wv(){rp.call(this)}function Vv(){rp.call(this)}function Qv(){yo.call(this)}function Yv(){yo.call(this)}function Jv(){Qv.call(this)}function Zv(){Dh.call(this)}function nm(n){_Z.call(this,n)}function tm(n){_Z.call(this,n)}function em(n){Wf.call(this,n)}function im(n){tE.call(this,n)}function rm(n){im.call(this,n)}function cm(n){tE.call(this,n)}function am(){this.a=new ME}function um(){this.a=new Qp}function om(){this.a=new rp}function sm(){this.a=new ip}function hm(){this.j=new ip}function fm(){this.a=new Xa}function lm(){this.a=new bj}function bm(){this.a=new mo}function wm(){wm=O,n_n=new Ky}function dm(){dm=O,ZKn=new Ry}function gm(){gm=O,zKn=new c}function pm(){pm=O,a_n=new mA}function vm(n){im.call(this,n)}function mm(n){im.call(this,n)}function ym(n){hW.call(this,n)}function km(n){hW.call(this,n)}function jm(n){ix.call(this,n)}function Em(n){kon.call(this,n)}function Tm(n){rE.call(this,n)}function Mm(n){aE.call(this,n)}function Sm(n){aE.call(this,n)}function Pm(n){aE.call(this,n)}function Im(n){xK.call(this,n)}function Cm(n){Im.call(this,n)}function Om(){Ml.call(this,{})}function Am(n){qO(),this.a=n}function $m(n){n.b=null,n.c=0}function Lm(n,t){n.a=t,function(n){var t,i,r;for(function(n){var t,i,r;for(i=new pb(n.a.a.b);i.a0&&((!lC(n.a.c)||!t.n.d)&&(!bC(n.a.c)||!t.n.b)&&(t.g.d-=e.Math.max(0,r/2-.5)),(!lC(n.a.c)||!t.n.a)&&(!bC(n.a.c)||!t.n.c)&&(t.g.a+=e.Math.max(0,r-1)))}(n),r=new ip,i=new pb(n.a.a.b);i.a0&&((!lC(n.a.c)||!t.n.d)&&(!bC(n.a.c)||!t.n.b)&&(t.g.d+=e.Math.max(0,r/2-.5)),(!lC(n.a.c)||!t.n.a)&&(!bC(n.a.c)||!t.n.c)&&(t.g.a-=r-1))}(n)}(n)}function Nm(n,t,e){n.a[t.g]=e}function xm(n,t,e){!function(n,t,e){var i,r;for(TC(n,n.j+t,n.k+e),r=new UO((!n.a&&(n.a=new XO(Qrt,n,5)),n.a));r.e!=r.i.gc();)yC(i=Yx(hen(r),469),i.a+t,i.b+e);EC(n,n.b+t,n.c+e)}(e,n,t)}function Dm(n,t){!function(n,t){lC(n.f)?function(n,t){var e,i,r,c,a;for(c=n.g.a,a=n.g.b,i=new pb(n.d);i.a=n.length)return{done:!0};var i=n[e++];return{value:[i,t.get(i)],done:!1}}}},function(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var n="__proto__",t=Object.create(null);return void 0===t[n]&&0==Object.getOwnPropertyNames(t).length&&(t[n]=42,42===t[n]&&0!=Object.getOwnPropertyNames(t).length)}()||(n.prototype.createObject=function(){return{}},n.prototype.get=function(n){return this.obj[":"+n]},n.prototype.set=function(n,t){this.obj[":"+n]=t},n.prototype[vMn]=function(n){delete this.obj[":"+n]},n.prototype.keys=function(){var n=[];for(var t in this.obj)58==t.charCodeAt(0)&&n.push(t.substring(1));return n}),n}()}()}function By(n){return n.a?n.b:0}function Hy(n){return n.a?n.b:0}function qy(n,t){return aJ(n,t)}function Gy(n,t){return qG(n,t)}function zy(n,t){return n.f=t,n}function Uy(n,t){return n.c=t,n}function Xy(n,t){return n.a=t,n}function Wy(n,t){return n.f=t,n}function Vy(n,t){return n.k=t,n}function Qy(n,t){return n.a=t,n}function Yy(n,t){return n.e=t,n}function Jy(n,t){n.b=!0,n.d=t}function Zy(n,t){return n?0:t-1}function nk(n,t){return n.b=t,n}function tk(n,t){return n.a=t,n}function ek(n,t){return n.c=t,n}function ik(n,t){return n.d=t,n}function rk(n,t){return n.e=t,n}function ck(n,t){return n.f=t,n}function ak(n,t){return n.a=t,n}function uk(n,t){return n.b=t,n}function ok(n,t){return n.c=t,n}function sk(n,t){return n.c=t,n}function hk(n,t){return n.b=t,n}function fk(n,t){return n.d=t,n}function lk(n,t){return n.e=t,n}function bk(n,t){return n.g=t,n}function wk(n,t){return n.a=t,n}function dk(n,t){return n.i=t,n}function gk(n,t){return n.j=t,n}function pk(n,t){return n.k=t,n}function vk(n,t,e){!function(n,t,e){__(n,new ZT(t.a,e.a))}(n.a,t,e)}function mk(n){wH.call(this,n)}function yk(n){wH.call(this,n)}function kk(n){ox.call(this,n)}function jk(n){O7.call(this,n)}function Ek(n){FZ.call(this,n)}function Tk(n){KH.call(this,n)}function Mk(n){KH.call(this,n)}function Sk(){sO.call(this,"")}function Pk(){this.a=0,this.b=0}function Ik(){this.b=0,this.a=0}function Ck(n,t){n.b=0,F1(n,t)}function Ok(n,t){return n.c._b(t)}function Ak(n){return n.e&&n.e()}function $k(n){return n?n.d:null}function Lk(n,t){return R8(n.b,t)}function Nk(n){return sL(n),n.o}function xk(){xk=O,Ort=function(){var n,t;Jvn();try{if(t=Yx(Jcn((mT(),aat),xNn),2014))return t}catch(t){if(!CO(t=j4(t),102))throw hp(t);n=t,AK((GC(),n))}return new ao}()}function Dk(){var n;Dk=O,Art=sct?Yx(Hln((mT(),aat),xNn),2016):(n=Yx(CO(aG((mT(),aat),xNn),555)?aG(aat,xNn):new Gfn,555),sct=!0,function(n){n.q||(n.q=!0,n.p=q3(n,0),n.a=q3(n,1),P2(n.a,0),n.f=q3(n,2),P2(n.f,1),S2(n.f,2),n.n=q3(n,3),S2(n.n,3),S2(n.n,4),S2(n.n,5),S2(n.n,6),n.g=q3(n,4),P2(n.g,7),S2(n.g,8),n.c=q3(n,5),P2(n.c,7),P2(n.c,8),n.i=q3(n,6),P2(n.i,9),P2(n.i,10),P2(n.i,11),P2(n.i,12),S2(n.i,13),n.j=q3(n,7),P2(n.j,9),n.d=q3(n,8),P2(n.d,3),P2(n.d,4),P2(n.d,5),P2(n.d,6),S2(n.d,7),S2(n.d,8),S2(n.d,9),S2(n.d,10),n.b=q3(n,9),S2(n.b,0),S2(n.b,1),n.e=q3(n,10),S2(n.e,1),S2(n.e,2),S2(n.e,3),S2(n.e,4),P2(n.e,5),P2(n.e,6),P2(n.e,7),P2(n.e,8),P2(n.e,9),P2(n.e,10),S2(n.e,11),n.k=q3(n,11),S2(n.k,0),S2(n.k,1),n.o=G3(n,12),n.s=G3(n,13))}(n),function(n){var t,e,i,r,c,a,u;n.r||(n.r=!0,E2(n,"graph"),T2(n,"graph"),M2(n,xNn),g4(n.o,"T"),fY(Iq(n.a),n.p),fY(Iq(n.f),n.a),fY(Iq(n.n),n.f),fY(Iq(n.g),n.n),fY(Iq(n.c),n.n),fY(Iq(n.i),n.c),fY(Iq(n.j),n.c),fY(Iq(n.d),n.f),fY(Iq(n.e),n.a),TU(n.p,uqn,zSn,!0,!0,!1),u=$4(a=o6(n.p,n.p,"setProperty")),t=SH(n.o),e=new up,fY((!t.d&&(t.d=new XO(hat,t,1)),t.d),e),van(e,i=PH(u)),Ycn(a,t,RNn),Ycn(a,t=PH(u),KNn),u=$4(a=o6(n.p,null,"getProperty")),t=SH(n.o),e=PH(u),fY((!t.d&&(t.d=new XO(hat,t,1)),t.d),e),Ycn(a,t,RNn),(c=fun(a,t=PH(u),null))&&c.Fi(),a=o6(n.p,n.wb.e,"hasProperty"),t=SH(n.o),e=new up,fY((!t.d&&(t.d=new XO(hat,t,1)),t.d),e),Ycn(a,t,RNn),Crn(a=o6(n.p,n.p,"copyProperties"),n.p,_Nn),a=o6(n.p,null,"getAllProperties"),t=SH(n.wb.P),e=SH(n.o),fY((!t.d&&(t.d=new XO(hat,t,1)),t.d),e),i=new up,fY((!e.d&&(e.d=new XO(hat,e,1)),e.d),i),e=SH(n.wb.M),fY((!t.d&&(t.d=new XO(hat,t,1)),t.d),e),(r=fun(a,t,null))&&r.Fi(),TU(n.a,Vrt,aNn,!0,!1,!0),Prn(Yx(c1(aq(n.a),0),18),n.k,null,FNn,0,-1,Vrt,!1,!1,!0,!0,!1,!1,!1),TU(n.f,Yrt,oNn,!0,!1,!0),Prn(Yx(c1(aq(n.f),0),18),n.g,Yx(c1(aq(n.g),0),18),"labels",0,-1,Yrt,!1,!1,!0,!0,!1,!1,!1),z2(Yx(c1(aq(n.f),1),34),n.wb._,BNn,null,0,1,Yrt,!1,!1,!0,!1,!0,!1),TU(n.n,Jrt,"ElkShape",!0,!1,!0),z2(Yx(c1(aq(n.n),0),34),n.wb.t,HNn,sMn,1,1,Jrt,!1,!1,!0,!1,!0,!1),z2(Yx(c1(aq(n.n),1),34),n.wb.t,qNn,sMn,1,1,Jrt,!1,!1,!0,!1,!0,!1),z2(Yx(c1(aq(n.n),2),34),n.wb.t,"x",sMn,1,1,Jrt,!1,!1,!0,!1,!0,!1),z2(Yx(c1(aq(n.n),3),34),n.wb.t,"y",sMn,1,1,Jrt,!1,!1,!0,!1,!0,!1),Crn(a=o6(n.n,null,"setDimensions"),n.wb.t,qNn),Crn(a,n.wb.t,HNn),Crn(a=o6(n.n,null,"setLocation"),n.wb.t,"x"),Crn(a,n.wb.t,"y"),TU(n.g,act,wNn,!1,!1,!0),Prn(Yx(c1(aq(n.g),0),18),n.f,Yx(c1(aq(n.f),0),18),GNn,0,1,act,!1,!1,!0,!1,!1,!1,!1),z2(Yx(c1(aq(n.g),1),34),n.wb._,zNn,"",0,1,act,!1,!1,!0,!1,!0,!1),TU(n.c,Zrt,sNn,!0,!1,!0),Prn(Yx(c1(aq(n.c),0),18),n.d,Yx(c1(aq(n.d),1),18),"outgoingEdges",0,-1,Zrt,!1,!1,!0,!1,!0,!1,!1),Prn(Yx(c1(aq(n.c),1),18),n.d,Yx(c1(aq(n.d),2),18),"incomingEdges",0,-1,Zrt,!1,!1,!0,!1,!0,!1,!1),TU(n.i,uct,dNn,!1,!1,!0),Prn(Yx(c1(aq(n.i),0),18),n.j,Yx(c1(aq(n.j),0),18),"ports",0,-1,uct,!1,!1,!0,!0,!1,!1,!1),Prn(Yx(c1(aq(n.i),1),18),n.i,Yx(c1(aq(n.i),2),18),UNn,0,-1,uct,!1,!1,!0,!0,!1,!1,!1),Prn(Yx(c1(aq(n.i),2),18),n.i,Yx(c1(aq(n.i),1),18),GNn,0,1,uct,!1,!1,!0,!1,!1,!1,!1),Prn(Yx(c1(aq(n.i),3),18),n.d,Yx(c1(aq(n.d),0),18),"containedEdges",0,-1,uct,!1,!1,!0,!0,!1,!1,!1),z2(Yx(c1(aq(n.i),4),34),n.wb.e,XNn,null,0,1,uct,!0,!0,!1,!1,!0,!0),TU(n.j,oct,gNn,!1,!1,!0),Prn(Yx(c1(aq(n.j),0),18),n.i,Yx(c1(aq(n.i),0),18),GNn,0,1,oct,!1,!1,!0,!1,!1,!1,!1),TU(n.d,nct,hNn,!1,!1,!0),Prn(Yx(c1(aq(n.d),0),18),n.i,Yx(c1(aq(n.i),3),18),"containingNode",0,1,nct,!1,!1,!0,!1,!1,!1,!1),Prn(Yx(c1(aq(n.d),1),18),n.c,Yx(c1(aq(n.c),0),18),WNn,0,-1,nct,!1,!1,!0,!1,!0,!1,!1),Prn(Yx(c1(aq(n.d),2),18),n.c,Yx(c1(aq(n.c),1),18),VNn,0,-1,nct,!1,!1,!0,!1,!0,!1,!1),Prn(Yx(c1(aq(n.d),3),18),n.e,Yx(c1(aq(n.e),5),18),QNn,0,-1,nct,!1,!1,!0,!0,!1,!1,!1),z2(Yx(c1(aq(n.d),4),34),n.wb.e,"hyperedge",null,0,1,nct,!0,!0,!1,!1,!0,!0),z2(Yx(c1(aq(n.d),5),34),n.wb.e,XNn,null,0,1,nct,!0,!0,!1,!1,!0,!0),z2(Yx(c1(aq(n.d),6),34),n.wb.e,"selfloop",null,0,1,nct,!0,!0,!1,!1,!0,!0),z2(Yx(c1(aq(n.d),7),34),n.wb.e,"connected",null,0,1,nct,!0,!0,!1,!1,!0,!0),TU(n.b,Qrt,uNn,!1,!1,!0),z2(Yx(c1(aq(n.b),0),34),n.wb.t,"x",sMn,1,1,Qrt,!1,!1,!0,!1,!0,!1),z2(Yx(c1(aq(n.b),1),34),n.wb.t,"y",sMn,1,1,Qrt,!1,!1,!0,!1,!0,!1),Crn(a=o6(n.b,null,"set"),n.wb.t,"x"),Crn(a,n.wb.t,"y"),TU(n.e,tct,fNn,!1,!1,!0),z2(Yx(c1(aq(n.e),0),34),n.wb.t,"startX",null,0,1,tct,!1,!1,!0,!1,!0,!1),z2(Yx(c1(aq(n.e),1),34),n.wb.t,"startY",null,0,1,tct,!1,!1,!0,!1,!0,!1),z2(Yx(c1(aq(n.e),2),34),n.wb.t,"endX",null,0,1,tct,!1,!1,!0,!1,!0,!1),z2(Yx(c1(aq(n.e),3),34),n.wb.t,"endY",null,0,1,tct,!1,!1,!0,!1,!0,!1),Prn(Yx(c1(aq(n.e),4),18),n.b,null,YNn,0,-1,tct,!1,!1,!0,!0,!1,!1,!1),Prn(Yx(c1(aq(n.e),5),18),n.d,Yx(c1(aq(n.d),3),18),GNn,0,1,tct,!1,!1,!0,!1,!1,!1,!1),Prn(Yx(c1(aq(n.e),6),18),n.c,null,JNn,0,1,tct,!1,!1,!0,!1,!0,!1,!1),Prn(Yx(c1(aq(n.e),7),18),n.c,null,ZNn,0,1,tct,!1,!1,!0,!1,!0,!1,!1),Prn(Yx(c1(aq(n.e),8),18),n.e,Yx(c1(aq(n.e),9),18),nxn,0,-1,tct,!1,!1,!0,!1,!0,!1,!1),Prn(Yx(c1(aq(n.e),9),18),n.e,Yx(c1(aq(n.e),8),18),txn,0,-1,tct,!1,!1,!0,!1,!0,!1,!1),z2(Yx(c1(aq(n.e),10),34),n.wb._,BNn,null,0,1,tct,!1,!1,!0,!1,!0,!1),Crn(a=o6(n.e,null,"setStartLocation"),n.wb.t,"x"),Crn(a,n.wb.t,"y"),Crn(a=o6(n.e,null,"setEndLocation"),n.wb.t,"x"),Crn(a,n.wb.t,"y"),TU(n.k,i_n,"ElkPropertyToValueMapEntry",!1,!1,!1),t=SH(n.o),e=new up,fY((!t.d&&(t.d=new XO(hat,t,1)),t.d),e),Pfn(Yx(c1(aq(n.k),0),34),t,"key",i_n,!1,!1,!0,!1),z2(Yx(c1(aq(n.k),1),34),n.s,KNn,null,0,1,i_n,!1,!1,!0,!1,!0,!1),YB(n.o,S7n,"IProperty",!0),YB(n.s,UKn,"PropertyValue",!0),s8(n,xNn))}(n),Srn(n),GG(aat,xNn,n),n)}function Rk(){Rk=O,dat=function(){var n,t;Jvn();try{if(t=Yx(Jcn((mT(),aat),hRn),1941))return t}catch(t){if(!CO(t=j4(t),102))throw hp(t);n=t,AK((GC(),n))}return new qo}()}function Kk(){Kk=O,Out=function(){var n,t;rJ();try{if(t=Yx(Jcn((mT(),aat),BRn),2024))return t}catch(t){if(!CO(t=j4(t),102))throw hp(t);n=t,AK((GC(),n))}return new Ds}()}function _k(){var n;_k=O,Aut=wot?Yx(Hln((mT(),aat),BRn),1945):(zI(Cut,new Vs),zI(aot,new ah),zI(uot,new ph),zI(oot,new Ih),zI(fFn,new $h),zI(Gy(Yot,1),new Lh),zI(D_n,new Nh),zI(__n,new xh),zI(fFn,new _s),zI(fFn,new Fs),zI(fFn,new Bs),zI(H_n,new Hs),zI(fFn,new qs),zI(JKn,new Gs),zI(JKn,new zs),zI(fFn,new Us),zI(q_n,new Xs),zI(fFn,new Ws),zI(fFn,new Qs),zI(fFn,new Ys),zI(fFn,new Js),zI(fFn,new Zs),zI(Gy(Yot,1),new nh),zI(fFn,new th),zI(fFn,new eh),zI(JKn,new ih),zI(JKn,new rh),zI(fFn,new ch),zI(U_n,new uh),zI(fFn,new oh),zI(J_n,new sh),zI(fFn,new hh),zI(fFn,new fh),zI(fFn,new lh),zI(fFn,new bh),zI(JKn,new wh),zI(JKn,new dh),zI(fFn,new gh),zI(fFn,new vh),zI(fFn,new mh),zI(fFn,new yh),zI(fFn,new kh),zI(fFn,new jh),zI(nFn,new Eh),zI(fFn,new Th),zI(fFn,new Mh),zI(fFn,new Sh),zI(nFn,new Ph),zI(J_n,new Ch),zI(fFn,new Oh),zI(U_n,new Ah),n=Yx(CO(aG((mT(),aat),BRn),586)?aG(aat,BRn):new AB,586),wot=!0,function(n){n.N||(n.N=!0,n.b=q3(n,0),S2(n.b,0),S2(n.b,1),S2(n.b,2),n.bb=q3(n,1),S2(n.bb,0),S2(n.bb,1),n.fb=q3(n,2),S2(n.fb,3),S2(n.fb,4),P2(n.fb,5),n.qb=q3(n,3),S2(n.qb,0),P2(n.qb,1),P2(n.qb,2),S2(n.qb,3),S2(n.qb,4),P2(n.qb,5),S2(n.qb,6),n.a=G3(n,4),n.c=G3(n,5),n.d=G3(n,6),n.e=G3(n,7),n.f=G3(n,8),n.g=G3(n,9),n.i=G3(n,10),n.j=G3(n,11),n.k=G3(n,12),n.n=G3(n,13),n.o=G3(n,14),n.p=G3(n,15),n.q=G3(n,16),n.s=G3(n,17),n.r=G3(n,18),n.t=G3(n,19),n.u=G3(n,20),n.v=G3(n,21),n.w=G3(n,22),n.B=G3(n,23),n.A=G3(n,24),n.C=G3(n,25),n.D=G3(n,26),n.F=G3(n,27),n.G=G3(n,28),n.H=G3(n,29),n.J=G3(n,30),n.I=G3(n,31),n.K=G3(n,32),n.M=G3(n,33),n.L=G3(n,34),n.P=G3(n,35),n.Q=G3(n,36),n.R=G3(n,37),n.S=G3(n,38),n.T=G3(n,39),n.U=G3(n,40),n.V=G3(n,41),n.X=G3(n,42),n.W=G3(n,43),n.Y=G3(n,44),n.Z=G3(n,45),n.$=G3(n,46),n._=G3(n,47),n.ab=G3(n,48),n.cb=G3(n,49),n.db=G3(n,50),n.eb=G3(n,51),n.gb=G3(n,52),n.hb=G3(n,53),n.ib=G3(n,54),n.jb=G3(n,55),n.kb=G3(n,56),n.lb=G3(n,57),n.mb=G3(n,58),n.nb=G3(n,59),n.ob=G3(n,60),n.pb=G3(n,61))}(n),function(n){var t;n.O||(n.O=!0,E2(n,"type"),T2(n,"ecore.xml.type"),M2(n,BRn),t=Yx(Hln((mT(),aat),BRn),1945),fY(Iq(n.fb),n.b),TU(n.b,Cut,"AnyType",!1,!1,!0),z2(Yx(c1(aq(n.b),0),34),n.wb.D,ZDn,null,0,-1,Cut,!1,!1,!0,!1,!1,!1),z2(Yx(c1(aq(n.b),1),34),n.wb.D,"any",null,0,-1,Cut,!0,!0,!0,!1,!1,!0),z2(Yx(c1(aq(n.b),2),34),n.wb.D,"anyAttribute",null,0,-1,Cut,!1,!1,!0,!1,!1,!1),TU(n.bb,aot,URn,!1,!1,!0),z2(Yx(c1(aq(n.bb),0),34),n.gb,"data",null,0,1,aot,!1,!1,!0,!1,!0,!1),z2(Yx(c1(aq(n.bb),1),34),n.gb,lxn,null,1,1,aot,!1,!1,!0,!1,!0,!1),TU(n.fb,uot,XRn,!1,!1,!0),z2(Yx(c1(aq(n.fb),0),34),t.gb,"rawValue",null,0,1,uot,!0,!0,!0,!1,!0,!0),z2(Yx(c1(aq(n.fb),1),34),t.a,KNn,null,0,1,uot,!0,!0,!0,!1,!0,!0),Prn(Yx(c1(aq(n.fb),2),18),n.wb.q,null,"instanceType",1,1,uot,!1,!1,!0,!1,!1,!1,!1),TU(n.qb,oot,WRn,!1,!1,!0),z2(Yx(c1(aq(n.qb),0),34),n.wb.D,ZDn,null,0,-1,null,!1,!1,!0,!1,!1,!1),Prn(Yx(c1(aq(n.qb),1),18),n.wb.ab,null,"xMLNSPrefixMap",0,-1,null,!0,!1,!0,!0,!1,!1,!1),Prn(Yx(c1(aq(n.qb),2),18),n.wb.ab,null,"xSISchemaLocation",0,-1,null,!0,!1,!0,!0,!1,!1,!1),z2(Yx(c1(aq(n.qb),3),34),n.gb,"cDATA",null,0,-2,null,!0,!0,!0,!1,!1,!0),z2(Yx(c1(aq(n.qb),4),34),n.gb,"comment",null,0,-2,null,!0,!0,!0,!1,!1,!0),Prn(Yx(c1(aq(n.qb),5),18),n.bb,null,yKn,0,-2,null,!0,!0,!0,!0,!1,!1,!0),z2(Yx(c1(aq(n.qb),6),34),n.gb,zNn,null,0,-2,null,!0,!0,!0,!1,!1,!0),YB(n.a,UKn,"AnySimpleType",!0),YB(n.c,fFn,"AnyURI",!0),YB(n.d,Gy(Yot,1),"Base64Binary",!0),YB(n.e,Vot,"Boolean",!0),YB(n.f,D_n,"BooleanObject",!0),YB(n.g,Yot,"Byte",!0),YB(n.i,__n,"ByteObject",!0),YB(n.j,fFn,"Date",!0),YB(n.k,fFn,"DateTime",!0),YB(n.n,vFn,"Decimal",!0),YB(n.o,Jot,"Double",!0),YB(n.p,H_n,"DoubleObject",!0),YB(n.q,fFn,"Duration",!0),YB(n.s,JKn,"ENTITIES",!0),YB(n.r,JKn,"ENTITIESBase",!0),YB(n.t,fFn,nKn,!0),YB(n.u,Zot,"Float",!0),YB(n.v,q_n,"FloatObject",!0),YB(n.w,fFn,"GDay",!0),YB(n.B,fFn,"GMonth",!0),YB(n.A,fFn,"GMonthDay",!0),YB(n.C,fFn,"GYear",!0),YB(n.D,fFn,"GYearMonth",!0),YB(n.F,Gy(Yot,1),"HexBinary",!0),YB(n.G,fFn,"ID",!0),YB(n.H,fFn,"IDREF",!0),YB(n.J,JKn,"IDREFS",!0),YB(n.I,JKn,"IDREFSBase",!0),YB(n.K,Wot,"Int",!0),YB(n.M,EFn,"Integer",!0),YB(n.L,U_n,"IntObject",!0),YB(n.P,fFn,"Language",!0),YB(n.Q,Qot,"Long",!0),YB(n.R,J_n,"LongObject",!0),YB(n.S,fFn,"Name",!0),YB(n.T,fFn,tKn,!0),YB(n.U,EFn,"NegativeInteger",!0),YB(n.V,fFn,fKn,!0),YB(n.X,JKn,"NMTOKENS",!0),YB(n.W,JKn,"NMTOKENSBase",!0),YB(n.Y,EFn,"NonNegativeInteger",!0),YB(n.Z,EFn,"NonPositiveInteger",!0),YB(n.$,fFn,"NormalizedString",!0),YB(n._,fFn,"NOTATION",!0),YB(n.ab,fFn,"PositiveInteger",!0),YB(n.cb,fFn,"QName",!0),YB(n.db,nst,"Short",!0),YB(n.eb,nFn,"ShortObject",!0),YB(n.gb,fFn,rTn,!0),YB(n.hb,fFn,"Time",!0),YB(n.ib,fFn,"Token",!0),YB(n.jb,nst,"UnsignedByte",!0),YB(n.kb,nFn,"UnsignedByteObject",!0),YB(n.lb,Qot,"UnsignedInt",!0),YB(n.mb,J_n,"UnsignedIntObject",!0),YB(n.nb,EFn,"UnsignedLong",!0),YB(n.ob,Wot,"UnsignedShort",!0),YB(n.pb,U_n,"UnsignedShortObject",!0),s8(n,BRn),function(n){Zln(n.a,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"anySimpleType"])),Zln(n.b,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"anyType",tRn,ZDn])),Zln(Yx(c1(aq(n.b),0),34),nRn,x4(Gy(fFn,1),TEn,2,6,[tRn,NRn,gxn,":mixed"])),Zln(Yx(c1(aq(n.b),1),34),nRn,x4(Gy(fFn,1),TEn,2,6,[tRn,NRn,FRn,HRn,gxn,":1",YRn,"lax"])),Zln(Yx(c1(aq(n.b),2),34),nRn,x4(Gy(fFn,1),TEn,2,6,[tRn,$Rn,FRn,HRn,gxn,":2",YRn,"lax"])),Zln(n.c,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"anyURI",_Rn,xRn])),Zln(n.d,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"base64Binary",_Rn,xRn])),Zln(n.e,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,Xjn,_Rn,xRn])),Zln(n.f,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"boolean:Object",bRn,Xjn])),Zln(n.g,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,BDn])),Zln(n.i,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"byte:Object",bRn,BDn])),Zln(n.j,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"date",_Rn,xRn])),Zln(n.k,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"dateTime",_Rn,xRn])),Zln(n.n,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"decimal",_Rn,xRn])),Zln(n.o,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,qDn,_Rn,xRn])),Zln(n.p,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"double:Object",bRn,qDn])),Zln(n.q,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"duration",_Rn,xRn])),Zln(n.s,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"ENTITIES",bRn,JRn,ZRn,"1"])),Zln(n.r,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,JRn,DRn,nKn])),Zln(n.t,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,nKn,bRn,tKn])),Zln(n.u,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,GDn,_Rn,xRn])),Zln(n.v,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"float:Object",bRn,GDn])),Zln(n.w,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"gDay",_Rn,xRn])),Zln(n.B,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"gMonth",_Rn,xRn])),Zln(n.A,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"gMonthDay",_Rn,xRn])),Zln(n.C,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"gYear",_Rn,xRn])),Zln(n.D,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"gYearMonth",_Rn,xRn])),Zln(n.F,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"hexBinary",_Rn,xRn])),Zln(n.G,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"ID",bRn,tKn])),Zln(n.H,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"IDREF",bRn,tKn])),Zln(n.J,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"IDREFS",bRn,eKn,ZRn,"1"])),Zln(n.I,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,eKn,DRn,"IDREF"])),Zln(n.K,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,zDn])),Zln(n.M,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,iKn])),Zln(n.L,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"int:Object",bRn,zDn])),Zln(n.P,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"language",bRn,rKn,cKn,aKn])),Zln(n.Q,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,UDn])),Zln(n.R,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"long:Object",bRn,UDn])),Zln(n.S,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"Name",bRn,rKn,cKn,uKn])),Zln(n.T,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,tKn,bRn,"Name",cKn,oKn])),Zln(n.U,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"negativeInteger",bRn,sKn,hKn,"-1"])),Zln(n.V,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,fKn,bRn,rKn,cKn,"\\c+"])),Zln(n.X,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"NMTOKENS",bRn,lKn,ZRn,"1"])),Zln(n.W,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,lKn,DRn,fKn])),Zln(n.Y,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,bKn,bRn,iKn,wKn,"0"])),Zln(n.Z,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,sKn,bRn,iKn,hKn,"0"])),Zln(n.$,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,dKn,bRn,Vjn,_Rn,"replace"])),Zln(n._,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"NOTATION",_Rn,xRn])),Zln(n.ab,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"positiveInteger",bRn,bKn,wKn,"1"])),Zln(n.bb,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"processingInstruction_._type",tRn,"empty"])),Zln(Yx(c1(aq(n.bb),0),34),nRn,x4(Gy(fFn,1),TEn,2,6,[tRn,ARn,gxn,"data"])),Zln(Yx(c1(aq(n.bb),1),34),nRn,x4(Gy(fFn,1),TEn,2,6,[tRn,ARn,gxn,lxn])),Zln(n.cb,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"QName",_Rn,xRn])),Zln(n.db,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,XDn])),Zln(n.eb,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"short:Object",bRn,XDn])),Zln(n.fb,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"simpleAnyType",tRn,ORn])),Zln(Yx(c1(aq(n.fb),0),34),nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,":3",tRn,ORn])),Zln(Yx(c1(aq(n.fb),1),34),nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,":4",tRn,ORn])),Zln(Yx(c1(aq(n.fb),2),18),nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,":5",tRn,ORn])),Zln(n.gb,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,Vjn,_Rn,"preserve"])),Zln(n.hb,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"time",_Rn,xRn])),Zln(n.ib,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,rKn,bRn,dKn,_Rn,xRn])),Zln(n.jb,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,gKn,hKn,"255",wKn,"0"])),Zln(n.kb,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"unsignedByte:Object",bRn,gKn])),Zln(n.lb,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,pKn,hKn,"4294967295",wKn,"0"])),Zln(n.mb,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"unsignedInt:Object",bRn,pKn])),Zln(n.nb,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"unsignedLong",bRn,bKn,hKn,vKn,wKn,"0"])),Zln(n.ob,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,mKn,hKn,"65535",wKn,"0"])),Zln(n.pb,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"unsignedShort:Object",bRn,mKn])),Zln(n.qb,nRn,x4(Gy(fFn,1),TEn,2,6,[gxn,"",tRn,ZDn])),Zln(Yx(c1(aq(n.qb),0),34),nRn,x4(Gy(fFn,1),TEn,2,6,[tRn,NRn,gxn,":mixed"])),Zln(Yx(c1(aq(n.qb),1),18),nRn,x4(Gy(fFn,1),TEn,2,6,[tRn,ARn,gxn,"xmlns:prefix"])),Zln(Yx(c1(aq(n.qb),2),18),nRn,x4(Gy(fFn,1),TEn,2,6,[tRn,ARn,gxn,"xsi:schemaLocation"])),Zln(Yx(c1(aq(n.qb),3),34),nRn,x4(Gy(fFn,1),TEn,2,6,[tRn,LRn,gxn,"cDATA",RRn,KRn])),Zln(Yx(c1(aq(n.qb),4),34),nRn,x4(Gy(fFn,1),TEn,2,6,[tRn,LRn,gxn,"comment",RRn,KRn])),Zln(Yx(c1(aq(n.qb),5),18),nRn,x4(Gy(fFn,1),TEn,2,6,[tRn,LRn,gxn,yKn,RRn,KRn])),Zln(Yx(c1(aq(n.qb),6),34),nRn,x4(Gy(fFn,1),TEn,2,6,[tRn,LRn,gxn,zNn,RRn,KRn]))}(n))}(n),xB((yT(),wat),n,new Ks),Srn(n),GG(aat,BRn,n),n)}function Fk(){Fk=O,Pct=s0()}function Bk(){throw hp(new xp)}function Hk(){throw hp(new xp)}function qk(){throw hp(new xp)}function Gk(){throw hp(new xp)}function zk(){throw hp(new xp)}function Uk(){throw hp(new xp)}function Xk(n){this.a=new kE(n)}function Wk(n){Ekn(),function(n,t){var e,i,r,c,a,u,o,s;if(e=0,a=0,c=t.length,u=null,s=new $y,a1?zz(GK(t.a[1],32),Gz(t.a[0],uMn)):Gz(t.a[0],uMn),VU(e7(t.e,e))))}(n,new IC(o));for(n.d=s.a.length,r=0;r0}(Yx(n,33))?KA(i,(Qtn(),E7n))||KA(i,T7n):KA(i,(Qtn(),E7n));if(CO(n,352))return KA(i,(Qtn(),k7n));if(CO(n,186))return KA(i,(Qtn(),M7n));if(CO(n,354))return KA(i,(Qtn(),j7n))}return!0}(n,t)}function uj(n,t,e){n.splice(t,e)}function oj(n){n.c?pdn(n):vdn(n)}function sj(n){this.a=0,this.b=n}function hj(){this.a=new Ubn(p6n)}function fj(){this.b=new Ubn(i5n)}function lj(){this.b=new Ubn(o9n)}function bj(){this.b=new Ubn(o9n)}function wj(){throw hp(new xp)}function dj(){throw hp(new xp)}function gj(){throw hp(new xp)}function pj(){throw hp(new xp)}function vj(){throw hp(new xp)}function mj(){throw hp(new xp)}function yj(){throw hp(new xp)}function kj(){throw hp(new xp)}function jj(){throw hp(new xp)}function Ej(){throw hp(new xp)}function Tj(n){this.a=new Mj(n)}function Mj(n){!function(n,t,e){var i;n.b=t,n.a=e,i=512==(512&n.a)?new Zv:new Dh,n.c=function(n,t,e){var i,r,c;if(n.e=e,n.d=0,n.b=0,n.f=1,n.i=t,16==(16&n.e)&&(n.i=function(n){var t,e,i,r,c;for(i=n.length,t=new Oy,c=0;ct&&t0)){if(c=-1,32==XB(f.c,0)){if(l=h[0],JJ(t,h),h[0]>l)continue}else if(Rq(t,f.c,h[0])){h[0]+=f.c.length;continue}return 0}if(c<0&&f.a&&(c=s,a=h[0],r=0),c>=0){if(o=f.b,s==c&&0==(o-=r++))return 0;if(!Lkn(t,h,f,o,u)){s=c-1,h[0]=a;continue}}else if(c=-1,!Lkn(t,h,f,0,u))return 0}return function(n,t){var i,r,c,a,u,o;if(0==n.e&&n.p>0&&(n.p=-(n.p-1)),n.p>nTn&&JX(t,n.p-TTn),u=t.q.getDate(),mG(t,1),n.k>=0&&function(n,t){var e;e=n.q.getHours(),n.q.setMonth(t),Ivn(n,e)}(t,n.k),n.c>=0?mG(t,n.c):n.k>=0?(r=35-new y5(t.q.getFullYear()-TTn,t.q.getMonth(),35).q.getDate(),mG(t,e.Math.min(r,u))):mG(t,u),n.f<0&&(n.f=t.q.getHours()),n.b>0&&n.f<12&&(n.f+=12),function(n,t){n.q.setHours(t),Ivn(n,t)}(t,24==n.f&&n.g?0:n.f),n.j>=0&&function(n,t){var e;e=n.q.getHours()+(t/60|0),n.q.setMinutes(t),Ivn(n,e)}(t,n.j),n.n>=0&&function(n,t){var e;e=n.q.getHours()+(t/3600|0),n.q.setSeconds(t),Ivn(n,e)}(t,n.n),n.i>=0&&TI(t,t7(e7(Bcn(D3(t.q.getTime()),hTn),hTn),n.i)),n.a&&(JX(c=new uE,c.q.getFullYear()-TTn-80),LT(D3(t.q.getTime()),D3(c.q.getTime()))&&JX(t,c.q.getFullYear()-TTn+100)),n.d>=0)if(-1==n.c)(i=(7+n.d-t.q.getDay())%7)>3&&(i-=7),o=t.q.getMonth(),mG(t,t.q.getDate()+i),t.q.getMonth()!=o&&mG(t,t.q.getDate()+(i>0?-7:7));else if(t.q.getDay()!=n.d)return!1;return n.o>nTn&&(a=t.q.getTimezoneOffset(),TI(t,t7(D3(t.q.getTime()),60*(n.o-a)*hTn))),!0}(u,i)?h[0]:0}(n,t,c=new y5((r=new uE).q.getFullYear()-TTn,r.q.getMonth(),r.q.getDate())))||i0}function LT(n,t){return k8(n,t)<0}function NT(n,t){return n.a.get(t)}function xT(n,t){return P_(n.e,t)}function DT(n){return vB(n),!1}function RT(n){Nz.call(this,n,21)}function KT(n,t){vG.call(this,n,t)}function _T(n,t){Uj.call(this,n,t)}function FT(n,t){Uj.call(this,n,t)}function BT(n){QF(),ix.call(this,n)}function HT(n,t){nK(n,n.length,t)}function qT(n,t){cF(n,n.length,t)}function GT(n,t,e){n.splice(t,0,e)}function zT(n,t){this.d=n,this.e=t}function UT(n,t){this.b=n,this.a=t}function XT(n,t){this.b=n,this.a=t}function WT(n,t){this.b=n,this.a=t}function VT(n,t){this.a=n,this.b=t}function QT(n,t){this.a=n,this.b=t}function YT(n,t){this.a=n,this.b=t}function JT(n,t){this.a=n,this.b=t}function ZT(n,t){this.a=n,this.b=t}function nM(n,t){this.b=n,this.a=t}function tM(n,t){this.b=n,this.a=t}function eM(n,t){Uj.call(this,n,t)}function iM(n,t){Uj.call(this,n,t)}function rM(n,t){Uj.call(this,n,t)}function cM(n,t){Uj.call(this,n,t)}function aM(n,t){Uj.call(this,n,t)}function uM(n,t){Uj.call(this,n,t)}function oM(n,t){Uj.call(this,n,t)}function sM(n,t){Uj.call(this,n,t)}function hM(n,t){Uj.call(this,n,t)}function fM(n,t){Uj.call(this,n,t)}function lM(n,t){Uj.call(this,n,t)}function bM(n,t){Uj.call(this,n,t)}function wM(n,t){Uj.call(this,n,t)}function dM(n,t){Uj.call(this,n,t)}function gM(n,t){Uj.call(this,n,t)}function pM(n,t){Uj.call(this,n,t)}function vM(n,t){Uj.call(this,n,t)}function mM(n,t){Uj.call(this,n,t)}function yM(n,t){this.a=n,this.b=t}function kM(n,t){this.a=n,this.b=t}function jM(n,t){this.a=n,this.b=t}function EM(n,t){this.a=n,this.b=t}function TM(n,t){this.a=n,this.b=t}function MM(n,t){this.a=n,this.b=t}function SM(n,t){this.a=n,this.b=t}function PM(n,t){this.a=n,this.b=t}function IM(n,t){this.a=n,this.b=t}function CM(n,t){this.b=n,this.a=t}function OM(n,t){this.b=n,this.a=t}function AM(n,t){this.b=n,this.a=t}function $M(n,t){this.b=n,this.a=t}function LM(n,t){this.c=n,this.d=t}function NM(n,t){this.e=n,this.d=t}function xM(n,t){this.a=n,this.b=t}function DM(n,t){this.b=t,this.c=n}function RM(n,t){Uj.call(this,n,t)}function KM(n,t){Uj.call(this,n,t)}function _M(n,t){Uj.call(this,n,t)}function FM(n,t){Uj.call(this,n,t)}function BM(n,t){Uj.call(this,n,t)}function HM(n,t){Uj.call(this,n,t)}function qM(n,t){Uj.call(this,n,t)}function GM(n,t){Uj.call(this,n,t)}function zM(n,t){Uj.call(this,n,t)}function UM(n,t){Uj.call(this,n,t)}function XM(n,t){Uj.call(this,n,t)}function WM(n,t){Uj.call(this,n,t)}function VM(n,t){Uj.call(this,n,t)}function QM(n,t){Uj.call(this,n,t)}function YM(n,t){Uj.call(this,n,t)}function JM(n,t){Uj.call(this,n,t)}function ZM(n,t){Uj.call(this,n,t)}function nS(n,t){Uj.call(this,n,t)}function tS(n,t){Uj.call(this,n,t)}function eS(n,t){Uj.call(this,n,t)}function iS(n,t){Uj.call(this,n,t)}function rS(n,t){Uj.call(this,n,t)}function cS(n,t){Uj.call(this,n,t)}function aS(n,t){Uj.call(this,n,t)}function uS(n,t){Uj.call(this,n,t)}function oS(n,t){Uj.call(this,n,t)}function sS(n,t){Uj.call(this,n,t)}function hS(n,t){Uj.call(this,n,t)}function fS(n,t){Uj.call(this,n,t)}function lS(n,t){Uj.call(this,n,t)}function bS(n,t){Uj.call(this,n,t)}function wS(n,t){Uj.call(this,n,t)}function dS(n,t){Uj.call(this,n,t)}function gS(n,t){Uj.call(this,n,t)}function pS(n,t){this.b=n,this.a=t}function vS(n,t){this.a=n,this.b=t}function mS(n,t){this.a=n,this.b=t}function yS(n,t){this.a=n,this.b=t}function kS(n,t){this.a=n,this.b=t}function jS(n,t){Uj.call(this,n,t)}function ES(n,t){Uj.call(this,n,t)}function TS(n,t){this.b=n,this.d=t}function MS(n,t){Uj.call(this,n,t)}function SS(n,t){Uj.call(this,n,t)}function PS(n,t){this.a=n,this.b=t}function IS(n,t){this.a=n,this.b=t}function CS(n,t){Uj.call(this,n,t)}function OS(n,t){Uj.call(this,n,t)}function AS(n,t){Uj.call(this,n,t)}function $S(n,t){Uj.call(this,n,t)}function LS(n,t){Uj.call(this,n,t)}function NS(n,t){Uj.call(this,n,t)}function xS(n,t){Uj.call(this,n,t)}function DS(n,t){Uj.call(this,n,t)}function RS(n,t){Uj.call(this,n,t)}function KS(n,t){Uj.call(this,n,t)}function _S(n,t){Uj.call(this,n,t)}function FS(n,t){Uj.call(this,n,t)}function BS(n,t){Uj.call(this,n,t)}function HS(n,t){Uj.call(this,n,t)}function qS(n,t){Uj.call(this,n,t)}function GS(n,t){Uj.call(this,n,t)}function zS(n,t){return KA(n.g,t)}function US(n,t){Uj.call(this,n,t)}function XS(n,t){Uj.call(this,n,t)}function WS(n,t){this.a=n,this.b=t}function VS(n,t){this.a=n,this.b=t}function QS(n,t){this.a=n,this.b=t}function YS(n,t){Uj.call(this,n,t)}function JS(n,t){Uj.call(this,n,t)}function ZS(n,t){Uj.call(this,n,t)}function nP(n,t){Uj.call(this,n,t)}function tP(n,t){Uj.call(this,n,t)}function eP(n,t){Uj.call(this,n,t)}function iP(n,t){Uj.call(this,n,t)}function rP(n,t){Uj.call(this,n,t)}function cP(n,t){Uj.call(this,n,t)}function aP(n,t){Uj.call(this,n,t)}function uP(n,t){Uj.call(this,n,t)}function oP(n,t){Uj.call(this,n,t)}function sP(n,t){Uj.call(this,n,t)}function hP(n,t){Uj.call(this,n,t)}function fP(n,t){Uj.call(this,n,t)}function lP(n,t){Uj.call(this,n,t)}function bP(n,t){this.a=n,this.b=t}function wP(n,t){this.a=n,this.b=t}function dP(n,t){this.a=n,this.b=t}function gP(n,t){this.a=n,this.b=t}function pP(n,t){this.a=n,this.b=t}function vP(n,t){this.a=n,this.b=t}function mP(n,t){this.a=n,this.b=t}function yP(n,t){Uj.call(this,n,t)}function kP(n,t){this.a=n,this.b=t}function jP(n,t){this.a=n,this.b=t}function EP(n,t){this.a=n,this.b=t}function TP(n,t){this.a=n,this.b=t}function MP(n,t){this.a=n,this.b=t}function SP(n,t){this.a=n,this.b=t}function PP(n,t){this.b=n,this.a=t}function IP(n,t){this.b=n,this.a=t}function CP(n,t){this.b=n,this.a=t}function OP(n,t){this.b=n,this.a=t}function AP(n,t){this.a=n,this.b=t}function $P(n,t){this.a=n,this.b=t}function LP(n,t){!function(n,t){if(CO(t,239))return function(n,t){var e;if(null==(e=g1(n.i,t)))throw hp(new hy("Node did not exist in input."));return f3(t,e),null}(n,Yx(t,33));if(CO(t,186))return function(n,t){var e;if(null==(e=BF(n.k,t)))throw hp(new hy("Port did not exist in input."));return f3(t,e),null}(n,Yx(t,118));if(CO(t,354))return function(n,t){return f3(t,BF(n.f,t)),null}(n,Yx(t,137));if(CO(t,352))return function(n,t){var e,i,r,c,a,u;if(!(a=Yx(BF(n.c,t),183)))throw hp(new hy("Edge did not exist in input."));return i=itn(a),!Sj((!t.a&&(t.a=new m_(tct,t,6,6)),t.a))&&(e=new Rx(n,i,u=new Sl),function(n,t){!function(n,t){var e;for(e=0;n.e!=n.i.gc();)sR(t,hen(n),d9(e)),e!=Yjn&&++e}(new UO(n),t)}((!t.a&&(t.a=new m_(tct,t,6,6)),t.a),e),OZ(a,QNn,u)),zQ(t,(Cjn(),Gnt))&&!(!(r=Yx(jln(t,Gnt),74))||wB(r))&&(XW(r,new mg(c=new Sl)),OZ(a,"junctionPoints",c)),ND(a,"container",EG(t).k),null}(n,Yx(t,79));if(t)return null;throw hp(new Qm(axn+Gun(new ay(x4(Gy(UKn,1),iEn,1,5,[t])))))}(n.a,Yx(t,56))}function NP(n,t){!function(n,t){dD(),eD(n,new mP(t,d9(t.e.c.length+t.g.c.length)))}(n.a,Yx(t,11))}function xP(){return Fy(),new xFn}function DP(){lz(),this.b=new Qp}function RP(){ywn(),this.a=new Qp}function KP(){uz(),wK.call(this)}function _P(n,t){Uj.call(this,n,t)}function FP(n,t){this.a=n,this.b=t}function BP(n,t){this.a=n,this.b=t}function HP(n,t){this.a=n,this.b=t}function qP(n,t){this.a=n,this.b=t}function GP(n,t){this.a=n,this.b=t}function zP(n,t){this.a=n,this.b=t}function UP(n,t){this.d=n,this.b=t}function XP(n,t){this.d=n,this.e=t}function WP(n,t){this.f=n,this.c=t}function VP(n,t){this.b=n,this.c=t}function QP(n,t){this.i=n,this.g=t}function YP(n,t){this.e=n,this.a=t}function JP(n,t){this.a=n,this.b=t}function ZP(n,t){n.i=null,J0(n,t)}function nI(n,t){return mnn(n.a,t)}function tI(n){return knn(n.c,n.b)}function eI(n){return n?n.dd():null}function iI(n){return null==n?null:n}function rI(n){return typeof n===Xjn}function cI(n){return typeof n===Wjn}function aI(n){return typeof n===Vjn}function uI(n,t){return n.Hd().Xb(t)}function oI(n,t){return function(n,t){for(MF(t);n.Ob();)if(!f4(Yx(n.Pb(),10)))return!1;return!0}(n.Kc(),t)}function sI(n,t){return 0==k8(n,t)}function hI(n,t){return 0!=k8(n,t)}function fI(n){return""+(vB(n),n)}function lI(n,t){return n.substr(t)}function bI(n){return A7(n),n.d.gc()}function wI(n){return function(n,t){var e,i,r;for(e=new pb(n.a.a);e.at?1:0}function iO(n,t){return k8(n,t)>0?n:t}function rO(n,t,e){return{l:n,m:t,h:e}}function cO(n,t){null!=n.a&&NP(t,n.a)}function aO(n){n.a=new $,n.c=new $}function uO(n){this.b=n,this.a=new ip}function oO(n){this.b=new et,this.a=n}function sO(n){oN.call(this),this.a=n}function hO(){_T.call(this,"Range",2)}function fO(){Mcn(),this.a=new Ubn(azn)}function lO(n,t,e){return Fnn(t,e,n.c)}function bO(n){return new QS(n.c,n.d)}function wO(n){return new QS(n.c,n.d)}function dO(n){return new QS(n.a,n.b)}function gO(n,t){return function(n,t,e){var i,r,c,a,u,o,s,h,f;for(!e&&(e=function(n){var t;return(t=new p).a=n,t.b=function(n){var t;return 0==n?"Etc/GMT":(n<0?(n=-n,t="Etc/GMT-"):t="Etc/GMT+",t+XJ(n))}(n),t.c=VQ(fFn,TEn,2,2,6,1),t.c[0]=A2(n),t.c[1]=A2(n),t}(t.q.getTimezoneOffset())),r=6e4*(t.q.getTimezoneOffset()-e.a),o=u=new bL(t7(D3(t.q.getTime()),r)),u.q.getTimezoneOffset()!=t.q.getTimezoneOffset()&&(r>0?r-=864e5:r+=864e5,o=new bL(t7(D3(t.q.getTime()),r))),h=new $y,s=n.a.length,c=0;c=97&&i<=122||i>=65&&i<=90){for(a=c+1;a=s)throw hp(new Qm("Missing trailing '"));a+11)throw hp(new Qm(GRn));for(h=dwn(n.e.Tg(),t),i=Yx(n.g,119),a=0;a0),c=Yx(s.a.Xb(s.c=--s.b),17);c!=i&&s.b>0;)n.a[c.p]=!0,n.a[i.p]=!0,S$(s.b>0),c=Yx(s.a.Xb(s.c=--s.b),17);s.b>0&&hB(s)}}(n,t,e),e}function $O(n,t,e){n.a=1502^t,n.b=e^kMn}function LO(n,t,e){return n.a[t.g][e.g]}function NO(n,t){return n.a[t.c.p][t.p]}function xO(n,t){return n.e[t.c.p][t.p]}function DO(n,t){return n.c[t.c.p][t.p]}function RO(n,t){return n.j[t.p]=function(n){var t,e,i,r;for(t=0,e=0,r=new pb(n.j);r.a1||e>1)return 2;return t+e==1?2:0}(t)}function KO(n,t){return n.a*=t,n.b*=t,n}function _O(n,t,e){return DF(n.g,t,e),e}function FO(n){n.a=Yx(H3(n.b.a,4),126)}function BO(n){n.a=Yx(H3(n.b.a,4),126)}function HO(n){xq(n,vxn),Sbn(n,function(n){var t,e,i,r,c;switch(xq(n,vxn),(!n.b&&(n.b=new AN(Zrt,n,4,7)),n.b).i+(!n.c&&(n.c=new AN(Zrt,n,5,8)),n.c).i){case 0:throw hp(new Qm("The edge must have at least one source or target."));case 1:return 0==(!n.b&&(n.b=new AN(Zrt,n,4,7)),n.b).i?IG(iun(Yx(c1((!n.c&&(n.c=new AN(Zrt,n,5,8)),n.c),0),82))):IG(iun(Yx(c1((!n.b&&(n.b=new AN(Zrt,n,4,7)),n.b),0),82)))}if(1==(!n.b&&(n.b=new AN(Zrt,n,4,7)),n.b).i&&1==(!n.c&&(n.c=new AN(Zrt,n,5,8)),n.c).i){if(r=iun(Yx(c1((!n.b&&(n.b=new AN(Zrt,n,4,7)),n.b),0),82)),c=iun(Yx(c1((!n.c&&(n.c=new AN(Zrt,n,5,8)),n.c),0),82)),IG(r)==IG(c))return IG(r);if(r==IG(c))return r;if(c==IG(r))return c}for(t=iun(Yx(kV(i=W_(n0(x4(Gy(QKn,1),iEn,20,0,[(!n.b&&(n.b=new AN(Zrt,n,4,7)),n.b),(!n.c&&(n.c=new AN(Zrt,n,5,8)),n.c)])))),82));Vfn(i);)if((e=iun(Yx(kV(i),82)))!=t&&!XZ(e,t))if(IG(e)==IG(t))t=IG(e);else if(!(t=Uln(t,e)))return null;return t}(n))}function qO(){qO=O,FFn=new Am(null)}function GO(){(GO=O)(),UFn=new z}function zO(){this.Bb|=256,this.Bb|=512}function UO(n){this.i=n,this.f=this.i.j}function XO(n,t,e){TD.call(this,n,t,e)}function WO(n,t,e){XO.call(this,n,t,e)}function VO(n,t,e){XO.call(this,n,t,e)}function QO(n,t,e){WO.call(this,n,t,e)}function YO(n,t,e){TD.call(this,n,t,e)}function JO(n,t,e){TD.call(this,n,t,e)}function ZO(n,t,e){CD.call(this,n,t,e)}function nA(n,t,e){CD.call(this,n,t,e)}function tA(n,t,e){ZO.call(this,n,t,e)}function eA(n,t,e){YO.call(this,n,t,e)}function iA(n,t){this.a=n,eE.call(this,t)}function rA(n,t){this.a=n,dy.call(this,t)}function cA(n,t){this.a=n,dy.call(this,t)}function aA(n,t){this.a=n,dy.call(this,t)}function uA(n){this.a=n,ol.call(this,n.d)}function oA(n){this.c=n,this.a=this.c.a}function sA(n,t){this.a=t,dy.call(this,n)}function hA(n,t){this.a=t,hW.call(this,n)}function fA(n,t){this.a=n,hW.call(this,t)}function lA(n,t){return function(n,t,e){try{!function(n,t,e){if(MF(t),e.Ob())for(kI(t,$F(e.Pb()));e.Ob();)kI(t,n.a),kI(t,$F(e.Pb()))}(n,t,e)}catch(n){throw CO(n=j4(n),597)?hp(new eV(n)):hp(n)}return t}(n,new Ay,t).a}function bA(n,t){return MF(t),new wA(n,t)}function wA(n,t){this.a=t,aE.call(this,n)}function dA(n){this.b=n,this.a=this.b.a.e}function gA(n){n.b.Qb(),--n.d.f.d,oK(n.d)}function pA(n){Zf.call(this,Yx(MF(n),35))}function vA(n){Zf.call(this,Yx(MF(n),35))}function mA(){Uj.call(this,"INSTANCE",0)}function yA(n){if(!n)throw hp(new $p)}function kA(n){if(!n)throw hp(new Lp)}function jA(n){if(!n)throw hp(new Kp)}function EA(){EA=O,ET(),yut=new Kf}function TA(){TA=O,$_n=!1,L_n=!0}function MA(n){nb.call(this,(vB(n),n))}function SA(n){nb.call(this,(vB(n),n))}function PA(n){fb.call(this,n),this.a=n}function IA(n){lb.call(this,n),this.a=n}function CA(n){Ny.call(this,n),this.a=n}function OA(){jO(this),qH(this),this._d()}function AA(n,t){this.a=t,aE.call(this,n)}function $A(n,t){return new jsn(n.a,n.b,t)}function LA(n,t){return n.lastIndexOf(t)}function NA(n,t,e){return n.indexOf(t,e)}function xA(n){return null==n?aEn:I7(n)}function DA(n){return null!=n.a?n.a:null}function RA(n,t){return null!=fG(n.a,t)}function KA(n,t){return!!t&&n.b[t.g]==t}function _A(n){return n.$H||(n.$H=++mBn)}function FA(n,t){return eD(t.a,n.a),n.a}function BA(n,t){return eD(t.b,n.a),n.a}function HA(n,t){return eD(t.a,n.a),n.a}function qA(n){return S$(null!=n.a),n.a}function GA(n){Mb.call(this,new tY(n))}function zA(n,t){Etn.call(this,n,t,null)}function UA(n){this.a=n,hb.call(this,n)}function XA(){XA=O,XHn=new _L(OSn,0)}function WA(n,t){return++n.b,eD(n.a,t)}function VA(n,t){return++n.b,uJ(n.a,t)}function QA(n,t){return Yx(_V(n.b,t),15)}function YA(n){return ZC(n.a)||ZC(n.b)}function JA(n,t,e){return $X(n,t,e,n.c)}function ZA(n,t,e){Yx(jJ(n,t),21).Fc(e)}function n$(n,t){kT(),this.a=n,this.b=t}function t$(n,t){jT(),this.b=n,this.c=t}function e$(n,t){gK(),this.f=t,this.d=n}function i$(n,t){qV(t,n),this.d=n,this.c=t}function r$(n){var t;t=n.a,n.a=n.b,n.b=t}function c$(n,t){return new NN(n,n.gc(),t)}function a$(n){this.d=n,UO.call(this,n)}function u$(n){this.c=n,UO.call(this,n)}function o$(n){this.c=n,a$.call(this,n)}function s$(){JE(),this.b=new qw(this)}function h$(n){return g0(n,UEn),new pQ(n)}function f$(n){return $q(),parseInt(n)||-1}function l$(n,t,e){return n.substr(t,e-t)}function b$(n,t,e){return NA(n,gun(t),e)}function w$(n){return rF(n.c,n.c.length)}function d$(n){return null!=n.f?n.f:""+n.g}function g$(n){return S$(0!=n.b),n.a.a.c}function p$(n){return S$(0!=n.b),n.c.b.c}function v$(n){CO(n,150)&&Yx(n,150).Gh()}function m$(n){return n.b=Yx(FH(n.a),42)}function y$(n){RE(),this.b=n,this.a=!0}function k$(n){KE(),this.b=n,this.a=!0}function j$(n){n.d=new P$(n),n.e=new rp}function E$(n){if(!n)throw hp(new Dp)}function T$(n){if(!n)throw hp(new $p)}function M$(n){if(!n)throw hp(new Lp)}function S$(n){if(!n)throw hp(new Kp)}function P$(n){oD.call(this,n,null,null)}function I$(){Uj.call(this,"POLYOMINO",0)}function C$(n,t,e,i){LK.call(this,n,t,e,i)}function O$(n,t){return!!n.q&&P_(n.q,t)}function A$(n,t,e){n.Zc(t).Rb(e)}function $$(n,t,e){return n.a+=t,n.b+=e,n}function L$(n,t,e){return n.a*=t,n.b*=e,n}function N$(n,t,e){return n.a-=t,n.b-=e,n}function x$(n,t){return n.a=t.a,n.b=t.b,n}function D$(n){return n.a=-n.a,n.b=-n.b,n}function R$(n){this.c=n,this.a=1,this.b=1}function K$(n){this.c=n,L1(n,0),N1(n,0)}function _$(n){ME.call(this),r0(this,n)}function F$(n){ljn(),sp(this),this.mf(n)}function B$(n,t){kT(),n$.call(this,n,t)}function H$(n,t){jT(),t$.call(this,n,t)}function q$(n,t){jT(),t$.call(this,n,t)}function G$(n,t){jT(),H$.call(this,n,t)}function z$(n,t,e){yY.call(this,n,t,e,2)}function U$(n,t){WC(),KR.call(this,n,t)}function X$(n,t){WC(),U$.call(this,n,t)}function W$(n,t){WC(),U$.call(this,n,t)}function V$(n,t){WC(),W$.call(this,n,t)}function Q$(n,t){WC(),KR.call(this,n,t)}function Y$(n,t){WC(),Q$.call(this,n,t)}function J$(n,t){WC(),KR.call(this,n,t)}function Z$(n,t,e){return Imn(SJ(n,t),e)}function nL(n,t){return P8(n.e,Yx(t,49))}function tL(n,t){t.$modCount=n.$modCount}function eL(){eL=O,s6n=new Og("root")}function iL(){iL=O,$ct=new Rv,new Kv}function rL(){this.a=new Zq,this.b=new Zq}function cL(){T0.call(this),this.Bb|=eMn}function aL(){Uj.call(this,"GROW_TREE",0)}function uL(n){return null==n?null:function(n){var t,e,i,r,c,a,u,o,s,h,f,l,b,w,d;if(Jpn(),null==n)return null;if(0==(f=8*n.length))return"";for(l=f/24|0,c=null,c=VQ(Xot,sTn,25,4*(0!=(u=f%24)?l+1:l),15,1),s=0,h=0,t=0,e=0,i=0,a=0,r=0,o=0;o>24,s=(3&t)<<24>>24,b=0==(-128&t)?t>>2<<24>>24:(t>>2^192)<<24>>24,w=0==(-128&e)?e>>4<<24>>24:(e>>4^240)<<24>>24,d=0==(-128&(i=n[r++]))?i>>6<<24>>24:(i>>6^252)<<24>>24,c[a++]=hot[b],c[a++]=hot[w|s<<4],c[a++]=hot[h<<2|d],c[a++]=hot[63&i];return 8==u?(s=(3&(t=n[r]))<<24>>24,b=0==(-128&t)?t>>2<<24>>24:(t>>2^192)<<24>>24,c[a++]=hot[b],c[a++]=hot[s<<4],c[a++]=61,c[a++]=61):16==u&&(t=n[r],h=(15&(e=n[r+1]))<<24>>24,s=(3&t)<<24>>24,b=0==(-128&t)?t>>2<<24>>24:(t>>2^192)<<24>>24,w=0==(-128&e)?e>>4<<24>>24:(e>>4^240)<<24>>24,c[a++]=hot[b],c[a++]=hot[w|s<<4],c[a++]=hot[h<<2],c[a++]=61),Vnn(c,0,c.length)}(n)}function oL(n){return null==n?null:function(n){var t,e,i,r;if(kdn(),null==n)return null;for(i=n.length,t=VQ(Xot,sTn,25,2*i,15,1),e=0;e>4],t[2*e+1]=lot[15&r];return Vnn(t,0,t.length)}(n)}function sL(n){null==n.o&&function(n){if(n.pe()){var t=n.c;return t.qe()?n.o="["+t.n:t.pe()?n.o="["+t.ne():n.o="[L"+t.ne()+";",n.b=t.me()+"[]",void(n.k=t.oe()+"[]")}var e=n.j,i=n.d;i=i.split("/"),n.o=Wnn(".",[e,Wnn("$",i)]),n.b=Wnn(".",[e,Wnn(".",i)]),n.k=i[i.length-1]}(n)}function hL(n){return QD(null==n||rI(n)),n}function fL(n){return QD(null==n||cI(n)),n}function lL(n){return QD(null==n||aI(n)),n}function bL(n){this.q=new e.Date(VU(n))}function wL(n,t){this.c=n,Xj.call(this,n,t)}function dL(n,t){this.a=n,wL.call(this,n,t)}function gL(n,t){this.d=n,Wl(this),this.b=t}function pL(n,t){ZQ.call(this,n),this.a=t}function vL(n,t){ZQ.call(this,n),this.a=t}function mL(n){hnn.call(this,0,0),this.f=n}function yL(n,t,e){dQ.call(this,n,t,e,null)}function kL(n,t,e){dQ.call(this,n,t,e,null)}function jL(n,t){return Yx(UJ(n.b,t),149)}function EL(n,t){return Yx(UJ(n.c,t),229)}function TL(n){return Yx(TR(n.a,n.b),287)}function ML(n){return new QS(n.c,n.d+n.a)}function SL(n){return hz(),wC(Yx(n,197))}function PL(){PL=O,UHn=J9((Ann(),nrt))}function IL(n,t){t.a?function(n,t){var e,i,r;if(!uF(n.a,t.b))throw hp(new Ym("Invalid hitboxes for scanline overlap calculation."));for(r=!1,i=new sb(new gN(new UA(new ob(n.a.a).a).b));OT(i.a.a);)if(e=Yx(m$(i.a).cd(),65),u5(t.b,e))vk(n.b.a,t.b,e),r=!0;else if(r)break}(n,t):RA(n.a,t.b)}function CL(n,t){hBn||eD(n.a,t)}function OL(n,t){return xq(t,jSn),n.f=t,n}function AL(n,t,e){return opn(n,t,3,e)}function $L(n,t,e){return opn(n,t,6,e)}function LL(n,t,e){return opn(n,t,9,e)}function NL(n,t,e){++n.j,n.Ki(),XQ(n,t,e)}function xL(n,t,e){++n.j,n.Hi(t,n.oi(t,e))}function DL(n,t,e){n.Zc(t).Rb(e)}function RL(n,t,e){return rmn(n.c,n.b,t,e)}function KL(n,t){return(t&Yjn)%n.d.length}function _L(n,t){Og.call(this,n),this.a=t}function FL(n,t){Gg.call(this,n),this.a=t}function BL(n,t){Gg.call(this,n),this.a=t}function HL(n,t){this.c=n,FZ.call(this,t)}function qL(n,t){this.a=n,qg.call(this,t)}function GL(n,t){this.a=n,qg.call(this,t)}function zL(n){this.a=(g0(n,UEn),new pQ(n))}function UL(n){this.a=(g0(n,UEn),new pQ(n))}function XL(n){return!n.a&&(n.a=new w),n.a}function WL(n){return n>8?0:n+1}function VL(n,t,e){return YR(n,Yx(t,22),e)}function QL(n,t,e){return n.a+=Vnn(t,0,e),n}function YL(n,t){var e;return e=n.e,n.e=t,e}function JL(n,t){n[vMn].call(n,t)}function ZL(n,t){n.a.Vc(n.b,t),++n.b,n.c=-1}function nN(n){U_(n.e),n.d.b=n.d,n.d.a=n.d}function tN(n){n.b?tN(n.b):n.f.c.zc(n.e,n.d)}function eN(n,t){return qy(new Array(t),n)}function iN(n){return String.fromCharCode(n)}function rN(){this.a=new ip,this.b=new ip}function cN(){this.a=new bt,this.b=new Hp}function aN(){this.b=new Pk,this.c=new ip}function uN(){this.d=new Pk,this.e=new Pk}function oN(){this.n=new Pk,this.o=new Pk}function sN(){this.n=new Sv,this.i=new hC}function hN(){this.a=new Jh,this.b=new uc}function fN(){this.a=new ip,this.d=new ip}function lN(){this.b=new Qp,this.a=new Qp}function bN(){this.b=new rp,this.a=new rp}function wN(){this.b=new fj,this.a=new da}function dN(){sN.call(this),this.a=new Pk}function gN(n){Q3.call(this,n,(HY(),WFn))}function pN(n,t,e,i){FR.call(this,n,t,e,i)}function vN(n,t,e){return opn(n,t,11,e)}function mN(n,t){return n.a+=t.a,n.b+=t.b,n}function yN(n,t){return n.a-=t.a,n.b-=t.b,n}function kN(n,t){return null==xB(n.a,t,"")}function jN(n,t){Hm.call(this,pDn+n+Exn+t)}function EN(n,t,e,i){m_.call(this,n,t,e,i)}function TN(n,t,e,i){m_.call(this,n,t,e,i)}function MN(n,t,e,i){TN.call(this,n,t,e,i)}function SN(n,t,e,i){y_.call(this,n,t,e,i)}function PN(n,t,e,i){y_.call(this,n,t,e,i)}function IN(n,t,e,i){y_.call(this,n,t,e,i)}function CN(n,t,e,i){PN.call(this,n,t,e,i)}function ON(n,t,e,i){PN.call(this,n,t,e,i)}function AN(n,t,e,i){IN.call(this,n,t,e,i)}function $N(n,t,e,i){ON.call(this,n,t,e,i)}function LN(n,t,e,i){g_.call(this,n,t,e,i)}function NN(n,t,e){this.a=n,i$.call(this,t,e)}function xN(n,t,e){this.c=t,this.b=e,this.a=n}function DN(n,t){return n.Aj().Nh().Kh(n,t)}function RN(n,t){return n.Aj().Nh().Ih(n,t)}function KN(n,t){return vB(n),iI(n)===iI(t)}function _N(n,t){return vB(n),iI(n)===iI(t)}function FN(n,t){return $k(Dnn(n.a,t,!1))}function BN(n,t){return $k(Rnn(n.a,t,!1))}function HN(n,t){return n.b.sd(new JT(n,t))}function qN(n,t,e){return n.lastIndexOf(t,e)}function GN(n){return n.c?hJ(n.c.a,n,0):-1}function zN(n){return n==uit||n==sit||n==oit}function UN(n,t){return CO(t,15)&&Pdn(n.c,t)}function XN(n,t){return!!c6(n,t)}function WN(n,t){this.c=n,Z_.call(this,n,t)}function VN(n){this.c=n,PI.call(this,IEn,0)}function QN(n,t){aD.call(this,n,n.length,t)}function YN(n,t,e){return Yx(n.c,69).mk(t,e)}function JN(n,t,e){return function(n,t,e){return t.Rk(n.e,n.c,e)}(n,Yx(t,332),e)}function ZN(n,t,e){return function(n,t,e){var i,r,c;return i=t.ak(),c=t.dd(),r=i.$j()?Kq(n,4,i,c,null,$vn(n,i,c,CO(i,99)&&0!=(Yx(i,18).Bb&eMn)),!0):Kq(n,i.Kj()?2:1,i,c,i.zj(),-1,!0),e?e.Ei(r):e=r,e}(n,Yx(t,332),e)}function nx(n,t){return null==t?null:x8(n.b,t)}function tx(n){return cI(n)?(vB(n),n):n.ke()}function ex(n){return!isNaN(n)&&!isFinite(n)}function ix(n){px(),this.a=(XH(),new Ny(n))}function rx(n){dD(),this.d=n,this.a=new ep}function cx(n,t,e){this.a=n,this.b=t,this.c=e}function ax(n,t,e){this.a=n,this.b=t,this.c=e}function ux(n,t,e){this.d=n,this.b=e,this.a=t}function ox(n){aO(this),BH(this),C2(this,n)}function sx(n){AC(this),sD(this.c,0,n.Pc())}function hx(n){hB(n.a),iY(n.c,n.b),n.b=null}function fx(n){this.a=n,oE(),D3(Date.now())}function lx(){lx=O,pBn=new r,vBn=new r}function bx(){bx=O,KFn=new L,_Fn=new N}function wx(){wx=O,Cct=VQ(UKn,iEn,1,0,5,1)}function dx(){dx=O,Fat=VQ(UKn,iEn,1,0,5,1)}function gx(){gx=O,Bat=VQ(UKn,iEn,1,0,5,1)}function px(){px=O,new jp((XH(),XH(),TFn))}function vx(n,t){if(!n)throw hp(new Qm(t))}function mx(n){FR.call(this,n.d,n.c,n.a,n.b)}function yx(n){FR.call(this,n.d,n.c,n.a,n.b)}function kx(n,t,e){this.b=n,this.c=t,this.a=e}function jx(n,t,e){this.b=n,this.a=t,this.c=e}function Ex(n,t,e){this.a=n,this.b=t,this.c=e}function Tx(n,t,e){this.a=n,this.b=t,this.c=e}function Mx(n,t,e){this.a=n,this.b=t,this.c=e}function Sx(n,t,e){this.a=n,this.b=t,this.c=e}function Px(n,t,e){this.b=n,this.a=t,this.c=e}function Ix(n,t,e){this.e=t,this.b=n,this.d=e}function Cx(n){var t;return(t=new jn).e=n,t}function Ox(n){var t;return(t=new lv).b=n,t}function Ax(){Ax=O,aUn=new Ne,uUn=new xe}function $x(){$x=O,CXn=new vr,OXn=new mr}function Lx(n,t){this.c=n,this.a=t,this.b=t-n}function Nx(n,t,e){this.a=n,this.b=t,this.c=e}function xx(n,t,e){this.a=n,this.b=t,this.c=e}function Dx(n,t,e){this.a=n,this.b=t,this.c=e}function Rx(n,t,e){this.a=n,this.b=t,this.c=e}function Kx(n,t,e){this.a=n,this.b=t,this.c=e}function _x(n,t,e){this.e=n,this.a=t,this.c=e}function Fx(n,t,e){WC(),tG.call(this,n,t,e)}function Bx(n,t,e){WC(),iB.call(this,n,t,e)}function Hx(n,t,e){WC(),iB.call(this,n,t,e)}function qx(n,t,e){WC(),iB.call(this,n,t,e)}function Gx(n,t,e){WC(),Bx.call(this,n,t,e)}function zx(n,t,e){WC(),Bx.call(this,n,t,e)}function Ux(n,t,e){WC(),zx.call(this,n,t,e)}function Xx(n,t,e){WC(),Hx.call(this,n,t,e)}function Wx(n,t,e){WC(),qx.call(this,n,t,e)}function Vx(n,t){return MF(n),MF(t),new Fj(n,t)}function Qx(n,t){return MF(n),MF(t),new BD(n,t)}function Yx(n,t){return QD(null==n||Oen(n,t)),n}function Jx(n){var t;return zJ(t=new ip,n),t}function Zx(n){var t;return $2(t=new rv,n),t}function nD(n){var t;return $2(t=new ME,n),t}function tD(n){return!n.e&&(n.e=new ip),n.e}function eD(n,t){return n.c[n.c.length]=t,!0}function iD(n,t){this.c=n,this.b=t,this.a=!1}function rD(n){this.d=n,Wl(this),this.b=function(n){return CO(n,15)?Yx(n,15).Yc():n.Kc()}(n.d)}function cD(){this.a=";,;",this.b="",this.c=""}function aD(n,t,e){s_.call(this,t,e),this.a=n}function uD(n,t,e){this.b=n,MI.call(this,t,e)}function oD(n,t,e){this.c=n,zT.call(this,t,e)}function sD(n,t,e){hhn(e,0,n,t,e.length,!1)}function hD(n,t,e,i,r){n.b=t,n.c=e,n.d=i,n.a=r}function fD(n,t,e,i,r){n.d=t,n.c=e,n.a=i,n.b=r}function lD(n){var t,e;t=n.b,e=n.c,n.b=e,n.c=t}function bD(n){var t,e;e=n.d,t=n.a,n.d=t,n.a=e}function wD(n){return $3(function(n){return rO(~n.l&BTn,~n.m&BTn,~n.h&HTn)}(tC(n)?W3(n):n))}function dD(){dD=O,Ikn(),Y3n=qit,J3n=Eit}function gD(){this.b=ty(fL(oen((Bdn(),yGn))))}function pD(n){return HE(),VQ(UKn,iEn,1,n,5,1)}function vD(n){return new QS(n.c+n.b,n.d+n.a)}function mD(n){return S$(0!=n.b),VZ(n,n.a.a)}function yD(n){return S$(0!=n.b),VZ(n,n.c.b)}function kD(n,t){if(!n)throw hp(new qm(t))}function jD(n,t){if(!n)throw hp(new Qm(t))}function ED(n,t,e){LM.call(this,n,t),this.b=e}function TD(n,t,e){XP.call(this,n,t),this.c=e}function MD(n,t,e){RZ.call(this,t,e),this.d=n}function SD(n){gx(),yo.call(this),this.th(n)}function PD(n,t,e){this.a=n,HI.call(this,t,e)}function ID(n,t,e){this.a=n,HI.call(this,t,e)}function CD(n,t,e){XP.call(this,n,t),this.c=e}function OD(){wV(),uB.call(this,(mT(),aat))}function AD(n){return null!=n&&!$7(n,Wct,Vct)}function $D(n,t){return(u9(n)<<4|u9(t))&fTn}function LD(n,t){var e;n.n&&(e=t,eD(n.f,e))}function ND(n,t,e){OZ(n,t,new zF(e))}function xD(n,t){return n.g=t<0?-1:t,n}function DD(n,t){return function(n){var t;(t=e.Math.sqrt(n.a*n.a+n.b*n.b))>0&&(n.a/=t,n.b/=t)}(n),n.a*=t,n.b*=t,n}function RD(n,t,e,i,r){n.c=t,n.d=e,n.b=i,n.a=r}function KD(n,t){return VW(n,t,n.c.b,n.c),!0}function _D(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function FD(n){this.b=n,this.a=DK(this.b.a).Ed()}function BD(n,t){this.b=n,this.a=t,_h.call(this)}function HD(n,t){this.a=n,this.b=t,_h.call(this)}function qD(n,t){s_.call(this,t,1040),this.a=n}function GD(n){return 0==n||isNaN(n)?n:n<0?-1:1}function zD(n,t){return ean(n,new LM(t.a,t.b))}function UD(n){var t;return t=n.n,n.a.b+t.d+t.a}function XD(n){var t;return t=n.n,n.e.b+t.d+t.a}function WD(n){var t;return t=n.n,n.e.a+t.b+t.c}function VD(n){return Ljn(),new BR(0,n)}function QD(n){if(!n)throw hp(new Vm(null))}function YD(){YD=O,XH(),jut=new bb(HRn)}function JD(){JD=O,new _en((wm(),n_n),(dm(),ZKn))}function ZD(){ZD=O,G_n=VQ(U_n,TEn,19,256,0,1)}function nR(n,t,e,i){F7.call(this,n,t,e,i,0,0)}function tR(n){return n.e.c.length+n.g.c.length}function eR(n){return n.e.c.length-n.g.c.length}function iR(n){return n.b.c.length-n.e.c.length}function rR(n){gx(),SD.call(this,n),this.a=-1}function cR(n,t){VP.call(this,n,t),this.a=this}function aR(n,t){var e;return(e=TF(n,t)).i=2,e}function uR(n,t){return++n.j,n.Ti(t)}function oR(n,t,e){return n.a=-1,ZA(n,t.g,e),n}function sR(n,t,e){!function(n,t,e,i,r){var c,a,u,o,s,h,f,l,b,w,d,g;null==(w=BF(n.e,i))&&(s=Yx(w=new Om,183),o=new zF(t+"_s"+r),OZ(s,rxn,o)),nB(e,b=Yx(w,183)),nq(g=new Om,"x",i.j),nq(g,"y",i.k),OZ(b,uxn,g),nq(f=new Om,"x",i.b),nq(f,"y",i.c),OZ(b,"endPoint",f),!Sj((!i.a&&(i.a=new XO(Qrt,i,5)),i.a))&&(c=new pg(h=new Sl),XW((!i.a&&(i.a=new XO(Qrt,i,5)),i.a),c),OZ(b,YNn,h)),!!Jen(i)&&jun(n.a,b,ZNn,ksn(n,Jen(i))),!!Zen(i)&&jun(n.a,b,JNn,ksn(n,Zen(i))),!(0==(!i.e&&(i.e=new AN(tct,i,10,9)),i.e).i)&&(a=new FP(n,l=new Sl),XW((!i.e&&(i.e=new AN(tct,i,10,9)),i.e),a),OZ(b,txn,l)),0!=(!i.g&&(i.g=new AN(tct,i,9,10)),i.g).i&&(u=new BP(n,d=new Sl),XW((!i.g&&(i.g=new AN(tct,i,9,10)),i.g),u),OZ(b,nxn,d))}(n.a,n.b,n.c,Yx(t,202),e)}function hR(n,t,e){return new xN(function(n){return 0>=n?new EE:function(n){return 0>n?new EE:new vL(null,new cV(n+1,n))}(n-1)}(n).Ie(),e,t)}function fR(n,t,e,i,r,c){return nan(n,t,e,i,r,0,c)}function lR(){lR=O,R_n=VQ(__n,TEn,217,256,0,1)}function bR(){bR=O,X_n=VQ(J_n,TEn,162,256,0,1)}function wR(){wR=O,Z_n=VQ(nFn,TEn,184,256,0,1)}function dR(){dR=O,F_n=VQ(B_n,TEn,172,128,0,1)}function gR(){hD(this,!1,!1,!1,!1)}function pR(n){VF(),this.a=(XH(),new bb(MF(n)))}function vR(n){for(MF(n);n.Ob();)n.Pb(),n.Qb()}function mR(n){this.c=n,this.b=this.c.d.vc().Kc()}function yR(n){this.c=n,this.a=new TE(this.c.a)}function kR(n){this.a=new kE(n.gc()),C2(this,n)}function jR(n){Mb.call(this,new bW),C2(this,n)}function ER(n,t){return n.a+=Vnn(t,0,t.length),n}function TR(n,t){return $z(t,n.c.length),n.c[t]}function MR(n,t){return $z(t,n.a.length),n.a[t]}function SR(n,t){HE(),ZQ.call(this,n),this.a=t}function PR(n,t){return function(n,t){return ytn(t7(ytn(n.a).a,t.a))}(Yx(n,162),Yx(t,162))}function IR(n){return n.c-Yx(TR(n.a,n.b),287).b}function CR(n){return n.q?n.q:(XH(),XH(),MFn)}function OR(n){return n.e.Hd().gc()*n.c.Hd().gc()}function AR(n,t,i){return e.Math.min(i/n,1/t)}function $R(n,t){return n?0:e.Math.max(0,t-1)}function LR(n){var t;return(t=han(n))?LR(t):n}function NR(n,t){return null==n.a&&qdn(n),n.a[t]}function xR(n){return n.c?n.c.f:n.e.b}function DR(n){return n.c?n.c.g:n.e.a}function RR(n){FZ.call(this,n.gc()),jF(this,n)}function KR(n,t){WC(),zg.call(this,t),this.a=n}function _R(n,t,e){this.a=n,XO.call(this,t,e,2)}function FR(n,t,e,i){fD(this,n,t,e,i)}function BR(n,t){Ljn(),np.call(this,n),this.a=t}function HR(n){this.b=new ME,this.a=n,this.c=-1}function qR(){this.d=new QS(0,0),this.e=new Qp}function GR(n){i$.call(this,0,0),this.a=n,this.b=0}function zR(n){this.a=n,this.c=new rp,function(n){var t,e,i,r;for(i=0,r=(e=n.a).length;i>>t,r=n.m>>t|e<<22-t,i=n.l>>t|n.m<<22-t):t<44?(c=0,r=e>>>t-22,i=n.m>>t-22|n.h<<44-t):(c=0,r=0,i=e>>>t-44),rO(i&BTn,r&BTn,c&HTn)}(tC(n)?W3(n):n,t))}function XK(n,t){return function(n,t){return TA(),n==t?0:n?1:-1}((vB(n),n),(vB(t),t))}function WK(n,t){return $9((vB(n),n),(vB(t),t))}function VK(n,t){return MF(t),n.a.Ad(t)&&!n.b.Ad(t)}function QK(n,t){return W8(n,(vB(t),new Pb(t)))}function YK(n,t){return W8(n,(vB(t),new Ib(t)))}function JK(n){return Q2(),0!=Yx(n,11).e.c.length}function ZK(n){return Q2(),0!=Yx(n,11).g.c.length}function n_(n,t,e){return function(n,t,e){var i,r,c,a,u,o,s,h,f,l;if(0!=t.e.c.length&&0!=e.e.c.length){if((i=Yx(TR(t.e,0),17).c.i)==(a=Yx(TR(e.e,0),17).c.i))return eO(Yx(Aun(Yx(TR(t.e,0),17),(Ojn(),IQn)),19).a,Yx(Aun(Yx(TR(e.e,0),17),IQn),19).a);for(f=0,l=(h=n.a).length;fu?1:0:(n.b&&(n.b._b(c)&&(r=Yx(n.b.xc(c),19).a),n.b._b(o)&&(u=Yx(n.b.xc(o),19).a)),ru?1:0)):0!=t.e.c.length&&0!=e.g.c.length?1:-1}(n,Yx(t,11),Yx(e,11))}function t_(n){return n.e?oQ(n.e):null}function e_(n){n.d||(n.d=n.b.Kc(),n.c=n.b.gc())}function i_(n,t){if(n<0||n>=t)throw hp(new Gp)}function r_(n,t,e){return udn(),s3(n,t)&&s3(n,e)}function c_(n){return Chn(),!n.Hc(pit)&&!n.Hc(mit)}function a_(n){return new QS(n.c+n.b/2,n.d+n.a/2)}function u_(n,t){return t.kh()?P8(n.b,Yx(t,49)):t}function o_(n,t){this.e=n,this.d=0!=(64&t)?t|MEn:t}function s_(n,t){this.c=0,this.d=n,this.b=64|t|MEn}function h_(n){this.b=new pQ(11),this.a=(WH(),n)}function f_(n){this.b=null,this.a=(WH(),n||IFn)}function l_(n){this.a=xen(n.a),this.b=new sx(n.b)}function b_(n){this.b=n,a$.call(this,n),FO(this)}function w_(n){this.b=n,o$.call(this,n),BO(this)}function d_(n,t,e){this.a=n,EN.call(this,t,e,5,6)}function g_(n,t,e,i){this.b=n,XO.call(this,t,e,i)}function p_(n,t,e,i,r){kY.call(this,n,t,e,i,r,-1)}function v_(n,t,e,i,r){jY.call(this,n,t,e,i,r,-1)}function m_(n,t,e,i){XO.call(this,n,t,e),this.b=i}function y_(n,t,e,i){TD.call(this,n,t,e),this.b=i}function k_(n){WP.call(this,n,!1),this.a=!1}function j_(n,t){this.b=n,ol.call(this,n.b),this.a=t}function E_(n,t){VF(),Jj.call(this,n,$8(new ay(t)))}function T_(n,t){return Ljn(),new rB(n,t,0)}function M_(n,t){return Ljn(),new rB(6,n,t)}function S_(n,t){return _N(n.substr(0,t.length),t)}function P_(n,t){return aI(t)?hq(n,t):!!Dq(n.f,t)}function I_(n,t){for(vB(t);n.Ob();)t.td(n.Pb())}function C_(n,t,e){bdn(),this.e=n,this.d=t,this.a=e}function O_(n,t,e,i){var r;(r=n.i).i=t,r.a=e,r.b=i}function A_(n){var t;for(t=n;t.f;)t=t.f;return t}function $_(n){var t;return S$(null!=(t=T5(n))),t}function L_(n){var t;return S$(null!=(t=function(n){var t;return null==(t=n.a[n.c-1&n.a.length-1])?null:(n.c=n.c-1&n.a.length-1,DF(n.a,n.c,null),t)}(n))),t}function N_(n,t){var e;return qV(t,e=n.a.gc()),e-t}function x_(n,t){var e;for(e=0;en||n>t)throw hp(new Py("fromIndex: 0, toIndex: "+n+MMn+t))}(t,n.length),new qD(n,t)}(n,n.length))}function W_(n){return new $K(new sA(n.a.length,n.a))}function V_(n){return typeof n===Ujn||typeof n===Qjn}function Q_(n,t){return k8(n,t)<0?-1:k8(n,t)>0?1:0}function Y_(n,t,e){return jmn(n,Yx(t,46),Yx(e,167))}function J_(n,t){return Yx(KK(DK(n.a)).Xb(t),42).cd()}function Z_(n,t){this.d=n,UO.call(this,n),this.e=t}function nF(n){this.d=(vB(n),n),this.a=0,this.c=IEn}function tF(n,t){np.call(this,1),this.a=n,this.b=t}function eF(n,t){return n.c?eF(n.c,t):eD(n.b,t),n}function iF(n,t,e){var i;return i=VJ(n,t),ZX(n,t,e),i}function rF(n,t){return aJ(n.slice(0,t),n)}function cF(n,t,e){var i;for(i=0;i=14&&e<=16);case 11:return null!=t&&typeof t===Qjn;case 12:return null!=t&&(typeof t===Ujn||typeof t==Qjn);case 0:return Oen(t,n.__elementTypeId$);case 2:return V_(t)&&!(t.im===C);case 1:return V_(t)&&!(t.im===C)||Oen(t,n.__elementTypeId$);default:return!0}}(n,e)),n[t]=e}function RF(n,t){var e;return HU(t,e=n.a.gc()),e-1-t}function KF(n,t){return n.a+=String.fromCharCode(t),n}function _F(n,t){return n.a+=String.fromCharCode(t),n}function FF(n,t){for(vB(t);n.c0?(den(n,e,0),e.a+=String.fromCharCode(i),den(n,e,r=htn(t,c)),c+=r-1):39==i?c+1=n.g}function ZF(n,t,e){return tgn(n,h2(n,t,e))}function nB(n,t){var e;VJ(n,e=n.a.length),ZX(n,e,t)}function tB(n,t){console[n].call(console,t)}function eB(n,t){var e;++n.j,e=n.Vi(),n.Ii(n.oi(e,t))}function iB(n,t,e){zg.call(this,t),this.a=n,this.b=e}function rB(n,t,e){np.call(this,n),this.a=t,this.b=e}function cB(n,t,e){this.a=n,Gg.call(this,t),this.b=e}function aB(n,t,e){this.a=n,lX.call(this,8,t,null,e)}function uB(n){this.a=(vB(nRn),nRn),this.b=n,new Xv}function oB(n){this.c=n,this.b=this.c.a,this.a=this.c.e}function sB(n){this.c=n,this.b=n.a.d.a,tL(n.a.e,this)}function hB(n){M$(-1!=n.c),n.d.$c(n.c),n.b=n.c,n.c=-1}function fB(n){return e.Math.sqrt(n.a*n.a+n.b*n.b)}function lB(n,t){return i_(t,n.a.c.length),TR(n.a,t)}function bB(n,t){return iI(n)===iI(t)||null!=n&&Q8(n,t)}function wB(n){return n?n.dc():!n.Kc().Ob()}function dB(n){return!n.a&&n.c?n.c.b:n.a}function gB(n){return!n.a&&(n.a=new XO(Wrt,n,4)),n.a}function pB(n){return!n.d&&(n.d=new XO(hat,n,1)),n.d}function vB(n){if(null==n)throw hp(new Np);return n}function mB(n){n.c?n.c.He():(n.d=!0,function(n){var t,e,i,r,c;if(c=new ip,WZ(n.b,new Gb(c)),n.b.c=VQ(UKn,iEn,1,0,5,1),0!=c.c.length){for($z(0,c.c.length),t=Yx(c.c[0],78),e=1,i=c.c.length;e0;)n=n<<1|(n<0?1:0);return n}function qB(n,t){return iI(n)===iI(t)||null!=n&&Q8(n,t)}function GB(n,t){return rK(n.a,t)?n.b[Yx(t,22).g]:null}function zB(n,t,e,i){n.a=l$(n.a,0,t)+""+i+lI(n.a,e)}function UB(n,t){n.u.Hc((Chn(),pit))&&function(n,t){var i,r,c,a;for(i=(a=Yx(GB(n.b,t),124)).a,c=Yx(Yx(_V(n.r,t),21),84).Kc();c.Ob();)(r=Yx(c.Pb(),111)).c&&(i.a=e.Math.max(i.a,WD(r.c)));if(i.a>0)switch(t.g){case 2:a.n.c=n.s;break;case 4:a.n.b=n.s}}(n,t),function(n,t){var e;n.C&&((e=Yx(GB(n.b,t),124).n).d=n.C.d,e.a=n.C.a)}(n,t)}function XB(n,t){return Lz(t,n.length),n.charCodeAt(t)}function WB(){Im.call(this,"There is no more element.")}function VB(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function QB(n){n.b=!1,n.c=!1,n.d=!1,n.a=!1}function YB(n,t,e,i){return h3(n,t,e,!1),f9(n,i),n}function JB(n){return!n.n&&(n.n=new m_(act,n,1,7)),n.n}function ZB(n){return!n.c&&(n.c=new m_(oct,n,9,9)),n.c}function nH(n){return n.e==qRn&&function(n,t){n.e=t}(n,function(n,t){var e,i;return(e=t.Hh(n.a))&&null!=(i=lL(ynn((!e.b&&(e.b=new z$((xjn(),Dat),out,e)),e.b),gxn)))?i:t.ne()}(n.g,n.b)),n.e}function tH(n){return n.f==qRn&&function(n,t){n.f=t}(n,function(n,t){var e,i;return(e=t.Hh(n.a))?(i=lL(ynn((!e.b&&(e.b=new z$((xjn(),Dat),out,e)),e.b),RRn)),_N(KRn,i)?OK(n,i1(t.Hj())):i):null}(n.g,n.b)),n.f}function eH(n){var t;return!(t=n.b)&&(n.b=t=new Qf(n)),t}function iH(n){var t;for(t=n.Kc();t.Ob();)t.Pb(),t.Qb()}function rH(n){if(A7(n.d),n.d.d!=n.c)throw hp(new Dp)}function cH(n,t){this.b=n,this.c=t,this.a=new TE(this.b)}function aH(n,t,e){this.a=oTn,this.d=n,this.b=t,this.c=e}function uH(n,t){this.d=(vB(n),n),this.a=16449,this.c=t}function oH(n,t){Q9(n,ty(q1(t,"x")),ty(q1(t,"y")))}function sH(n,t){Q9(n,ty(q1(t,"x")),ty(q1(t,"y")))}function hH(n,t){return W9(n),new SR(n,new _Y(t,n.a))}function fH(n,t){return W9(n),new SR(n,new JV(t,n.a))}function lH(n,t){return W9(n),new pL(n,new QV(t,n.a))}function bH(n,t){return W9(n),new vL(n,new YV(t,n.a))}function wH(n){this.a=new ip,this.e=VQ(Wot,TEn,48,n,0,2)}function dH(n,t,e,i){this.a=n,this.e=t,this.d=e,this.c=i}function gH(n,t,e,i){this.a=n,this.c=t,this.b=e,this.d=i}function pH(n,t,e,i){this.c=n,this.b=t,this.a=e,this.d=i}function vH(n,t,e,i){this.c=n,this.b=t,this.d=e,this.a=i}function mH(n,t,e,i){this.c=n,this.d=t,this.b=e,this.a=i}function yH(n,t,e,i){this.a=n,this.d=t,this.c=e,this.b=i}function kH(n,t,e,i){Uj.call(this,n,t),this.a=e,this.b=i}function jH(n,t,e,i){this.a=n,this.c=t,this.d=e,this.b=i}function EH(n,t,i){(function(n,t){var e,i,r,c;for(function(n){var t;for(t=0;t(i=oG(e))&&++i,i}function SH(n){var t;return b1(t=new up,n),t}function PH(n){var t;return Xun(t=new up,n),t}function IH(n){return function(n){var t;return CO(t=Aun(n,(Ojn(),CQn)),160)?W7(Yx(t,160)):null}(n)||null}function CH(n){return!n.b&&(n.b=new m_(nct,n,12,3)),n.b}function OH(n,t,e){e.a?N1(n,t.b-n.f/2):L1(n,t.a-n.g/2)}function AH(n,t,e,i){this.a=n,this.b=t,this.c=e,this.d=i}function $H(n,t,e,i){this.a=n,this.b=t,this.c=e,this.d=i}function LH(n,t,e,i){this.e=n,this.a=t,this.c=e,this.d=i}function NH(n,t,e,i){this.a=n,this.c=t,this.d=e,this.b=i}function xH(n,t,e,i){WC(),AV.call(this,t,e,i),this.a=n}function DH(n,t,e,i){WC(),AV.call(this,t,e,i),this.a=n}function RH(n,t){this.a=n,gL.call(this,n,Yx(n.d,15).Zc(t))}function KH(n){this.f=n,this.c=this.f.e,n.f>0&&Icn(this)}function _H(n,t,e,i){this.b=n,this.c=i,PI.call(this,t,e)}function FH(n){return S$(n.b0?(e.Error.stackTraceLimit=Error.stackTraceLimit=64,1):"stack"in new Error),n=new d,p_n=t?new E:n}function Lq(n,t){var e;return e=Nk(n.gm),null==t?e:e+": "+t}function Nq(n,t){var e;return pW(e=n.b.Qc(t),n.b.gc()),e}function xq(n,t){if(null==n)throw hp(new Zm(t));return n}function Dq(n,t){return q6(n,t,function(n,t){var e;return null==(e=n.a.get(t))?new Array:e}(n,null==t?0:n.b.se(t)))}function Rq(n,t,e){return e>=0&&_N(n.substr(e,t.length),t)}function Kq(n,t,e,i,r,c,a){return new oW(n.e,t,e,i,r,c,a)}function _q(n,t,e,i,r,c){this.a=n,E0.call(this,t,e,i,r,c)}function Fq(n,t,e,i,r,c){this.a=n,E0.call(this,t,e,i,r,c)}function Bq(n,t){this.g=n,this.d=x4(Gy(Gzn,1),kIn,10,0,[t])}function Hq(n,t){this.e=n,this.a=UKn,this.b=Zdn(t),this.c=t}function qq(n,t){sN.call(this),YZ(this),this.a=n,this.c=t}function Gq(n,t,e,i){DF(n.c[t.g],e.g,i),DF(n.c[e.g],t.g,i)}function zq(n,t,e,i){DF(n.c[t.g],t.g,e),DF(n.b[t.g],t.g,i)}function Uq(n,t,e,i){return e>=0?n.jh(t,e,i):n.Sg(null,e,i)}function Xq(n){return 0==n.b.b?n.a.$e():mD(n.b)}function Wq(n){return iI(n.a)===iI((W2(),Gat))&&function(n){var t,e,i,r,c,a,u,o,s,h;for(t=new To,e=new To,s=_N(ZDn,(r=dpn(n.b,nRn))?lL(ynn((!r.b&&(r.b=new z$((xjn(),Dat),out,r)),r.b),tRn)):null),o=0;o=0?n.sh(i,e):pbn(n,t,e)}function wG(n,t,e){_G(),n&&xB(Sct,n,t),n&&xB(Mct,n,e)}function dG(n,t,e){this.i=new ip,this.b=n,this.g=t,this.a=e}function gG(n,t,e){this.c=new ip,this.e=n,this.f=t,this.b=e}function pG(n,t,e){this.a=new ip,this.e=n,this.f=t,this.c=e}function vG(n,t){jO(this),this.f=t,this.g=n,qH(this),this._d()}function mG(n,t){var e;e=n.q.getHours(),n.q.setDate(t),Ivn(n,e)}function yG(n,t){var e;for(MF(t),e=n.a;e;e=e.c)t.Od(e.g,e.i)}function kG(n){var t;return L5(t=new Xk(IZ(n.length)),n),t}function jG(n,t){if(null==t)throw hp(new Np);return function(n,t){var e,i=n.a;t=String(t),i.hasOwnProperty(t)&&(e=i[t]);var r=(r5(),S_n)[typeof e];return r?r(e):Z6(typeof e)}(n,t)}function EG(n){return n.Db>>16!=3?null:Yx(n.Cb,33)}function TG(n){return n.Db>>16!=9?null:Yx(n.Cb,33)}function MG(n){return n.Db>>16!=6?null:Yx(n.Cb,79)}function SG(n){return n.Db>>16!=7?null:Yx(n.Cb,235)}function PG(n){return n.Db>>16!=7?null:Yx(n.Cb,160)}function IG(n){return n.Db>>16!=11?null:Yx(n.Cb,33)}function CG(n,t){var e;return(e=n.Yg(t))>=0?n.lh(e):zhn(n,t)}function OG(n,t){var e;return Eun(e=new jR(t),n),new sx(e)}function AG(n){var t;return t=n.d,t=n.si(n.f),fY(n,t),t.Ob()}function $G(n,t){return n.b+=t.b,n.c+=t.c,n.d+=t.d,n.a+=t.a,n}function LG(n,t){return e.Math.abs(n)>16!=3?null:Yx(n.Cb,147)}function BG(n){return n.Db>>16!=6?null:Yx(n.Cb,235)}function HG(n){return n.Db>>16!=17?null:Yx(n.Cb,26)}function qG(n,t){var e=n.a=n.a||[];return e[t]||(e[t]=n.le(t))}function GG(n,t,e){return null==t?Ysn(n.f,null,e):r7(n.g,t,e)}function zG(n,t,e,i,r,c){return new yJ(n.e,t,n.aj(),e,i,r,c)}function UG(n,t,e){return n.a=l$(n.a,0,t)+""+e+lI(n.a,t),n}function XG(n,t,e){return eD(n.a,(KB(),gin(t,e),new Wj(t,e))),n}function WG(n){return jA(n.c),n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function VG(n){return jA(n.e),n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function QG(n,t){n.d&&uJ(n.d.e,n),n.d=t,n.d&&eD(n.d.e,n)}function YG(n,t){n.c&&uJ(n.c.g,n),n.c=t,n.c&&eD(n.c.g,n)}function JG(n,t){n.c&&uJ(n.c.a,n),n.c=t,n.c&&eD(n.c.a,n)}function ZG(n,t){n.i&&uJ(n.i.j,n),n.i=t,n.i&&eD(n.i.j,n)}function nz(n,t,e){this.a=t,this.c=n,this.b=(MF(e),new sx(e))}function tz(n,t,e){this.a=t,this.c=n,this.b=(MF(e),new sx(e))}function ez(n,t){this.a=n,this.c=dO(this.a),this.b=new Tq(t)}function iz(n,t){if(n<0||n>t)throw hp(new Hm(RMn+n+KMn+t))}function rz(n,t){return cK(n.a,t)?K_(n,Yx(t,22).g,null):null}function cz(){cz=O,o_n=z6((pm(),x4(Gy(s_n,1),XEn,538,0,[a_n])))}function az(){az=O,A3n=yK(new fX,($un(),tzn),($jn(),iXn))}function uz(){uz=O,$3n=yK(new fX,($un(),tzn),($jn(),iXn))}function oz(){oz=O,N3n=yK(new fX,($un(),tzn),($jn(),iXn))}function sz(){sz=O,c4n=oR(new fX,($un(),tzn),($jn(),CUn))}function hz(){hz=O,h4n=oR(new fX,($un(),tzn),($jn(),CUn))}function fz(){fz=O,b4n=oR(new fX,($un(),tzn),($jn(),CUn))}function lz(){lz=O,j4n=oR(new fX,($un(),tzn),($jn(),CUn))}function bz(){bz=O,c6n=yK(new fX,(Krn(),n5n),(ysn(),c5n))}function wz(n,t,e,i){this.c=n,this.d=i,pz(this,t),vz(this,e)}function dz(n){this.c=new ME,this.b=n.b,this.d=n.c,this.a=n.a}function gz(n){this.a=e.Math.cos(n),this.b=e.Math.sin(n)}function pz(n,t){n.a&&uJ(n.a.k,n),n.a=t,n.a&&eD(n.a.k,n)}function vz(n,t){n.b&&uJ(n.b.f,n),n.b=t,n.b&&eD(n.b.f,n)}function mz(n,t){(function(n,t,e){Yx(t.b,65),WZ(t.a,new xx(n,e,t))})(n,n.b,n.c),Yx(n.b.b,65),t&&Yx(t.b,65).b}function yz(n,t){CO(n.Cb,88)&&rhn(bV(Yx(n.Cb,88)),4),E2(n,t)}function kz(n,t){CO(n.Cb,179)&&(Yx(n.Cb,179).tb=null),E2(n,t)}function jz(n,t){return TT(),GJ(t)?new cR(t,n):new VP(t,n)}function Ez(n){var t;return Rk(),b1(t=new up,n),t}function Tz(n){var t;return Rk(),b1(t=new up,n),t}function Mz(n,t){var e;return e=new qF(n),t.c[t.c.length]=e,e}function Sz(n,t){var e;return(e=Yx(x8(QH(n.a),t),14))?e.gc():0}function Pz(n){return W9(n),WH(),WH(),HZ(n,CFn)}function Iz(n){for(var t;;)if(t=n.Pb(),!n.Ob())return t}function Cz(n,t){cm.call(this,new kE(IZ(n))),g0(t,EEn),this.a=t}function Oz(n,t,e){i9(t,e,n.gc()),this.c=n,this.a=t,this.b=e-t}function Az(n,t,e){var i;i9(t,e,n.c.length),i=e-t,uj(n.c,t,i)}function $z(n,t){if(n<0||n>=t)throw hp(new Hm(RMn+n+KMn+t))}function Lz(n,t){if(n<0||n>=t)throw hp(new Ly(RMn+n+KMn+t))}function Nz(n,t){this.b=(vB(n),n),this.a=0==(t&nMn)?64|t|MEn:t}function xz(n){$C(this),zp(this.a,j5(e.Math.max(8,n))<<1)}function Dz(n){return $5(x4(Gy(B7n,1),TEn,8,0,[n.i.n,n.n,n.a]))}function Rz(n,t){return function(n,t,e){var i,r,c,a,u,o;if(a=new go,u=dwn(n.e.Tg(),t),i=Yx(n.g,119),TT(),Yx(t,66).Oj())for(c=0;c0&&0==n.a[--n.d];);0==n.a[n.d++]&&(n.e=0)}function PU(n){return n.a?0==n.e.length?n.a.a:n.a.a+""+n.e:n.c}function IU(n){return hR(n.e.Hd().gc()*n.c.Hd().gc(),16,new qf(n))}function CU(n){return Yx(Htn(n,VQ(Nzn,yIn,17,n.c.length,0,1)),474)}function OU(n){return Yx(Htn(n,VQ(Gzn,kIn,10,n.c.length,0,1)),193)}function AU(n,t,e){MF(n),function(n){var t,e,i;for(XH(),JC(n.c,n.a),i=new pb(n.c);i.a=0&&d=t)throw hp(new Hm(function(n,t){if(n<0)return ngn(eEn,x4(Gy(UKn,1),iEn,1,5,["index",d9(n)]));if(t<0)throw hp(new Qm(rEn+t));return ngn("%s (%s) must be less than size (%s)",x4(Gy(UKn,1),iEn,1,5,["index",d9(n),d9(t)]))}(n,t)));return n}function qU(n,t,e){if(n<0||te)throw hp(new Hm(function(n,t,e){return n<0||n>e?Usn(n,e,"start index"):t<0||t>e?Usn(t,e,"end index"):ngn("end index (%s) must not be less than start index (%s)",x4(Gy(UKn,1),iEn,1,5,[d9(t),d9(n)]))}(n,t,e)))}function GU(n,t){if(__(n.a,t),t.d)throw hp(new Im(GMn));t.d=n}function zU(n,t){if(t.$modCount!=n.$modCount)throw hp(new Dp)}function UU(n,t){return!!CO(t,42)&&Fin(n.a,Yx(t,42))}function XU(n,t){return!!CO(t,42)&&Fin(n.a,Yx(t,42))}function WU(n,t){return!!CO(t,42)&&Fin(n.a,Yx(t,42))}function VU(n){var t;return tC(n)?-0==(t=n)?0:t:function(n){return gcn(n,(LJ(),A_n))<0?-function(n){return n.l+n.m*GTn+n.h*zTn}(h5(n)):n.l+n.m*GTn+n.h*zTn}(n)}function QU(n){var t;return yB(n),t=new F,Qk(n.a,new _b(t)),t}function YU(n){var t;return yB(n),t=new _,Qk(n.a,new Kb(t)),t}function JU(n,t){this.a=n,Vl.call(this,n),iz(t,n.gc()),this.b=t}function ZU(n){this.e=n,this.b=this.e.a.entries(),this.a=new Array}function nX(n){return new pQ((g0(n,VEn),PZ(t7(t7(5,n),n/10|0))))}function tX(n){return Yx(Htn(n,VQ(rUn,jIn,11,n.c.length,0,1)),1943)}function eX(n,t,e){n.d&&uJ(n.d.e,n),n.d=t,n.d&&ZR(n.d.e,e,n)}function iX(n,t){(function(n,t){var i,r,c,a,u,o,s,h,f,l,b,w,d,g,p,v,m,y,k;if(m=0,0==t.f.b)for(p=new pb(n);p.a2e3&&(k_n=n,j_n=e.setTimeout(Ij,10)),0==y_n++&&(function(n){var t,e;if(n.a){e=null;do{t=n.a,n.a=null,e=Zon(t,e)}while(n.a);n.a=e}}((py(),g_n)),!0)}();try{return function(n,t,e){return n.apply(t,e)}(n,t,i)}finally{!function(n){n&&function(n){var t,e;if(n.b){e=null;do{t=n.b,n.b=null,e=Zon(t,e)}while(n.b);n.b=e}}((py(),g_n)),--y_n,n&&-1!=j_n&&(function(n){e.clearTimeout(n)}(j_n),j_n=-1)}(r)}}function hX(n){var t;t=n.Wg(),this.a=CO(t,69)?Yx(t,69).Zh():t.Kc()}function fX(){hm.call(this),this.j.c=VQ(UKn,iEn,1,0,5,1),this.a=-1}function lX(n,t,e,i){this.d=n,this.n=t,this.g=e,this.o=i,this.p=-1}function bX(n,t,e,i){this.e=i,this.d=null,this.c=n,this.a=t,this.b=e}function wX(n,t,e){this.d=new sd(this),this.e=n,this.i=t,this.f=e}function dX(){dX=O,zVn=new nS(pSn,0),UVn=new nS("TOP_LEFT",1)}function gX(){gX=O,K3n=RB(d9(1),d9(4)),R3n=RB(d9(1),d9(2))}function pX(){pX=O,l9n=z6((eT(),x4(Gy(d9n,1),XEn,551,0,[h9n])))}function vX(){vX=O,s9n=z6((tT(),x4(Gy(f9n,1),XEn,482,0,[u9n])))}function mX(){mX=O,a7n=z6((iT(),x4(Gy(s7n,1),XEn,530,0,[r7n])))}function yX(){yX=O,yqn=z6((BE(),x4(Gy(Bqn,1),XEn,481,0,[vqn])))}function kX(n,t,e,i){return CO(e,54)?new C$(n,t,e,i):new LK(n,t,e,i)}function jX(n,t){return Yx(qA(QK(Yx(_V(n.k,t),15).Oc(),hWn)),113)}function EX(n,t){return Yx(qA(YK(Yx(_V(n.k,t),15).Oc(),hWn)),113)}function TX(n){return new Nz(function(n,t){var e,i;for(XH(),i=new ip,e=0;e0}function IX(n){return S$(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function CX(n,t){vB(t),DF(n.a,n.c,t),n.c=n.c+1&n.a.length-1,vrn(n)}function OX(n,t){vB(t),n.b=n.b-1&n.a.length-1,DF(n.a,n.b,t),vrn(n)}function AX(n,t){var e;for(e=n.j.c.length;e0&&smn(n.g,0,t,0,n.i),t}function _X(n,t){var e;return MT(),!(e=Yx(BF(Nct,n),55))||e.wj(t)}function FX(n){var t;for(t=0;n.Ob();)n.Pb(),t=t7(t,1);return PZ(t)}function BX(n,t){var e;return e=new $y,n.xd(e),e.a+="..",t.yd(e),e.a}function HX(n,t,e){return fvn(n,t,e,CO(t,99)&&0!=(Yx(t,18).Bb&eMn))}function qX(n,t,e){return function(n,t,e,i){var r,c,a,u,o,s;if(u=new go,o=dwn(n.e.Tg(),t),r=Yx(n.g,119),TT(),Yx(t,66).Oj())for(a=0;an.c));a++)r.a>=n.s&&(c<0&&(c=a),u=a);return o=(n.s+n.c)/2,c>=0&&(o=function(n){return(n.c+n.a)/2}(($z(i=function(n,t,e,i){var r,c,a,u,o,s,h,f,l,b,w;if(c=e,e=e&&(i=t,c=(o=(u.c+u.a)/2)-e,u.c<=o-e&&ZR(n,i++,new Lx(u.c,c)),(a=o+e)<=u.a&&(r=new Lx(a,u.a),iz(i,n.c.length),GT(n.c,i,r)))}(t,i,e)),o}(r,e,i))),function(n,t,e){var i,r,c,a;for(c=t.q,a=t.r,new wz((iQ(),K4n),t,c,1),new wz(K4n,c,a,1),r=new pb(e);r.a0;)i+=n.a[e],e-=e&-e;return i}function UW(n,t){var e;for(e=t;e;)$$(n,-e.i,-e.j),e=IG(e);return n}function XW(n,t){var e,i;for(vB(t),i=n.Kc();i.Ob();)e=i.Pb(),t.td(e)}function WW(n,t){var e;return new Wj(e=t.cd(),n.e.pc(e,Yx(t.dd(),14)))}function VW(n,t,e,i){var r;(r=new $).c=t,r.b=e,r.a=i,i.b=e.a=r,++n.b}function QW(n,t,e){var i;return $z(t,n.c.length),i=n.c[t],n.c[t]=e,i}function YW(n){return n.c&&n.d?Yz(n.c)+"->"+Yz(n.d):"e_"+_A(n)}function JW(n,t){return(W9(n),ej(new SR(n,new _Y(t,n.a)))).sd(dBn)}function ZW(n){return!(!n.c||!n.d||!n.c.i||n.c.i!=n.d.i)}function nV(n){if(!n.c.Sb())throw hp(new Kp);return n.a=!0,n.c.Ub()}function tV(n){n.i=0,qT(n.b,null),qT(n.c,null),n.a=null,n.e=null,++n.g}function eV(n){KT.call(this,null==n?aEn:I7(n),CO(n,78)?Yx(n,78):null)}function iV(n){Tjn(),sp(this),this.a=new ME,a6(this,n),KD(this.a,n)}function rV(){AC(this),this.b=new QS(JTn,JTn),this.a=new QS(ZTn,ZTn)}function cV(n,t){this.c=0,this.b=t,SI.call(this,n,17493),this.a=this.c}function aV(n){uV(),hBn||(this.c=n,this.e=!0,this.a=new ip)}function uV(){uV=O,hBn=!0,oBn=!1,sBn=!1,lBn=!1,fBn=!1}function oV(n,t){return!!CO(t,149)&&_N(n.c,Yx(t,149).c)}function sV(n,t){var e;return e=0,n&&(e+=n.f.a/2),t&&(e+=t.f.a/2),e}function hV(n,t){return Yx(UJ(n.d,t),23)||Yx(UJ(n.e,t),23)}function fV(n){this.b=n,UO.call(this,n),this.a=Yx(H3(this.b.a,4),126)}function lV(n){this.b=n,u$.call(this,n),this.a=Yx(H3(this.b.a,4),126)}function bV(n){return n.t||(n.t=new Kg(n),y9(new Um(n),0,n.t)),n.t}function wV(){var n,t;wV=O,Rk(),t=new Bp,gut=t,n=new qv,put=n}function dV(n){var t;return n.c||CO(t=n.r,88)&&(n.c=Yx(t,26)),n.c}function gV(n){return rO(n&BTn,n>>22&BTn,n<0?HTn:0)}function pV(n,t){var e,i;(e=Yx(function(n,t){MF(n);try{return n.Bc(t)}catch(n){if(CO(n=j4(n),205)||CO(n,173))return null;throw hp(n)}}(n.c,t),14))&&(i=e.gc(),e.$b(),n.d-=i)}function vV(n,t){var e;return!!(e=c6(n,t.cd()))&&qB(e.e,t.dd())}function mV(n,t){return 0==t||0==n.e?n:t>0?Nnn(n,t):Own(n,-t)}function yV(n,t){return 0==t||0==n.e?n:t>0?Own(n,t):Nnn(n,-t)}function kV(n){if(Vfn(n))return n.c=n.a,n.a.Pb();throw hp(new Kp)}function jV(n){var t,e;return t=n.c.i,e=n.d.i,t.k==(bon(),_zn)&&e.k==_zn}function EV(n){var t;return o4(t=new jq,n),b5(t,(gjn(),$1n),null),t}function TV(n,t,e){var i;return(i=n.Yg(t))>=0?n._g(i,e,!0):tfn(n,t,e)}function MV(n,t,e,i){var r;for(r=0;rt)throw hp(new Hm(Usn(n,t,"index")));return n}function GV(n,t,e,i){var r;return function(n,t,e,i,r){var c,a;for(c=0,a=0;an.d[r.p]&&(e+=zW(n.b,i)*Yx(a.b,19).a,OX(n.a,d9(i)));for(;!ry(n.a);)eZ(n.b,Yx($_(n.a),19).a)}return e}(n,e)}function uQ(n){var t;return n.a||CO(t=n.r,148)&&(n.a=Yx(t,148)),n.a}function oQ(n){return n.a?n.e?oQ(n.e):null:n}function sQ(n,t){return vB(t),n.c=0,"Initial capacity must not be negative")}function vQ(){vQ=O,oHn=z6((JZ(),x4(Gy(sHn,1),XEn,232,0,[rHn,cHn,aHn])))}function mQ(){mQ=O,dHn=z6((BY(),x4(Gy(gHn,1),XEn,461,0,[fHn,hHn,lHn])))}function yQ(){yQ=O,kHn=z6((OJ(),x4(Gy(GHn,1),XEn,462,0,[mHn,vHn,pHn])))}function kQ(){kQ=O,bBn=z6((C6(),x4(Gy(wBn,1),XEn,132,0,[cBn,aBn,uBn])))}function jQ(){jQ=O,XGn=z6((CJ(),x4(Gy(ezn,1),XEn,379,0,[GGn,qGn,zGn])))}function EQ(){EQ=O,Ozn=z6((e9(),x4(Gy(Lzn,1),XEn,423,0,[Izn,Pzn,Szn])))}function TQ(){TQ=O,PWn=z6((O0(),x4(Gy(AWn,1),XEn,314,0,[TWn,EWn,MWn])))}function MQ(){MQ=O,$Wn=z6((f0(),x4(Gy(KWn,1),XEn,337,0,[IWn,OWn,CWn])))}function SQ(){SQ=O,WWn=z6((i5(),x4(Gy(tVn,1),XEn,450,0,[zWn,GWn,UWn])))}function PQ(){PQ=O,ZXn=z6((v2(),x4(Gy(oWn,1),XEn,361,0,[YXn,QXn,VXn])))}function IQ(){IQ=O,GVn=z6((AJ(),x4(Gy(XVn,1),XEn,303,0,[BVn,HVn,FVn])))}function CQ(){CQ=O,_Vn=z6((r4(),x4(Gy(qVn,1),XEn,292,0,[DVn,RVn,xVn])))}function OQ(){OQ=O,E2n=z6((i8(),x4(Gy(I2n,1),XEn,378,0,[m2n,y2n,k2n])))}function AQ(){AQ=O,f3n=z6((d3(),x4(Gy(w3n,1),XEn,375,0,[u3n,o3n,s3n])))}function $Q(){$Q=O,Y2n=z6((k5(),x4(Gy(n3n,1),XEn,339,0,[W2n,X2n,V2n])))}function LQ(){LQ=O,a3n=z6((h0(),x4(Gy(h3n,1),XEn,452,0,[r3n,e3n,i3n])))}function NQ(){NQ=O,O3n=z6((F4(),x4(Gy(F3n,1),XEn,377,0,[P3n,I3n,S3n])))}function xQ(){xQ=O,y3n=z6(($6(),x4(Gy(T3n,1),XEn,336,0,[g3n,p3n,v3n])))}function DQ(){DQ=O,M3n=z6((V2(),x4(Gy(C3n,1),XEn,338,0,[E3n,k3n,j3n])))}function RQ(){RQ=O,W3n=z6((l0(),x4(Gy(V3n,1),XEn,454,0,[G3n,z3n,U3n])))}function KQ(){KQ=O,v6n=z6((m7(),x4(Gy(k6n,1),XEn,442,0,[g6n,w6n,d6n])))}function _Q(){_Q=O,P6n=z6((I6(),x4(Gy(r8n,1),XEn,380,0,[E6n,T6n,M6n])))}function FQ(){FQ=O,g8n=z6((p7(),x4(Gy(W8n,1),XEn,381,0,[b8n,w8n,l8n])))}function BQ(){BQ=O,h8n=z6((w3(),x4(Gy(f8n,1),XEn,293,0,[u8n,o8n,a8n])))}function HQ(){HQ=O,a9n=z6((v7(),x4(Gy(o9n,1),XEn,437,0,[e9n,i9n,r9n])))}function qQ(){qQ=O,Det=z6((O8(),x4(Gy(Bet,1),XEn,334,0,[Let,$et,Net])))}function GQ(){GQ=O,set=z6((ZZ(),x4(Gy(det,1),XEn,272,0,[cet,aet,uet])))}function zQ(n,t){return!n.o&&(n.o=new yY((ajn(),Frt),mct,n,0)),mnn(n.o,t)}function UQ(n){return!n.g&&(n.g=new oo),!n.g.c&&(n.g.c=new Rg(n)),n.g.c}function XQ(n,t,e){var i,r;if(null!=e)for(i=0;i=r){for(a=1;ae||t=0?n._g(e,!0,!0):tfn(n,t,!0)}function MY(){MY=O,a6n=ltn(ltn(bT(new fX,(Krn(),J4n)),(ysn(),h5n)),a5n)}function SY(n){for(;!n.a;)if(!HN(n.c,new Fb(n)))return!1;return!0}function PY(n){return MF(n),CO(n,198)?Yx(n,198):new al(n)}function IY(){var n,t,e,i;IY=O,d7n=new bu,p7n=new wu,Cjn(),n=Ttt,t=d7n,e=itt,i=p7n,KB(),g7n=new Em(x4(Gy(i_n,1),DEn,42,0,[(gin(n,t),new Wj(n,t)),(gin(e,i),new Wj(e,i))]))}function CY(){CY=O,m6n=new xS("LEAF_NUMBER",0),y6n=new xS("NODE_SIZE",1)}function OY(n){n.a=VQ(Wot,MTn,25,n.b+1,15,1),n.c=VQ(Wot,MTn,25,n.b,15,1),n.d=0}function AY(n,t){if(null==n.g||t>=n.i)throw hp(new BI(t,n.i));return n.g[t]}function $Y(n,t,e){if(k6(n,e),null!=e&&!n.wj(e))throw hp(new Op);return e}function LY(n){var t;if(n.Ek())for(t=n.i-1;t>=0;--t)c1(n,t);return KX(n)}function NY(n){var t,e;if(!n.b)return null;for(e=n.b;t=e.a[0];)e=t;return e}function xY(n,t){var e;return nW(t),(e=aJ(n.slice(0,t),n)).length=t,e}function DY(n,t,e,i){WH(),i=i||IFn,Xsn(n.slice(t,e),n,t,e,-t,i)}function RY(n,t,e,i,r){return t<0?tfn(n,e,i):Yx(e,66).Nj().Pj(n,n.yh(),t,i,r)}function KY(n,t){if(t.a)throw hp(new Im(GMn));__(n.a,t),t.a=n,!n.j&&(n.j=t)}function _Y(n,t){PI.call(this,t.rd(),-16449&t.qd()),vB(n),this.a=n,this.c=t}function FY(n,t){var e,i;return i=t/n.c.Hd().gc()|0,e=t%n.c.Hd().gc(),bQ(n,i,e)}function BY(){BY=O,fHn=new oM(ySn,0),hHn=new oM(pSn,1),lHn=new oM(kSn,2)}function HY(){HY=O,WFn=new _T("All",0),VFn=new CC,QFn=new hO,YFn=new OC}function qY(){qY=O,ZFn=z6((HY(),x4(Gy(nBn,1),XEn,297,0,[WFn,VFn,QFn,YFn])))}function GY(){GY=O,vzn=z6((_4(),x4(Gy(Czn,1),XEn,405,0,[bzn,gzn,wzn,dzn])))}function zY(){zY=O,ZHn=z6((e4(),x4(Gy(rqn,1),XEn,406,0,[YHn,WHn,VHn,QHn])))}function UY(){UY=O,cqn=z6((Sen(),x4(Gy(aqn,1),XEn,323,0,[tqn,nqn,eqn,iqn])))}function XY(){XY=O,pqn=z6((Pen(),x4(Gy(mqn,1),XEn,394,0,[bqn,lqn,wqn,dqn])))}function WY(){WY=O,e5n=z6((Krn(),x4(Gy(i5n,1),XEn,393,0,[Y4n,J4n,Z4n,n5n])))}function VY(){VY=O,jXn=z6((R4(),x4(Gy(AXn,1),XEn,360,0,[yXn,vXn,mXn,pXn])))}function QY(){QY=O,c8n=z6((Hin(),x4(Gy(s8n,1),XEn,340,0,[i8n,t8n,e8n,n8n])))}function YY(){YY=O,RXn=z6((K4(),x4(Gy(qXn,1),XEn,411,0,[$Xn,LXn,NXn,xXn])))}function JY(){JY=O,C2n=z6((Hen(),x4(Gy(x2n,1),XEn,197,0,[S2n,P2n,M2n,T2n])))}function ZY(){ZY=O,Srt=z6((P6(),x4(Gy(Crt,1),XEn,396,0,[jrt,Ert,krt,Trt])))}function nJ(){nJ=O,Het=z6((Frn(),x4(Gy(Jet,1),XEn,285,0,[Fet,Ret,Ket,_et])))}function tJ(){tJ=O,get=z6((g7(),x4(Gy(Eet,1),XEn,218,0,[wet,fet,het,bet])))}function eJ(){eJ=O,mrt=z6((unn(),x4(Gy(yrt,1),XEn,311,0,[prt,wrt,grt,drt])))}function iJ(){iJ=O,ert=z6((Ann(),x4(Gy(lrt,1),XEn,374,0,[Zit,nrt,Jit,Yit])))}function rJ(){rJ=O,Jvn(),iot=JTn,eot=ZTn,cot=new ib(JTn),rot=new ib(ZTn)}function cJ(){cJ=O,rVn=new WM(fIn,0),iVn=new WM("IMPROVE_STRAIGHTNESS",1)}function aJ(n,t){return 10!=QJ(t)&&x4(V5(t),t.hm,t.__elementTypeId$,QJ(t),n),n}function uJ(n,t){var e;return-1!=(e=hJ(n,t,0))&&(KV(n,e),!0)}function oJ(n,t){var e;return(e=Yx(zV(n.e,t),387))?(_D(e),e.e):null}function sJ(n){var t;return tC(n)&&(t=0-n,!isNaN(t))?t:$3(h5(n))}function hJ(n,t,e){for(;e0?(n.f[s.p]=l/(s.e.c.length+s.g.c.length),n.c=e.Math.min(n.c,n.f[s.p]),n.b=e.Math.max(n.b,n.f[s.p])):u&&(n.f[s.p]=l)}}(n,t,i),0==n.a.c.length||function(n,t){var e,i,r,c,a,u,o,s,h,f;for(s=n.e[t.c.p][t.p]+1,o=t.c.a.c.length+1,u=new pb(n.a);u.a=0?$en(n,e,!0,!0):tfn(n,t,!0)}function _J(n,t){var e,i;return JE(),e=SX(n),i=SX(t),!!e&&!!i&&!Een(e.k,i.k)}function FJ(n){(this.q?this.q:(XH(),XH(),MFn)).Ac(n.q?n.q:(XH(),XH(),MFn))}function BJ(n,t){sqn=new it,gqn=t,Yx((oqn=n).b,65),QQ(oqn,sqn,null),Bmn(oqn)}function HJ(n,t,e){var i;return i=n.g[t],_O(n,t,n.oi(t,e)),n.gi(t,e,i),n.ci(),i}function qJ(n,t){var e;return(e=n.Xc(t))>=0&&(n.$c(e),!0)}function GJ(n){var t;return n.d!=n.r&&(t=fcn(n),n.e=!!t&&t.Cj()==KDn,n.d=t),n.e}function zJ(n,t){var e;for(MF(n),MF(t),e=!1;t.Ob();)e|=n.Fc(t.Pb());return e}function UJ(n,t){var e;return(e=Yx(BF(n.e,t),387))?(OO(n,e),e.e):null}function XJ(n){var t,e;return t=n/60|0,0==(e=n%60)?""+t:t+":"+e}function WJ(n,t){return W9(n),new SR(n,new VN(new JV(t,n.a)))}function VJ(n,t){var e=n.a[t],i=(r5(),S_n)[typeof e];return i?i(e):Z6(typeof e)}function QJ(n){return null==n.__elementTypeCategory$?10:n.__elementTypeCategory$}function YJ(n){var t;return null!=(t=0==n.b.c.length?null:TR(n.b,0))&&e2(n,0),t}function JJ(n,t){for(;t[0]=0;)++t[0]}function ZJ(n,t){this.e=t,this.a=h4(n),this.a<54?this.f=VU(n):this.c=Utn(n)}function nZ(n,t,e,i){Ljn(),np.call(this,26),this.c=n,this.a=t,this.d=e,this.b=i}function tZ(n,t,e){var i,r;for(i=10,r=0;rn.a[i]&&(i=e);return i}function uZ(n,t){return 0==t.e||0==n.e?pFn:(jfn(),Vbn(n,t))}function oZ(){oZ=O,kzn=new St,jzn=new Tt,mzn=new At,yzn=new $t,Ezn=new Lt}function sZ(){sZ=O,$Bn=new cM("BY_SIZE",0),LBn=new cM("BY_SIZE_AND_SHAPE",1)}function hZ(){hZ=O,Qqn=new fM("EADES",0),Yqn=new fM("FRUCHTERMAN_REINGOLD",1)}function fZ(){fZ=O,FWn=new zM("READING_DIRECTION",0),BWn=new zM("ROTATION",1)}function lZ(){lZ=O,_Wn=z6((min(),x4(Gy(HWn,1),XEn,335,0,[NWn,LWn,DWn,RWn,xWn])))}function bZ(){bZ=O,D2n=z6((ain(),x4(Gy(z2n,1),XEn,315,0,[N2n,A2n,$2n,O2n,L2n])))}function wZ(){wZ=O,GXn=z6((Tan(),x4(Gy(JXn,1),XEn,363,0,[_Xn,BXn,HXn,FXn,KXn])))}function dZ(){dZ=O,cYn=z6((d7(),x4(Gy(p2n,1),XEn,163,0,[iYn,ZQn,nYn,tYn,eYn])))}function gZ(){gZ=O,E9n=z6((Aon(),x4(Gy(c7n,1),XEn,316,0,[p9n,v9n,k9n,m9n,y9n])))}function pZ(){pZ=O,P7n=z6((Qtn(),x4(Gy(D7n,1),XEn,175,0,[T7n,E7n,k7n,M7n,j7n])))}function vZ(){vZ=O,t9n=z6((xbn(),x4(Gy(c9n,1),XEn,355,0,[Q8n,V8n,J8n,Y8n,Z8n])))}function mZ(){mZ=O,izn=z6(($un(),x4(Gy(azn,1),XEn,356,0,[YGn,JGn,ZGn,nzn,tzn])))}function yZ(){yZ=O,ret=z6((t9(),x4(Gy(oet,1),XEn,103,0,[tet,net,Ztt,Jtt,eet])))}function kZ(){kZ=O,ait=z6((Ytn(),x4(Gy(bit,1),XEn,249,0,[eit,rit,nit,tit,iit])))}function jZ(){jZ=O,zit=z6((Ikn(),x4(Gy(trt,1),lIn,61,0,[Hit,Tit,Eit,Bit,qit])))}function EZ(n,t){var e;return(e=Yx(BF(n.a,t),134))||(e=new Zn,xB(n.a,t,e)),e}function TZ(n){var t;return!!(t=Yx(Aun(n,(Ojn(),YVn)),305))&&t.a==n}function MZ(n){var t;return!!(t=Yx(Aun(n,(Ojn(),YVn)),305))&&t.i==n}function SZ(n,t){return vB(t),e_(n),!!n.d.Ob()&&(t.td(n.d.Pb()),!0)}function PZ(n){return k8(n,Yjn)>0?Yjn:k8(n,nTn)<0?nTn:WR(n)}function IZ(n){return n<3?(g0(n,GEn),n+1):n=0&&t=-.01&&n.a<=SSn&&(n.a=0),n.b>=-.01&&n.b<=SSn&&(n.b=0),n}function $Z(n,t){return t==(bx(),bx(),_Fn)?n.toLocaleLowerCase():n.toLowerCase()}function LZ(n){return(0!=(2&n.i)?"interface ":0!=(1&n.i)?"":"class ")+(sL(n),n.o)}function NZ(n){var t;t=new zv,fY((!n.q&&(n.q=new m_(fat,n,11,10)),n.q),t)}function xZ(n){this.g=n,this.f=new ip,this.a=e.Math.min(this.g.c.c,this.g.d.c)}function DZ(n){this.b=new ip,this.a=new ip,this.c=new ip,this.d=new ip,this.e=n}function RZ(n,t){this.a=new rp,this.e=new rp,this.b=(i8(),k2n),this.c=n,this.b=t}function KZ(n,t,e){sN.call(this),YZ(this),this.a=n,this.c=e,this.b=t.d,this.f=t.e}function _Z(n){this.d=n,this.c=n.c.vc().Kc(),this.b=null,this.a=null,this.e=(pm(),a_n)}function FZ(n){if(n<0)throw hp(new Qm("Illegal Capacity: "+n));this.g=this.ri(n)}function BZ(n){var t;M$(!!n.c),t=n.c.a,VZ(n.d,n.c),n.b==n.c?n.b=t:--n.a,n.c=null}function HZ(n,t){var e;return W9(n),e=new _H(n,n.a.rd(),4|n.a.qd(),t),new SR(n,e)}function qZ(n,t){var e;for(e=n.Kc();e.Ob();)b5(Yx(e.Pb(),70),(Ojn(),kQn),t)}function GZ(n){var t;return(t=ty(fL(Aun(n,(gjn(),y1n)))))<0&&b5(n,y1n,t=0),t}function zZ(n,t,e,i,r,c){var a;YG(a=EV(i),r),QG(a,c),Qhn(n.a,i,new jx(a,t,e.f))}function UZ(n,t){var e;if(!(e=Ybn(n.Tg(),t)))throw hp(new Qm(mNn+t+jNn));return e}function XZ(n,t){var e;for(e=n;IG(e);)if((e=IG(e))==t)return!0;return!1}function WZ(n,t){var e,i,r,c;for(vB(t),r=0,c=(i=n.c).length;r>16!=6?null:Yx(Bfn(n),235)}(n))&&!t.kh()&&(n.w=t),t)}function r1(n){var t;return null==n?null:function(n,t){var e,i,r,c,a;if(null==n)return null;for(a=VQ(Xot,sTn,25,2*t,15,1),i=0,r=0;i>4&15,c=15&n[i],a[r++]=zrt[e],a[r++]=zrt[c];return Vnn(a,0,a.length)}(t=Yx(n,190),t.length)}function c1(n,t){if(null==n.g||t>=n.i)throw hp(new BI(t,n.i));return n.li(t,n.g[t])}function a1(n){var t,e;for(t=n.a.d.j,e=n.c.d.j;t!=e;)n2(n.b,t),t=A9(t);n2(n.b,t)}function u1(n,t){var e,i,r,c;for(r=0,c=(i=n.d).length;r=14&&t<=16)),n}function f1(n,t,e){var i=function(){return n.apply(i,arguments)};return t.apply(i,e),i}function l1(n,t,e){var i,r;i=t;do{r=ty(n.p[i.p])+e,n.p[i.p]=r,i=n.a[i.p]}while(i!=t)}function b1(n,t){var e,i;i=n.a,e=function(n,t,e){var i,r;return r=n.a,n.a=t,0!=(4&n.Db)&&0==(1&n.Db)&&(i=new p_(n,1,5,r,n.a),e?Pan(e,i):e=i),e}(n,t,null),i!=t&&!n.e&&(e=zyn(n,t,e)),e&&e.Fi()}function w1(n,t){return XC(),o0(ZEn),e.Math.abs(n-t)<=ZEn||n==t||isNaN(n)&&isNaN(t)}function d1(n,t){return XC(),o0(ZEn),e.Math.abs(n-t)<=ZEn||n==t||isNaN(n)&&isNaN(t)}function g1(n,t){return function(n){return n?n.i:null}(K2(n,t,WR(e7(BEn,HB(WR(e7(null==t?0:W5(t),HEn)),15)))))}function p1(){p1=O,zzn=z6((bon(),x4(Gy(Uzn,1),XEn,267,0,[Hzn,Bzn,_zn,qzn,Fzn,Kzn])))}function v1(){v1=O,dnt=z6((dan(),x4(Gy(iet,1),XEn,291,0,[bnt,lnt,fnt,snt,ont,hnt])))}function m1(){m1=O,V7n=z6((qen(),x4(Gy(wnt,1),XEn,248,0,[H7n,z7n,U7n,X7n,q7n,G7n])))}function y1(){y1=O,vWn=z6((psn(),x4(Gy(kWn,1),XEn,227,0,[bWn,dWn,lWn,wWn,gWn,fWn])))}function k1(){k1=O,jVn=z6((uon(),x4(Gy(LVn,1),XEn,275,0,[mVn,gVn,yVn,vVn,pVn,dVn])))}function j1(){j1=O,wVn=z6((Wcn(),x4(Gy(kVn,1),XEn,274,0,[hVn,sVn,lVn,oVn,fVn,uVn])))}function E1(){E1=O,v2n=z6((nun(),x4(Gy(j2n,1),XEn,313,0,[d2n,b2n,f2n,l2n,g2n,w2n])))}function T1(){T1=O,eVn=z6((pon(),x4(Gy(cVn,1),XEn,276,0,[QWn,VWn,JWn,YWn,nVn,ZWn])))}function M1(){M1=O,l5n=z6((ysn(),x4(Gy(Z5n,1),XEn,327,0,[h5n,a5n,o5n,u5n,s5n,c5n])))}function S1(){S1=O,jit=z6((Chn(),x4(Gy(Git,1),XEn,273,0,[mit,pit,vit,git,dit,yit])))}function P1(){P1=O,Tet=z6((vun(),x4(Gy(xet,1),XEn,312,0,[ket,met,jet,pet,yet,vet])))}function I1(n,t){var e;e=n.a,n.a=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new aW(n,0,e,n.a))}function C1(n,t){var e;e=n.b,n.b=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new aW(n,1,e,n.b))}function O1(n,t){var e;e=n.b,n.b=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new aW(n,3,e,n.b))}function A1(n,t){var e;e=n.f,n.f=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new aW(n,3,e,n.f))}function $1(n,t){var e;e=n.g,n.g=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new aW(n,4,e,n.g))}function L1(n,t){var e;e=n.i,n.i=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new aW(n,5,e,n.i))}function N1(n,t){var e;e=n.j,n.j=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new aW(n,6,e,n.j))}function x1(n,t){var e;e=n.j,n.j=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new aW(n,1,e,n.j))}function D1(n,t){var e;e=n.c,n.c=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new aW(n,4,e,n.c))}function R1(n,t){var e;e=n.k,n.k=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new aW(n,2,e,n.k))}function K1(n,t){var e;e=n.d,n.d=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new uW(n,2,e,n.d))}function _1(n,t){var e;e=n.s,n.s=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new uW(n,4,e,n.s))}function F1(n,t){var e;e=n.t,n.t=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new uW(n,5,e,n.t))}function B1(n,t){var e;e=n.F,n.F=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,5,e,t))}function H1(n,t){var e;return(e=Yx(BF((MT(),Nct),n),55))?e.xj(t):VQ(UKn,iEn,1,t,5,1)}function q1(n,t){var e;return t in n.a&&(e=jG(n,t).he())?e.a:null}function G1(n,t){var e,i;return xk(),i=new uo,!!t&&Xbn(i,t),x0(e=i,n),e}function z1(n,t,e){if(k6(n,e),!n.Bk()&&null!=e&&!n.wj(e))throw hp(new Op);return e}function U1(n,t){return n.n=t,n.n?(n.f=new ip,n.e=new ip):(n.f=null,n.e=null),n}function X1(n,t,e,i,r,c){var a;return e0(e,a=TF(n,t)),a.i=r?8:0,a.f=i,a.e=r,a.g=c,a}function W1(n,t,e,i,r){this.d=t,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=n,this.a=e}function V1(n,t,e,i,r){this.d=t,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=n,this.a=e}function Q1(n,t,e,i,r){this.d=t,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=n,this.a=e}function Y1(n,t,e,i,r){this.d=t,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=n,this.a=e}function J1(n,t,e,i,r){this.d=t,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=n,this.a=e}function Z1(n,t){var e,i,r,c;for(r=0,c=(i=t).length;r=0),function(n,t){var e,i,r;return i=n.a.length-1,e=t-n.b&i,r=n.c-t&i,E$(e<(n.c-n.b&i)),e>=r?(function(n,t){var e,i;for(e=n.a.length-1,n.c=n.c-1&e;t!=n.c;)i=t+1&e,DF(n.a,t,n.a[i]),t=i;DF(n.a,n.c,null)}(n,t),-1):(function(n,t){var e,i;for(e=n.a.length-1;t!=n.b;)i=t-1&e,DF(n.a,t,n.a[i]),t=i;DF(n.a,n.b,null),n.b=n.b+1&e}(n,t),1)}(n.d,n.c)<0&&(n.a=n.a-1&n.d.a.length-1,n.b=n.d.c),n.c=-1}function u0(n){return n.a<54?n.f<0?-1:n.f>0?1:0:(!n.c&&(n.c=J6(n.f)),n.c).e}function o0(n){if(!(n>=0))throw hp(new Qm("tolerance ("+n+") must be >= 0"));return n}function s0(){return m7n||h6(m7n=new Jdn,x4(Gy(ZBn,1),iEn,130,0,[new $f])),m7n}function h0(){h0=O,r3n=new sS(MSn,0),e3n=new sS("INPUT",1),i3n=new sS("OUTPUT",2)}function f0(){f0=O,IWn=new qM("ARD",0),OWn=new qM("MSD",1),CWn=new qM("MANUAL",2)}function l0(){l0=O,G3n=new dS("BARYCENTER",0),z3n=new dS(KIn,1),U3n=new dS(_In,2)}function b0(n,t){var e;if(e=n.gc(),t<0||t>e)throw hp(new jN(t,e));return new WN(n,t)}function w0(n,t){var e;return CO(t,42)?n.c.Mc(t):(e=mnn(n,t),ttn(n,t),e)}function d0(n,t,e){return a8(n,t),E2(n,e),_1(n,0),F1(n,1),l9(n,!0),s9(n,!0),n}function g0(n,t){if(n<0)throw hp(new Qm(t+" cannot be negative but was: "+n));return n}function p0(n,t){var e,i;for(e=0,i=n.gc();e0?Yx(TR(e.a,i-1),10):null}function $0(n,t){var e;e=n.k,n.k=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,2,e,n.k))}function L0(n,t){var e;e=n.f,n.f=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,8,e,n.f))}function N0(n,t){var e;e=n.i,n.i=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,7,e,n.i))}function x0(n,t){var e;e=n.a,n.a=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,8,e,n.a))}function D0(n,t){var e;e=n.b,n.b=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,0,e,n.b))}function R0(n,t){var e;e=n.b,n.b=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,0,e,n.b))}function K0(n,t){var e;e=n.c,n.c=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,1,e,n.c))}function _0(n,t){var e;e=n.c,n.c=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,1,e,n.c))}function F0(n,t){var e;e=n.c,n.c=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,4,e,n.c))}function B0(n,t){var e;e=n.d,n.d=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,1,e,n.d))}function H0(n,t){var e;e=n.D,n.D=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,2,e,n.D))}function q0(n,t){n.r>0&&n.c0&&0!=n.g&&q0(n.i,t/n.r*n.i.d))}function G0(n,t){return Lwn(n.e,t)?(TT(),GJ(t)?new cR(t,n):new VP(t,n)):new JP(t,n)}function z0(n,t){return function(n){return n?n.g:null}(_2(n.a,t,WR(e7(BEn,HB(WR(e7(null==t?0:W5(t),HEn)),15)))))}function U0(n){var t;return(n=e.Math.max(n,2))>(t=j5(n))?(t<<=1)>0?t:zEn:t}function X0(n){switch(kA(3!=n.e),n.e){case 2:return!1;case 0:return!0}return function(n){return n.e=3,n.d=n.Yb(),2!=n.e&&(n.e=0,!0)}(n)}function W0(n,t){var e;return!!CO(t,8)&&(e=Yx(t,8),n.a==e.a&&n.b==e.b)}function V0(n,t,e){var i,r;return r=t>>5,i=31&t,Gz(UK(n.n[e][r],WR(GK(i,1))),3)}function Q0(n,t){var e;e=n.b,n.b=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,21,e,n.b))}function Y0(n,t){var e;e=n.d,n.d=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,11,e,n.d))}function J0(n,t){var e;e=n.j,n.j=t,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,13,e,n.j))}function Z0(n,t,e){var i,r,c;for(c=n.a.length-1,r=n.b,i=0;i0?t-1:t,pk(function(n,t){return n.j=t,n}(U1(xD(new am,e),n.n),n.j),n.k)}(n,n.g),KD(n.a,e),e.i=n,n.d=t,e)}function Z2(n,t,e){run(e,"DFS Treeifying phase",1),function(n,t){var e,i,r;for(r=t.b.b,n.a=new ME,n.b=VQ(Wot,MTn,25,r,15,1),e=0,i=Ztn(t.b,0);i.b!=i.d.c;)Yx(IX(i),86).g=e++}(n,t),function(n,t){var e,i,r,c,a;for(a=Yx(Aun(t,(cln(),X5n)),425),c=Ztn(t.b,0);c.b!=c.d.c;)if(r=Yx(IX(c),86),0==n.b[r.g]){switch(a.g){case 0:yin(n,r);break;case 1:gln(n,r)}n.b[r.g]=2}for(i=Ztn(n.a,0);i.b!=i.d.c;)V7((e=Yx(IX(i),188)).b.d,e,!0),V7(e.c.b,e,!0);b5(t,(ryn(),S5n),n.a)}(n,t),n.a=null,n.b=null,Ron(e)}function n3(n,t,e){this.g=n,this.d=t,this.e=e,this.a=new ip,function(n){var t,e,i,r;for(r=V8(n.d,n.e).Kc();r.Ob();)for(i=Yx(r.Pb(),11),e=new pb(n.e==(Ikn(),qit)?i.e:i.g);e.a0&&(this.g=this.ri(this.i+(this.i/8|0)+1),n.Qc(this.g))}function e3(n,t){CD.call(this,sut,n,t),this.b=this,this.a=dwn(n.Tg(),CZ(this.e.Tg(),this.c))}function i3(n,t){var e,i;for(vB(t),i=t.vc().Kc();i.Ob();)e=Yx(i.Pb(),42),n.zc(e.cd(),e.dd())}function r3(n){var t;if(-2==n.b){if(0==n.e)t=-1;else for(t=0;0==n.a[t];t++);n.b=t}return n.b}function c3(n){switch(n.g){case 2:return Ikn(),qit;case 4:return Ikn(),Eit;default:return n}}function a3(n){switch(n.g){case 1:return Ikn(),Bit;case 3:return Ikn(),Tit;default:return n}}function u3(n,t){return TA(),aI(n)?FV(n,lL(t)):cI(n)?WK(n,fL(t)):rI(n)?XK(n,hL(t)):n.wd(t)}function o3(n,t){t.q=n,n.d=e.Math.max(n.d,t.r),n.b+=t.d+(0==n.a.c.length?0:n.c),eD(n.a,t)}function s3(n,t){var e,i,r,c;return r=n.c,e=n.c+n.b,c=n.d,i=n.d+n.a,t.a>r&&t.ac&&t.b0||h.j==qit&&h.e.c.length-h.g.c.length<0)){t=!1;break}for(r=new pb(h.g);r.a=0x8000000000000000?(LJ(),I_n):(i=!1,n<0&&(i=!0,n=-n),e=0,n>=zTn&&(n-=(e=oG(n/zTn))*zTn),t=0,n>=GTn&&(n-=(t=oG(n/GTn))*GTn),r=rO(oG(n),t,e),i&&A5(r),r)}(n))}function R3(n,t){var e,i,r;for(e=n.c.Ee(),r=t.Kc();r.Ob();)i=r.Pb(),n.a.Od(e,i);return n.b.Kb(e)}function K3(n,t){var e,i,r;if(null!=(e=n.Jg())&&n.Mg())for(i=0,r=e.length;i1||n.Ob())return++n.a,n.g=0,t=n.i,n.Ob(),t;throw hp(new Kp)}function W3(n){var t,e,i;return e=0,(i=n)<0&&(i+=zTn,e=HTn),t=oG(i/GTn),rO(oG(i-t*GTn),t,e)}function V3(n){var t,e,i;for(i=0,e=new TE(n.a);e.a>22),r=n.h-t.h+(i>>22),rO(e&BTn,i&BTn,r&HTn)}function k4(n){var t;return n<128?(!(t=(dR(),F_n)[n])&&(t=F_n[n]=new eb(n)),t):new eb(n)}function j4(n){var t;return CO(n,78)?n:((t=n&&n.__java$exception)||Sp(t=new n8(n)),t)}function E4(n){if(CO(n,186))return Yx(n,118);if(n)return null;throw hp(new Zm(pxn))}function T4(n,t){if(null==t)return!1;for(;n.a!=n.b;)if(Q8(t,w8(n)))return!0;return!1}function M4(n){return!!n.a.Ob()||n.a==n.d&&(n.a=new ZU(n.e.f),n.a.Ob())}function S4(n,t){var e;return 0!=(e=t.Pc()).length&&(sD(n.c,n.c.length,e),!0)}function P4(n,t){var e;for(e=new pb(n.b);e.a=0,"Negative initial capacity"),jD(t>=0,"Non-positive load factor"),U_(this)}function a5(n,t,e){return!(n>=128)&&hI(n<64?Gz(GK(1,n),e):Gz(GK(1,n-64),t),0)}function u5(n,t){return!(!n||!t||n==t)&&y7(n.b.c,t.b.c+t.b.b)<0&&y7(t.b.c,n.b.c+n.b.b)<0}function o5(n){var t,e,i;return e=n.n,i=n.o,t=n.d,new mH(e.a-t.b,e.b-t.d,i.a+(t.b+t.c),i.b+(t.d+t.a))}function s5(n){var t,i;for(null==n.j&&(n.j=($q(),function(n){var t,i,r;for(t="Sz",i="ez",r=e.Math.min(n.length,5)-1;r>=0;r--)if(_N(n[r].d,t)||_N(n[r].d,i)){n.length>=r+1&&n.splice(0,r+1);break}return n}(p_n.ce(n)))),t=0,i=n.j.length;t(i=n.gc()))throw hp(new jN(t,i));return n.hi()&&(e=OG(n,e)),n.Vh(t,e)}function l5(n,t,e){return null==e?(!n.q&&(n.q=new rp),zV(n.q,t)):(!n.q&&(n.q=new rp),xB(n.q,t,e)),n}function b5(n,t,e){return null==e?(!n.q&&(n.q=new rp),zV(n.q,t)):(!n.q&&(n.q=new rp),xB(n.q,t,e)),n}function w5(n){var t,i;return o4(i=new XV,n),b5(i,(d2(),EGn),n),function(n,t,i){var r,c,a,u,o;for(r=0,a=new UO((!n.a&&(n.a=new m_(uct,n,10,11)),n.a));a.e!=a.i.gc();)u="",0==(!(c=Yx(hen(a),33)).n&&(c.n=new m_(act,c,1,7)),c.n).i||(u=Yx(c1((!c.n&&(c.n=new m_(act,c,1,7)),c.n),0),137).a),o4(o=new GF(u),c),b5(o,(d2(),EGn),c),o.b=r++,o.d.a=c.i+c.g/2,o.d.b=c.j+c.f/2,o.e.a=e.Math.max(c.g,1),o.e.b=e.Math.max(c.f,1),eD(t.e,o),Ysn(i.f,c,o),Yx(jln(c,(Bdn(),fGn)),98),Ran()}(n,i,t=new rp),function(n,t,i){var r,c,a,u,o,s,f,l;for(s=new UO((!n.a&&(n.a=new m_(uct,n,10,11)),n.a));s.e!=s.i.gc();)for(c=new $K(bA(lbn(o=Yx(hen(s),33)).a.Kc(),new h));Vfn(c);){if(!(r=Yx(kV(c),79)).b&&(r.b=new AN(Zrt,r,4,7)),!(r.b.i<=1&&(!r.c&&(r.c=new AN(Zrt,r,5,8)),r.c.i<=1)))throw hp(new by("Graph must not contain hyperedges."));if(!Rfn(r)&&o!=iun(Yx(c1((!r.c&&(r.c=new AN(Zrt,r,5,8)),r.c),0),82)))for(o4(f=new rN,r),b5(f,(d2(),EGn),r),Cl(f,Yx(eI(Dq(i.f,o)),144)),Ol(f,Yx(BF(i,iun(Yx(c1((!r.c&&(r.c=new AN(Zrt,r,5,8)),r.c),0),82))),144)),eD(t.c,f),u=new UO((!r.n&&(r.n=new m_(act,r,1,7)),r.n));u.e!=u.i.gc();)o4(l=new wW(f,(a=Yx(hen(u),137)).a),a),b5(l,EGn,a),l.e.a=e.Math.max(a.g,1),l.e.b=e.Math.max(a.f,1),Wvn(l),eD(t.d,l)}}(n,i,t),i}function d5(n,t){var e,i,r;for(e=!1,i=n.a[t].length,r=0;r>=1);return t}function E5(n){var t,e;return 32==(e=Yhn(n.h))?32==(t=Yhn(n.m))?Yhn(n.l)+32:t+20-10:e-12}function T5(n){var t;return null==(t=n.a[n.b])?null:(DF(n.a,n.b,null),n.b=n.b+1&n.a.length-1,t)}function M5(n){var t,e;return t=n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f,e=n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d,t||e}function S5(n,t,e){var i,r;return i=new nY(t,e),r=new q,n.b=Hwn(n,n.b,i,r),r.b||++n.c,n.b.b=!1,r.d}function P5(n,t,e){var i,r,c;for(c=0,r=V8(t,e).Kc();r.Ob();)i=Yx(r.Pb(),11),xB(n.c,i,d9(c++))}function I5(n){var t,e;for(e=new pb(n.a.b);e.ae&&(e=n[t]);return e}function x5(n,t,e){var i;return Swn(n,t,i=new ip,(Ikn(),Eit),!0,!1),Swn(n,e,i,qit,!1,!1),i}function D5(n,t,e){var i,r;return r=cX(t,"labels"),function(n,t,e){var i,r,c,a;if(e)for(r=((i=new NK(e.a.length)).b-i.a)*i.c<0?(PT(),Fot):new oA(i);r.Ob();)(c=aX(e,Yx(r.Pb(),19).a))&&(a=G1(oX(c,zNn),t),xB(n.f,a,c),rxn in c.a&&$0(a,oX(c,rxn)),eun(c,a),ihn(c,a))}((i=new AP(n,e)).a,i.b,r),r}function R5(n,t){var e;for(e=0;e1||t>=0&&n.b<3)}function U5(n){var t,e;for(t=new Nv,e=Ztn(n,0);e.b!=e.d.c;)A$(t,0,new fC(Yx(IX(e),8)));return t}function X5(n){var t;for(t=new pb(n.a.b);t.a=n.b.c.length||(l6(n,2*t+1),(e=2*t+2)=0&&n[i]===t[i];i--);return i<0?0:LT(Gz(n[i],uMn),Gz(t[i],uMn))?-1:1}function d6(n,t){var e,i;return i=Yx(H3(n.a,4),126),e=VQ(Oct,vDn,415,t,0,1),null!=i&&smn(i,0,e,0,i.length),e}function g6(n,t){var e;return e=new xdn(0!=(256&n.f),n.i,n.a,n.d,0!=(16&n.f),n.j,n.g,t),null!=n.e||(e.c=n),e}function p6(n,t,e,i,r){var c,a;for(a=e;a<=r;a++)for(c=t;c<=i;c++)if(Nin(n,c,a))return!0;return!1}function v6(n,t,e){var i,r,c,a;for(vB(e),a=!1,c=n.Zc(t),r=e.Kc();r.Ob();)i=r.Pb(),c.Rb(i),a=!0;return a}function m6(n,t,e){var i,r;for(r=e.Kc();r.Ob();)if(i=Yx(r.Pb(),42),n.re(t,i.dd()))return!0;return!1}function y6(n,t,e){return n.d[t.p][e.p]||(function(n,t,e){if(n.e)switch(n.b){case 1:!function(n,t,e){n.i=0,n.e=0,t!=e&&H5(n,t,e)}(n.c,t,e);break;case 0:!function(n,t,e){n.i=0,n.e=0,t!=e&&q5(n,t,e)}(n.c,t,e)}else YX(n.c,t,e);n.a[t.p][e.p]=n.c.i,n.a[e.p][t.p]=n.c.e}(n,t,e),n.d[t.p][e.p]=!0,n.d[e.p][t.p]=!0),n.a[t.p][e.p]}function k6(n,t){if(!n.ai()&&null==t)throw hp(new Qm("The 'no null' constraint is violated"));return t}function j6(n,t){null==n.D&&null!=n.B&&(n.D=n.B,n.B=null),H0(n,null==t?null:(vB(t),t)),n.C&&n.yk(null)}function E6(n,t){return!(!n||n==t||!O$(t,(Ojn(),vQn)))&&Yx(Aun(t,(Ojn(),vQn)),10)!=n}function T6(n){switch(n.i){case 2:return!0;case 1:return!1;case-1:++n.c;default:return n.pl()}}function M6(n){switch(n.i){case-2:return!0;case-1:return!1;case 1:--n.c;default:return n.ql()}}function S6(n){vG.call(this,"The given string does not match the expected format for individual spacings.",n)}function P6(){P6=O,jrt=new yP("ELK",0),Ert=new yP("JSON",1),krt=new yP("DOT",2),Trt=new yP("SVG",3)}function I6(){I6=O,E6n=new DS(fIn,0),T6n=new DS("RADIAL_COMPACTION",1),M6n=new DS("WEDGE_COMPACTION",2)}function C6(){C6=O,cBn=new FT("CONCURRENT",0),aBn=new FT("IDENTITY_FINISH",1),uBn=new FT("UNORDERED",2)}function O6(){O6=O,BE(),jqn=new FI(ePn,Eqn=vqn),kqn=new Og(iPn),Tqn=new Og(rPn),Mqn=new Og(cPn)}function A6(){A6=O,SXn=new ji,PXn=new Ei,MXn=new Ti,TXn=new Mi,vB(new Si),EXn=new D}function $6(){$6=O,g3n=new lS("CONSERVATIVE",0),p3n=new lS("CONSERVATIVE_SOFT",1),v3n=new lS("SLOPPY",2)}function L6(){L6=O,Oet=new RC(15),Cet=new DC((Cjn(),utt),Oet),Aet=Ott,Met=ynt,Set=Jnt,Iet=ttt,Pet=ntt}function N6(n,t,e){var i,r;for(i=new ME,r=Ztn(e,0);r.b!=r.d.c;)KD(i,new fC(Yx(IX(r),8)));v6(n,t,i)}function x6(n){var t;return!n.a&&(n.a=new m_(sat,n,9,5)),0!=(t=n.a).i?function(n){return n.b?n.b:n.a}(Yx(c1(t,0),678)):null}function D6(n,t){var e;return e=t7(n,t),LT(Uz(n,t),0)|function(n,t){return k8(n,t)>=0}(Uz(n,e),0)?e:t7(IEn,Uz(UK(e,63),1))}function R6(n,t){var e,i;if(0!=(i=n.c[t]))for(n.c[t]=0,n.d-=i,e=t+1;e0)return i_(t-1,n.a.c.length),KV(n.a,t-1);throw hp(new Rp)}function _6(n,t,e){if(n>t)throw hp(new Qm(NMn+n+xMn+t));if(n<0||t>e)throw hp(new Py(NMn+n+DMn+t+MMn+e))}function F6(n){if(!n.a||0==(8&n.a.i))throw hp(new Ym("Enumeration class expected for layout option "+n.f))}function B6(n){var t;++n.j,0==n.i?n.g=null:n.in$n?n-i>n$n:i-n>n$n)}function Q6(n,t){return n?t&&!n.j||CO(n,124)&&0==Yx(n,124).a.b?0:n.Re():0}function Y6(n,t){return n?t&&!n.k||CO(n,124)&&0==Yx(n,124).a.a?0:n.Se():0}function J6(n){return bdn(),n<0?-1!=n?new jen(-1,-n):lFn:n<=10?wFn[oG(n)]:new jen(1,n)}function Z6(n){throw r5(),hp(new Cm("Unexpected typeof result '"+n+"'; please report this bug to the GWT team"))}function n8(n){vy(),jO(this),qH(this),this.e=n,Cwn(this,n),this.g=null==n?aEn:I7(n),this.a="",this.b=n,this.a=""}function t8(){this.a=new nu,this.f=new Kd(this),this.b=new _d(this),this.i=new Fd(this),this.e=new Bd(this)}function e8(){vm.call(this,new tY(IZ(16))),g0(2,EEn),this.b=2,this.a=new IB(null,null,0,null),kp(this.a,this.a)}function i8(){i8=O,m2n=new eS("DUMMY_NODE_OVER",0),y2n=new eS("DUMMY_NODE_UNDER",1),k2n=new eS("EQUAL",2)}function r8(){r8=O,uzn=kG(x4(Gy(oet,1),XEn,103,0,[(t9(),Ztt),net])),ozn=kG(x4(Gy(oet,1),XEn,103,0,[eet,Jtt]))}function c8(n){return(Ikn(),xit).Hc(n.j)?ty(fL(Aun(n,(Ojn(),XQn)))):$5(x4(Gy(B7n,1),TEn,8,0,[n.i.n,n.n,n.a])).b}function a8(n,t){var e,i;e=n.nk(t,null),i=null,t&&(Rk(),b1(i=new up,n.r)),(e=fun(n,i,e))&&e.Fi()}function u8(n,t){var e,i,r;return i=!1,e=t.q.d,t.dr&&(san(t.q,r),i=e!=t.q.d)),i}function o8(n,t){var i,r,c,a,u;return a=t.i,u=t.j,r=a-(i=n.f).i,c=u-i.j,e.Math.sqrt(r*r+c*c)}function s8(n,t){var e;return(e=rtn(n))||(!Xrt&&(Xrt=new Oo),Cmn(),fY((e=new Yg(xsn(t))).Vk(),n)),e}function h8(n,t){var e,i;return(e=Yx(n.c.Bc(t),14))?((i=n.hc()).Gc(e),n.d-=e.gc(),e.$b(),n.mc(i)):n.jc()}function f8(n,t){var e;for(e=0;e=0?t:-t;i>0;)i%2==0?(e*=e,i=i/2|0):(r*=e,i-=1);return t<0?1/r:r}function C8(n){var t,e,i,r;if(null!=n)for(e=0;e0&&a6(Yx(TR(n.a,n.a.c.length-1),570),t)||eD(n.a,new iV(t))}function _8(n){var t;return(t=new Ay).a+="VerticalSegment ",mI(t,n.e),t.a+=" ",yI(t,lA(new Ty,new pb(n.k))),t.a}function F8(n){var t;return(t=Yx(UJ(n.c.c,""),229))||(t=new dz(ok(uk(new pu,""),"Other")),Gtn(n.c.c,"",t)),t}function B8(n){var t;return 0!=(64&n.Db)?Kln(n):((t=new MA(Kln(n))).a+=" (name: ",pI(t,n.zb),t.a+=")",t.a)}function H8(n,t,e){var i,r;return r=n.sb,n.sb=t,0!=(4&n.Db)&&0==(1&n.Db)&&(i=new p_(n,1,4,r,t),e?e.Ei(i):e=i),e}function q8(n,t){var e,i;for(e=0,i=i7(n,t).Kc();i.Ob();)e+=null!=Aun(Yx(i.Pb(),11),(Ojn(),RQn))?1:0;return e}function G8(n,t,e){var i,r,c;for(i=0,c=Ztn(n,0);c.b!=c.d.c&&!((r=ty(fL(IX(c))))>e);)r>=t&&++i;return i}function z8(n,t,e){var i,r;return r=n.r,n.r=t,0!=(4&n.Db)&&0==(1&n.Db)&&(i=new p_(n,1,8,r,n.r),e?e.Ei(i):e=i),e}function U8(n,t){var e,i;return!(i=(e=Yx(t,676)).vk())&&e.wk(i=CO(t,88)?new UP(n,Yx(t,26)):new mU(n,Yx(t,148))),i}function X8(n,t,e){var i;n.qi(n.i+1),i=n.oi(t,e),t!=n.i&&smn(n.g,t,n.g,t+1,n.i-t),DF(n.g,t,i),++n.i,n.bi(t,e),n.ci()}function W8(n,t){var e;return e=new sn,n.a.sd(e)?(qO(),new Am(vB(fJ(n,e.a,t)))):(yB(n),qO(),qO(),FFn)}function V8(n,t){switch(t.g){case 2:case 1:return i7(n,t);case 3:case 4:return I3(i7(n,t))}return XH(),XH(),TFn}function Q8(n,t){return aI(n)?_N(n,t):cI(n)?KN(n,t):rI(n)?(vB(n),iI(n)===iI(t)):IK(n)?n.Fb(t):uK(n)?WI(n,t):Jz(n,t)}function Y8(n,t,e,i,r){0!=t&&0!=i&&(1==t?r[i]=Gen(r,e,i,n[0]):1==i?r[t]=Gen(r,n,t,e[0]):function(n,t,e,i,r){var c,a,u,o;if(iI(n)!==iI(t)||i!=r)for(u=0;ue)throw hp(new Hm(NMn+n+DMn+t+", size: "+e));if(n>t)throw hp(new Qm(NMn+n+xMn+t))}function r9(n,t,e){if(t<0)Ehn(n,e);else{if(!e.Ij())throw hp(new Qm(mNn+e.ne()+yNn));Yx(e,66).Nj().Vj(n,n.yh(),t)}}function c9(n,t,e,i,r,c){this.e=new ip,this.f=(h0(),r3n),eD(this.e,n),this.d=t,this.a=e,this.b=i,this.f=r,this.c=c}function a9(n,t){var e,i;for(i=new UO(n);i.e!=i.i.gc();)if(e=Yx(hen(i),26),iI(t)===iI(e))return!0;return!1}function u9(n){return n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:n>=48&&n<=57?n-48:0}function o9(n){var t;return 0!=(64&n.Db)?Kln(n):((t=new MA(Kln(n))).a+=" (source: ",pI(t,n.d),t.a+=")",t.a)}function s9(n,t){var e;e=0!=(256&n.Bb),t?n.Bb|=256:n.Bb&=-257,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new OV(n,1,2,e,t))}function h9(n,t){var e;e=0!=(256&n.Bb),t?n.Bb|=256:n.Bb&=-257,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new OV(n,1,8,e,t))}function f9(n,t){var e;e=0!=(256&n.Bb),t?n.Bb|=256:n.Bb&=-257,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new OV(n,1,8,e,t))}function l9(n,t){var e;e=0!=(512&n.Bb),t?n.Bb|=512:n.Bb&=-513,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new OV(n,1,3,e,t))}function b9(n,t){var e;e=0!=(512&n.Bb),t?n.Bb|=512:n.Bb&=-513,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new OV(n,1,9,e,t))}function w9(n,t){var e;return-1==n.b&&n.a&&(e=n.a.Gj(),n.b=e?n.c.Xg(n.a.aj(),e):tnn(n.c.Tg(),n.a)),n.c.Og(n.b,t)}function d9(n){var t,e;return n>-129&&n<128?(t=n+128,!(e=(ZD(),G_n)[t])&&(e=G_n[t]=new rb(n)),e):new rb(n)}function g9(n){var t,e;return n>-129&&n<128?(t=n+128,!(e=(wR(),Z_n)[t])&&(e=Z_n[t]=new ab(n)),e):new ab(n)}function p9(n){var t;return n.k==(bon(),_zn)&&((t=Yx(Aun(n,(Ojn(),hQn)),61))==(Ikn(),Tit)||t==Bit)}function v9(n,t,e){var i,r;return(r=Hln(n.b,t))&&(i=Yx(Imn(SJ(n,r),""),26))?Lln(n,i,t,e):null}function m9(n,t){var e,i;for(i=new UO(n);i.e!=i.i.gc();)if(e=Yx(hen(i),138),iI(t)===iI(e))return!0;return!1}function y9(n,t,e){var i;if(t>(i=n.gc()))throw hp(new jN(t,i));if(n.hi()&&n.Hc(e))throw hp(new Qm(kxn));n.Xh(t,e)}function k9(n,t){var e;if(CO(e=Ybn(n,t),322))return Yx(e,34);throw hp(new Qm(mNn+t+"' is not a valid attribute"))}function j9(n){var t,e,i;for(t=new ip,i=new pb(n.b);i.at?1:n==t?0==n?$9(1/n,1/t):0:isNaN(n)?isNaN(t)?0:1:-1}function L9(n,t,e){var i,r;return n.ej()?(r=n.fj(),i=Vhn(n,t,e),n.$i(n.Zi(7,d9(e),i,t,r)),i):Vhn(n,t,e)}function N9(n,t){var e,i,r;null==n.d?(++n.e,--n.f):(r=t.cd(),function(n,t,e){++n.e,--n.f,Yx(n.d[t].$c(e),133).dd()}(n,i=((e=t.Sh())&Yjn)%n.d.length,Bln(n,i,e,r)))}function x9(n,t){var e;e=0!=(n.Bb&DNn),t?n.Bb|=DNn:n.Bb&=-1025,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new OV(n,1,10,e,t))}function D9(n,t){var e;e=0!=(n.Bb&nMn),t?n.Bb|=nMn:n.Bb&=-4097,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new OV(n,1,12,e,t))}function R9(n,t){var e;e=0!=(n.Bb&_Dn),t?n.Bb|=_Dn:n.Bb&=-8193,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new OV(n,1,15,e,t))}function K9(n,t){var e;e=0!=(n.Bb&FDn),t?n.Bb|=FDn:n.Bb&=-2049,0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new OV(n,1,11,e,t))}function _9(n){var t,e;for(e=Vln(i1(n)).Kc();e.Ob();)if(dpn(n,t=lL(e.Pb())))return dW((pT(),Jct),t);return null}function F9(n,t,e){var i;if(n.c)Pun(n.c,t,e);else for(i=new pb(n.b);i.a>10)+iMn&fTn,t[1]=56320+(1023&n)&fTn,Vnn(t,0,t.length)}function X9(n){var t;return(t=Yx(Aun(n,(gjn(),a1n)),103))==(t9(),tet)?ty(fL(Aun(n,RZn)))>=1?net:Jtt:t}function W9(n){if(n.c)W9(n.c);else if(n.d)throw hp(new Ym("Stream already terminated, can't be modified or used"))}function V9(n){var t;return 0!=(64&n.Db)?Kln(n):((t=new MA(Kln(n))).a+=" (identifier: ",pI(t,n.k),t.a+=")",t.a)}function Q9(n,t,e){var i;return xk(),I1(i=new ro,t),C1(i,e),n&&fY((!n.a&&(n.a=new XO(Qrt,n,5)),n.a),i),i}function Y9(n,t,e,i){var r,c;return vB(i),vB(e),null==(c=null==(r=n.xc(t))?e:PE(Yx(r,15),Yx(e,14)))?n.Bc(t):n.zc(t,c),c}function J9(n){var t,e,i,r;return n2(e=new cx(t=Yx(Ak((r=(i=n.gm).f)==u_n?i:r),9),Yx(eN(t,t.length),9),0),n),e}function Z9(n,t,e){var i,r;for(r=n.a.ec().Kc();r.Ob();)if(i=Yx(r.Pb(),10),m4(e,Yx(TR(t,i.p),14)))return i;return null}function n7(n,t){var e;return tC(n)&&tC(t)&&XTn<(e=n-t)&&e>22),r=n.h+t.h+(i>>22),rO(e&BTn,i&BTn,r&HTn)}(tC(n)?W3(n):n,tC(t)?W3(t):t))}function e7(n,t){var e;return tC(n)&&tC(t)&&XTn<(e=n*t)&&e>13|(15&n.m)<<9,r=n.m>>4&8191,c=n.m>>17|(255&n.h)<<5,a=(1048320&n.h)>>8,g=i*(u=8191&t.l),p=r*u,v=c*u,m=a*u,0!=(o=t.l>>13|(15&t.m)<<9)&&(g+=e*o,p+=i*o,v+=r*o,m+=c*o),0!=(s=t.m>>4&8191)&&(p+=e*s,v+=i*s,m+=r*s),0!=(h=t.m>>17|(255&t.h)<<5)&&(v+=e*h,m+=i*h),0!=(f=(1048320&t.h)>>8)&&(m+=e*f),b=((d=e*u)>>22)+(g>>9)+((262143&p)<<4)+((31&v)<<17),w=(p>>18)+(v>>5)+((4095&m)<<8),w+=(b+=(l=(d&BTn)+((511&g)<<13))>>22)>>22,rO(l&=BTn,b&=BTn,w&=HTn)}(tC(n)?W3(n):n,tC(t)?W3(t):t))}function i7(n,t){var e;return n.i||yhn(n),(e=Yx(GB(n.g,t),46))?new Oz(n.j,Yx(e.a,19).a,Yx(e.b,19).a):(XH(),XH(),TFn)}function r7(n,t,e){var i;return i=n.a.get(t),n.a.set(t,void 0===e?null:e),void 0===i?(++n.c,gq(n.b)):++n.d,i}function c7(){var n,t,i;Qan(),i=XFn+++Date.now(),n=oG(e.Math.floor(i*jMn))&TMn,t=oG(i-n*EMn),this.a=1502^n,this.b=t^kMn}function a7(n){var t,e;for(t=new ip,e=new pb(n.j);e.a>1&1431655765)>>2&858993459)+(858993459&n))>>4)+n&252645135,63&(n+=n>>8)+(n>>16)}function f7(n){var t,e,i;for(t=new UL(n.Hd().gc()),i=0,e=PY(n.Hd().Kc());e.Ob();)XG(t,e.Pb(),d9(i++));return function(n){var t;switch(KB(),n.c.length){case 0:return e_n;case 1:return function(n,t){return KB(),gin(n,t),new OB(n,t)}((t=Yx(vhn(new pb(n)),42)).cd(),t.dd());default:return new Em(Yx(Htn(n,VQ(i_n,DEn,42,n.c.length,0,1)),165))}}(t.a)}function l7(n,t){0==n.n.c.length&&eD(n.n,new gG(n.s,n.t,n.i)),eD(n.b,t),Cin(Yx(TR(n.n,n.n.c.length-1),211),t),uvn(n,t)}function b7(n){return n.c==n.b.b&&n.i==n.g.b||(n.a.c=VQ(UKn,iEn,1,0,5,1),S4(n.a,n.b),S4(n.a,n.g),n.c=n.b.b,n.i=n.g.b),n.a}function w7(n,t){var e,i;for(i=0,e=Yx(t.Kb(n),20).Kc();e.Ob();)ny(hL(Aun(Yx(e.Pb(),17),(Ojn(),HQn))))||++i;return i}function d7(){d7=O,iYn=new cS(fIn,0),ZQn=new cS("FIRST",1),nYn=new cS(qIn,2),tYn=new cS("LAST",3),eYn=new cS(GIn,4)}function g7(){g7=O,wet=new tP(MSn,0),fet=new tP("POLYLINE",1),het=new tP("ORTHOGONAL",2),bet=new tP("SPLINES",3)}function p7(){p7=O,b8n=new _S("ASPECT_RATIO_DRIVEN",0),w8n=new _S("MAX_SCALE_DRIVEN",1),l8n=new _S("AREA_DRIVEN",2)}function v7(){v7=O,e9n=new BS("P1_STRUCTURE",0),i9n=new BS("P2_PROCESSING_ORDER",1),r9n=new BS("P3_EXECUTION",2)}function m7(){m7=O,g6n=new NS("OVERLAP_REMOVAL",0),w6n=new NS("COMPACTION",1),d6n=new NS("GRAPH_SIZE_CALCULATION",2)}function y7(n,t){return XC(),o0(ZEn),e.Math.abs(n-t)<=ZEn||n==t||isNaN(n)&&isNaN(t)?0:nt?1:QI(isNaN(n),isNaN(t))}function k7(n,t){var e,i;for(e=Ztn(n,0);e.b!=e.d.c;){if((i=ey(fL(IX(e))))==t)return;if(i>t){MU(e);break}}oF(e,t)}function j7(n,t){var e,i,r,c,a;if(e=t.f,Gtn(n.c.d,e,t),null!=t.g)for(c=0,a=(r=t.g).length;c>>0).toString(16):n.toString()}function C7(n){var t;this.a=new cx(t=Yx(n.e&&n.e(),9),Yx(eN(t,t.length),9),0),this.b=VQ(UKn,iEn,1,this.a.a.length,5,1)}function O7(n){var t,e,i;for(this.a=new oC,i=new pb(n);i.a=c)return t.c+i;return t.c+t.b.gc()}function x7(n,t){var e,i,r,c,a,u;for(i=0,e=0,a=0,u=(c=t).length;a0&&(i+=r,++e);return e>1&&(i+=n.d*(e-1)),i}function D7(n){var t,e,i;for((i=new Cy).a+="[",t=0,e=n.gc();tPPn,S=e.Math.abs(b.b-d.b)>PPn,(!i&&M&&S||i&&(M||S))&&KD(p.a,k)),C2(p.a,r),0==r.b?b=k:(S$(0!=r.b),b=Yx(r.c.b.c,8)),l4(w,l,g),G2(c)==T&&(dB(T.i)!=c.a&&dsn(g=new Pk,dB(T.i),m),b5(p,YQn,g)),Mon(w,p,m),f.a.zc(w,f);YG(p,j),QG(p,T)}for(h=f.a.ec().Kc();h.Ob();)YG(s=Yx(h.Pb(),17),null),QG(s,null);Ron(t)}(t,J2(r,1)),Ron(r)}function F7(n,t,e,i,r,c){this.a=n,this.c=t,this.b=e,this.f=i,this.d=r,this.e=c,this.c>0&&this.b>0&&AR(this.c,this.b,this.a)}function B7(n){cnn(),this.c=DV(x4(Gy(v7n,1),iEn,831,0,[o2n])),this.b=new rp,this.a=n,xB(this.b,s2n,1),WZ(h2n,new Qd(this))}function H7(n,t){var e;return n.d?P_(n.b,t)?Yx(BF(n.b,t),51):(e=t.Kf(),xB(n.b,t,e),e):t.Kf()}function q7(n,t){var e;return iI(n)===iI(t)||!!CO(t,91)&&(e=Yx(t,91),n.e==e.e&&n.d==e.d&&function(n,t){var e;for(e=n.d-1;e>=0&&n.a[e]===t[e];e--);return e<0}(n,e.a))}function G7(n){switch(Ikn(),n.g){case 4:return Tit;case 1:return Eit;case 3:return Bit;case 2:return qit;default:return Hit}}function z7(n,t){switch(t){case 3:return 0!=n.f;case 4:return 0!=n.g;case 5:return 0!=n.i;case 6:return 0!=n.j}return z3(n,t)}function U7(n){switch(n.g){case 0:return new qa;case 1:return new Ua;default:throw hp(new Qm(FIn+(null!=n.f?n.f:""+n.g)))}}function X7(n){switch(n.g){case 0:return new om;case 1:return new Lv;default:throw hp(new Qm(V$n+(null!=n.f?n.f:""+n.g)))}}function W7(n){var t,e,i;return(e=n.zg())?CO(t=n.Ug(),160)&&null!=(i=W7(Yx(t,160)))?i+"."+e:e:null}function V7(n,t,e){var i,r;for(r=n.Kc();r.Ob();)if(i=r.Pb(),iI(t)===iI(i)||null!=t&&Q8(t,i))return e&&r.Qb(),!0;return!1}function Q7(n,t,e){var i,r;if(++n.j,e.dc())return!1;for(r=e.Kc();r.Ob();)i=r.Pb(),n.Hi(t,n.oi(t,i)),++t;return!0}function Y7(n,t){var e;if(t){for(e=0;eo.d&&(f=o.d+o.a+h));i.c.d=f,t.a.zc(i,t),s=e.Math.max(s,i.c.d+i.c.a)}return s}(n),SE(new SR(null,new Nz(n.d,16)),new Jb(n)),t}function nnn(n){var t;return 0!=(64&n.Db)?B8(n):((t=new MA(B8(n))).a+=" (instanceClassName: ",pI(t,n.D),t.a+=")",t.a)}function tnn(n,t){var e,i,r;if(null==n.i&&svn(n),e=n.i,-1!=(i=t.aj()))for(r=e.length;i>1,this.k=t-1>>1}function fnn(n,t,e){var i,r;for(i=Gz(e,uMn),r=0;0!=k8(i,0)&&r0&&(t.lengthn.i&&DF(t,n.i,null),t}function wnn(n,t,e){var i,r,c;return n.ej()?(i=n.i,c=n.fj(),X8(n,i,t),r=n.Zi(3,null,t,i,c),e?e.Ei(r):e=r):X8(n,n.i,t),e}function dnn(n){var t;return PL(),t=new fC(Yx(n.e.We((Cjn(),ttt)),8)),n.B.Hc((Vgn(),crt))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t}function gnn(n){return Hen(),(n.q?n.q:(XH(),XH(),MFn))._b((gjn(),Y1n))?Yx(Aun(n,Y1n),197):Yx(Aun(dB(n),J1n),197)}function pnn(n,t){var e,i;return i=null,O$(n,(gjn(),_0n))&&(e=Yx(Aun(n,_0n),94)).Xe(t)&&(i=e.We(t)),null==i&&(i=Aun(dB(n),t)),i}function vnn(n,t){var e,i,r;return!!CO(t,42)&&(i=(e=Yx(t,42)).cd(),bB(r=x8(n.Rc(),i),e.dd())&&(null!=r||n.Rc()._b(i)))}function mnn(n,t){var e;return n.f>0&&(n.qj(),-1!=Bln(n,((e=null==t?0:W5(t))&Yjn)%n.d.length,e,t))}function ynn(n,t){var e,i;return n.f>0&&(n.qj(),e=efn(n,((i=null==t?0:W5(t))&Yjn)%n.d.length,i,t))?e.dd():null}function knn(n,t){var e,i,r,c;for(c=dwn(n.e.Tg(),t),e=Yx(n.g,119),r=0;r>5,t&=31,r=n.d+e+(0==t?0:1),function(n,t,e,i){var r,c,a;if(0==i)smn(t,0,n,e,n.length-e);else for(a=32-i,n[n.length-1]=0,c=n.length-1;c>e;c--)n[c]|=t[c-e-1]>>>a,n[c-1]=t[c-e-1]<=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function Rnn(n,t,e){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.ue(t,c.d),e&&0==i)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function Knn(n,t,e,i){var r,c,a;return r=!1,function(n,t,e){var i,r,c,a,u,o,s,h,f,l,b,w,d,g,p,v,m,y,k;return l=n.c[t],b=n.c[e],!((w=Yx(Aun(l,(Ojn(),mQn)),15))&&0!=w.gc()&&w.Hc(b)||(d=l.k!=(bon(),Bzn)&&b.k!=Bzn,v=(g=Yx(Aun(l,vQn),10))!=(p=Yx(Aun(b,vQn),10)),m=!!g&&g!=l||!!p&&p!=b,y=Iin(l,(Ikn(),Tit)),k=Iin(b,Bit),m|=Iin(l,Bit)||Iin(b,Tit),d&&(m&&v||y||k))||l.k==(bon(),qzn)&&b.k==Hzn||b.k==(bon(),qzn)&&l.k==Hzn)&&(h=n.c[t],c=n.c[e],r=Acn(n.e,h,c,(Ikn(),qit)),o=Acn(n.i,h,c,Eit),function(n,t,e){n.d=0,n.b=0,t.k==(bon(),qzn)&&e.k==qzn&&Yx(Aun(t,(Ojn(),CQn)),10)==Yx(Aun(e,CQn),10)&&(lJ(t).j==(Ikn(),Tit)?Wln(n,t,e):Wln(n,e,t)),t.k==qzn&&e.k==Bzn?lJ(t).j==(Ikn(),Tit)?n.d=1:n.b=1:e.k==qzn&&t.k==Bzn&&(lJ(e).j==(Ikn(),Tit)?n.b=1:n.d=1),function(n,t,e){t.k==(bon(),Hzn)&&e.k==Bzn&&(n.d=q8(t,(Ikn(),Bit)),n.b=q8(t,Tit)),e.k==Hzn&&t.k==Bzn&&(n.d=q8(e,(Ikn(),Tit)),n.b=q8(e,Bit))}(n,t,e)}(n.f,h,c),s=y6(n.b,h,c)+Yx(r.a,19).a+Yx(o.a,19).a+n.f.d,u=y6(n.b,c,h)+Yx(r.b,19).a+Yx(o.b,19).a+n.f.b,n.a&&(f=Yx(Aun(h,CQn),11),a=Yx(Aun(c,CQn),11),s+=Yx((i=Drn(n.g,f,a)).a,19).a,u+=Yx(i.b,19).a),s>u)}(n.f,e,i)&&(function(n,t,e){var i,r;Sun(n.e,t,e,(Ikn(),qit)),Sun(n.i,t,e,Eit),n.a&&(r=Yx(Aun(t,(Ojn(),CQn)),11),i=Yx(Aun(e,CQn),11),tU(n.g,r,i))}(n.f,n.a[t][e],n.a[t][i]),a=(c=n.a[t])[i],c[i]=c[e],c[e]=a,r=!0),r}function _nn(n,t,e,i,r){var c,a,u;for(a=r;t.b!=t.c;)c=Yx($_(t),10),u=Yx(i7(c,i).Xb(0),11),n.d[u.p]=a++,e.c[e.c.length]=u;return a}function Fnn(n,t,i){var r,c,a,u,o;return u=n.k,o=t.k,c=fL(pnn(n,r=i[u.g][o.g])),a=fL(pnn(t,r)),e.Math.max((vB(c),c),(vB(a),a))}function Bnn(n,t,e){var i,r,c;for(r=Yx(BF(n.b,e),177),i=0,c=new pb(t.j);c.at?1:QI(isNaN(n),isNaN(t)))>0}function Unn(n,t){return XC(),XC(),o0(ZEn),(e.Math.abs(n-t)<=ZEn||n==t||isNaN(n)&&isNaN(t)?0:nt?1:QI(isNaN(n),isNaN(t)))<0}function Xnn(n,t){return XC(),XC(),o0(ZEn),(e.Math.abs(n-t)<=ZEn||n==t||isNaN(n)&&isNaN(t)?0:nt?1:QI(isNaN(n),isNaN(t)))<=0}function Wnn(n,t){for(var e=0;!t[e]||""==t[e];)e++;for(var i=t[e++];ecMn)return e.fh();if((i=e.Zg())||e==n)break}return i}function ctn(n){return _G(),CO(n,156)?Yx(BF(Mct,NFn),288).vg(n):P_(Mct,V5(n))?Yx(BF(Mct,V5(n)),288).vg(n):null}function atn(n,t){if(t.c==n)return t.d;if(t.d==n)return t.c;throw hp(new Qm("Input edge is not connected to the input port."))}function utn(n,t){return n.e>t.e?1:n.et.d?n.e:n.d=48&&n<48+e.Math.min(10,10)?n-48:n>=97&&n<97?n-97+10:n>=65&&n<65?n-65+10:-1}function stn(n,t){var e;return iI(t)===iI(n)||!!CO(t,21)&&(e=Yx(t,21)).gc()==n.gc()&&n.Ic(e)}function htn(n,t){var e,i;for(Lz(t,n.length),e=n.charCodeAt(t),i=t+1;i=2*t&&eD(e,new Lx(a[i-1]+t,a[i]-t));return e}(e,i),SE(HZ(new SR(null,new Nz(function(n){var t,e,i,r,c,a,u;for(c=new oC,e=new pb(n);e.a2&&u.e.b+u.j.b<=2&&(r=u,i=a),c.a.zc(r,c),r.q=i);return c}(t),1)),new ja),new yH(n,e,r,i)))}function wtn(n,t,e){var i;0!=(n.Db&t)?null==e?function(n,t){var e,i,r,c,a,u,o;if(1==(i=h7(254&n.Db)))n.Eb=null;else if(c=h1(n.Eb),2==i)r=Vin(n,t),n.Eb=c[0==r?1:0];else{for(a=VQ(UKn,iEn,1,i-1,5,1),e=2,u=0,o=0;e<=128;e<<=1)e==t?++u:0!=(n.Db&e)&&(a[o++]=c[u++]);n.Eb=a}n.Db&=~t}(n,t):-1==(i=Vin(n,t))?n.Eb=e:DF(h1(n.Eb),i,e):null!=e&&function(n,t,e){var i,r,c,a,u,o;if(0==(r=h7(254&n.Db)))n.Eb=e;else{if(1==r)a=VQ(UKn,iEn,1,2,5,1),0==Vin(n,t)?(a[0]=e,a[1]=n.Eb):(a[0]=n.Eb,a[1]=e);else for(a=VQ(UKn,iEn,1,r+1,5,1),c=h1(n.Eb),i=2,u=0,o=0;i<=128;i<<=1)i==t?a[o++]=e:0!=(n.Db&i)&&(a[o++]=c[u++]);n.Eb=a}n.Db|=t}(n,t,e)}function dtn(n){var t;return 0==(32&n.Db)&&0!=(t=vF(Yx(H3(n,16),26)||n.zh())-vF(n.zh()))&&wtn(n,32,VQ(UKn,iEn,1,t,5,1)),n}function gtn(n){var t,e;for(t=new pb(n.g);t.a0&&k8(n,128)<0?(t=WR(n)+128,!(e=(bR(),X_n)[t])&&(e=X_n[t]=new cb(n)),e):new cb(n)}function ktn(n,t){var e,i;return(e=t.Hh(n.a))&&null!=(i=lL(ynn((!e.b&&(e.b=new z$((xjn(),Dat),out,e)),e.b),gxn)))?i:t.ne()}function jtn(n,t){var e,i;for(lz(),i=new $K(bA(a7(n).a.Kc(),new h));Vfn(i);)if((e=Yx(kV(i),17)).d.i==t||e.c.i==t)return e;return null}function Etn(n,t,e){this.c=n,this.f=new ip,this.e=new Pk,this.j=new gR,this.n=new gR,this.b=t,this.g=new mH(t.c,t.d,t.b,t.a),this.a=e}function Ttn(n){var t,e,i,r;for(this.a=new oC,this.d=new Qp,this.e=0,i=0,r=(e=n).length;iE&&(d.c=E-d.b),eD(u.d,new fK(d,P9(u,d))),m=t==Tit?e.Math.max(m,g.b+h.b.rf().b):e.Math.min(m,g.b));for(m+=t==Tit?n.t:-n.t,(y=Z7((u.e=m,u)))>0&&(Yx(GB(n.b,t),124).a.b=y),f=b.Kc();f.Ob();)!(h=Yx(f.Pb(),111)).c||h.c.d.c.length<=0||((d=h.c.i).c-=h.e.a,d.d-=h.e.b)}else kkn(n,t)}(n,t):kkn(n,t):n.u.Hc(mit)&&(i?function(n,t){var i,r,c,a,u,o,s,h,f,l,b,w,d,g,p,v;if((f=Yx(Yx(_V(n.r,t),21),84)).gc()<=2||t==(Ikn(),Eit)||t==(Ikn(),qit))qkn(n,t);else{for(g=n.u.Hc((Chn(),yit)),i=t==(Ikn(),Tit)?(e4(),YHn):(e4(),WHn),v=t==Tit?(OJ(),pHn):(OJ(),mHn),r=Qy(Ox(i),n.s),p=t==Tit?JTn:ZTn,h=f.Kc();h.Ob();)!(o=Yx(h.Pb(),111)).c||o.c.d.c.length<=0||(d=o.b.rf(),w=o.e,(b=(l=o.c).i).b=(a=l.n,l.e.a+a.b+a.c),b.a=(u=l.n,l.e.b+u.d+u.a),g?(b.c=w.a-(c=l.n,l.e.a+c.b+c.c)-n.s,g=!1):b.c=w.a+d.a+n.s,xq(v,jSn),l.f=v,lY(l,(BY(),lHn)),eD(r.d,new fK(b,P9(r,b))),p=t==Tit?e.Math.min(p,w.b):e.Math.max(p,w.b+o.b.rf().b));for(p+=t==Tit?-n.t:n.t,Z7((r.e=p,r)),s=f.Kc();s.Ob();)!(o=Yx(s.Pb(),111)).c||o.c.d.c.length<=0||((b=o.c.i).c-=o.e.a,b.d-=o.e.b)}}(n,t):qkn(n,t))}function xtn(n,t){var e,i;++n.j,null!=t&&function(n,t){var e,i,r;if(iI(n)===iI(t))return!0;if(null==n||null==t)return!1;if(n.length!=t.length)return!1;for(e=0;e=(r=n.length))return r;for(t=t>0?t:0;ti&&DF(t,i,null),t}function qtn(n,t){var e,i;for(i=n.a.length,t.lengthi&&DF(t,i,null),t}function Gtn(n,t,e){var i,r,c;return(r=Yx(BF(n.e,t),387))?(c=YL(r,e),OO(n,r),c):(i=new oD(n,t,e),xB(n.e,t,i),iG(i),null)}function ztn(n){var t;if(null==n)return null;if(null==(t=function(n){var t,e,i,r,c,a,u;if(kdn(),null==n)return null;if((r=n.length)%2!=0)return null;for(t=xJ(n),e=VQ(Yot,LNn,25,c=r/2|0,15,1),i=0;i>24}return e}(Vvn(n,!0))))throw hp(new fy("Invalid hexBinary value: '"+n+"'"));return t}function Utn(n){return bdn(),k8(n,0)<0?0!=k8(n,-1)?new pan(-1,sJ(n)):lFn:k8(n,10)<=0?wFn[WR(n)]:new pan(1,n)}function Xtn(){return Njn(),x4(Gy(JHn,1),XEn,159,0,[BHn,FHn,HHn,$Hn,AHn,LHn,DHn,xHn,NHn,_Hn,KHn,RHn,CHn,IHn,OHn,SHn,MHn,PHn,EHn,jHn,THn,qHn])}function Wtn(n){var t;this.d=new ip,this.j=new Pk,this.g=new Pk,t=n.g.b,this.f=Yx(Aun(dB(t),(gjn(),a1n)),103),this.e=ty(fL(cen(t,F0n)))}function Vtn(n){this.b=new ip,this.e=new ip,this.d=n,this.a=!ej(hH(new SR(null,new nF(new UV(n.b))),new Cb(new Gr))).sd((HE(),dBn))}function Qtn(){Qtn=O,T7n=new US("PARENTS",0),E7n=new US("NODES",1),k7n=new US("EDGES",2),M7n=new US("PORTS",3),j7n=new US("LABELS",4)}function Ytn(){Ytn=O,eit=new aP("DISTRIBUTED",0),rit=new aP("JUSTIFIED",1),nit=new aP("BEGIN",2),tit=new aP(pSn,3),iit=new aP("END",4)}function Jtn(n){switch(n.g){case 1:return t9(),eet;case 4:return t9(),Ztt;case 2:return t9(),net;case 3:return t9(),Jtt}return t9(),tet}function Ztn(n,t){var e,i;if(iz(t,n.b),t>=n.b>>1)for(i=n.c,e=n.b;e>t;--e)i=i.b;else for(i=n.a.a,e=0;e=64&&t<128&&(r=zz(r,GK(1,t-64)));return r}function cen(n,t){var e,i;return i=null,O$(n,(Cjn(),Htt))&&(e=Yx(Aun(n,Htt),94)).Xe(t)&&(i=e.We(t)),null==i&&dB(n)&&(i=Aun(dB(n),t)),i}function aen(n,t){var e,i,r;(i=(r=t.d.i).k)!=(bon(),Hzn)&&i!=Kzn&&Vfn(e=new $K(bA(o7(r).a.Kc(),new h)))&&xB(n.k,t,Yx(kV(e),17))}function uen(n,t){var e,i,r;return i=CZ(n.Tg(),t),(e=t-n.Ah())<0?(r=n.Yg(i))>=0?n.lh(r):zhn(n,i):e<0?zhn(n,i):Yx(i,66).Nj().Sj(n,n.yh(),e)}function oen(n){var t;if(CO(n.a,4)){if(null==(t=ctn(n.a)))throw hp(new Ym(ELn+n.b+"'. "+mLn+(sL(Ict),Ict.k)+yLn));return t}return n.a}function sen(n){var t;if(null==n)return null;if(null==(t=function(n){var t,e,i,r,c,a,u,o,s,h,f,l,b,w,d,g;if(Jpn(),null==n)return null;if((w=function(n){var t,e,i;for(i=0,e=n.length,t=0;t>4)<<24>>24,f[l++]=((15&e)<<4|i>>2&15)<<24>>24,f[l++]=(i<<6|r)<<24>>24}return Pj(a=c[h++])&&Pj(u=c[h++])?(t=sot[a],e=sot[u],o=c[h++],s=c[h++],-1==sot[o]||-1==sot[s]?61==o&&61==s?0!=(15&e)?null:(smn(f,0,g=VQ(Yot,LNn,25,3*b+1,15,1),0,3*b),g[l]=(t<<2|e>>4)<<24>>24,g):61!=o&&61==s?0!=(3&(i=sot[o]))?null:(smn(f,0,g=VQ(Yot,LNn,25,3*b+2,15,1),0,3*b),g[l++]=(t<<2|e>>4)<<24>>24,g[l]=((15&e)<<4|i>>2&15)<<24>>24,g):null:(i=sot[o],r=sot[s],f[l++]=(t<<2|e>>4)<<24>>24,f[l++]=((15&e)<<4|i>>2&15)<<24>>24,f[l++]=(i<<6|r)<<24>>24,f)):null}(Vvn(n,!0))))throw hp(new fy("Invalid base64Binary value: '"+n+"'"));return t}function hen(n){var t;try{return t=n.i.Xb(n.e),n.mj(),n.g=n.e++,t}catch(t){throw CO(t=j4(t),73)?(n.mj(),hp(new Kp)):hp(t)}}function fen(n){var t;try{return t=n.c.ki(n.e),n.mj(),n.g=n.e++,t}catch(t){throw CO(t=j4(t),73)?(n.mj(),hp(new Kp)):hp(t)}}function len(){len=O,Cjn(),Rqn=Ktt,Aqn=Nnt,Sqn=mnt,$qn=utt,pcn(),xqn=_Bn,Nqn=RBn,Dqn=BBn,Lqn=DBn,O6(),Iqn=jqn,Pqn=kqn,Cqn=Tqn,Oqn=Mqn}function ben(n){switch(VE(),this.c=new ip,this.d=n,n.g){case 0:case 2:this.a=DB(Tzn),this.b=JTn;break;case 3:case 1:this.a=Tzn,this.b=ZTn}}function wen(n,t,e){var i;if(n.c)L1(n.c,n.c.i+t),N1(n.c,n.c.j+e);else for(i=new pb(n.b);i.a0&&(eD(n.b,new iD(t.a,e)),0<(i=t.a.length)?t.a=t.a.substr(0,0):0>i&&(t.a+=IO(VQ(Xot,sTn,25,-i,15,1))))}function gen(n,t){var e,i,r;for(e=n.o,r=Yx(Yx(_V(n.r,t),21),84).Kc();r.Ob();)(i=Yx(r.Pb(),111)).e.a=mrn(i,e.a),i.e.b=e.b*ty(fL(i.b.We(XHn)))}function pen(n,t){var e;return e=Yx(Aun(n,(gjn(),$1n)),74),MO(t,$zn)?e?BH(e):(e=new Nv,b5(n,$1n,e)):e&&b5(n,$1n,null),e}function ven(n){var t;return(t=new Ay).a+="n",n.k!=(bon(),Hzn)&&yI(yI((t.a+="(",t),d$(n.k).toLowerCase()),")"),yI((t.a+="_",t),yrn(n)),t.a}function men(n,t,e,i){var r;return e>=0?n.hh(t,e,i):(n.eh()&&(i=(r=n.Vg())>=0?n.Qg(i):n.eh().ih(n,-1-r,null,i)),n.Sg(t,e,i))}function yen(n,t){switch(t){case 7:return!n.e&&(n.e=new AN(nct,n,7,4)),void Hmn(n.e);case 8:return!n.d&&(n.d=new AN(nct,n,8,5)),void Hmn(n.d)}rnn(n,t)}function ken(n,t){var e;e=n.Zc(t);try{return e.Pb()}catch(n){throw CO(n=j4(n),109)?hp(new Hm("Can't get element "+t)):hp(n)}}function jen(n,t){this.e=n,t=0&&(e.d=n.t);break;case 3:n.t>=0&&(e.a=n.t)}n.C&&(e.b=n.C.b,e.c=n.C.c)}function Sen(){Sen=O,tqn=new iM(NSn,0),nqn=new iM(xSn,1),eqn=new iM(DSn,2),iqn=new iM(RSn,3),tqn.a=!1,nqn.a=!0,eqn.a=!1,iqn.a=!0}function Pen(){Pen=O,bqn=new eM(NSn,0),lqn=new eM(xSn,1),wqn=new eM(DSn,2),dqn=new eM(RSn,3),bqn.a=!1,lqn.a=!0,wqn.a=!1,dqn.a=!0}function Ien(n){var t,e,i;if(e=0,0==(i=idn(n)).c.length)return 1;for(t=new pb(i);t.ae.b)return!0}return!1}function Oen(n,t){return aI(n)?!!zjn[t]:n.hm?!!n.hm[t]:cI(n)?!!Gjn[t]:!!rI(n)&&!!qjn[t]}function Aen(n,t,e){return null==e?(!n.o&&(n.o=new yY((ajn(),Frt),mct,n,0)),ttn(n.o,t)):(!n.o&&(n.o=new yY((ajn(),Frt),mct,n,0)),xcn(n.o,t,e)),n}function $en(n,t,e,i){var r,c,a;return c=CZ(n.Tg(),t),(r=t-n.Ah())<0?(a=n.Yg(c))>=0?n._g(a,e,!0):tfn(n,c,e):Yx(c,66).Nj().Pj(n,n.yh(),r,e,i)}function Len(n,t,e,i){var r,c;e.mh(t)&&(TT(),GJ(t)?function(n,t){var e,i,r,c;for(i=0,r=t.gc();i=0)return i;if(n.Fk())for(e=0;e=(r=n.gc()))throw hp(new jN(t,r));if(n.hi()&&(i=n.Xc(e))>=0&&i!=t)throw hp(new Qm(kxn));return n.mi(t,e)}function _en(n,t){if(this.a=Yx(MF(n),245),this.b=Yx(MF(t),245),n.vd(t)>0||n==(dm(),ZKn)||t==(wm(),n_n))throw hp(new Qm("Invalid range: "+BX(n,t)))}function Fen(n){var t,e;for(this.b=new ip,this.c=n,this.a=!1,e=new pb(n.a);e.a0),(t&-t)==t)return oG(t*Xln(n,31)*4.656612873077393e-10);do{i=(e=Xln(n,31))%t}while(e-i+(t-1)<0);return oG(i)}function Xen(n){var t,e,i;return lx(),null!=(i=vBn[e=":"+n])?oG((vB(i),i)):(t=null==(i=pBn[e])?function(n){var t,e,i,r;for(t=0,r=(i=n.length)-4,e=0;e0)for(i=new sx(Yx(_V(n.a,c),21)),XH(),JC(i,new ow(t)),r=new JU(c.b,0);r.b1&&(r=function(n,t){var e,i,r;for(e=HA(new ev,n),r=new pb(t);r.a(o=null==n.d?0:n.d.length)){for(h=n.d,n.d=VQ(Ect,yDn,63,2*o+4,0,1),c=0;cYAn;){for(a=t,u=0;e.Math.abs(t-a)0),c.a.Xb(c.c=--c.b),rvn(n,n.b-u,a,r,c),S$(c.b0),r.a.Xb(r.c=--r.b)}if(!n.d)for(i=0;i102?-1:n<=57?n-48:n<65?-1:n<=70?n-65+10:n<97?-1:n-97+10}function gin(n,t){if(null==n)throw hp(new Zm("null key in entry: null="+t));if(null==t)throw hp(new Zm("null value in entry: "+n+"=null"))}function pin(n,t){var i;return i=x4(Gy(Jot,1),rMn,25,15,[Q6(n.a[0],t),Q6(n.a[1],t),Q6(n.a[2],t)]),n.d&&(i[0]=e.Math.max(i[0],i[2]),i[2]=i[0]),i}function vin(n,t){var i;return i=x4(Gy(Jot,1),rMn,25,15,[Y6(n.a[0],t),Y6(n.a[1],t),Y6(n.a[2],t)]),n.d&&(i[0]=e.Math.max(i[0],i[2]),i[2]=i[0]),i}function min(){min=O,NWn=new GM("GREEDY",0),LWn=new GM(iCn,1),DWn=new GM(eCn,2),RWn=new GM("MODEL_ORDER",3),xWn=new GM("GREEDY_MODEL_ORDER",4)}function yin(n,t){var e,i,r;for(n.b[t.g]=1,i=Ztn(t.d,0);i.b!=i.d.c;)r=(e=Yx(IX(i),188)).c,1==n.b[r.g]?KD(n.a,e):2==n.b[r.g]?n.b[r.g]=1:yin(n,r)}function kin(n,t,e){var i,r,c,a;for(a=n.r+t,n.r+=t,n.d+=e,i=e/n.n.c.length,r=0,c=new pb(n.n);c.a0||!a&&0==u))}(n,e,i.d,r,c,a,u)&&t.Fc(i),(s=i.a[1])&&Lin(n,t,e,s,r,c,a,u))}function Nin(n,t,e){try{return sI(V0(n,t,e),1)}catch(i){throw CO(i=j4(i),320)?hp(new Hm(FSn+n.o+"*"+n.p+BSn+t+tEn+e+HSn)):hp(i)}}function xin(n,t,e){try{return sI(V0(n,t,e),0)}catch(i){throw CO(i=j4(i),320)?hp(new Hm(FSn+n.o+"*"+n.p+BSn+t+tEn+e+HSn)):hp(i)}}function Din(n,t,e){try{return sI(V0(n,t,e),2)}catch(i){throw CO(i=j4(i),320)?hp(new Hm(FSn+n.o+"*"+n.p+BSn+t+tEn+e+HSn)):hp(i)}}function Rin(n,t){if(-1==n.g)throw hp(new Lp);n.mj();try{n.d._c(n.g,t),n.f=n.d.j}catch(n){throw CO(n=j4(n),73)?hp(new Dp):hp(n)}}function Kin(n,t,i){run(i,"Linear segments node placement",1),n.b=Yx(Aun(t,(Ojn(),zQn)),304),function(n,t){var i,r,c,a,u,o,s,h,f,l,b,w,d,g,p,v,m,y,k,j,E,T,M,S,P,I,C,O,A,$;for(O=new ip,w=new pb(t.b);w.a=0){for(o=null,u=new JU(h.a,s+1);u.b0&&s[r]&&(d=lO(n.b,s[r],c)),g=e.Math.max(g,c.c.c.b+d);for(a=new pb(f.e);a.ak)?(s=2,u=Yjn):0==s?(s=1,u=E):(s=0,u=E):(b=E>=u||u-E0?(f=Yx(TR(l.c.a,a-1),10),T=lO(n.b,l,f),g=l.n.b-l.d.d-(f.n.b+f.o.b+f.d.a+T)):g=l.n.b-l.d.d,s=e.Math.min(g,s),ac&&DF(t,c,null),t}function Fin(n,t){var e,i,r;return e=t.cd(),r=t.dd(),i=n.xc(e),!(!(iI(r)===iI(i)||null!=r&&Q8(r,i))||null==i&&!n._b(e))}function Bin(n,t,e,i){var r,c;this.a=t,this.c=i,function(n,t){n.b=t}(this,new QS(-(r=n.a).c,-r.d)),mN(this.b,e),c=i/2,t.a?N$(this.b,0,c):N$(this.b,c,0),eD(n.c,this)}function Hin(){Hin=O,i8n=new RS(fIn,0),t8n=new RS(rCn,1),e8n=new RS("EDGE_LENGTH_BY_POSITION",2),n8n=new RS("CROSSING_MINIMIZATION_BY_POSITION",3)}function qin(n,t){var e,i;if(e=Yx(g1(n.g,t),33))return e;if(i=Yx(g1(n.j,t),118))return i;throw hp(new hy("Referenced shape does not exist: "+t))}function Gin(n,t){if(n.c==t)return n.d;if(n.d==t)return n.c;throw hp(new Qm("Node 'one' must be either source or target of edge 'edge'."))}function zin(n,t){if(n.c.i==t)return n.d.i;if(n.d.i==t)return n.c.i;throw hp(new Qm("Node "+t+" is neither source nor target of edge "+n))}function Uin(n,t){var e;switch(t.g){case 2:case 4:e=n.a,n.c.d.n.b0&&(o+=r),s[h]=a,a+=u*(o+i)}function Win(n){var t,e,i;for(i=n.f,n.n=VQ(Jot,rMn,25,i,15,1),n.d=VQ(Jot,rMn,25,i,15,1),t=0;t0?n.c:0),++c;n.b=r,n.d=a}function irn(n,t){var i;return i=x4(Gy(Jot,1),rMn,25,15,[zen(n,(JZ(),rHn),t),zen(n,cHn,t),zen(n,aHn,t)]),n.f&&(i[0]=e.Math.max(i[0],i[2]),i[2]=i[0]),i}function rrn(n,t,e){try{cgn(n,t+n.j,e+n.k,!1,!0)}catch(n){throw CO(n=j4(n),73)?hp(new Hm(n.g+qSn+t+tEn+e+").")):hp(n)}}function crn(n,t,e){try{cgn(n,t+n.j,e+n.k,!0,!1)}catch(n){throw CO(n=j4(n),73)?hp(new Hm(n.g+qSn+t+tEn+e+").")):hp(n)}}function arn(n){var t;O$(n,(gjn(),U1n))&&((t=Yx(Aun(n,U1n),21)).Hc((Eln(),Get))?(t.Mc(Get),t.Fc(Uet)):t.Hc(Uet)&&(t.Mc(Uet),t.Fc(Get)))}function urn(n){var t;O$(n,(gjn(),U1n))&&((t=Yx(Aun(n,U1n),21)).Hc((Eln(),Yet))?(t.Mc(Yet),t.Fc(Vet)):t.Hc(Vet)&&(t.Mc(Vet),t.Fc(Yet)))}function orn(n,t,e,i){var r,c;for(r=t;r0&&(c.b+=t),c}function brn(n,t){var i,r,c;for(c=new Pk,r=n.Kc();r.Ob();)bgn(i=Yx(r.Pb(),37),0,c.b),c.b+=i.f.b+t,c.a=e.Math.max(c.a,i.f.a);return c.a>0&&(c.a+=t),c}function wrn(n){var t,i,r;for(r=Yjn,i=new pb(n.a);i.a>16==6?n.Cb.ih(n,5,cct,t):(e=nin(Yx(CZ(Yx(H3(n,16),26)||n.zh(),n.Db>>16),18)),n.Cb.ih(n,e.n,e.f,t))}function vrn(n){var t,i,r;n.b==n.c&&(r=n.a.length,i=j5(e.Math.max(8,r))<<1,0!=n.b?(Z0(n,t=eN(n.a,i),r),n.a=t,n.b=0):zp(n.a,i),n.c=r)}function mrn(n,t){var e;return(e=n.b).Xe((Cjn(),ytt))?e.Hf()==(Ikn(),qit)?-e.rf().a-ty(fL(e.We(ytt))):t+ty(fL(e.We(ytt))):e.Hf()==(Ikn(),qit)?-e.rf().a:t}function yrn(n){var t;return 0!=n.b.c.length&&Yx(TR(n.b,0),70).a?Yx(TR(n.b,0),70).a:null!=(t=IH(n))?t:""+(n.c?hJ(n.c.a,n,0):-1)}function krn(n){var t;return 0!=n.f.c.length&&Yx(TR(n.f,0),70).a?Yx(TR(n.f,0),70).a:null!=(t=IH(n))?t:""+(n.i?hJ(n.i.j,n,0):-1)}function jrn(n,t){var e,i;if(t<0||t>=n.gc())return null;for(e=t;e0?n.c:0),c=e.Math.max(c,t.d),++r;n.e=a,n.b=c}function Mrn(n,t,e,i){return 0==t?i?(!n.o&&(n.o=new yY((ajn(),Frt),mct,n,0)),n.o):(!n.o&&(n.o=new yY((ajn(),Frt),mct,n,0)),UQ(n.o)):$en(n,t,e,i)}function Srn(n){var t,e;if(n.rb)for(t=0,e=n.rb.i;t>22))>>22)<0||(n.l=e&BTn,n.m=i&BTn,n.h=r&HTn,0)))}function Crn(n,t,e){var i,r;return a8(r=new Uv,t),E2(r,e),fY((!n.c&&(n.c=new m_(lat,n,12,10)),n.c),r),_1(i=r,0),F1(i,1),l9(i,!0),s9(i,!0),i}function Orn(n,t){var e,i;if(t>=n.i)throw hp(new BI(t,n.i));return++n.j,e=n.g[t],(i=n.i-t-1)>0&&smn(n.g,t+1,n.g,t,i),DF(n.g,--n.i,null),n.fi(t,e),n.ci(),e}function Arn(n,t){var e;return n.Db>>16==17?n.Cb.ih(n,21,rat,t):(e=nin(Yx(CZ(Yx(H3(n,16),26)||n.zh(),n.Db>>16),18)),n.Cb.ih(n,e.n,e.f,t))}function $rn(n){var t,e,i,r,c;for(r=Yjn,c=null,i=new pb(n.d);i.ae.a.c.length))throw hp(new Qm("index must be >= 0 and <= layer node count"));n.c&&uJ(n.c.a,n),n.c=e,e&&ZR(e.a,t,n)}function qrn(n,t){var e,i,r;for(i=new $K(bA(a7(n).a.Kc(),new h));Vfn(i);)return e=Yx(kV(i),17),new Bf(MF((r=Yx(t.Kb(e),10)).n.b+r.o.b/2));return gm(),gm(),zKn}function Grn(n,t){this.c=new rp,this.a=n,this.b=t,this.d=Yx(Aun(n,(Ojn(),zQn)),304),iI(Aun(n,(gjn(),X1n)))===iI((cJ(),iVn))?this.e=new Cv:this.e=new Iv}function zrn(n,t){var e,i;return i=null,n.Xe((Cjn(),Htt))&&(e=Yx(n.We(Htt),94)).Xe(t)&&(i=e.We(t)),null==i&&n.yf()&&(i=n.yf().We(t)),null==i&&(i=oen(t)),i}function Urn(n,t){var e,i;e=n.Zc(t);try{return i=e.Pb(),e.Qb(),i}catch(n){throw CO(n=j4(n),109)?hp(new Hm("Can't remove element "+t)):hp(n)}}function Xrn(n,t){var e,i,r;for(vB(t),T$(t!=n),r=n.b.c.length,i=t.Kc();i.Ob();)e=i.Pb(),eD(n.b,vB(e));return r!=n.b.c.length&&(l6(n,0),!0)}function Wrn(){Wrn=O,Cjn(),xGn=Hnt,new DC(Cnt,(TA(),!0)),KGn=Jnt,_Gn=ttt,FGn=itt,RGn=Qnt,BGn=att,HGn=Mtt,Lrn(),NGn=CGn,$Gn=SGn,LGn=IGn,DGn=OGn,AGn=MGn}function Vrn(n,t,e,i){var r,c,a;for(JG(t,Yx(i.Xb(0),29)),a=i.bd(1,i.gc()),c=Yx(e.Kb(t),20).Kc();c.Ob();)Vrn(n,(r=Yx(c.Pb(),17)).c.i==t?r.d.i:r.c.i,e,a)}function Qrn(n){var t;return t=new rp,O$(n,(Ojn(),QQn))?Yx(Aun(n,QQn),83):(SE(hH(new SR(null,new Nz(n.j,16)),new tr),new _w(t)),b5(n,QQn,t),t)}function Yrn(n,t){var e;return n.Db>>16==6?n.Cb.ih(n,6,nct,t):(e=nin(Yx(CZ(Yx(H3(n,16),26)||(ajn(),xrt),n.Db>>16),18)),n.Cb.ih(n,e.n,e.f,t))}function Jrn(n,t){var e;return n.Db>>16==7?n.Cb.ih(n,1,Yrt,t):(e=nin(Yx(CZ(Yx(H3(n,16),26)||(ajn(),Rrt),n.Db>>16),18)),n.Cb.ih(n,e.n,e.f,t))}function Zrn(n,t){var e;return n.Db>>16==9?n.Cb.ih(n,9,uct,t):(e=nin(Yx(CZ(Yx(H3(n,16),26)||(ajn(),_rt),n.Db>>16),18)),n.Cb.ih(n,e.n,e.f,t))}function ncn(n,t){var e;return n.Db>>16==5?n.Cb.ih(n,9,oat,t):(e=nin(Yx(CZ(Yx(H3(n,16),26)||(xjn(),Tat),n.Db>>16),18)),n.Cb.ih(n,e.n,e.f,t))}function tcn(n,t){var e;return n.Db>>16==3?n.Cb.ih(n,0,ect,t):(e=nin(Yx(CZ(Yx(H3(n,16),26)||(xjn(),pat),n.Db>>16),18)),n.Cb.ih(n,e.n,e.f,t))}function ecn(n,t){var e;return n.Db>>16==7?n.Cb.ih(n,6,cct,t):(e=nin(Yx(CZ(Yx(H3(n,16),26)||(xjn(),Lat),n.Db>>16),18)),n.Cb.ih(n,e.n,e.f,t))}function icn(){this.a=new lo,this.g=new iin,this.j=new iin,this.b=new rp,this.d=new iin,this.i=new iin,this.k=new rp,this.c=new rp,this.e=new rp,this.f=new rp}function rcn(n,t,e){var i,r,c;for(e<0&&(e=0),c=n.i,r=e;rcMn)return ccn(n,i);if(i==n)return!0}}return!1}function acn(n,t){var i,r,c;for(uJ(n.a,t),n.e-=t.r+(0==n.a.c.length?0:n.c),c=d$n,r=new pb(n.a);r.a>16==3?n.Cb.ih(n,12,uct,t):(e=nin(Yx(CZ(Yx(H3(n,16),26)||(ajn(),Nrt),n.Db>>16),18)),n.Cb.ih(n,e.n,e.f,t))}function ocn(n,t){var e;return n.Db>>16==11?n.Cb.ih(n,10,uct,t):(e=nin(Yx(CZ(Yx(H3(n,16),26)||(ajn(),Krt),n.Db>>16),18)),n.Cb.ih(n,e.n,e.f,t))}function scn(n,t){var e;return n.Db>>16==10?n.Cb.ih(n,11,rat,t):(e=nin(Yx(CZ(Yx(H3(n,16),26)||(xjn(),Aat),n.Db>>16),18)),n.Cb.ih(n,e.n,e.f,t))}function hcn(n,t){var e;return n.Db>>16==10?n.Cb.ih(n,12,fat,t):(e=nin(Yx(CZ(Yx(H3(n,16),26)||(xjn(),Nat),n.Db>>16),18)),n.Cb.ih(n,e.n,e.f,t))}function fcn(n){var t;return 0==(1&n.Bb)&&n.r&&n.r.kh()&&(t=Yx(n.r,49),n.r=Yx(P8(n,t),138),n.r!=t&&0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,9,8,t,n.r))),n.r}function lcn(n,t,i){var r;return r=x4(Gy(Jot,1),rMn,25,15,[yun(n,(JZ(),rHn),t,i),yun(n,cHn,t,i),yun(n,aHn,t,i)]),n.f&&(r[0]=e.Math.max(r[0],r[2]),r[2]=r[0]),r}function bcn(n,t){var e,i,r;if(0!=(r=function(n,t){var e,i,r;for(r=new pQ(t.gc()),i=t.Kc();i.Ob();)(e=Yx(i.Pb(),286)).c==e.f?nsn(n,e,e.c):Von(n,e)||(r.c[r.c.length]=e);return r}(n,t)).c.length)for(JC(r,new ti),e=r.c.length,i=0;i>19)!=(u=t.h>>19)?u-a:(i=n.h)!=(c=t.h)?i-c:(e=n.m)!=(r=t.m)?e-r:n.l-t.l}function pcn(){pcn=O,$dn(),BBn=new FI(uSn,HBn=VBn),sZ(),_Bn=new FI(oSn,FBn=LBn),nen(),RBn=new FI(sSn,KBn=CBn),DBn=new FI(hSn,(TA(),!0))}function vcn(n,t,e){var i,r;i=t*e,CO(n.g,145)?(r=SX(n)).f.d?r.f.a||(n.d.a+=i+SSn):(n.d.d-=i+SSn,n.d.a+=i+SSn):CO(n.g,10)&&(n.d.d-=i,n.d.a+=2*i)}function mcn(n,t,i){var r,c,a,u,o;for(c=n[i.g],o=new pb(t.d);o.a0?n.g:0),++i;t.b=r,t.e=c}function kcn(n){var t,e,i;if(i=n.b,mE(n.i,i.length)){for(e=2*i.length,n.b=VQ(c_n,qEn,317,e,0,1),n.c=VQ(c_n,qEn,317,e,0,1),n.f=e-1,n.i=0,t=n.a;t;t=t.c)phn(n,t,t);++n.g}}function jcn(n,t,e){var i;(i=t.c.i).k==(bon(),Bzn)?(b5(n,(Ojn(),TQn),Yx(Aun(i,TQn),11)),b5(n,MQn,Yx(Aun(i,MQn),11))):(b5(n,(Ojn(),TQn),t.c),b5(n,MQn,e.d))}function Ecn(n,t,i){var r,c,a,u,o,s;return udn(),u=t/2,a=i/2,o=1,s=1,(r=e.Math.abs(n.a))>u&&(o=u/r),(c=e.Math.abs(n.b))>a&&(s=a/c),KO(n,e.Math.min(o,s)),n}function Tcn(){uE.call(this),this.e=-1,this.a=!1,this.p=nTn,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=nTn}function Mcn(){Mcn=O,WGn=yK(oR(oR(oR(new fX,($un(),nzn),($jn(),NUn)),nzn,KUn),tzn,zUn),tzn,jUn),QGn=oR(oR(new fX,nzn,lUn),nzn,EUn),VGn=yK(new fX,tzn,MUn)}function Scn(n,t){var e,i,r,c;for(c=new rp,t.e=null,t.f=null,i=new pb(t.i);i.a0)try{i=ipn(t,nTn,Yjn)}catch(n){throw CO(n=j4(n),127)?hp(new mJ(n)):hp(n)}return!n.a&&(n.a=new Vg(n)),i<(e=n.a).i&&i>=0?Yx(c1(e,i),56):null}(n,0==(r=t.c.length)?"":($z(0,t.c.length),lL(t.c[0]))),i=1;i0&&(r=efn(n,(c&Yjn)%n.d.length,c,t))?r.ed(e):(i=n.tj(c,t,e),n.c.Fc(i),null)}function Dcn(n,t){var e,i,r,c;switch(U8(n,t)._k()){case 3:case 2:for(r=0,c=(e=emn(t)).i;r=0?t:-t;i>0;)i%2==0?(e*=e,i=i/2|0):(r*=e,i-=1);return t<0?1/r:r}(n,n)/I8(2.718281828459045,n))}function Fcn(n,t){var e;if(n.ni()&&null!=t){for(e=0;e0&&(n.b+=2,n.a+=r):(n.b+=1,n.a+=e.Math.min(r,c))}function Ucn(n,t){var e;if(e=!1,aI(t)&&(e=!0,nB(n,new zF(lL(t)))),e||CO(t,236)&&(e=!0,nB(n,new Tl(tx(Yx(t,236))))),!e)throw hp(new Gm(ixn))}function Xcn(n){var t,e;switch(Yx(Aun(dB(n),(gjn(),A1n)),420).g){case 0:return t=n.n,e=n.o,new QS(t.a+e.a/2,t.b+e.b/2);case 1:return new fC(n.n);default:return null}}function Wcn(){Wcn=O,hVn=new VM(fIn,0),sVn=new VM("LEFTUP",1),lVn=new VM("RIGHTUP",2),oVn=new VM("LEFTDOWN",3),fVn=new VM("RIGHTDOWN",4),uVn=new VM("BALANCED",5)}function Vcn(n,t,e){switch(t){case 1:return!n.n&&(n.n=new m_(act,n,1,7)),Hmn(n.n),!n.n&&(n.n=new m_(act,n,1,7)),void jF(n.n,Yx(e,14));case 2:return void $0(n,lL(e))}J5(n,t,e)}function Qcn(n,t,e){switch(t){case 3:return void A1(n,ty(fL(e)));case 4:return void $1(n,ty(fL(e)));case 5:return void L1(n,ty(fL(e)));case 6:return void N1(n,ty(fL(e)))}Vcn(n,t,e)}function Ycn(n,t,e){var i,r;(i=fun(r=new Uv,t,null))&&i.Fi(),E2(r,e),fY((!n.c&&(n.c=new m_(lat,n,12,10)),n.c),r),_1(r,0),F1(r,1),l9(r,!0),s9(r,!0)}function Jcn(n,t){var e,i;return CO(e=NT(n.g,t),235)?((i=Yx(e,235)).Qh(),i.Nh()):CO(e,498)?i=Yx(e,1938).b:null}function Zcn(n,t,e,i){var r,c;return MF(t),MF(e),EJ(!!(c=Yx(nx(n.d,t),19)),"Row %s not in %s",t,n.e),EJ(!!(r=Yx(nx(n.b,e),19)),"Column %s not in %s",e,n.c),N4(n,c.a,r.a,i)}function nan(n,t,e,i,r,c,a){var u,o,s,h,f;if(f=Zin(u=(s=c==a-1)?i:0,h=r[c]),10!=i&&x4(Gy(n,a-c),t[c],e[c],u,f),!s)for(++c,o=0;o0?n.i:0)),++t;for(function(n,t){var e,i;for(vB(t),e=!1,i=new pb(n);i.a1||-1==u?(c=Yx(o,15),r.Wb(function(n,t){var e,i,r;for(i=new pQ(t.gc()),e=t.Kc();e.Ob();)(r=Qgn(n,Yx(e.Pb(),56)))&&(i.c[i.c.length]=r);return i}(n,c))):r.Wb(Qgn(n,Yx(o,56))))}function ban(n){switch(Yx(Aun(n.b,(gjn(),g1n)),375).g){case 1:SE(fH(WJ(new SR(null,new Nz(n.d,16)),new _r),new Fr),new Br);break;case 2:!function(n){var t,e,i,r,c,a,u;for(i=0,u=0,a=new pb(n.d);a.a0&&Nrn(this,this.c-1,(Ikn(),Eit)),this.c0&&n[0].length>0&&(this.c=ny(hL(Aun(dB(n[0][0]),(Ojn(),yQn))))),this.a=VQ(B3n,TEn,2018,n.length,0,2),this.b=VQ(X3n,TEn,2019,n.length,0,2),this.d=new e8}function Nan(n){return 0!=n.c.length&&(($z(0,n.c.length),Yx(n.c[0],17)).c.i.k==(bon(),Bzn)||JW(fH(new SR(null,new Nz(n,16)),new Kc),new _c))}function xan(n,t,e){return run(e,"Tree layout",1),_U(n.b),q_(n.b,(Krn(),Y4n),Y4n),q_(n.b,J4n,J4n),q_(n.b,Z4n,Z4n),q_(n.b,n5n,n5n),n.a=Zmn(n.b,t),function(n,t,e){var i,r,c;if(!(r=e)&&(r=new am),run(r,"Layout",n.a.c.length),ny(hL(Aun(t,(cln(),R5n)))))for(oE(),i=0;i=0?(e=Bcn(n,UTn),i=Snn(n,UTn)):(e=Bcn(t=UK(n,1),5e8),i=t7(GK(i=Snn(t,5e8),1),Gz(n,1))),zz(GK(i,32),Gz(e,uMn))}function Xan(n,t,e){var i;switch(S$(0!=t.b),i=Yx(VZ(t,t.a.a),8),e.g){case 0:i.b=0;break;case 2:i.b=n.f;break;case 3:i.a=0;break;default:i.a=n.g}return oF(Ztn(t,0),i),t}function Wan(n,t,e,i){var r,c,a,u,o;switch(o=n.b,u=Ktn(a=(c=t.d).j,o.d[a.g],e),r=mN(dO(c.n),c.a),c.j.g){case 1:case 3:u.a+=r.a;break;case 2:case 4:u.b+=r.b}VW(i,u,i.c.b,i.c)}function Van(n,t,e){var i,r,c,a;for(a=hJ(n.e,t,0),(c=new pv).b=e,i=new JU(n.e,a);i.b=0;t--)zFn[t]=i,i*=.5;for(e=1,n=24;n>=0;n--)GFn[n]=e,e*=.5}function Yan(n){var t,e;if(ny(hL(jln(n,(gjn(),I1n)))))for(e=new $K(bA(lbn(n).a.Kc(),new h));Vfn(e);)if(Whn(t=Yx(kV(e),79))&&ny(hL(jln(t,C1n))))return!0;return!1}function Jan(n,t){var e,i,r;__(n.f,t)&&(t.b=n,i=t.c,-1!=hJ(n.j,i,0)||eD(n.j,i),r=t.d,-1!=hJ(n.j,r,0)||eD(n.j,r),0!=(e=t.a.b).c.length&&(!n.i&&(n.i=new Wtn(n)),function(n,t){var e,i;for(i=new pb(t);i.a=n.f)break;c.c[c.c.length]=e}return c}function oun(n){var t,e,i,r;for(t=null,r=new pb(n.wf());r.a0&&smn(n.g,t,n.g,t+i,u),a=e.Kc(),n.i+=i,r=0;rc&&S_(s,$Z(e[u],KFn))&&(r=u,c=o);return r>=0&&(i[0]=t+c),r}function dun(n,t,e){run(e,"Grow Tree",1),n.b=t.f,ny(hL(Aun(t,(y3(),hqn))))?(n.c=new it,mz(n,null)):n.c=new it,n.a=!1,iwn(n,t.f),b5(t,fqn,(TA(),!!n.a)),Ron(e)}function gun(n){var t,e;return n>=eMn?(t=iMn+(n-eMn>>10&1023)&fTn,e=56320+(n-eMn&1023)&fTn,String.fromCharCode(t)+""+String.fromCharCode(e)):String.fromCharCode(n&fTn)}function pun(n,t,e,i,r){var c,a,u;for(c=Vwn(n,t,e,i,r),u=!1;!c;)Nln(n,r,!0),u=!0,c=Vwn(n,t,e,i,r);u&&Nln(n,r,!1),0!=(a=G4(r)).c.length&&(n.d&&n.d.lg(a),pun(n,r,e,i,a))}function vun(){vun=O,ket=new eP(fIn,0),met=new eP("DIRECTED",1),jet=new eP("UNDIRECTED",2),pet=new eP("ASSOCIATION",3),yet=new eP("GENERALIZATION",4),vet=new eP("DEPENDENCY",5)}function mun(n,t){var e,i;for(vB(t),i=n.b.c.length,eD(n.b,t);i>0;){if(e=i,i=(i-1)/2|0,n.a.ue(TR(n.b,i),t)<=0)return QW(n.b,e,t),!0;QW(n.b,e,TR(n.b,i))}return QW(n.b,i,t),!0}function yun(n,t,i,r){var c,a;if(c=0,i)c=Y6(n.a[i.g][t.g],r);else for(a=0;a=a)}function jun(n,t,e,i){var r;if(r=!1,aI(i)&&(r=!0,ND(t,e,lL(i))),r||rI(i)&&(r=!0,jun(n,t,e,i)),r||CO(i,236)&&(r=!0,nq(t,e,Yx(i,236))),!r)throw hp(new Gm(ixn))}function Eun(n,t){var e,i,r,c;if(vB(t),(c=n.a.gc())=hTn?"error":"warn",n.a),n.b&&Jbn(t,e,n.b,"Exception: ",!0))}function Aun(n,t){var e,i;return!n.q&&(n.q=new rp),null!=(i=BF(n.q,t))?i:(CO(e=t.wg(),4)&&(null==e?(!n.q&&(n.q=new rp),zV(n.q,t)):(!n.q&&(n.q=new rp),xB(n.q,t,e))),e)}function $un(){$un=O,YGn=new bM("P1_CYCLE_BREAKING",0),JGn=new bM("P2_LAYERING",1),ZGn=new bM("P3_NODE_ORDERING",2),nzn=new bM("P4_NODE_PLACEMENT",3),tzn=new bM("P5_EDGE_ROUTING",4)}function Lun(n,t){var e,i,r,c;for(i=(1==t?ozn:uzn).a.ec().Kc();i.Ob();)for(e=Yx(i.Pb(),103),c=Yx(_V(n.f.c,e),21).Kc();c.Ob();)r=Yx(c.Pb(),46),uJ(n.b.b,r.b),uJ(n.b.a,Yx(r.b,81).d)}function Nun(n,t){var e;if(oZ(),n.c==t.c){if(n.b==t.b||function(n,t){return _4(),n==bzn&&t==gzn||n==gzn&&t==bzn||n==dzn&&t==wzn||n==wzn&&t==dzn}(n.b,t.b)){if(e=function(n){return n==bzn||n==gzn}(n.b)?1:-1,n.a&&!t.a)return e;if(!n.a&&t.a)return-e}return eO(n.b.g,t.b.g)}return $9(n.c,t.c)}function xun(n,t){var e,i;if(zun(n,t))return!0;for(i=new pb(t);i.a=(r=n.Vi())||t<0)throw hp(new Hm(jxn+t+Exn+r));if(e>=r||e<0)throw hp(new Hm(Txn+e+Exn+r));return t!=e?(c=n.Ti(e),n.Hi(t,c),i=c):i=n.Oi(e),i}function qun(n){var t,e,i;if(i=n,n)for(t=0,e=n.Ug();e;e=e.Ug()){if(++t>cMn)return qun(e);if(i=e,e==n)throw hp(new Ym("There is a cycle in the containment hierarchy of "+n))}return i}function Gun(n){var t,e,i;for(i=new J3(tEn,"[","]"),e=n.Kc();e.Ob();)HV(i,iI(t=e.Pb())===iI(n)?"(this Collection)":null==t?aEn:I7(t));return i.a?0==i.e.length?i.a.a:i.a.a+""+i.e:i.c}function zun(n,t){var e,i;if(i=!1,t.gc()<2)return!1;for(e=0;ei&&(Lz(t-1,n.length),n.charCodeAt(t-1)<=32);)--t;return i>0||t1&&(n.j.b+=n.e)):(n.j.a+=i.a,n.j.b=e.Math.max(n.j.b,i.b),n.d.c.length>1&&(n.j.a+=n.e))}function Qun(){Qun=O,UXn=x4(Gy(trt,1),lIn,61,0,[(Ikn(),Tit),Eit,Bit]),zXn=x4(Gy(trt,1),lIn,61,0,[Eit,Bit,qit]),XXn=x4(Gy(trt,1),lIn,61,0,[Bit,qit,Tit]),WXn=x4(Gy(trt,1),lIn,61,0,[qit,Tit,Eit])}function Yun(n,t,e,i){var r,c,a,u,o;if(c=n.c.d,a=n.d.d,c.j!=a.j)for(o=n.b,r=c.j,u=null;r!=a.j;)u=0==t?A9(r):C9(r),KD(i,mN(Ktn(r,o.d[r.g],e),Ktn(u,o.d[u.g],e))),r=u}function Jun(n,t,e,i){var r,c,a,u,o;return u=Yx((a=Drn(n.a,t,e)).a,19).a,c=Yx(a.b,19).a,i&&(o=Yx(Aun(t,(Ojn(),RQn)),10),r=Yx(Aun(e,RQn),10),o&&r&&(YX(n.b,o,r),u+=n.b.i,c+=n.b.e)),u>c}function Zun(n){var t,e,i,r,c,a,u,o;for(this.a=xen(n),this.b=new ip,i=0,r=(e=n).length;i0&&(n.a[q.p]=J++)}for(rn=0,N=0,R=(A=i).length;N0;){for(S$(X.b>0),U=0,o=new pb((q=Yx(X.a.Xb(X.c=--X.b),11)).e);o.a0&&(q.j==(Ikn(),Tit)?(n.a[q.p]=rn,++rn):(n.a[q.p]=rn+K+F,++F))}rn+=F}for(z=new rp,d=new oC,$=0,x=(C=t).length;$h.b&&(h.b=W)):q.i.c==Y&&(Wh.c&&(h.c=W));for(DY(g,0,g.length,null),en=VQ(Wot,MTn,25,g.length,15,1),r=VQ(Wot,MTn,25,rn+1,15,1),v=0;v0;)T%2>0&&(c+=un[T+1]),++un[T=(T-1)/2|0];for(S=VQ(i4n,iEn,362,2*g.length,0,1),k=0;kTL(n.d).c?(n.i+=n.g.c,Cnn(n.d)):TL(n.d).c>TL(n.g).c?(n.e+=n.d.c,Cnn(n.g)):(n.i+=IR(n.g),n.e+=IR(n.d),Cnn(n.g),Cnn(n.d))}function ion(n,t,i,r){n.a.d=e.Math.min(t,i),n.a.a=e.Math.max(t,r)-n.a.d,to&&(s=o/r),(c=e.Math.abs(t.b-n.b))>a&&(h=a/c),u=e.Math.min(s,h),n.a+=u*(t.a-n.a),n.b+=u*(t.b-n.b)}function son(n,t,e,i,r){var c,a;for(a=!1,c=Yx(TR(e.b,0),33);Svn(n,t,c,i,r)&&(a=!0,oan(e,c),0!=e.b.c.length);)c=Yx(TR(e.b,0),33);return 0==e.b.c.length&&acn(e.j,e),a&&ern(t.q),a}function hon(n,t){var e,i,r,c;if(udn(),t.b<2)return!1;for(i=e=Yx(IX(c=Ztn(t,0)),8);c.b!=c.d.c;){if(Rbn(n,i,r=Yx(IX(c),8)))return!0;i=r}return!!Rbn(n,i,e)}function fon(n,t,e,i){return 0==e?(!n.o&&(n.o=new yY((ajn(),Frt),mct,n,0)),YN(n.o,t,i)):Yx(CZ(Yx(H3(n,16),26)||n.zh(),e),66).Nj().Rj(n,dtn(n),e-vF(n.zh()),t,i)}function lon(n,t){var e;t!=n.sb?(e=null,n.sb&&(e=Yx(n.sb,49).ih(n,1,ict,e)),t&&(e=Yx(t,49).gh(n,1,ict,e)),(e=H8(n,t,e))&&e.Fi()):0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,4,t,t))}function bon(){bon=O,Hzn=new gM("NORMAL",0),Bzn=new gM("LONG_EDGE",1),_zn=new gM("EXTERNAL_PORT",2),qzn=new gM("NORTH_SOUTH_PORT",3),Fzn=new gM("LABEL",4),Kzn=new gM("BREAKING_POINT",5)}function won(n,t,e){var i;run(e,"Self-Loop routing",1),i=function(n){switch(Yx(Aun(n,(gjn(),b1n)),218).g){case 1:return new ic;case 3:return new oc;default:return new ec}}(t),dI(Aun(t,(tQ(),K7n))),SE(fH(hH(hH(WJ(new SR(null,new Nz(t.b,16)),new zi),new Ui),new Xi),new Wi),new yM(n,i)),Ron(e)}function don(n,t){var e,i,r;return(t&=63)<22?(e=n.l<>22-t,r=n.h<>22-t):t<44?(e=0,i=n.l<>44-t):(e=0,i=0,r=n.l<n)throw hp(new Qm("k must be smaller than n"));return 0==t||t==n?1:0==n?0:_cn(n)/(_cn(t)*_cn(n-t))}function mon(n,t){var e,i,r,c;for(e=new SC(n);null!=e.g||e.c?null==e.g||0!=e.i&&Yx(e.g[e.i-1],47).Ob():AG(e);)if(CO(c=Yx(abn(e),56),160))for(i=Yx(c,160),r=0;r0&&ygn(n,e,t),r):function(n,t,e){var i,r,c;return i=n.c[t.c.p][t.p],r=n.c[e.c.p][e.p],null!=i.a&&null!=r.a?((c=WK(i.a,r.a))<0?ygn(n,t,e):c>0&&ygn(n,e,t),c):null!=i.a?(ygn(n,t,e),-1):null!=r.a?(ygn(n,e,t),1):0}(n,t,e)}function xon(n,t,e){var i,r,c,a;if(0!=t.b){for(i=new ME,a=Ztn(t,0);a.b!=a.d.c;)C2(i,q4(c=Yx(IX(a),86))),(r=c.e).a=Yx(Aun(c,(ryn(),O5n)),19).a,r.b=Yx(Aun(c,A5n),19).a;xon(n,i,J2(e,i.b/n.a|0))}}function Don(n,t){var e,i,r,c,a;if(n.e<=t)return n.g;if(function(n,t,e){var i;return(i=omn(n,t,!1)).b<=t&&i.a<=e}(n,n.g,t))return n.g;for(c=n.r,i=n.g,a=n.r,r=(c-i)/2+i;i+11&&(n.e.b+=n.a)):(n.e.a+=i.a,n.e.b=e.Math.max(n.e.b,i.b),n.d.c.length>1&&(n.e.a+=n.a))}function Bon(n){var t,e,i,r;switch(t=(r=n.i).b,i=r.j,e=r.g,r.a.g){case 0:e.a=(n.g.b.o.a-i.a)/2;break;case 1:e.a=t.d.n.a+t.d.a.a;break;case 2:e.a=t.d.n.a+t.d.a.a-i.a;break;case 3:e.b=t.d.n.b+t.d.a.b}}function Hon(n,t,e,i,r){if(ii&&(n.a=i),n.br&&(n.b=r),n}function qon(n){if(CO(n,149))return function(n){var t,e,i,r,c;return c=cun(n),null!=n.a&&ND(c,"category",n.a),!Sj(new Yl(n.d))&&(OZ(c,"knownOptions",i=new Sl),t=new Mg(i),XW(new Yl(n.d),t)),!Sj(n.g)&&(OZ(c,"supportedFeatures",r=new Sl),e=new Sg(r),XW(n.g,e)),c}(Yx(n,149));if(CO(n,229))return function(n){var t,e,i;return i=cun(n),!Sj(n.c)&&(OZ(i,"knownLayouters",e=new Sl),t=new Pg(e),XW(n.c,t)),i}(Yx(n,229));if(CO(n,23))return function(n){var t,e,i;return i=cun(n),null!=n.e&&ND(i,dxn,n.e),!!n.k&&ND(i,"type",d$(n.k)),!Sj(n.j)&&(e=new Sl,OZ(i,VNn,e),t=new Ig(e),XW(n.j,t)),i}(Yx(n,23));throw hp(new Qm(axn+Gun(new ay(x4(Gy(UKn,1),iEn,1,5,[n])))))}function Gon(n,t,e,i){var r,c;if(t.k==(bon(),Bzn))for(c=new $K(bA(u7(t).a.Kc(),new h));Vfn(c);)if((r=Yx(kV(c),17)).c.i.k==Bzn&&n.c.a[r.c.i.c.p]==i&&n.c.a[t.c.p]==e)return!0;return!1}function zon(n,t,e,i){var r;this.b=i,this.e=n==(l0(),z3n),r=t[e],this.d=fR(Vot,[TEn,wSn],[177,25],16,[r.length,r.length],2),this.a=fR(Wot,[TEn,MTn],[48,25],15,[r.length,r.length],2),this.c=new $an(t,e)}function Uon(n){var t,e,i;for(n.k=new Cz((Ikn(),x4(Gy(trt,1),lIn,61,0,[Hit,Tit,Eit,Bit,qit])).length,n.j.c.length),i=new pb(n.j);i.a=e)return nsn(n,t,i.p),!0;return!1}function Qon(n){var t;return 0!=(64&n.Db)?yon(n):(t=new SA(wNn),!n.a||yI(yI((t.a+=' "',t),n.a),'"'),yI(tj(yI(tj(yI(tj(yI(tj((t.a+=" (",t),n.i),","),n.j)," | "),n.g),","),n.f),")"),t.a)}function Yon(n,t,e){var i,r,c,a,u;for(u=dwn(n.e.Tg(),t),r=Yx(n.g,119),i=0,a=0;a0&&esn(n,c,e));t.p=0}function isn(n){var t;this.c=new ME,this.f=n.e,this.e=n.d,this.i=n.g,this.d=n.c,this.b=n.b,this.k=n.j,this.a=n.a,n.i?this.j=n.i:this.j=new cx(t=Yx(Ak(D7n),9),Yx(eN(t,t.length),9),0),this.g=n.f}function rsn(n,t,e){var i,r,c;if(!(e<=t+2))for(r=(e-t)/2|0,i=0;i=0?n.Bh(r):Ehn(n,i)}else r9(n,e,i)}function osn(n){var t,e;if(e=null,t=!1,CO(n,204)&&(t=!0,e=Yx(n,204).a),t||CO(n,258)&&(t=!0,e=""+Yx(n,258).a),t||CO(n,483)&&(t=!0,e=""+Yx(n,483).a),!t)throw hp(new Gm(ixn));return e}function ssn(n,t){var e,i;if(n.f){for(;t.Ob();)if(CO(i=(e=Yx(t.Pb(),72)).ak(),99)&&0!=(Yx(i,18).Bb&MNn)&&(!n.e||i.Gj()!=Vrt||0!=i.aj())&&null!=e.dd())return t.Ub(),!0;return!1}return t.Ob()}function hsn(n,t){var e,i;if(n.f){for(;t.Sb();)if(CO(i=(e=Yx(t.Ub(),72)).ak(),99)&&0!=(Yx(i,18).Bb&MNn)&&(!n.e||i.Gj()!=Vrt||0!=i.aj())&&null!=e.dd())return t.Pb(),!0;return!1}return t.Sb()}function fsn(n,t,e){var i,r,c,a,u,o;for(o=dwn(n.e.Tg(),t),i=0,u=n.i,r=Yx(n.g,119),a=0;a=(r/2|0))for(this.e=i?i.c:null,this.d=r;e++0;)WG(this);this.b=t,this.a=null}function Esn(n,t){var e,i;t.a?function(n,t){var e;if(!uF(n.b,t.b))throw hp(new Ym("Invalid hitboxes for scanline constraint calculation."));(C4(t.b,Yx(function(n,t){return $k(Rnn(n.a,t,!0))}(n.b,t.b),57))||C4(t.b,Yx(function(n,t){return $k(Dnn(n.a,t,!0))}(n.b,t.b),57)))&&(oE(),t.b),n.a[t.b.f]=Yx(BN(n.b,t.b),57),(e=Yx(FN(n.b,t.b),57))&&(n.a[e.f]=t.b)}(n,t):(!!(e=Yx(BN(n.b,t.b),57))&&e==n.a[t.b.f]&&!!e.a&&e.a!=t.b.a&&e.c.Fc(t.b),!!(i=Yx(FN(n.b,t.b),57))&&n.a[i.f]==t.b&&!!i.a&&i.a!=t.b.a&&t.b.c.Fc(i),RA(n.b,t.b))}function Tsn(n,t){var e,i;if(e=Yx(GB(n.b,t),124),Yx(Yx(_V(n.r,t),21),84).dc())return e.n.b=0,void(e.n.c=0);e.n.b=n.C.b,e.n.c=n.C.c,n.A.Hc((Ann(),nrt))&&Xdn(n,t),i=function(n,t){var e,i,r;for(r=0,i=Yx(Yx(_V(n.r,t),21),84).Kc();i.Ob();)r+=(e=Yx(i.Pb(),111)).d.b+e.b.rf().a+e.d.c,i.Ob()&&(r+=n.w);return r}(n,t),hdn(n,t)==(Ytn(),eit)&&(i+=2*n.w),e.a.a=i}function Msn(n,t){var e,i;if(e=Yx(GB(n.b,t),124),Yx(Yx(_V(n.r,t),21),84).dc())return e.n.d=0,void(e.n.a=0);e.n.d=n.C.d,e.n.a=n.C.a,n.A.Hc((Ann(),nrt))&&Wdn(n,t),i=function(n,t){var e,i,r;for(r=0,i=Yx(Yx(_V(n.r,t),21),84).Kc();i.Ob();)r+=(e=Yx(i.Pb(),111)).d.d+e.b.rf().b+e.d.a,i.Ob()&&(r+=n.w);return r}(n,t),hdn(n,t)==(Ytn(),eit)&&(i+=2*n.w),e.a.b=i}function Ssn(n,t){var e,i,r,c;for(c=new ip,i=new pb(t);i.a=0&&_N(n.substr(u,2),"//")?(o=Btn(n,u+=2,Wct,Vct),i=n.substr(u,o-u),u=o):null==f||u!=n.length&&(Lz(u,n.length),47==n.charCodeAt(u))||(a=!1,-1==(o=NA(n,gun(35),u))&&(o=n.length),i=n.substr(u,o-u),u=o);if(!e&&u0&&58==XB(h,h.length-1)&&(r=h,u=o)),u0&&(Lz(0,e.length),47!=e.charCodeAt(0))))throw hp(new Qm("invalid opaquePart: "+e));if(n&&(null==t||!fE(Rct,t.toLowerCase()))&&null!=e&&$7(e,Wct,Vct))throw hp(new Qm(EDn+e));if(n&&null!=t&&fE(Rct,t.toLowerCase())&&!function(n){if(null!=n&&n.length>0&&33==XB(n,n.length-1))try{return null==xsn(l$(n,0,n.length-1)).e}catch(n){if(!CO(n=j4(n),32))throw hp(n)}return!1}(e))throw hp(new Qm(EDn+e));if(!function(n){var t;return null==n||(t=n.length)>0&&(Lz(t-1,n.length),58==n.charCodeAt(t-1))&&!$7(n,Wct,Vct)}(i))throw hp(new Qm("invalid device: "+i));if(!function(n){var t,e;if(null==n)return!1;for(t=0,e=n.length;te.a&&(i.Hc((dan(),ont))?r=(t.a-e.a)/2:i.Hc(hnt)&&(r=t.a-e.a)),t.b>e.b&&(i.Hc((dan(),lnt))?c=(t.b-e.b)/2:i.Hc(fnt)&&(c=t.b-e.b)),Pun(n,r,c)}function Gsn(n,t,e,i,r,c,a,u,o,s,h,f,l){CO(n.Cb,88)&&rhn(bV(Yx(n.Cb,88)),4),E2(n,e),n.f=a,D9(n,u),K9(n,o),x9(n,s),R9(n,h),l9(n,f),H9(n,l),s9(n,!0),_1(n,r),n.ok(c),a8(n,t),null!=i&&(n.i=null,J0(n,i))}function zsn(n){var t,e;if(n.f){for(;n.n>0;){if(CO(e=(t=Yx(n.k.Xb(n.n-1),72)).ak(),99)&&0!=(Yx(e,18).Bb&MNn)&&(!n.e||e.Gj()!=Vrt||0!=e.aj())&&null!=t.dd())return!0;--n.n}return!1}return n.n>0}function Usn(n,t,e){if(n<0)return ngn(eEn,x4(Gy(UKn,1),iEn,1,5,[e,d9(n)]));if(t<0)throw hp(new Qm(rEn+t));return ngn("%s (%s) must not be greater than size (%s)",x4(Gy(UKn,1),iEn,1,5,[e,d9(n),d9(t)]))}function Xsn(n,t,e,i,r,c){var a,u,o;if(i-e<7)!function(n,t,e,i){var r,c,a;for(r=t+1;rt&&i.ue(n[c-1],n[c])>0;--c)a=n[c],DF(n,c,n[c-1]),DF(n,c-1,a)}(t,e,i,c);else if(Xsn(t,n,u=e+r,o=u+((a=i+r)-u>>1),-r,c),Xsn(t,n,o,a,-r,c),c.ue(n[o-1],n[o])<=0)for(;e=i||t=0?n.sh(c,e):pbn(n,r,e)}else E7(n,i,r,e)}function Qsn(n){var t,e,i,r,c;if(e=Yx(n,49).qh())try{if(i=null,(t=Hln((mT(),aat),spn(null==(c=e).e?c:(!c.c&&(c.c=new xdn(0!=(256&c.f),c.i,c.a,c.d,0!=(16&c.f),c.j,c.g,null)),c.c))))&&(r=t.rh())&&(i=r.Wk(function(n){return vB(n),n}(e.e))),i&&i!=n)return Qsn(i)}catch(c){if(!CO(c=j4(c),60))throw hp(c)}return n}function Ysn(n,t,e){var i,r,c,a;if(a=null==t?0:n.b.se(t),0==(r=null==(i=n.a.get(a))?new Array:i).length)n.a.set(a,r);else if(c=q6(n,t,r))return c.ed(e);return DF(r,r.length,new zT(t,e)),++n.c,gq(n.b),null}function Jsn(n,t){var e;return _U(n.a),q_(n.a,(p2(),h6n),h6n),q_(n.a,f6n,f6n),oR(e=new fX,f6n,(m7(),g6n)),iI(jln(t,(_rn(),F6n)))!==iI((I6(),E6n))&&oR(e,f6n,w6n),oR(e,f6n,d6n),aC(n.a,e),Zmn(n.a,t)}function Zsn(n){if(!n)return yy(),M_n;var t=n.valueOf?n.valueOf():n;if(t!==n){var i=S_n[typeof t];return i?i(t):Z6(typeof t)}return n instanceof Array||n instanceof e.Array?new jl(n):new Ml(n)}function nhn(n,t,i){var r,c,a;switch(a=n.o,(c=(r=Yx(GB(n.p,i),244)).i).b=Rhn(r),c.a=Dhn(r),c.b=e.Math.max(c.b,a.a),c.b>a.a&&!t&&(c.b=a.a),c.c=-(c.b-a.a)/2,i.g){case 1:c.d=-c.a;break;case 3:c.d=a.b}cvn(r),hvn(r)}function thn(n,t,i){var r,c,a;switch(a=n.o,(c=(r=Yx(GB(n.p,i),244)).i).b=Rhn(r),c.a=Dhn(r),c.a=e.Math.max(c.a,a.b),c.a>a.b&&!t&&(c.a=a.b),c.d=-(c.a-a.b)/2,i.g){case 4:c.c=-c.b;break;case 2:c.c=a.a}cvn(r),hvn(r)}function ehn(n,t){var e,i,r,c;if(udn(),t.b<2)return!1;for(i=e=Yx(IX(c=Ztn(t,0)),8);c.b!=c.d.c;){if(r=Yx(IX(c),8),!s3(n,i)||!s3(n,r))return!1;i=r}return!(!s3(n,i)||!s3(n,e))}function ihn(n,t){var e,i,r,c,a;return e=q1(a=n,"x"),function(n,t){L1(n,null==t||ex((vB(t),t))||isNaN((vB(t),t))?0:(vB(t),t))}(new lg(t).a,e),i=q1(a,"y"),function(n,t){N1(n,null==t||ex((vB(t),t))||isNaN((vB(t),t))?0:(vB(t),t))}(new bg(t).a,i),r=q1(a,qNn),function(n,t){$1(n,null==t||ex((vB(t),t))||isNaN((vB(t),t))?0:(vB(t),t))}(new wg(t).a,r),c=q1(a,HNn),function(n,t){A1(n,null==t||ex((vB(t),t))||isNaN((vB(t),t))?0:(vB(t),t))}(new dg(t).a,c),c}function rhn(n,t){Gdn(n,t),0!=(1&n.b)&&(n.a.a=null),0!=(2&n.b)&&(n.a.f=null),0!=(4&n.b)&&(n.a.g=null,n.a.i=null),0!=(16&n.b)&&(n.a.d=null,n.a.e=null),0!=(8&n.b)&&(n.a.b=null),0!=(32&n.b)&&(n.a.j=null,n.a.c=null)}function chn(n){var t,e,i,r,c;if(null==n)return aEn;for(c=new J3(tEn,"[","]"),i=0,r=(e=n).length;i0)for(a=n.c.d,r=KO(yN(new QS((u=n.d.d).a,u.b),a),1/(i+1)),c=new QS(a.a,a.b),e=new pb(n.a);e.a($z(c+1,t.c.length),Yx(t.c[c+1],19)).a-i&&++u,eD(r,($z(c+u,t.c.length),Yx(t.c[c+u],19))),a+=($z(c+u,t.c.length),Yx(t.c[c+u],19)).a-i,++e;e=0?n._g(e,!0,!0):tfn(n,r,!0),153),Yx(i,215).ol(t)}function Thn(n){var t,i;return n>-0x800000000000&&n<0x800000000000?0==n?0:((t=n<0)&&(n=-n),i=oG(e.Math.floor(e.Math.log(n)/.6931471805599453)),(!t||n!=e.Math.pow(2,i))&&++i,i):h4(D3(n))}function Mhn(n,t){var e,i,r;return o4(i=new rin(n),t),b5(i,(Ojn(),sQn),t),b5(i,(gjn(),g0n),(Ran(),oit)),b5(i,xZn,(qen(),G7n)),Al(i,(bon(),_zn)),ZG(e=new Ion,i),whn(e,(Ikn(),qit)),ZG(r=new Ion,i),whn(r,Eit),i}function Shn(n){switch(n.g){case 0:return new zm((l0(),G3n));case 1:return new bf;case 2:return new yf;default:throw hp(new Qm("No implementation is available for the crossing minimizer "+(null!=n.f?n.f:""+n.g)))}}function Phn(n,t){var e,i,r,c;for(n.c[t.p]=!0,eD(n.a,t),c=new pb(t.j);c.a=(c=a.gc()))a.$b();else for(r=a.Kc(),i=0;i0&&(a+=e,++t);t>1&&(a+=n.c*(t-1))}else a=By(F2(lH(hH(X_(n.a),new Mn),new Sn)));return a>0?a+n.n.d+n.n.a:0}function Rhn(n){var t,e,i,r,c,a;if(a=0,0==n.b)a=By(F2(lH(hH(X_(n.a),new En),new Tn)));else{for(t=0,r=0,c=(i=vin(n,!0)).length;r0&&(a+=e,++t);t>1&&(a+=n.c*(t-1))}return a>0?a+n.n.b+n.n.c:0}function Khn(n){var t,e;return(e=new Ay).a+="e_",null!=(t=function(n){return 0!=n.b.c.length&&Yx(TR(n.b,0),70).a?Yx(TR(n.b,0),70).a:IH(n)}(n))&&(e.a+=""+t),n.c&&n.d&&(yI((e.a+=" ",e),krn(n.c)),yI(mI((e.a+="[",e),n.c.i),"]"),yI((e.a+=pIn,e),krn(n.d)),yI(mI((e.a+="[",e),n.d.i),"]")),e.a}function _hn(n){switch(n.g){case 0:return new df;case 1:return new gf;case 2:return new wf;case 3:return new pf;default:throw hp(new Qm("No implementation is available for the layout phase "+(null!=n.f?n.f:""+n.g)))}}function Fhn(n,t,i,r,c){var a;switch(a=0,c.g){case 1:a=e.Math.max(0,t.b+n.b-(i.b+r));break;case 3:a=e.Math.max(0,-n.b-r);break;case 2:a=e.Math.max(0,-n.a-r);break;case 4:a=e.Math.max(0,t.a+n.a-(i.a+r))}return a}function Bhn(n){var t,e;switch(n.b){case-1:return!0;case 0:return(e=n.t)>1||-1==e||(t=fcn(n))&&(TT(),t.Cj()==KDn)?(n.b=-1,!0):(n.b=1,!1);default:return!1}}function Hhn(n,t){var e,i,r,c;if(kjn(n),0!=n.c||123!=n.a)throw hp(new wy(Kjn((GC(),Hxn))));if(c=112==t,i=n.d,(e=b$(n.i,125,i))<0)throw hp(new wy(Kjn((GC(),qxn))));return r=l$(n.i,i,e),n.d=e+1,bY(r,c,512==(512&n.e))}function qhn(n,t,e,i,r){var c,a,u,o;return iI(o=nL(n,Yx(r,56)))!==iI(r)?(u=Yx(n.g[e],72),_O(n,e,zan(n,0,c=VX(t,o))),gC(n.e)&&(Pan(a=Kq(n,9,c.ak(),r,o,i,!1),new yJ(n.e,9,n.c,u,c,i,!1)),vJ(a)),o):r}function Ghn(n,t){var e,i;try{return function(n,t){var e;return T$(!!(e=(vB(n),n).g)),vB(t),e(t)}(n.a,t)}catch(r){if(CO(r=j4(r),32)){try{if(i=ipn(t,nTn,Yjn),e=Ak(n.a),i>=0&&i=0?n._g(e,!0,!0):tfn(n,r,!0),153),Yx(i,215).ll(t);throw hp(new Qm(mNn+t.ne()+jNn))}function Uhn(n,t){var e,i,r;if(r=0,(i=t[0])>=n.length)return-1;for(Lz(i,n.length),e=n.charCodeAt(i);e>=48&&e<=57&&(r=10*r+(e-48),!(++i>=n.length));)Lz(i,n.length),e=n.charCodeAt(i);return i>t[0]?t[0]=i:r=-1,r}function Xhn(n,t,e){var i,r,c,a;c=n.c,a=n.d,r=($5(x4(Gy(B7n,1),TEn,8,0,[c.i.n,c.n,c.a])).b+$5(x4(Gy(B7n,1),TEn,8,0,[a.i.n,a.n,a.a])).b)/2,i=c.j==(Ikn(),Eit)?new QS(t+c.i.c.c.a+e,r):new QS(t-e,r),A$(n.a,0,i)}function Whn(n){var t,e,i;for(t=null,e=W_(n0(x4(Gy(QKn,1),iEn,20,0,[(!n.b&&(n.b=new AN(Zrt,n,4,7)),n.b),(!n.c&&(n.c=new AN(Zrt,n,5,8)),n.c)])));Vfn(e);)if(i=iun(Yx(kV(e),82)),t){if(t!=i)return!1}else t=i;return!0}function Vhn(n,t,e){var i;if(++n.j,t>=n.i)throw hp(new Hm(jxn+t+Exn+n.i));if(e>=n.i)throw hp(new Hm(Txn+e+Exn+n.i));return i=n.g[e],t!=e&&(t>16)>>16&16),e+=t=(n>>=t)-256>>16&8,e+=t=(n<<=t)-nMn>>16&4,(e+=t=(n<<=t)-MEn>>16&2)+2-(t=(i=(n<<=t)>>14)&~(i>>1)))}function Jhn(n){var t,e,i,r;for(UH(),Fqn=new ip,_qn=new rp,Kqn=new ip,!n.a&&(n.a=new m_(uct,n,10,11)),function(n){var t,e,i,r,c,a,u,o,s,f;for(t=new rp,a=new UO(n);a.e!=a.i.gc();){for(c=Yx(hen(a),33),e=new Qp,xB(_qn,c,e),f=new ut,i=Yx(kW(new SR(null,new nF(new $K(bA(fbn(c).a.Kc(),new h)))),iK(f,mY(new H,new B,new rn,x4(Gy(wBn,1),XEn,132,0,[(C6(),aBn)])))),83),i0(e,Yx(i.xc((TA(),!0)),14),new ot),r=Yx(kW(hH(Yx(i.xc(!1),15).Lc(),new st),mY(new H,new B,new rn,x4(Gy(wBn,1),XEn,132,0,[aBn]))),15).Kc();r.Ob();)(s=_un(Yx(r.Pb(),79)))&&((u=Yx(eI(Dq(t.f,s)),21))||(u=Awn(s),Ysn(t.f,s,u)),C2(e,u));for(i=Yx(kW(new SR(null,new nF(new $K(bA(lbn(c).a.Kc(),new h)))),iK(f,mY(new H,new B,new rn,x4(Gy(wBn,1),XEn,132,0,[aBn])))),83),i0(e,Yx(i.xc(!0),14),new ht),o=Yx(kW(hH(Yx(i.xc(!1),15).Lc(),new ft),mY(new H,new B,new rn,x4(Gy(wBn,1),XEn,132,0,[aBn]))),15).Kc();o.Ob();)(s=Fun(Yx(o.Pb(),79)))&&((u=Yx(eI(Dq(t.f,s)),21))||(u=Awn(s),Ysn(t.f,s,u)),C2(e,u))}}(t=n.a),r=new UO(t);r.e!=r.i.gc();)i=Yx(hen(r),33),-1==hJ(Fqn,i,0)&&(e=new ip,eD(Kqn,e),$tn(i,e));return Kqn}function Zhn(n,t){var i,r,c,a,u,o,s,h;for(h=ty(fL(Aun(t,(gjn(),W0n)))),s=n[0].n.a+n[0].o.a+n[0].d.c+h,o=1;o0?1:QI(isNaN(r),isNaN(0)))>=0^(o0(UAn),(e.Math.abs(o)<=UAn||0==o||isNaN(o)&&isNaN(0)?0:o<0?-1:o>0?1:QI(isNaN(o),isNaN(0)))>=0)?e.Math.max(o,r):(o0(UAn),(e.Math.abs(r)<=UAn||0==r||isNaN(r)&&isNaN(0)?0:r<0?-1:r>0?1:QI(isNaN(r),isNaN(0)))>0?e.Math.sqrt(o*o+r*r):-e.Math.sqrt(o*o+r*r))}(a=r.b,u=c.b))>=0?i:(o=fB(yN(new QS(u.c+u.b/2,u.d+u.a/2),new QS(a.c+a.b/2,a.d+a.a/2))),-(Ppn(a,u)-1)*o)}function tfn(n,t,e){var i,r,c;if(c=iyn((wsn(),wut),n.Tg(),t))return TT(),Yx(c,66).Oj()||(c=Bz(PJ(wut,c))),r=Yx((i=n.Yg(c))>=0?n._g(i,!0,!0):tfn(n,c,!0),153),Yx(r,215).hl(t,e);throw hp(new Qm(mNn+t.ne()+jNn))}function efn(n,t,e,i){var r,c,a,u,o;if(r=n.d[t])if(c=r.g,o=r.i,null!=i){for(u=0;u>5),15,1))[e]=1<1;t>>=1)0!=(1&t)&&(i=uZ(i,e)),e=1==e.d?uZ(e,e):new Mtn(fpn(e.a,e.d,VQ(Wot,MTn,25,e.d<<1,15,1)));return uZ(i,e)}(n,t)}function rfn(n){var t,e,i;for(WE(),this.b=szn,this.c=(t9(),tet),this.f=(XE(),czn),this.a=n,Yy(this,new It),qbn(this),i=new pb(n.b);i.a=null.jm()?(abn(n),ufn(n)):t.Ob()}function ofn(n,t,i){var r,c,a,u;if(!(u=i)&&(u=xD(new am,0)),run(u,rIn,1),$yn(n.c,t),1==(a=function(n,t){var e,i,r,c,a,u,o,s,h,f,l,b;if(n.c=n.d,l=null==(b=hL(Aun(t,(gjn(),C0n))))||(vB(b),b),c=Yx(Aun(t,(Ojn(),bQn)),21).Hc((edn(),SVn)),e=!((r=Yx(Aun(t,g0n),98))==(Ran(),uit)||r==sit||r==oit),!l||!e&&c)f=new ay(x4(Gy(Dzn,1),bIn,37,0,[t]));else{for(h=new pb(t.a);h.at.a&&(i.Hc((dan(),ont))?n.c.a+=(e.a-t.a)/2:i.Hc(hnt)&&(n.c.a+=e.a-t.a)),e.b>t.b&&(i.Hc((dan(),lnt))?n.c.b+=(e.b-t.b)/2:i.Hc(fnt)&&(n.c.b+=e.b-t.b)),Yx(Aun(n,(Ojn(),bQn)),21).Hc((edn(),SVn))&&(e.a>t.a||e.b>t.b))for(u=new pb(n.a);u.a0?G7(e):O9(G7(e)),Aen(t,k0n,r)}function mfn(n,t){var e,i,r,c,a;for(a=n.j,t.a!=t.b&&JC(a,new Ur),r=a.c.length/2|0,i=0;i=0;)i=e[c],a.rl(i.ak())&&fY(r,i);!Xkn(n,r)&&gC(n.e)&&Xp(n,t.$j()?Kq(n,6,t,(XH(),TFn),null,-1,!1):Kq(n,t.Kj()?2:1,t,null,null,-1,!1))}function jfn(){var n,t;for(jfn=O,kFn=VQ(EFn,TEn,91,32,0,1),jFn=VQ(EFn,TEn,91,32,0,1),n=1,t=0;t<=18;t++)kFn[t]=Utn(n),jFn[t]=Utn(GK(n,t)),n=e7(n,5);for(;tc)||t.q&&(c=(i=t.C).c.c.a-i.o.a/2,i.n.a-e>c)))}function Tfn(n){var t,e,i,r,c,a;for(lz(),e=new bW,i=new pb(n.e.b);i.a1?n.e*=ty(n.a):n.f/=ty(n.a),function(n){var t,e;for(t=n.b.a.a.ec().Kc();t.Ob();)e=new nbn(Yx(t.Pb(),561),n.e,n.f),eD(n.g,e)}(n),gtn(n),function(n){var t,i,r,c,a,u,o,s,h,f;for(i=function(n){var t,i,r,c,a,u,o,s,h,f;for(i=n.o,t=n.p,u=Yjn,c=nTn,o=Yjn,a=nTn,h=0;h=0?n.Qg(null):n.eh().ih(n,-1-t,null,null),n.Rg(Yx(r,49),e),i&&i.Fi(),n.Lg()&&n.Mg()&&e>-1&&K3(n,new p_(n,9,e,c,r)),r):c}function Hfn(n){var t,e,i,r,c,a,u;for(c=0,r=n.f.e,e=0;e>5)>=n.d)return n.e<0;if(e=n.a[r],t=1<<(31&t),n.e<0){if(r<(i=r3(n)))return!1;e=i==r?-e:~e}return 0!=(e&t)}function Xfn(n,t){var e,i,r,c,a,u,o;if(c=t.e)for(e=Bfn(c),i=Yx(n.g,674),a=0;a>16)),15).Xc(c))>t,c=n.m>>t|e<<22-t,r=n.l>>t|n.m<<22-t):t<44?(a=i?HTn:0,c=e>>t-22,r=n.m>>t-22|e<<44-t):(a=i?HTn:0,c=i?BTn:0,r=e>>t-44),rO(r&BTn,c&BTn,a&HTn)}function eln(n){var t,i,r,c,a,u;for(this.c=new ip,this.d=n,r=JTn,c=JTn,t=ZTn,i=ZTn,u=Ztn(n,0);u.b!=u.d.c;)a=Yx(IX(u),8),r=e.Math.min(r,a.a),c=e.Math.min(c,a.b),t=e.Math.max(t,a.a),i=e.Math.max(i,a.b);this.a=new mH(r,c,t-r,i-c)}function iln(n,t){var e,i,r,c;for(i=new pb(n.b);i.a0&&CO(t,42)&&(n.a.qj(),c=null==(o=(s=Yx(t,42)).cd())?0:W5(o),a=KL(n.a,c),e=n.a.d[a]))for(i=Yx(e.g,367),h=e.i,u=0;u=2)for(t=fL((i=c.Kc()).Pb());i.Ob();)a=t,t=fL(i.Pb()),r=e.Math.min(r,(vB(t),t-(vB(a),a)));return r}function gln(n,t){var e,i,r,c,a;VW(i=new ME,t,i.c.b,i.c);do{for(S$(0!=i.b),e=Yx(VZ(i,i.a.a),86),n.b[e.g]=1,c=Ztn(e.d,0);c.b!=c.d.c;)a=(r=Yx(IX(c),188)).c,1==n.b[a.g]?KD(n.a,r):2==n.b[a.g]?n.b[a.g]=1:VW(i,a,i.c.b,i.c)}while(0!=i.b)}function pln(n,t){var e,i,r;if(iI(t)===iI(MF(n)))return!0;if(!CO(t,15))return!1;if(i=Yx(t,15),(r=n.gc())!=i.gc())return!1;if(CO(i,54)){for(e=0;e0&&(r=e),a=new pb(n.f.e);a.a0&&c0):c<0&&-c0)}function Oln(n,t,e,i){var r,c,a,u,o,s;for(r=(t-n.d)/n.c.c.length,c=0,n.a+=e,n.d=t,s=new pb(n.c);s.a=0;t-=2)for(e=0;e<=t;e+=2)(n.b[e]>n.b[e+2]||n.b[e]===n.b[e+2]&&n.b[e+1]>n.b[e+3])&&(i=n.b[e+2],n.b[e+2]=n.b[e],n.b[e]=i,i=n.b[e+3],n.b[e+3]=n.b[e+1],n.b[e+1]=i);n.c=!0}}function Dln(n,t){var e,i,r,c,a,u;for(c=(1==t?ozn:uzn).a.ec().Kc();c.Ob();)for(r=Yx(c.Pb(),103),u=Yx(_V(n.f.c,r),21).Kc();u.Ob();)switch(a=Yx(u.Pb(),46),i=Yx(a.b,81),e=Yx(a.a,189).c,r.g){case 2:case 1:i.g.d+=e;break;case 4:case 3:i.g.c+=e}}function Rln(n,t){var e,i,r,c,a,u,o,s,h;for(s=-1,h=0,u=0,o=(a=n).length;u0&&++h;++s}return h}function Kln(n){var t;return(t=new SA(Nk(n.gm))).a+="@",yI(t,(W5(n)>>>0).toString(16)),n.kh()?(t.a+=" (eProxyURI: ",mI(t,n.qh()),n.$g()&&(t.a+=" eClass: ",mI(t,n.$g())),t.a+=")"):n.$g()&&(t.a+=" (eClass: ",mI(t,n.$g()),t.a+=")"),t.a}function _ln(n){var t,e,i;if(n.e)throw hp(new Ym((sL(OBn),UMn+OBn.k+XMn)));for(n.d==(t9(),tet)&&ekn(n,Ztt),e=new pb(n.a.a);e.a=0)return r;for(c=1,a=new pb(t.j);a.a0&&t.ue(($z(r-1,n.c.length),Yx(n.c[r-1],10)),c)>0;)QW(n,r,($z(r-1,n.c.length),Yx(n.c[r-1],10))),--r;$z(r,n.c.length),n.c[r]=c}e.a=new rp,e.b=new rp}function zln(n,t,e){var i;if(2==(n.c-n.b&n.a.length-1))t==(Ikn(),Tit)||t==Eit?(qZ(Yx(T5(n),15),(Frn(),Ret)),qZ(Yx(T5(n),15),Ket)):(qZ(Yx(T5(n),15),(Frn(),Ket)),qZ(Yx(T5(n),15),Ret));else for(i=new VB(n);i.a!=i.b;)qZ(Yx(w8(i),15),e)}function Uln(n,t){var e,i,r,c,a,u;for(a=new JU(i=Jx(new $g(n)),i.c.length),u=new JU(r=Jx(new $g(t)),r.c.length),c=null;a.b>0&&u.b>0&&(S$(a.b>0),e=Yx(a.a.Xb(a.c=--a.b),33),S$(u.b>0),e==Yx(u.a.Xb(u.c=--u.b),33));)c=e;return c}function Xln(n,t){var i,r,c,a;return c=n.a*kMn+1502*n.b,a=n.b*kMn+11,c+=i=e.Math.floor(a*jMn),a-=i*EMn,c%=EMn,n.a=c,n.b=a,t<=24?e.Math.floor(n.a*GFn[t]):((r=n.a*(1<=2147483648&&(r-=oMn),r)}function Wln(n,t,e){var i,r,c,a;Wz(n,t)>Wz(n,e)?(i=i7(e,(Ikn(),Eit)),n.d=i.dc()?0:tR(Yx(i.Xb(0),11)),a=i7(t,qit),n.b=a.dc()?0:tR(Yx(a.Xb(0),11))):(r=i7(e,(Ikn(),qit)),n.d=r.dc()?0:tR(Yx(r.Xb(0),11)),c=i7(t,Eit),n.b=c.dc()?0:tR(Yx(c.Xb(0),11)))}function Vln(n){var t,e,i,r,c,a,u;if(n&&(t=n.Hh(hRn))&&null!=(a=lL(ynn((!t.b&&(t.b=new z$((xjn(),Dat),out,t)),t.b),"conversionDelegates")))){for(u=new ip,r=0,c=(i=Ogn(a,"\\w+")).length;r>1,n.k=i-1>>1}(this,this.d,this.c),function(n){var t,e,i,r,c,a,u;for(e=_C(n.e),c=KO(N$(dO(KC(n.e)),n.d*n.a,n.c*n.b),-.5),t=e.a-c.a,r=e.b-c.b,u=0;u0&&tyn(this,c)}function tbn(n,t,e,i,r,c){var a,u,o;if(!r[t.b]){for(r[t.b]=!0,!(a=i)&&(a=new XV),eD(a.e,t),o=c[t.b].Kc();o.Ob();)(u=Yx(o.Pb(),282)).d!=e&&u.c!=e&&(u.c!=t&&tbn(n,u.c,t,a,r,c),u.d!=t&&tbn(n,u.d,t,a,r,c),eD(a.c,u),S4(a.d,u.b));return a}return null}function ebn(n){var t,e,i;for(t=0,e=new pb(n.e);e.a=2}function ibn(n){var t,e;try{return null==n?aEn:I7(n)}catch(i){if(CO(i=j4(i),102))return t=i,e=Nk(V5(n))+"@"+(oE(),(Nen(n)>>>0).toString(16)),Ltn(O4(),(_E(),"Exception during lenientFormat for "+e),t),"<"+e+" threw "+Nk(t.gm)+">";throw hp(i)}}function rbn(n){switch(n.g){case 0:return new af;case 1:return new nf;case 2:return new cT;case 3:return new Cc;case 4:return new lN;case 5:return new uf;default:throw hp(new Qm("No implementation is available for the layerer "+(null!=n.f?n.f:""+n.g)))}}function cbn(n,t,e){var i,r,c;for(c=new pb(n.t);c.a0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&KD(t,i.b));for(r=new pb(n.i);r.a0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&KD(e,i.a))}function abn(n){var t,e,i;if(null==n.g&&(n.d=n.si(n.f),fY(n,n.d),n.c))return n.f;if(i=(t=Yx(n.g[n.i-1],47)).Pb(),n.e=t,(e=n.si(i)).Ob())n.d=e,fY(n,e);else for(n.d=null;!t.Ob()&&(DF(n.g,--n.i,null),0!=n.i);)t=Yx(n.g[n.i-1],47);return i}function ubn(n,t,i,r){var c,a,u;for(Al(c=new rin(n),(bon(),Fzn)),b5(c,(Ojn(),CQn),t),b5(c,BQn,r),b5(c,(gjn(),g0n),(Ran(),oit)),b5(c,TQn,t.c),b5(c,MQn,t.d),Bwn(t,c),u=e.Math.floor(i/2),a=new pb(c.j);a.a=0?n._g(i,!0,!0):tfn(n,c,!0),153),Yx(r,215).ml(t,e)}function vbn(n,t,e){run(e,"Eades radial",1),e.n&&t&&nU(e,RU(t),(P6(),jrt)),n.d=Yx(jln(t,(eL(),s6n)),33),n.c=ty(fL(jln(t,(_rn(),Q6n)))),n.e=Ven(Yx(jln(t,Y6n),293)),n.a=function(n){switch(n.g){case 0:return new Ga;case 1:return new za;default:throw hp(new Qm(y$n+(null!=n.f?n.f:""+n.g)))}}(Yx(jln(t,Z6n),426)),n.b=function(n){switch(n.g){case 1:return new _a;case 2:return new Fa;case 3:return new Ka;case 0:return null;default:throw hp(new Qm(y$n+(null!=n.f?n.f:""+n.g)))}}(Yx(jln(t,U6n),340)),function(n){var t,e,i,r,c;if(i=0,r=wPn,n.b)for(t=0;t<360;t++)e=.017453292519943295*t,qgn(n,n.d,0,0,w$n,e),(c=n.b.ig(n.d))0),c.a.Xb(c.c=--c.b),ZL(c,r),S$(c.b0);e++);if(e>0&&e0);t++);return t>0&&e>16!=6&&t){if(ccn(n,t))throw hp(new Qm(CNn+Mfn(n)));i=null,n.Cb&&(i=(e=n.Db>>16)>=0?Yrn(n,i):n.Cb.ih(n,-1-e,null,i)),t&&(i=men(t,n,6,i)),(i=$L(n,t,i))&&i.Fi()}else 0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,6,t,t))}function Mbn(n,t){var e,i;if(t!=n.Cb||n.Db>>16!=9&&t){if(ccn(n,t))throw hp(new Qm(CNn+ogn(n)));i=null,n.Cb&&(i=(e=n.Db>>16)>=0?Zrn(n,i):n.Cb.ih(n,-1-e,null,i)),t&&(i=men(t,n,9,i)),(i=LL(n,t,i))&&i.Fi()}else 0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,9,t,t))}function Sbn(n,t){var e,i;if(t!=n.Cb||n.Db>>16!=3&&t){if(ccn(n,t))throw hp(new Qm(CNn+bmn(n)));i=null,n.Cb&&(i=(e=n.Db>>16)>=0?ucn(n,i):n.Cb.ih(n,-1-e,null,i)),t&&(i=men(t,n,12,i)),(i=AL(n,t,i))&&i.Fi()}else 0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,3,t,t))}function Pbn(n){var t,e,i,r,c;if(i=fcn(n),null==(c=n.j)&&i)return n.$j()?null:i.zj();if(CO(i,148)){if((e=i.Aj())&&(r=e.Nh())!=n.i){if((t=Yx(i,148)).Ej())try{n.g=r.Kh(t,c)}catch(t){if(!CO(t=j4(t),78))throw hp(t);n.g=null}n.i=r}return n.g}return null}function Ibn(n){var t;return eD(t=new ip,new ZT(new QS(n.c,n.d),new QS(n.c+n.b,n.d))),eD(t,new ZT(new QS(n.c,n.d),new QS(n.c,n.d+n.a))),eD(t,new ZT(new QS(n.c+n.b,n.d+n.a),new QS(n.c+n.b,n.d))),eD(t,new ZT(new QS(n.c+n.b,n.d+n.a),new QS(n.c,n.d+n.a))),t}function Cbn(n,t,e,i){var r,c,a;if(a=Hcn(t,e),i.c[i.c.length]=t,-1==n.j[a.p]||2==n.j[a.p]||n.a[t.p])return i;for(n.j[a.p]=-1,c=new $K(bA(a7(a).a.Kc(),new h));Vfn(c);)if(!ZW(r=Yx(kV(c),17))&&(ZW(r)||r.c.i.c!=r.d.i.c)&&r!=t)return Cbn(n,r,a,i);return i}function Obn(n,t,e){var i,r;for(r=t.a.ec().Kc();r.Ob();)i=Yx(r.Pb(),79),!Yx(BF(n.b,i),266)&&(IG(Kun(i))==IG(Bun(i))?Wwn(n,i,e):Kun(i)==IG(Bun(i))?null==BF(n.c,i)&&null!=BF(n.b,Bun(i))&&Gyn(n,i,e,!1):null==BF(n.d,i)&&null!=BF(n.b,Kun(i))&&Gyn(n,i,e,!0))}function Abn(n,t){var e,i,r,c,a,u,o;for(r=n.Kc();r.Ob();)for(i=Yx(r.Pb(),10),ZG(u=new Ion,i),whn(u,(Ikn(),Eit)),b5(u,(Ojn(),DQn),(TA(),!0)),a=t.Kc();a.Ob();)c=Yx(a.Pb(),10),ZG(o=new Ion,c),whn(o,qit),b5(o,DQn,!0),b5(e=new jq,DQn,!0),YG(e,u),QG(e,o)}function $bn(n,t,e,i){var r,c,a,u;r=Bnn(n,t,e),c=Bnn(n,e,t),a=Yx(BF(n.c,t),112),u=Yx(BF(n.c,e),112),r0&&w.a<=0){o.c=VQ(UKn,iEn,1,0,5,1),o.c[o.c.length]=w;break}(b=w.i-w.d)>=u&&(b>u&&(o.c=VQ(UKn,iEn,1,0,5,1),u=b),o.c[o.c.length]=w)}0!=o.c.length&&(a=Yx(TR(o,Uen(r,o.c.length)),112),fG(m.a,a),a.g=h++,evn(a,t,e,i),o.c=VQ(UKn,iEn,1,0,5,1))}for(g=n.c.length+1,l=new pb(n);l.ai.b.g&&(c.c[c.c.length]=i);return c}function xbn(){xbn=O,Q8n=new FS("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),V8n=new FS("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),J8n=new FS("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),Y8n=new FS("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),Z8n=new FS("WHOLE_DRAWING",4)}function Dbn(n,t){var e,i;if(t!=n.Cb||n.Db>>16!=11&&t){if(ccn(n,t))throw hp(new Qm(CNn+ugn(n)));i=null,n.Cb&&(i=(e=n.Db>>16)>=0?ocn(n,i):n.Cb.ih(n,-1-e,null,i)),t&&(i=men(t,n,10,i)),(i=vN(n,t,i))&&i.Fi()}else 0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,11,t,t))}function Rbn(n,t,e){return udn(),(!s3(n,t)||!s3(n,e))&&(nkn(new QS(n.c,n.d),new QS(n.c+n.b,n.d),t,e)||nkn(new QS(n.c+n.b,n.d),new QS(n.c+n.b,n.d+n.a),t,e)||nkn(new QS(n.c+n.b,n.d+n.a),new QS(n.c,n.d+n.a),t,e)||nkn(new QS(n.c,n.d+n.a),new QS(n.c,n.d),t,e))}function Kbn(n,t){var e,i,r,c;if(!n.dc())for(e=0,i=n.gc();e>16!=7&&t){if(ccn(n,t))throw hp(new Qm(CNn+Qon(n)));i=null,n.Cb&&(i=(e=n.Db>>16)>=0?Jrn(n,i):n.Cb.ih(n,-1-e,null,i)),t&&(i=Yx(t,49).gh(n,1,Yrt,i)),(i=kK(n,t,i))&&i.Fi()}else 0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,7,t,t))}function Wbn(n,t){var e,i;if(t!=n.Cb||n.Db>>16!=3&&t){if(ccn(n,t))throw hp(new Qm(CNn+o9(n)));i=null,n.Cb&&(i=(e=n.Db>>16)>=0?tcn(n,i):n.Cb.ih(n,-1-e,null,i)),t&&(i=Yx(t,49).gh(n,0,ect,i)),(i=jK(n,t,i))&&i.Fi()}else 0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,3,t,t))}function Vbn(n,t){var e,i,r,c,a,u,o,s,h;return jfn(),t.d>n.d&&(u=n,n=t,t=u),t.d<63?function(n,t){var e,i,r,c,a,u,o,s,h;return c=(e=n.d)+(i=t.d),a=n.e!=t.e?-1:1,2==c?(h=WR(o=e7(Gz(n.a[0],uMn),Gz(t.a[0],uMn))),0==(s=WR(UK(o,32)))?new wQ(a,h):new C_(a,2,x4(Gy(Wot,1),MTn,25,15,[h,s]))):(Y8(n.a,e,t.a,i,r=VQ(Wot,MTn,25,c,15,1)),SU(u=new C_(a,c,r)),u)}(n,t):(s=yV(n,a=(-2&n.d)<<4),h=yV(t,a),i=Evn(n,mV(s,a)),r=Evn(t,mV(h,a)),o=Vbn(s,h),e=Vbn(i,r),c=mV(c=Smn(Smn(c=Vbn(Evn(s,i),Evn(r,h)),o),e),a),Smn(Smn(o=mV(o,a<<1),c),e))}function Qbn(n,t,e){var i,r,c,a,u;for(a=V8(n,e),u=VQ(Gzn,kIn,10,t.length,0,1),i=0,c=a.Kc();c.Ob();)ny(hL(Aun(r=Yx(c.Pb(),11),(Ojn(),gQn))))&&(u[i++]=Yx(Aun(r,RQn),10));if(i=0;r+=e?1:-1)c|=t.c.Sf(u,r,e,i&&!ny(hL(Aun(t.j,(Ojn(),lQn))))&&!ny(hL(Aun(t.j,(Ojn(),qQn))))),c|=t.q._f(u,r,e),c|=zdn(n,u[r],e,i);return __(n.c,t),c}function nwn(n,t,e){var i,r,c,a,u,o,s,h;for(s=0,h=(o=tX(n.j)).length;s1&&(n.a=!0),hK(Yx(e.b,65),mN(dO(Yx(t.b,65).c),KO(yN(dO(Yx(e.b,65).a),Yx(t.b,65).a),r))),mz(n,t),iwn(n,e)}function rwn(n){var t,e,i,r,c,a;for(r=new pb(n.a.a);r.a0&&c>0?t++:i>0?e++:c>0?r++:e++}XH(),JC(n.j,new bi)}function awn(n,t){var e,i,r,c,a,u,o,s,h;for(u=t.j,a=t.g,o=Yx(TR(u,u.c.length-1),113),$z(0,u.c.length),s=srn(n,a,o,h=Yx(u.c[0],113)),c=1;cs&&(o=e,h=r,s=i);t.a=h,t.c=o}function uwn(n){if(!n.a.d||!n.a.e)throw hp(new Ym((sL(eHn),eHn.k+" must have a source and target "+(sL(iHn),iHn.k+" specified."))));if(n.a.d==n.a.e)throw hp(new Ym("Network simplex does not support self-loops: "+n.a+" "+n.a.d+" "+n.a.e));return WA(n.a.d.g,n.a),WA(n.a.e.b,n.a),n.a}function own(n,t,e){var i,r,c,a,u,o;if(i=0,0!=t.b&&0!=e.b){c=Ztn(t,0),a=Ztn(e,0),u=ty(fL(IX(c))),o=ty(fL(IX(a))),r=!0;do{if(u>o-n.b&&uo-n.a&&ut.a&&(i.Hc((dan(),ont))?n.c.a+=(e.a-t.a)/2:i.Hc(hnt)&&(n.c.a+=e.a-t.a)),e.b>t.b&&(i.Hc((dan(),lnt))?n.c.b+=(e.b-t.b)/2:i.Hc(fnt)&&(n.c.b+=e.b-t.b)),Yx(Aun(n,(Ojn(),bQn)),21).Hc((edn(),SVn))&&(e.a>t.a||e.b>t.b))for(a=new pb(n.a);a.a0&&++l;++f}return l}function dwn(n,t){var e,i,r,c;return TT(),t?t==(ayn(),Zut)||(t==xut||t==Lut||t==Nut)&&n!=$ut?new ykn(n,t):((e=(i=Yx(t,677)).pk())||(nH(PJ((wsn(),wut),t)),e=i.pk()),!e.i&&(e.i=new rp),!(r=Yx(eI(Dq((c=e.i).f,n)),1942))&&xB(c,n,r=new ykn(n,t)),r):kut}function gwn(n,t){var e,i,r,c,a,u,o,s;for(u=Yx(Aun(n,(Ojn(),CQn)),11),o=$5(x4(Gy(B7n,1),TEn,8,0,[u.i.n,u.n,u.a])).a,s=n.i.n.b,r=0,c=(i=CU(n.e)).length;r0&&(c+=(a=Yx(TR(this.b,0),167)).o,r+=a.p),c*=2,r*=2,t>1?c=oG(e.Math.ceil(c*t)):r=oG(e.Math.ceil(r/t)),this.a=new hnn(c,r)}function Mwn(n,t,i,r,c,a){var u,o,s,h,f,l,b,w,d,g;for(h=r,t.j&&t.o?(d=(b=Yx(BF(n.f,t.A),57)).d.c+b.d.b,--h):d=t.a.c+t.a.b,f=c,i.q&&i.o?(s=(b=Yx(BF(n.f,i.C),57)).d.c,++f):s=i.a.c,w=d+(o=(s-d)/e.Math.max(2,f-h)),l=h;l=0;a+=r?1:-1){for(u=t[a],o=i==(Ikn(),Eit)?r?i7(u,i):I3(i7(u,i)):r?I3(i7(u,i)):i7(u,i),c&&(n.c[u.p]=o.gc()),f=o.Kc();f.Ob();)h=Yx(f.Pb(),11),n.d[h.p]=s++;S4(e,o)}}function Pwn(n,t,e){var i,r,c,a,u,o,s,h;for(c=ty(fL(n.b.Kc().Pb())),s=ty(fL(function(n){var t;if(n){if((t=n).dc())throw hp(new Kp);return t.Xb(t.gc()-1)}return Iz(n.Kc())}(t.b))),i=KO(dO(n.a),s-e),r=KO(dO(t.a),e-c),KO(h=mN(i,r),1/(s-c)),this.a=h,this.b=new ip,u=!0,(a=n.b.Kc()).Pb();a.Ob();)o=ty(fL(a.Pb())),u&&o-e>YAn&&(this.b.Fc(e),u=!1),this.b.Fc(o);u&&this.b.Fc(e)}function Iwn(n){var t,i,r,c;if(function(n,t){var i,r,c,a,u,o,s;for(c=VQ(Wot,MTn,25,n.e.a.c.length,15,1),u=new pb(n.e.a);u.a0){for(oy(n.c);Yfn(n,Yx(Hz(new pb(n.e.a)),121))>5,t&=31,i>=n.d)return n.e<0?(bdn(),lFn):(bdn(),pFn);if(c=n.d-i,function(n,t,e,i,r){var c,a,u;for(c=!0,a=0;a>>r|e[a+i+1]<>>r,++a}}(r=VQ(Wot,MTn,25,c+1,15,1),c,n.a,i,t),n.e<0){for(e=0;e0&&n.a[e]<<32-t!=0){for(e=0;e=0)&&(!(e=iyn((wsn(),wut),r,t))||((i=e.Zj())>1||-1==i)&&3!=TB(PJ(wut,e))))}function Nwn(n,t,e,i){var r,c,a,u,o;return u=iun(Yx(c1((!t.b&&(t.b=new AN(Zrt,t,4,7)),t.b),0),82)),o=iun(Yx(c1((!t.c&&(t.c=new AN(Zrt,t,5,8)),t.c),0),82)),IG(u)==IG(o)||XZ(o,u)?null:(a=EG(t))==e?i:(c=Yx(BF(n.a,a),10))&&(r=c.e)?r:null}function xwn(n,t,e){var i,r,c,a,u;if((c=n[function(n,t){return n?t-1:0}(e,n.length)])[0].k==(bon(),_zn))for(r=Zy(e,c.length),u=t.j,i=0;i>24}(n));break;case 2:n.g=k4(function(n){if(2!=n.p)throw hp(new Lp);return WR(n.f)&fTn}(n));break;case 3:n.g=function(n){if(3!=n.p)throw hp(new Lp);return n.e}(n);break;case 4:n.g=new ib(function(n){if(4!=n.p)throw hp(new Lp);return n.e}(n));break;case 6:n.g=ytn(function(n){if(6!=n.p)throw hp(new Lp);return n.f}(n));break;case 5:n.g=d9(function(n){if(5!=n.p)throw hp(new Lp);return WR(n.f)}(n));break;case 7:n.g=g9(function(n){if(7!=n.p)throw hp(new Lp);return WR(n.f)<<16>>16}(n))}return n.g}function Kwn(n){if(null==n.n)switch(n.p){case 0:n.n=function(n){if(0!=n.p)throw hp(new Lp);return hI(n.k,0)}(n)?(TA(),L_n):(TA(),$_n);break;case 1:n.n=iZ(function(n){if(1!=n.p)throw hp(new Lp);return WR(n.k)<<24>>24}(n));break;case 2:n.n=k4(function(n){if(2!=n.p)throw hp(new Lp);return WR(n.k)&fTn}(n));break;case 3:n.n=function(n){if(3!=n.p)throw hp(new Lp);return n.j}(n);break;case 4:n.n=new ib(function(n){if(4!=n.p)throw hp(new Lp);return n.j}(n));break;case 6:n.n=ytn(function(n){if(6!=n.p)throw hp(new Lp);return n.k}(n));break;case 5:n.n=d9(function(n){if(5!=n.p)throw hp(new Lp);return WR(n.k)}(n));break;case 7:n.n=g9(function(n){if(7!=n.p)throw hp(new Lp);return WR(n.k)<<16>>16}(n))}return n.n}function _wn(n){var t,e,i,r,c,a;for(r=new pb(n.a.a);r.a0&&(i[0]+=n.d,u-=i[0]),i[2]>0&&(i[2]+=n.d,u-=i[2]),a=e.Math.max(0,u),i[1]=e.Math.max(i[1],u),SV(n,cHn,c.c+r.b+i[0]-(i[1]-u)/2,i),t==cHn&&(n.c.b=a,n.c.c=c.c+r.b+(a-u)/2)}function Gwn(){this.c=VQ(Jot,rMn,25,(Ikn(),x4(Gy(trt,1),lIn,61,0,[Hit,Tit,Eit,Bit,qit])).length,15,1),this.b=VQ(Jot,rMn,25,x4(Gy(trt,1),lIn,61,0,[Hit,Tit,Eit,Bit,qit]).length,15,1),this.a=VQ(Jot,rMn,25,x4(Gy(trt,1),lIn,61,0,[Hit,Tit,Eit,Bit,qit]).length,15,1),HT(this.c,JTn),HT(this.b,ZTn),HT(this.a,ZTn)}function zwn(n,t,e){var i,r,c,a;if(t<=e?(r=t,c=e):(r=e,c=t),i=0,null==n.b)n.b=VQ(Wot,MTn,25,2,15,1),n.b[0]=r,n.b[1]=c,n.c=!0;else{if(i=n.b.length,n.b[i-1]+1==r)return void(n.b[i-1]=c);a=VQ(Wot,MTn,25,i+2,15,1),smn(n.b,0,a,0,i),n.b=a,n.b[i-1]>=r&&(n.c=!1,n.a=!1),n.b[i++]=r,n.b[i]=c,n.c||xln(n)}}function Uwn(n,t,e){var i,r,c,a,u,o;if(!MX(t)){for(run(o=J2(e,(CO(t,14)?Yx(t,14).gc():FX(t.Kc()))/n.a|0),a$n,1),u=new Ca,a=0,c=t.Kc();c.Ob();)i=Yx(c.Pb(),86),u=n0(x4(Gy(QKn,1),iEn,20,0,[u,new Dd(i)])),a1;)tdn(r,r.i-1);return i}function Jwn(n,t){var e,i,r,c,a,u;for(e=new ep,r=new pb(n.b);r.an.d[a.p]&&(e+=zW(n.b,c),OX(n.a,d9(c)));for(;!ry(n.a);)eZ(n.b,Yx($_(n.a),19).a)}return e}function ndn(n,t,e){var i,r,c,a;for(c=(!t.a&&(t.a=new m_(uct,t,10,11)),t.a).i,r=new UO((!t.a&&(t.a=new m_(uct,t,10,11)),t.a));r.e!=r.i.gc();)0==(!(i=Yx(hen(r),33)).a&&(i.a=new m_(uct,i,10,11)),i.a).i||(c+=ndn(n,i,!1));if(e)for(a=IG(t);a;)c+=(!a.a&&(a.a=new m_(uct,a,10,11)),a.a).i,a=IG(a);return c}function tdn(n,t){var e,i,r,c;return n.ej()?(i=null,r=n.fj(),n.ij()&&(i=n.kj(n.pi(t),null)),e=n.Zi(4,c=Orn(n,t),null,t,r),n.bj()&&null!=c?(i=n.dj(c,i))?(i.Ei(e),i.Fi()):n.$i(e):i?(i.Ei(e),i.Fi()):n.$i(e),c):(c=Orn(n,t),n.bj()&&null!=c&&(i=n.dj(c,null))&&i.Fi(),c)}function edn(){edn=O,TVn=new YM("COMMENTS",0),SVn=new YM("EXTERNAL_PORTS",1),PVn=new YM("HYPEREDGES",2),IVn=new YM("HYPERNODES",3),CVn=new YM("NON_FREE_PORTS",4),OVn=new YM("NORTH_SOUTH_PORTS",5),$Vn=new YM(cCn,6),EVn=new YM("CENTER_LABELS",7),MVn=new YM("END_LABELS",8),AVn=new YM("PARTITIONS",9)}function idn(n){var t,e,i,r,c;for(r=new ip,t=new kR((!n.a&&(n.a=new m_(uct,n,10,11)),n.a)),i=new $K(bA(lbn(n).a.Kc(),new h));Vfn(i);)CO(c1((!(e=Yx(kV(i),79)).b&&(e.b=new AN(Zrt,e,4,7)),e.b),0),186)||(c=iun(Yx(c1((!e.c&&(e.c=new AN(Zrt,e,5,8)),e.c),0),82)),t.a._b(c)||(r.c[r.c.length]=c));return r}function rdn(n){var t,e,i,r,c;for(r=new Qp,t=new kR((!n.a&&(n.a=new m_(uct,n,10,11)),n.a)),i=new $K(bA(lbn(n).a.Kc(),new h));Vfn(i);)CO(c1((!(e=Yx(kV(i),79)).b&&(e.b=new AN(Zrt,e,4,7)),e.b),0),186)||(c=iun(Yx(c1((!e.c&&(e.c=new AN(Zrt,e,5,8)),e.c),0),82)),t.a._b(c)||r.a.zc(c,r));return r}function cdn(n,t){var i,r,c;IG(n)&&(c=Yx(Aun(t,(gjn(),n0n)),174),iI(jln(n,g0n))===iI((Ran(),lit))&&Aen(n,g0n,fit),dT(),r=hkn(new Xm(IG(n)),new e$(IG(n)?new Xm(IG(n)):null,n),!1,!0),n2(c,(Ann(),Yit)),(i=Yx(Aun(t,e0n),8)).a=e.Math.max(r.a,i.a),i.b=e.Math.max(r.b,i.b))}function adn(){adn=O,tWn=new kH(NSn,0,(Ikn(),Tit),Tit),rWn=new kH(DSn,1,Bit,Bit),nWn=new kH(xSn,2,Eit,Eit),uWn=new kH(RSn,3,qit,qit),iWn=new kH("NORTH_WEST_CORNER",4,qit,Tit),eWn=new kH("NORTH_EAST_CORNER",5,Tit,Eit),aWn=new kH("SOUTH_WEST_CORNER",6,Bit,qit),cWn=new kH("SOUTH_EAST_CORNER",7,Eit,Bit)}function udn(){udn=O,_7n=x4(Gy(Qot,1),tMn,25,14,[1,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368e3,{l:3506176,m:794077,h:1},{l:884736,m:916411,h:20},{l:3342336,m:3912489,h:363},{l:589824,m:3034138,h:6914},{l:3407872,m:1962506,h:138294}]),e.Math.pow(2,-65)}function odn(n,t){var e,i,r,c,a;if(0==n.c.length)return new mP(d9(0),d9(0));for(e=($z(0,n.c.length),Yx(n.c[0],11)).j,a=0,c=t.g,i=t.g+1;a=h&&(s=r);s&&(f=e.Math.max(f,s.a.o.a)),f>b&&(l=h,b=f)}return l}function hdn(n,t){var e;switch(e=null,t.g){case 1:n.e.Xe((Cjn(),gtt))&&(e=Yx(n.e.We(gtt),249));break;case 3:n.e.Xe((Cjn(),ptt))&&(e=Yx(n.e.We(ptt),249));break;case 2:n.e.Xe((Cjn(),dtt))&&(e=Yx(n.e.We(dtt),249));break;case 4:n.e.Xe((Cjn(),vtt))&&(e=Yx(n.e.We(vtt),249))}return!e&&(e=Yx(n.e.We((Cjn(),btt)),249)),e}function fdn(n,t,e){var i,r,c,a,u,o;for(t.p=1,r=t.c,o=inn(t,(h0(),i3n)).Kc();o.Ob();)for(i=new pb(Yx(o.Pb(),11).g);i.a$$n?JC(s,n.b):r<=$$n&&r>L$n?JC(s,n.d):r<=L$n&&r>N$n?JC(s,n.c):r<=N$n&&JC(s,n.a),a=ldn(n,s,a);return c}function bdn(){var n;for(bdn=O,bFn=new wQ(1,1),dFn=new wQ(1,10),pFn=new wQ(0,0),lFn=new wQ(-1,1),wFn=x4(Gy(EFn,1),TEn,91,0,[pFn,bFn,new wQ(1,2),new wQ(1,3),new wQ(1,4),new wQ(1,5),new wQ(1,6),new wQ(1,7),new wQ(1,8),new wQ(1,9),dFn]),gFn=VQ(EFn,TEn,91,32,0,1),n=0;n1&&(i=new QS(r,e.b),KD(t.a,i)),r0(t.a,x4(Gy(B7n,1),TEn,8,0,[f,h]))}function ydn(n){uT(n,new tun(rk(nk(ik(ek(new du,nNn),"ELK Randomizer"),'Distributes the nodes randomly on the plane, leading to very obfuscating layouts. Can be useful to demonstrate the power of "real" layout algorithms.'),new Qu))),DU(n,nNn,fPn,Wit),DU(n,nNn,LPn,15),DU(n,nNn,xPn,d9(0)),DU(n,nNn,hPn,OPn)}function kdn(){var n,t,e,i,r,c;for(kdn=O,fot=VQ(Yot,LNn,25,255,15,1),lot=VQ(Xot,sTn,25,16,15,1),t=0;t<255;t++)fot[t]=-1;for(e=57;e>=48;e--)fot[e]=e-48<<24>>24;for(i=70;i>=65;i--)fot[i]=i-65+10<<24>>24;for(r=102;r>=97;r--)fot[r]=r-97+10<<24>>24;for(c=0;c<10;c++)lot[c]=48+c&fTn;for(n=10;n<=15;n++)lot[n]=65+n-10&fTn}function jdn(n,t,e){var i,r,c,a,u,o,s,h;return u=t.i-n.g/2,o=e.i-n.g/2,s=t.j-n.g/2,h=e.j-n.g/2,c=t.g+n.g/2,a=e.g+n.g/2,i=t.f+n.g/2,r=e.f+n.g/2,u=0;--i)for(t=e[i],r=0;r>19!=0)return"-"+Mdn(h5(n));for(e=n,i="";0!=e.l||0!=e.m||0!=e.h;){if(e=Jmn(e,gV(UTn),!0),t=""+rj(P_n),0!=e.l||0!=e.m||0!=e.h)for(r=9-t.length;r>0;r--)t="0"+t;i=t+i}return i}function Sdn(n,t,i,r){var c,a,u,o;if(FX((Ax(),new $K(bA(a7(t).a.Kc(),new h))))>=n.a)return-1;if(!Ban(t,i))return-1;if(MX(Yx(r.Kb(t),20)))return 1;for(c=0,u=Yx(r.Kb(t),20).Kc();u.Ob();){if(-1==(o=Sdn(n,(a=Yx(u.Pb(),17)).c.i==t?a.d.i:a.c.i,i,r)))return-1;if((c=e.Math.max(c,o))>n.c-1)return-1}return c+1}function Pdn(n,t){var e,i,r,c,a,u;if(iI(t)===iI(n))return!0;if(!CO(t,15))return!1;if(i=Yx(t,15),u=n.gc(),i.gc()!=u)return!1;if(a=i.Kc(),n.ni()){for(e=0;e0)if(n.qj(),null!=t){for(c=0;c0&&(n.a=u+(l-1)*r,t.c.b+=n.a,t.f.b+=n.a),0!=b.a.gc()&&(l=Ayn(new gF(1,r),t,b,w,t.f.b+u-t.c.b))>0&&(t.f.b+=u+(l-1)*r)}(n,t,r),function(n){var t,e,i,r,c,a,u,o,s,h,f,l,b,w,d,g,p,v,m,y,k,j,E,T;for(m=new ip,f=new pb(n.b);f.a>24;case 97:case 98:case 99:case 100:case 101:case 102:return n-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return n-65+10<<24>>24;default:throw hp(new Iy("Invalid hexadecimal"))}}function Adn(n,t,e){var i,r,c,a;for(run(e,"Processor order nodes",2),n.a=ty(fL(Aun(t,(cln(),V5n)))),r=new ME,a=Ztn(t.b,0);a.b!=a.d.c;)ny(hL(Aun(c=Yx(IX(a),86),(ryn(),C5n))))&&VW(r,c,r.c.b,r.c);S$(0!=r.b),Omn(n,i=Yx(r.a.a.c,86)),!e.b&&q0(e,1),agn(n,i,0-ty(fL(Aun(i,(ryn(),k5n))))/2,0),!e.b&&q0(e,1),Ron(e)}function $dn(){$dn=O,YBn=new aM("SPIRAL",0),UBn=new aM("LINE_BY_LINE",1),XBn=new aM("MANHATTAN",2),zBn=new aM("JITTER",3),VBn=new aM("QUADRANTS_LINE_BY_LINE",4),QBn=new aM("QUADRANTS_MANHATTAN",5),WBn=new aM("QUADRANTS_JITTER",6),GBn=new aM("COMBINE_LINE_BY_LINE_MANHATTAN",7),qBn=new aM("COMBINE_JITTER_MANHATTAN",8)}function Ldn(n,t,e,i){var r,c,a,u,o,s;for(o=qcn(n,e),s=qcn(t,e),r=!1;o&&s&&(i||Ern(o,s,e));)a=qcn(o,e),u=qcn(s,e),pJ(t),pJ(n),c=o.c,lyn(o,!1),lyn(s,!1),e?(Hrn(t,s.p,c),t.p=s.p,Hrn(n,o.p+1,c),n.p=o.p):(Hrn(n,o.p,c),n.p=o.p,Hrn(t,s.p+1,c),t.p=s.p),JG(o,null),JG(s,null),o=a,s=u,r=!0;return r}function Ndn(n,t,e,i){var r,c,a,u,o;for(r=!1,c=!1,u=new pb(i.j);u.a=t.length)throw hp(new Hm("Greedy SwitchDecider: Free layer not in graph."));this.c=t[n],this.e=new rx(i),h2(this.e,this.c,(Ikn(),qit)),this.i=new rx(i),h2(this.i,this.c,Eit),this.f=new zR(this.c),this.a=!c&&r.i&&!r.s&&this.c[0].k==(bon(),_zn),this.a&&function(n,t,e){var i,r,c,a,u,o,s;u=(c=n.d.p).e,o=c.r,n.g=new rx(o),i=(a=n.d.o.c.p)>0?u[a-1]:VQ(Gzn,kIn,10,0,0,1),r=u[a],s=ar.d.d+r.d.a?f.f.d=!0:(f.f.d=!0,f.f.a=!0))),i.b!=i.d.c&&(t=e);f&&(c=Yx(BF(n.f,a.d.i),57),t.bc.d.d+c.d.a?f.f.d=!0:(f.f.d=!0,f.f.a=!0))}for(u=new $K(bA(u7(b).a.Kc(),new h));Vfn(u);)0!=(a=Yx(kV(u),17)).a.b&&(t=Yx(p$(a.a),8),a.d.j==(Ikn(),Tit)&&((g=new _vn(t,new QS(t.a,r.d.d),r,a)).f.a=!0,g.a=a.d,d.c[d.c.length]=g),a.d.j==Bit&&((g=new _vn(t,new QS(t.a,r.d.d+r.d.a),r,a)).f.d=!0,g.a=a.d,d.c[d.c.length]=g))}return d}(n);break;case 3:r=new ip,SE(hH(fH(WJ(WJ(new SR(null,new Nz(n.d.b,16)),new Or),new Ar),new $r),new pr),new Yw(r)),i=r;break;default:throw hp(new Ym("Compaction not supported for "+t+" edges."))}(function(n,t){var i,r,c,a,u,o,s;if(0!=t.c.length){for(XH(),JR(t.c,t.c.length,null),r=Yx(Hz(c=new pb(t)),145);c.a0&&t0?c.a?e>(u=c.b.rf().a)&&(r=(e-u)/2,c.d.b=r,c.d.c=r):c.d.c=n.s+e:c_(n.u)&&((i=oun(c.b)).c<0&&(c.d.b=-i.c),i.c+i.b>c.b.rf().a&&(c.d.c=i.c+i.b-c.b.rf().a))}(n,t),c=null,s=null,o){for(s=c=Yx((a=u.Kc()).Pb(),111);a.Ob();)s=Yx(a.Pb(),111);c.d.b=0,s.d.c=0,f&&!c.a&&(c.d.c=0)}l&&(function(n){var t,i,r,c,a;for(t=0,i=0,a=n.Kc();a.Ob();)r=Yx(a.Pb(),111),t=e.Math.max(t,r.d.b),i=e.Math.max(i,r.d.c);for(c=n.Kc();c.Ob();)(r=Yx(c.Pb(),111)).d.b=t,r.d.c=i}(u),o&&(c.d.b=0,s.d.c=0))}function Wdn(n,t){var i,r,c,a,u,o,s,h,f,l;if(u=Yx(Yx(_V(n.r,t),21),84),o=n.u.Hc((Chn(),mit)),i=n.u.Hc(git),r=n.u.Hc(dit),s=n.u.Hc(yit),l=n.B.Hc((Vgn(),frt)),h=!i&&!r&&(s||2==u.gc()),function(n,t){var i,r,c,a,u,o,s;for(o=Yx(Yx(_V(n.r,t),21),84).Kc();o.Ob();)(r=(u=Yx(o.Pb(),111)).c?XD(u.c):0)>0?u.a?r>(s=u.b.rf().b)&&(n.v||1==u.c.d.c.length?(a=(r-s)/2,u.d.d=a,u.d.a=a):(i=(Yx(TR(u.c.d,0),181).rf().b-s)/2,u.d.d=e.Math.max(0,i),u.d.a=r-i-s)):u.d.a=n.t+r:c_(n.u)&&((c=oun(u.b)).d<0&&(u.d.d=-c.d),c.d+c.a>u.b.rf().b&&(u.d.a=c.d+c.a-u.b.rf().b))}(n,t),f=null,c=null,o){for(c=f=Yx((a=u.Kc()).Pb(),111);a.Ob();)c=Yx(a.Pb(),111);f.d.d=0,c.d.a=0,h&&!f.a&&(f.d.a=0)}l&&(function(n){var t,i,r,c,a;for(i=0,t=0,a=n.Kc();a.Ob();)r=Yx(a.Pb(),111),i=e.Math.max(i,r.d.d),t=e.Math.max(t,r.d.a);for(c=n.Kc();c.Ob();)(r=Yx(c.Pb(),111)).d.d=i,r.d.a=t}(u),o&&(f.d.d=0,c.d.a=0))}function Vdn(n,t,e){var i,r,c,a,u;if(i=t.k,t.p>=0)return!1;if(t.p=e.b,eD(e.e,t),i==(bon(),Bzn)||i==qzn)for(r=new pb(t.j);r.a1||-1==a)&&(c|=16),0!=(r.Bb&MNn)&&(c|=64)),0!=(e.Bb&eMn)&&(c|=FDn),c|=DNn):CO(t,457)?c|=512:(i=t.Bj())&&0!=(1&i.i)&&(c|=256),0!=(512&n.Bb)&&(c|=128),c}function ngn(n,t){var e,i,r,c,a;for(n=null==n?aEn:(vB(n),n),r=0;rn.d[u.p]&&(e+=zW(n.b,c),OX(n.a,d9(c))):++a;for(e+=n.b.d*a;!ry(n.a);)eZ(n.b,Yx($_(n.a),19).a)}return e}function egn(n){var t,e,i,r,c,a,u;for(u=new rp,i=new pb(n.a.b);i.a=n.o)throw hp(new Gp);a=t>>5,c=GK(1,WR(GK(31&t,1))),n.n[e][a]=r?zz(n.n[e][a],c):Gz(n.n[e][a],wD(c)),c=GK(c,1),n.n[e][a]=i?zz(n.n[e][a],c):Gz(n.n[e][a],wD(c))}catch(i){throw CO(i=j4(i),320)?hp(new Hm(FSn+n.o+"*"+n.p+BSn+t+tEn+e+HSn)):hp(i)}}function agn(n,t,i,r){var c,a;t&&(c=ty(fL(Aun(t,(ryn(),M5n))))+r,a=i+ty(fL(Aun(t,k5n)))/2,b5(t,O5n,d9(WR(D3(e.Math.round(c))))),b5(t,A5n,d9(WR(D3(e.Math.round(a))))),0==t.d.b||agn(n,Yx(PO(new Rd(Ztn(new Dd(t).a.d,0))),86),i+ty(fL(Aun(t,k5n)))+n.a,r+ty(fL(Aun(t,j5n)))),null!=Aun(t,I5n)&&agn(n,Yx(Aun(t,I5n),86),i,r))}function ugn(n){var t,e,i;return 0!=(64&n.Db)?yon(n):(t=new SA(dNn),(e=n.k)?yI(yI((t.a+=' "',t),e),'"'):(!n.n&&(n.n=new m_(act,n,1,7)),n.n.i>0&&(!(i=(!n.n&&(n.n=new m_(act,n,1,7)),Yx(c1(n.n,0),137)).a)||yI(yI((t.a+=' "',t),i),'"'))),yI(tj(yI(tj(yI(tj(yI(tj((t.a+=" (",t),n.i),","),n.j)," | "),n.g),","),n.f),")"),t.a)}function ogn(n){var t,e,i;return 0!=(64&n.Db)?yon(n):(t=new SA(gNn),(e=n.k)?yI(yI((t.a+=' "',t),e),'"'):(!n.n&&(n.n=new m_(act,n,1,7)),n.n.i>0&&(!(i=(!n.n&&(n.n=new m_(act,n,1,7)),Yx(c1(n.n,0),137)).a)||yI(yI((t.a+=' "',t),i),'"'))),yI(tj(yI(tj(yI(tj(yI(tj((t.a+=" (",t),n.i),","),n.j)," | "),n.g),","),n.f),")"),t.a)}function sgn(n,t){var e,i,r,c,a,u;if(null==t||0==t.length)return null;if(!(r=Yx(aG(n.a,t),149))){for(i=new ub(new Zl(n.b).a.vc().Kc());i.a.Ob();)if(c=Yx(i.a.Pb(),42),a=(e=Yx(c.dd(),149)).c,u=t.length,_N(a.substr(a.length-u,u),t)&&(t.length==a.length||46==XB(a,a.length-t.length-1))){if(r)return null;r=e}r&&GG(n.a,t,r)}return r}function hgn(n){var t,e,i;O$(n,(gjn(),U1n))&&((i=Yx(Aun(n,U1n),21)).dc()||(e=new cx(t=Yx(Ak(cit),9),Yx(eN(t,t.length),9),0),i.Hc((Eln(),Xet))?n2(e,Xet):n2(e,Wet),i.Hc(zet)||n2(e,zet),i.Hc(Get)?n2(e,Yet):i.Hc(qet)?n2(e,Qet):i.Hc(Uet)&&n2(e,Vet),i.Hc(Yet)?n2(e,Get):i.Hc(Qet)?n2(e,qet):i.Hc(Vet)&&n2(e,Uet),b5(n,U1n,e)))}function fgn(n){var t,e,i,r,c,a,u;for(r=Yx(Aun(n,(Ojn(),vQn)),10),$z(0,(i=n.j).c.length),e=Yx(i.c[0],11),a=new pb(r.j);a.ar.p?(whn(c,Bit),c.d&&(u=c.o.b,t=c.a.b,c.a.b=u-t)):c.j==Bit&&r.p>n.p&&(whn(c,Tit),c.d&&(u=c.o.b,t=c.a.b,c.a.b=-(u-t)));break}return r}function lgn(n,t,e,i,r){var c,a,u,o,s,h,f;if(!(CO(t,239)||CO(t,354)||CO(t,186)))throw hp(new Qm("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return a=n.a/2,o=t.i+i-a,h=t.j+r-a,s=o+t.g+n.a,f=h+t.f+n.a,KD(c=new Nv,new QS(o,h)),KD(c,new QS(o,f)),KD(c,new QS(s,f)),KD(c,new QS(s,h)),o4(u=new eln(c),t),e&&xB(n.b,t,u),u}function bgn(n,t,e){var i,r,c,a,u,o,s,h;for(c=new QS(t,e),s=new pb(n.a);s.a1&&(i=new QS(r,e.b),KD(t.a,i)),r0(t.a,x4(Gy(B7n,1),TEn,8,0,[f,h]))}function Ign(n,t,e){var i,r,c,a,u,o;if(t){if(e<=-1){if(CO(i=CZ(t.Tg(),-1-e),99))return Yx(i,18);for(u=0,o=(a=Yx(t.ah(i),153)).gc();u0){for(r=o.length;r>0&&""==o[r-1];)--r;r=40)&&function(n){var t,e,i,r,c,a,u;for(n.o=new ep,i=new ME,a=new pb(n.e.a);a.a0,u=T7(t,c),VA(e?u.b:u.g,t),1==b7(u).c.length&&VW(i,u,i.c.b,i.c),r=new mP(c,t),OX(n.o,r),uJ(n.e.a,c))}(n),function(n){var t,e,i,r,c,a,u,o,s,h;for(s=n.e.a.c.length,c=new pb(n.e.a);c.a0&&KD(n.f,c)):(n.c[a]-=s+1,n.c[a]<=0&&n.a[a]>0&&KD(n.e,c))))}function Xgn(n,t,e){var i,r,c,a,u,o,s,h,f;for(c=new pQ(t.c.length),s=new pb(t);s.a=0&&o0&&(Lz(0,n.length),45==n.charCodeAt(0)||(Lz(0,n.length),43==n.charCodeAt(0)))?1:0;ie)throw hp(new Iy(YTn+n+'"'));return a}function rpn(n){switch(n){case 100:return Rjn(TKn,!0);case 68:return Rjn(TKn,!1);case 119:return Rjn(MKn,!0);case 87:return Rjn(MKn,!1);case 115:return Rjn(SKn,!0);case 83:return Rjn(SKn,!1);case 99:return Rjn(PKn,!0);case 67:return Rjn(PKn,!1);case 105:return Rjn(IKn,!0);case 73:return Rjn(IKn,!1);default:throw hp(new Im(EKn+n.toString(16)))}}function cpn(n,t,e,i,r){e&&(!i||(n.c-n.b&n.a.length-1)>1)&&1==t&&Yx(n.a[n.b],10).k==(bon(),Fzn)?_pn(Yx(n.a[n.b],10),(Frn(),Ret)):i&&(!e||(n.c-n.b&n.a.length-1)>1)&&1==t&&Yx(n.a[n.c-1&n.a.length-1],10).k==(bon(),Fzn)?_pn(Yx(n.a[n.c-1&n.a.length-1],10),(Frn(),Ket)):2==(n.c-n.b&n.a.length-1)?(_pn(Yx(T5(n),10),(Frn(),Ret)),_pn(Yx(T5(n),10),Ket)):function(n,t){var e,i,r,c,a,u,o,s,h;for(o=h$(n.c-n.b&n.a.length-1),s=null,h=null,c=new VB(n);c.a!=c.b;)r=Yx(w8(c),10),e=(u=Yx(Aun(r,(Ojn(),TQn)),11))?u.i:null,i=(a=Yx(Aun(r,MQn),11))?a.i:null,s==e&&h==i||(vln(o,t),s=e,h=i),o.c[o.c.length]=r;vln(o,t)}(n,r),iW(n)}function apn(n,t,e){var i,r,c,a;if(t[0]>=n.length)return e.o=0,!0;switch(XB(n,t[0])){case 43:r=1;break;case 45:r=-1;break;default:return e.o=0,!0}if(++t[0],c=t[0],0==(a=Uhn(n,t))&&t[0]==c)return!1;if(t[0]=0&&u!=e&&(c=new p_(n,1,u,a,null),i?i.Ei(c):i=c),e>=0&&(c=new p_(n,1,e,u==e?a:null,t),i?i.Ei(c):i=c)),i}function spn(n){var t,e,i;if(null==n.b){if(i=new Cy,null!=n.i&&(pI(i,n.i),i.a+=":"),0!=(256&n.f)){for(0!=(256&n.f)&&null!=n.a&&(function(n){return null!=n&&fE(Rct,n.toLowerCase())}(n.i)||(i.a+="//"),pI(i,n.a)),null!=n.d&&(i.a+="/",pI(i,n.d)),0!=(16&n.f)&&(i.a+="/"),t=0,e=n.j.length;t0&&(t.td(e),e.i&&T9(e))}(r=vwn(n,t),(a=Yx(ken(r,0),214)).c.Rf()?a.c.Lf()?new dd(n):new gd(n):new wd(n)),function(n){var t,e,i;for(i=new pb(n.b);i.a>>31;0!=i&&(n[e]=i)}(e,e,t<<1),i=0,r=0,a=0;rs)&&(o+u+omn(i,s,!1).a<=t.b&&(pY(e,c-e.s),e.c=!0,pY(i,c-e.s),Qen(i,e.s,e.t+e.d+u),i.k=!0,o3(e.q,i),h=!0,r&&(c0(t,i),i.j=t,n.c.length>a&&(acn(($z(a,n.c.length),Yx(n.c[a],200)),i),0==($z(a,n.c.length),Yx(n.c[a],200)).a.c.length&&KV(n,a)))),h)}function wpn(n,t,e){var i,r,c,a,u;if(0==t.p){for(t.p=1,(r=e)||(r=new mP(new ip,new cx(i=Yx(Ak(trt),9),Yx(eN(i,i.length),9),0))),Yx(r.a,15).Fc(t),t.k==(bon(),_zn)&&Yx(r.b,21).Fc(Yx(Aun(t,(Ojn(),hQn)),61)),a=new pb(t.j);a.a0)if(r=Yx(n.Ab.g,1934),null==t){for(c=0;c1)for(i=new pb(r);i.ai.s&&o=0&&s>=0&&oa)return Ikn(),Eit;break;case 4:case 3:if(h<0)return Ikn(),Tit;if(h+e>c)return Ikn(),Bit}return(o=(s+u/2)/a)+(i=(h+e/2)/c)<=1&&o-i<=0?(Ikn(),qit):o+i>=1&&o-i>=0?(Ikn(),Eit):i<.5?(Ikn(),Tit):(Ikn(),Bit)}function Mpn(n,t){var e,i,r,c,a,u,o,s,h,f,l,b;for(e=!1,o=ty(fL(Aun(t,(gjn(),G0n)))),l=ZEn*o,r=new pb(t.b);r.aa.n.b-a.d.d+h.a+l&&(b=s.g+h.g,h.a=(h.g*h.a+s.g*s.a)/b,h.g=b,s.f=h,e=!0)),c=a,s=h;return e}function Spn(n,t,e,i,r,c,a){var u,o,s,h,f;for(f=new hC,o=t.Kc();o.Ob();)for(h=new pb(Yx(o.Pb(),839).wf());h.an.b/2+t.b/2||(c=e.Math.abs(n.d+n.a/2-(t.d+t.a/2)))>n.a/2+t.a/2?1:0==i&&0==c?0:0==i?a/c+1:0==c?r/i+1:e.Math.min(r/i,a/c)+1}function Ipn(n,t){var i,r,c,a,u,o;return(c=u0(n))==(o=u0(t))?n.e==t.e&&n.a<54&&t.a<54?n.ft.f?1:0:(r=n.e-t.e,(i=(n.d>0?n.d:e.Math.floor((n.a-1)*aMn)+1)-(t.d>0?t.d:e.Math.floor((t.a-1)*aMn)+1))>r+1?c:i0&&(u=uZ(u,xvn(r))),utn(a,u))):c0&&n.d!=(CJ(),zGn)&&(u+=a*(i.d.a+n.a[t.b][i.b]*(t.d.a-i.d.a)/e)),e>0&&n.d!=(CJ(),qGn)&&(o+=a*(i.d.b+n.a[t.b][i.b]*(t.d.b-i.d.b)/e)));switch(n.d.g){case 1:return new QS(u/c,t.d.b);case 2:return new QS(t.d.a,o/c);default:return new QS(u/c,o/c)}}function Opn(n,t){var e,i,r,c;if(A6(),c=Yx(Aun(n.i,(gjn(),g0n)),98),0!=n.j.g-t.j.g||c!=(Ran(),uit)&&c!=sit&&c!=oit)return 0;if(c==(Ran(),uit)&&(e=Yx(Aun(n,p0n),19),i=Yx(Aun(t,p0n),19),e&&i&&0!=(r=e.a-i.a)))return r;switch(n.j.g){case 1:return $9(n.n.a,t.n.a);case 2:return $9(n.n.b,t.n.b);case 3:return $9(t.n.a,n.n.a);case 4:return $9(t.n.b,n.n.b);default:throw hp(new Ym(mIn))}}function Apn(n){var t,e,i,r,c;for(eD(c=new pQ((!n.a&&(n.a=new XO(Qrt,n,5)),n.a).i+2),new QS(n.j,n.k)),SE(new SR(null,(!n.a&&(n.a=new XO(Qrt,n,5)),new Nz(n.a,16))),new Jd(c)),eD(c,new QS(n.b,n.c)),t=1;t0&&(Y4(o,!1,(t9(),Ztt)),Y4(o,!0,net)),WZ(t.g,new PM(n,e)),xB(n.g,t,e)}function Lpn(){var n;for(Lpn=O,W_n=x4(Gy(Wot,1),MTn,25,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),V_n=VQ(Wot,MTn,25,37,15,1),Q_n=x4(Gy(Wot,1),MTn,25,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),Y_n=VQ(Qot,tMn,25,37,14,1),n=2;n<=36;n++)V_n[n]=oG(e.Math.pow(n,W_n[n])),Y_n[n]=Bcn(IEn,V_n[n])}function Npn(n){var t;if(1!=(!n.a&&(n.a=new m_(tct,n,6,6)),n.a).i)throw hp(new Qm(eNn+(!n.a&&(n.a=new m_(tct,n,6,6)),n.a).i));return t=new Nv,E4(Yx(c1((!n.b&&(n.b=new AN(Zrt,n,4,7)),n.b),0),82))&&C2(t,mjn(n,E4(Yx(c1((!n.b&&(n.b=new AN(Zrt,n,4,7)),n.b),0),82)),!1)),E4(Yx(c1((!n.c&&(n.c=new AN(Zrt,n,5,8)),n.c),0),82))&&C2(t,mjn(n,E4(Yx(c1((!n.c&&(n.c=new AN(Zrt,n,5,8)),n.c),0),82)),!0)),t}function xpn(n,t){var e,i,r;for(r=!1,i=new $K(bA((t.d?n.a.c==(Jq(),d4n)?u7(t.b):o7(t.b):n.a.c==(Jq(),w4n)?u7(t.b):o7(t.b)).a.Kc(),new h));Vfn(i);)if(e=Yx(kV(i),17),(ny(n.a.f[n.a.g[t.b.p].p])||ZW(e)||e.c.i.c!=e.d.i.c)&&!ny(n.a.n[n.a.g[t.b.p].p])&&!ny(n.a.n[n.a.g[t.b.p].p])&&(r=!0,gE(n.b,n.a.g[zin(e,t.b).p])))return t.c=!0,t.a=e,t;return t.c=r,t.a=null,t}function Dpn(n,t,e){var i,r,c,a,u,o,s;if(0==(i=e.gc()))return!1;if(n.ej())if(o=n.fj(),Q7(n,t,e),a=1==i?n.Zi(3,null,e.Kc().Pb(),t,o):n.Zi(5,null,e,t,o),n.bj()){for(u=i<100?null:new Ek(i),c=t+i,r=t;r0){for(u=0;u>16==-15&&n.Cb.nh()&&vJ(new kY(n.Cb,9,13,e,n.c,Ren(IJ(Yx(n.Cb,59)),n))):CO(n.Cb,88)&&n.Db>>16==-23&&n.Cb.nh()&&(CO(t=n.c,88)||(xjn(),t=Oat),CO(e,88)||(xjn(),e=Oat),vJ(new kY(n.Cb,9,10,e,t,Ren(tW(Yx(n.Cb,26)),n)))))),n.c}function Hpn(n,t,e){var i,r,c,a,u,o,s,h;for(run(e,"Hyperedge merging",1),function(n,t){var e,i,r,c;for((c=Yx(kW(WJ(WJ(new SR(null,new Nz(t.b,16)),new Re),new Ke),mY(new H,new B,new rn,x4(Gy(wBn,1),XEn,132,0,[(C6(),aBn)]))),15)).Jc(new _e),e=0,r=c.Kc();r.Ob();)-1==(i=Yx(r.Pb(),11)).p&&wln(n,i,e++)}(n,t),u=new JU(t.b,0);u.be);return r}function Gpn(n,t){var e,i,r;i=0!=Xln(n.d,1),!ny(hL(Aun(t.j,(Ojn(),lQn))))&&!ny(hL(Aun(t.j,qQn)))||iI(Aun(t.j,(gjn(),XZn)))===iI((k5(),W2n))?t.c.Tf(t.e,i):i=ny(hL(Aun(t.j,lQn))),Zbn(n,t,i,!0),ny(hL(Aun(t.j,qQn)))&&b5(t.j,qQn,(TA(),!1)),ny(hL(Aun(t.j,lQn)))&&(b5(t.j,lQn,(TA(),!1)),b5(t.j,qQn,!0)),e=Rsn(n,t);do{if(k2(n),0==e)return 0;r=e,Zbn(n,t,i=!i,!1),e=Rsn(n,t)}while(r>e);return r}function zpn(n,t,e){var i,r,c,a,u,o,s;if(t==e)return!0;if(t=Xfn(n,t),e=Xfn(n,e),i=win(t)){if((o=win(e))!=i)return!!o&&(a=i.Dj())==o.Dj()&&null!=a;if(!t.d&&(t.d=new XO(hat,t,1)),r=(c=t.d).i,!e.d&&(e.d=new XO(hat,e,1)),r==(s=e.d).i)for(u=0;u0&&(b.d+=f.n.d,b.d+=f.d),b.a>0&&(b.a+=f.n.a,b.a+=f.d),b.b>0&&(b.b+=f.n.b,b.b+=f.d),b.c>0&&(b.c+=f.n.c,b.c+=f.d),b}((IG(n)&&(dT(),new Xm(IG(n))),dT(),new e$(IG(n)?new Xm(IG(n)):null,n)),net),a=Yx(Aun(r,c0n),116),$G(i=r.d,a),$G(i,c),r}function Vpn(n,t){var i,r,c,a;return r=e.Math.abs(a_(n.b).a-a_(t.b).a),a=e.Math.abs(a_(n.b).b-a_(t.b).b),i=1,c=1,r>n.b.b/2+t.b.b/2&&(i=1-e.Math.min(e.Math.abs(n.b.c-(t.b.c+t.b.b)),e.Math.abs(n.b.c+n.b.b-t.b.c))/r),a>n.b.a/2+t.b.a/2&&(c=1-e.Math.min(e.Math.abs(n.b.d-(t.b.d+t.b.a)),e.Math.abs(n.b.d+n.b.a-t.b.d))/a),(1-e.Math.min(i,c))*e.Math.sqrt(r*r+a*a)}function Qpn(n){var t,i,r;for(gkn(n,n.e,n.f,(Yq(),X4n),!0,n.c,n.i),gkn(n,n.e,n.f,X4n,!1,n.c,n.i),gkn(n,n.e,n.f,W4n,!0,n.c,n.i),gkn(n,n.e,n.f,W4n,!1,n.c,n.i),function(n,t,e,i,r){var c,a,u,o,s,h,f;for(a=new pb(t);a.a=w&&(v>w&&(b.c=VQ(UKn,iEn,1,0,5,1),w=v),b.c[b.c.length]=a);0!=b.c.length&&(l=Yx(TR(b,Uen(t,b.c.length)),128),P.a.Bc(l),l.s=d++,cbn(l,M,j),b.c=VQ(UKn,iEn,1,0,5,1))}for(y=n.c.length+1,u=new pb(n);u.aS.s&&(hB(e),uJ(S.i,i),i.c>0&&(i.a=S,eD(S.t,i),i.b=E,eD(E.i,i)))})(n.i,Yx(Aun(n.d,(Ojn(),FQn)),230)),function(n){var t,i,r,c,a,u,o,s,h;for(s=new ME,u=new ME,c=new pb(n);c.a-1){for(r=Ztn(u,0);r.b!=r.d.c;)(i=Yx(IX(r),128)).v=a;for(;0!=u.b;)for(t=new pb((i=Yx(Urn(u,0),128)).i);t.a=65;e--)sot[e]=e-65<<24>>24;for(i=122;i>=97;i--)sot[i]=i-97+26<<24>>24;for(r=57;r>=48;r--)sot[r]=r-48+52<<24>>24;for(sot[43]=62,sot[47]=63,c=0;c<=25;c++)hot[c]=65+c&fTn;for(a=26,o=0;a<=51;++a,o++)hot[a]=97+o&fTn;for(n=52,u=0;n<=61;++n,u++)hot[n]=48+u&fTn;hot[62]=43,hot[63]=47}function Zpn(n,t){var e,i,r,c,a,u,o;if(!TG(n))throw hp(new Ym(tNn));if(c=(i=TG(n)).g,r=i.f,c<=0&&r<=0)return Ikn(),Hit;switch(u=n.i,o=n.j,t.g){case 2:case 1:if(u<0)return Ikn(),qit;if(u+n.g>c)return Ikn(),Eit;break;case 4:case 3:if(o<0)return Ikn(),Tit;if(o+n.f>r)return Ikn(),Bit}return(a=(u+n.g/2)/c)+(e=(o+n.f/2)/r)<=1&&a-e<=0?(Ikn(),qit):a+e>=1&&a-e>=0?(Ikn(),Eit):e<.5?(Ikn(),Tit):(Ikn(),Bit)}function nvn(n){var t,e,i,r,c,a;if(Ljn(),4!=n.e&&5!=n.e)throw hp(new Qm("Token#complementRanges(): must be RANGE: "+n.e));for(xln(c=n),Lmn(c),i=c.b.length+2,0==c.b[0]&&(i-=2),(e=c.b[c.b.length-1])==jKn&&(i-=2),(r=new cU(4)).b=VQ(Wot,MTn,25,i,15,1),a=0,c.b[0]>0&&(r.b[a++]=0,r.b[a++]=c.b[0]-1),t=1;t0&&(Kl(o,o.d-r.d),r.c==(iQ(),K4n)&&Dl(o,o.a-r.d),o.d<=0&&o.i>0&&VW(t,o,t.c.b,t.c));for(c=new pb(n.f);c.a0&&(_l(u,u.i-r.d),r.c==(iQ(),K4n)&&Rl(u,u.b-r.d),u.i<=0&&u.d>0&&VW(e,u,e.c.b,e.c))}function ivn(n,t,e){var i,r,c,a,u,o,s,h;for(run(e,"Processor compute fanout",1),U_(n.b),U_(n.a),u=null,c=Ztn(t.b,0);!u&&c.b!=c.d.c;)ny(hL(Aun(s=Yx(IX(c),86),(ryn(),C5n))))&&(u=s);for(VW(o=new ME,u,o.c.b,o.c),Ckn(n,o),h=Ztn(t.b,0);h.b!=h.d.c;)a=lL(Aun(s=Yx(IX(h),86),(ryn(),v5n))),r=null!=aG(n.b,a)?Yx(aG(n.b,a),19).a:0,b5(s,p5n,d9(r)),i=1+(null!=aG(n.a,a)?Yx(aG(n.a,a),19).a:0),b5(s,d5n,d9(i));Ron(e)}function rvn(n,t,e,i,r){var c,a,u,o,s,h,f,l,b;for(f=function(n,t){var e,i,r;for(r=new JU(n.e,0),e=0;r.bYAn)return e;i>-1e-6&&++e}return e}(n,e),u=0;u0),i.a.Xb(i.c=--i.b),h>f+u&&hB(i);for(c=new pb(l);c.a0),i.a.Xb(i.c=--i.b)}}function cvn(n){var t,i,r,c,a,u,o,s,h,f,l,b,w;if(i=n.i,t=n.n,0==n.b)for(w=i.c+t.b,b=i.b-t.b-t.c,s=0,f=(u=n.a).length;s0&&(l-=r[0]+n.c,r[0]+=n.c),r[2]>0&&(l-=r[2]+n.c),r[1]=e.Math.max(r[1],l),vK(n.a[1],i.c+t.b+r[0]-(r[1]-l)/2,r[1]);for(o=0,h=(a=n.a).length;oa&&(a=r,s.c=VQ(UKn,iEn,1,0,5,1)),r==a&&eD(s,new mP(e.c.i,e)));XH(),JC(s,n.c),ZR(n.b,u.p,s)}}(l,n),l.f=h$(l.d),function(n,t){var e,i,r,c,a,u,o,s;for(c=new pb(t.b);c.aa&&(a=r,s.c=VQ(UKn,iEn,1,0,5,1)),r==a&&eD(s,new mP(e.d.i,e)));XH(),JC(s,n.c),ZR(n.f,u.p,s)}}(l,n),l}function uvn(n,t){var i,r,c;for(c=Yx(TR(n.n,n.n.c.length-1),211).d,n.p=e.Math.min(n.p,t.g),n.r=e.Math.max(n.r,c),n.g=e.Math.max(n.g,t.g+(1==n.b.c.length?0:n.i)),n.o=e.Math.min(n.o,t.f),n.e+=t.f+(1==n.b.c.length?0:n.i),n.f=e.Math.max(n.f,t.f),r=n.n.c.length>0?(n.n.c.length-1)*n.i:0,i=new pb(n.n);i.a1)for(i=Ztn(r,0);i.b!=i.d.c;)for(c=0,u=new pb((e=Yx(IX(i),231)).e);u.a0&&(t[0]+=n.c,l-=t[0]),t[2]>0&&(l-=t[2]+n.c),t[1]=e.Math.max(t[1],l),mK(n.a[1],r.d+i.d+t[0]-(t[1]-l)/2,t[1]);else for(w=r.d+i.d,b=r.a-i.d-i.a,s=0,f=(u=n.a).length;s=0&&c!=e)throw hp(new Qm(kxn));for(r=0,o=0;o0||0==y7(c.b.d,n.b.d+n.b.a)&&r.b<0||0==y7(c.b.d+c.b.a,n.b.d)&&r.b>0){o=0;break}}else o=e.Math.min(o,bhn(n,c,r));o=e.Math.min(o,bvn(n,a,o,r))}return o}function wvn(n,t){var e,i,r,c,a,u;if(n.b<2)throw hp(new Qm("The vector chain must contain at least a source and a target point."));for(S$(0!=n.b),TC(t,(i=Yx(n.a.a.c,8)).a,i.b),u=new a$((!t.a&&(t.a=new XO(Qrt,t,5)),t.a)),c=Ztn(n,1);c.aty(NO(a.g,a.d[0]).a)?(S$(o.b>0),o.a.Xb(o.c=--o.b),ZL(o,a),r=!0):u.e&&u.e.gc()>0&&(c=(!u.e&&(u.e=new ip),u.e).Mc(t),s=(!u.e&&(u.e=new ip),u.e).Mc(e),(c||s)&&((!u.e&&(u.e=new ip),u.e).Fc(a),++a.c));r||(i.c[i.c.length]=a)}function kvn(n){var t,e,i;if(dC(Yx(Aun(n,(gjn(),g0n)),98)))for(e=new pb(n.j);e.a>>0).toString(16),t.length-2,t.length):n>=eMn?"\\v"+l$(t="0"+(n>>>0).toString(16),t.length-6,t.length):""+String.fromCharCode(n&fTn)}return e}function Evn(n,t){var e,i,r,c,a,u,o,s,h,f;if(a=n.e,0==(o=t.e))return n;if(0==a)return 0==t.e?t:new C_(-t.e,t.d,t.a);if((c=n.d)+(u=t.d)==2)return e=Gz(n.a[0],uMn),i=Gz(t.a[0],uMn),a<0&&(e=sJ(e)),o<0&&(i=sJ(i)),Utn(n7(e,i));if(-1==(r=c!=u?c>u?1:-1:w6(n.a,t.a,c)))f=-o,h=a==o?GV(t.a,u,n.a,c):WQ(t.a,u,n.a,c);else if(f=a,a==o){if(0==r)return bdn(),pFn;h=GV(n.a,c,t.a,u)}else h=WQ(n.a,c,t.a,u);return SU(s=new C_(f,h.length,h)),s}function Tvn(n){var t,e,i,r,c,a;for(this.e=new ip,this.a=new ip,e=n.b-1;e<3;e++)A$(n,0,Yx(ken(n,0),8));if(n.b<4)throw hp(new Qm("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,function(n,t){var e,i,r,c,a;if(t<2*n.b)throw hp(new Qm("The knot vector must have at least two time the dimension elements."));for(n.f=1,r=0;r=t.o&&e.f<=t.f||.5*t.a<=e.f&&1.5*t.a>=e.f){if((c=Yx(TR(t.n,t.n.c.length-1),211)).e+c.d+e.g+r<=i&&(Yx(TR(t.n,t.n.c.length-1),211).f-n.f+e.f<=n.b||1==n.a.c.length))return l7(t,e),!0;if(t.s+e.g<=i&&(t.t+t.d+e.f+r<=n.b||1==n.a.c.length))return eD(t.b,e),a=Yx(TR(t.n,t.n.c.length-1),211),eD(t.n,new gG(t.s,a.f+a.a+t.i,t.i)),Cin(Yx(TR(t.n,t.n.c.length-1),211),e),uvn(t,e),!0}return!1}function Pvn(n,t,e){var i,r,c,a;return n.ej()?(r=null,c=n.fj(),i=n.Zi(1,a=HJ(n,t,e),e,t,c),n.bj()&&!(n.ni()&&null!=a?Q8(a,e):iI(a)===iI(e))?(null!=a&&(r=n.dj(a,r)),r=n.cj(e,r),n.ij()&&(r=n.lj(a,e,r)),r?(r.Ei(i),r.Fi()):n.$i(i)):(n.ij()&&(r=n.lj(a,e,r)),r?(r.Ei(i),r.Fi()):n.$i(i)),a):(a=HJ(n,t,e),n.bj()&&!(n.ni()&&null!=a?Q8(a,e):iI(a)===iI(e))&&(r=null,null!=a&&(r=n.dj(a,null)),(r=n.cj(e,r))&&r.Fi()),a)}function Ivn(n,t){var i,r,c,a,u,o,s;t%=24,n.q.getHours()!=t&&((i=new e.Date(n.q.getTime())).setDate(i.getDate()+1),(u=n.q.getTimezoneOffset()-i.getTimezoneOffset())>0&&(o=u/60|0,s=u%60,r=n.q.getDate(),n.q.getHours()+o>=24&&++r,c=new e.Date(n.q.getFullYear(),n.q.getMonth(),r,t+o,n.q.getMinutes()+s,n.q.getSeconds(),n.q.getMilliseconds()),n.q.setTime(c.getTime()))),a=n.q.getTime(),n.q.setTime(a+36e5),n.q.getHours()!=t&&n.q.setTime(a)}function Cvn(n,t){var e,i,r,c;if(run(t,"Path-Like Graph Wrapping",1),0!=n.b.c.length)if(null==(r=new rln(n)).i&&(r.i=D2(r,new kc)),e=ty(r.i)*r.f/(null==r.i&&(r.i=D2(r,new kc)),ty(r.i)),r.b>e)Ron(t);else{switch(Yx(Aun(n,(gjn(),t2n)),337).g){case 2:c=new Tc;break;case 0:c=new wc;break;default:c=new Mc}if(i=c.Vf(n,r),!c.Wf())switch(Yx(Aun(n,u2n),338).g){case 2:i=dhn(r,i);break;case 1:i=uun(r,i)}(function(n,t,e){var i,r,c,a,u,o,s,h,f,l,b;if(!e.dc()){for(a=0,h=0,l=Yx((i=e.Kc()).Pb(),19).a;a1||-1==w)if(f=Yx(d,69),l=Yx(h,69),f.dc())l.$b();else for(a=!!nin(t),c=0,u=n.a?f.Kc():f.Zh();u.Ob();)s=Yx(u.Pb(),56),(r=Yx(UJ(n,s),56))?(a?-1==(o=l.Xc(r))?l.Xh(c,r):c!=o&&l.ji(c,r):l.Xh(c,r),++c):n.b&&!a&&(l.Xh(c,s),++c);else null==d?h.Wb(null):null==(r=UJ(n,d))?n.b&&!nin(t)&&h.Wb(d):h.Wb(r)}function Nvn(n,t){var i,r,c,a,u,o,s,f;for(i=new Le,c=new $K(bA(u7(t).a.Kc(),new h));Vfn(c);)if(!ZW(r=Yx(kV(c),17))&&Ban(o=r.c.i,uUn)){if(-1==(f=Sdn(n,o,uUn,aUn)))continue;i.b=e.Math.max(i.b,f),!i.a&&(i.a=new ip),eD(i.a,o)}for(u=new $K(bA(o7(t).a.Kc(),new h));Vfn(u);)if(!ZW(a=Yx(kV(u),17))&&Ban(s=a.d.i,aUn)){if(-1==(f=Sdn(n,s,aUn,uUn)))continue;i.d=e.Math.max(i.d,f),!i.c&&(i.c=new ip),eD(i.c,s)}return i}function xvn(n){var t,e,i,r;if(jfn(),t=oG(n),n1e6)throw hp(new Bm("power of ten too big"));if(n<=Yjn)return mV(ifn(kFn[1],t),t);for(r=i=ifn(kFn[1],Yjn),e=D3(n-Yjn),t=oG(n%Yjn);k8(e,Yjn)>0;)r=uZ(r,i),e=n7(e,Yjn);for(r=mV(r=uZ(r,ifn(kFn[1],t)),Yjn),e=D3(n-Yjn);k8(e,Yjn)>0;)r=mV(r,Yjn),e=n7(e,Yjn);return mV(r,t)}function Dvn(n,t){var e,i,r,c,a;run(t,"Layer constraint postprocessing",1),0!=(a=n.b).c.length&&($z(0,a.c.length),function(n,t,e,i,r){var c,a,u,o,s,h;for(c=new pb(n.b);c.a1)););(u>0||l.Hc((Chn(),pit))&&(!c.n&&(c.n=new m_(act,c,1,7)),c.n).i>0)&&(o=!0),u>1&&(s=!0)}o&&t.Fc((edn(),SVn)),s&&t.Fc((edn(),PVn))}(t,i=Yx(Aun(r,(Ojn(),bQn)),21)),i.Hc((edn(),SVn)))for(e=new UO((!t.c&&(t.c=new m_(oct,t,9,9)),t.c));e.e!=e.i.gc();)bkn(n,t,r,Yx(hen(e),118));return 0!=Yx(jln(t,(gjn(),n0n)),174).gc()&&cdn(t,r),ny(hL(Aun(r,u0n)))&&i.Fc(AVn),O$(r,O0n)&&Rm(new B7(ty(fL(Aun(r,O0n)))),r),iI(jln(t,E1n))===iI((O8(),$et))?function(n,t,e){var i,r,c,a,u,o,s,h,f,l,b,w,d,g,p,v,m,y,k,j,E,T;for(a=new ME,v=Yx(Aun(e,(gjn(),a1n)),103),w=0,C2(a,(!t.a&&(t.a=new m_(uct,t,10,11)),t.a));0!=a.b;)s=Yx(0==a.b?null:(S$(0!=a.b),VZ(a,a.a.a)),33),(iI(jln(t,XZn))!==iI((k5(),W2n))||iI(jln(t,r1n))===iI((min(),RWn))||iI(jln(t,r1n))===iI((min(),xWn))||ny(hL(jln(t,VZn)))||iI(jln(t,HZn))!==iI((e9(),Izn)))&&!ny(hL(jln(s,UZn)))&&Aen(s,(Ojn(),IQn),d9(w++)),!ny(hL(jln(s,r0n)))&&(f=0!=(!s.a&&(s.a=new m_(uct,s,10,11)),s.a).i,b=Yan(s),l=iI(jln(s,E1n))===iI((O8(),$et)),g=null,(T=!zQ(s,(Cjn(),gnt))||_N(lL(jln(s,gnt)),CIn))&&l&&(f||b)&&(b5(g=Wpn(s),a1n,v),O$(g,O0n)&&Rm(new B7(ty(fL(Aun(g,O0n)))),g),0!=Yx(jln(s,n0n),174).gc()&&(h=g,SE(new SR(null,(!s.c&&(s.c=new m_(oct,s,9,9)),new Nz(s.c,16))),new gw(h)),cdn(s,g))),m=e,(y=Yx(BF(n.a,IG(s)),10))&&(m=y.e),d=Qyn(n,s,m),g&&(d.e=g,g.e=d,C2(a,(!s.a&&(s.a=new m_(uct,s,10,11)),s.a))));for(w=0,VW(a,t,a.c.b,a.c);0!=a.b;){for(o=new UO((!(c=Yx(0==a.b?null:(S$(0!=a.b),VZ(a,a.a.a)),33)).b&&(c.b=new m_(nct,c,12,3)),c.b));o.e!=o.i.gc();)dgn(u=Yx(hen(o),79)),(iI(jln(t,XZn))!==iI((k5(),W2n))||iI(jln(t,r1n))===iI((min(),RWn))||iI(jln(t,r1n))===iI((min(),xWn))||ny(hL(jln(t,VZn)))||iI(jln(t,HZn))!==iI((e9(),Izn)))&&Aen(u,(Ojn(),IQn),d9(w++)),j=iun(Yx(c1((!u.b&&(u.b=new AN(Zrt,u,4,7)),u.b),0),82)),E=iun(Yx(c1((!u.c&&(u.c=new AN(Zrt,u,5,8)),u.c),0),82)),ny(hL(jln(u,r0n)))||ny(hL(jln(j,r0n)))||ny(hL(jln(E,r0n)))||(p=c,Whn(u)&&ny(hL(jln(j,I1n)))&&ny(hL(jln(u,C1n)))||XZ(E,j)?p=j:XZ(j,E)&&(p=E),m=e,(y=Yx(BF(n.a,p),10))&&(m=y.e),b5(Ijn(n,u,p,m),(Ojn(),nQn),Nwn(n,u,t,e)));if(l=iI(jln(c,E1n))===iI((O8(),$et)))for(r=new UO((!c.a&&(c.a=new m_(uct,c,10,11)),c.a));r.e!=r.i.gc();)T=!zQ(i=Yx(hen(r),33),(Cjn(),gnt))||_N(lL(jln(i,gnt)),CIn),k=iI(jln(i,E1n))===iI($et),T&&k&&VW(a,i,a.c.b,a.c)}}(n,t,r):function(n,t,e){var i,r,c,a,u,o,s,h,f,l,b,w,d;for(f=0,r=new UO((!t.a&&(t.a=new m_(uct,t,10,11)),t.a));r.e!=r.i.gc();)ny(hL(jln(i=Yx(hen(r),33),(gjn(),r0n))))||(iI(jln(t,XZn))===iI((k5(),W2n))&&iI(jln(t,r1n))!==iI((min(),RWn))&&iI(jln(t,r1n))!==iI((min(),xWn))&&!ny(hL(jln(t,VZn)))&&iI(jln(t,HZn))===iI((e9(),Izn))||ny(hL(jln(i,UZn)))||(Aen(i,(Ojn(),IQn),d9(f)),++f),Qyn(n,i,e));for(f=0,s=new UO((!t.b&&(t.b=new m_(nct,t,12,3)),t.b));s.e!=s.i.gc();)u=Yx(hen(s),79),(iI(jln(t,(gjn(),XZn)))!==iI((k5(),W2n))||iI(jln(t,r1n))===iI((min(),RWn))||iI(jln(t,r1n))===iI((min(),xWn))||ny(hL(jln(t,VZn)))||iI(jln(t,HZn))!==iI((e9(),Izn)))&&(Aen(u,(Ojn(),IQn),d9(f)),++f),w=Kun(u),d=Bun(u),h=ny(hL(jln(w,I1n))),b=!ny(hL(jln(u,r0n))),l=h&&Whn(u)&&ny(hL(jln(u,C1n))),c=IG(w)==t&&IG(w)==IG(d),a=(IG(w)==t&&d==t)^(IG(d)==t&&w==t),b&&!l&&(a||c)&&Ijn(n,u,t,e);if(IG(t))for(o=new UO(CH(IG(t)));o.e!=o.i.gc();)(w=Kun(u=Yx(hen(o),79)))==t&&Whn(u)&&(l=ny(hL(jln(w,(gjn(),I1n))))&&ny(hL(jln(u,C1n))))&&Ijn(n,u,t,e)}(n,t,r),r}function _vn(n,t,i,r){var c,a,u;if(this.j=new ip,this.k=new ip,this.b=new ip,this.c=new ip,this.e=new hC,this.i=new Nv,this.f=new cp,this.d=new ip,this.g=new ip,eD(this.b,n),eD(this.b,t),this.e.c=e.Math.min(n.a,t.a),this.e.d=e.Math.min(n.b,t.b),this.e.b=e.Math.abs(n.a-t.a),this.e.a=e.Math.abs(n.b-t.b),c=Yx(Aun(r,(gjn(),$1n)),74))for(u=Ztn(c,0);u.b!=u.d.c;)w1((a=Yx(IX(u),8)).a,n.a)&&KD(this.i,a);i&&eD(this.j,i),eD(this.k,r)}function Fvn(n,t,e){var i,r,c,a,u,o,s,h,f,l;for(h=new h_(new rw(e)),x_(u=VQ(Vot,wSn,25,n.f.e.c.length,16,1),u.length),e[t.b]=0,s=new pb(n.f.e);s.as&&i>s)){r=!1,e.n&&LD(e,"bk node placement breaks on "+u+" which should have been after "+h);break}h=u,s=ty(t.p[u.p])+ty(t.d[u.p])+u.o.b+u.d.a}if(!r)break}return e.n&&LD(e,t+" is feasible: "+r),r}function Hvn(n,t,e,i){var r,c,a,u,o,s,h;if(e.d.i!=t.i){for(Al(r=new rin(n),(bon(),Bzn)),b5(r,(Ojn(),CQn),e),b5(r,(gjn(),g0n),(Ran(),oit)),i.c[i.c.length]=r,ZG(a=new Ion,r),whn(a,(Ikn(),qit)),ZG(u=new Ion,r),whn(u,Eit),h=e.d,QG(e,a),o4(c=new jq,e),b5(c,$1n,null),YG(c,u),QG(c,h),s=new JU(e.b,0);s.b=g&&n.e[s.p]>w*n.b||m>=i*g)&&(l.c[l.c.length]=o,o=new ip,C2(u,a),a.a.$b(),h-=f,b=e.Math.max(b,h*n.b+d),h+=m,v=m,m=0,f=0,d=0);return new mP(b,l)}function zvn(n){var t,e,i,r,c,a,u,o,s,h,f,l;for(e=new ub(new Zl(n.c.b).a.vc().Kc());e.a.Ob();)u=Yx(e.a.Pb(),42),null==(r=(t=Yx(u.dd(),149)).a)&&(r=""),!(i=EL(n.c,r))&&0==r.length&&(i=F8(n)),i&&!V7(i.c,t,!1)&&KD(i.c,t);for(a=Ztn(n.a,0);a.b!=a.d.c;)c=Yx(IX(a),478),s=hV(n.c,c.a),l=hV(n.c,c.b),s&&l&&KD(s.c,new mP(l,c.c));for(BH(n.a),f=Ztn(n.b,0);f.b!=f.d.c;)h=Yx(IX(f),478),t=jL(n.c,h.a),o=hV(n.c,h.b),t&&o&&sT(t,o,h.c);BH(n.b)}function Uvn(n){var t,e,i,r,c,a;if(!n.f){if(a=new Mo,c=new Mo,null==(t=Hat).a.zc(n,t)){for(r=new UO(Iq(n));r.e!=r.i.gc();)jF(a,Uvn(Yx(hen(r),26)));t.a.Bc(n),t.a.gc()}for(!n.s&&(n.s=new m_(tat,n,21,17)),i=new UO(n.s);i.e!=i.i.gc();)CO(e=Yx(hen(i),170),99)&&fY(c,Yx(e,18));B6(c),n.r=new ID(n,(Yx(c1(aq((YF(),gat).o),6),18),c.i),c.g),jF(a,n.r),B6(a),n.f=new HI((Yx(c1(aq(gat.o),5),18),a.i),a.g),bV(n).b&=-3}return n.f}function Xvn(n){var t,e,i,r,c,a,u,o,s,h,f,l,b,w;for(a=n.o,i=VQ(Wot,MTn,25,a,15,1),r=VQ(Wot,MTn,25,a,15,1),e=n.p,t=VQ(Wot,MTn,25,e,15,1),c=VQ(Wot,MTn,25,e,15,1),s=0;s=0&&!Nin(n,h,f);)--f;r[h]=f}for(b=0;b=0&&!Nin(n,u,w);)--u;c[w]=u}for(o=0;ot[l]&&li[o]&&cgn(n,o,l,!1,!0)}function Wvn(n){var t,e,i,r,c,a,u,o;e=ny(hL(Aun(n,(Bdn(),tGn)))),c=n.a.c.d,u=n.a.d.d,e?(a=KO(yN(new QS(u.a,u.b),c),.5),o=KO(dO(n.e),.5),t=yN(mN(new QS(c.a,c.b),a),o),x$(n.d,t)):(r=ty(fL(Aun(n.a,vGn))),i=n.d,c.a>=u.a?c.b>=u.b?(i.a=u.a+(c.a-u.a)/2+r,i.b=u.b+(c.b-u.b)/2-r-n.e.b):(i.a=u.a+(c.a-u.a)/2+r,i.b=c.b+(u.b-c.b)/2+r):c.b>=u.b?(i.a=c.a+(u.a-c.a)/2+r,i.b=u.b+(c.b-u.b)/2+r):(i.a=c.a+(u.a-c.a)/2+r,i.b=c.b+(u.b-c.b)/2-r-n.e.b))}function Vvn(n,t){var e,i,r,c,a,u,o;if(null==n)return null;if(0==(c=n.length))return"";for(o=VQ(Xot,sTn,25,c,15,1),YQ(0,c,n.length),YQ(0,c,o.length),aF(n,0,c,o,0),e=null,u=t,r=0,a=0;r0?l$(e.a,0,c-1):"":n.substr(0,c-1):e?e.a:n}function Qvn(n){uT(n,new tun(rk(nk(ik(ek(new du,uPn),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new at))),DU(n,uPn,oPn,oen(Rqn)),DU(n,uPn,sPn,oen(Aqn)),DU(n,uPn,hPn,oen(Sqn)),DU(n,uPn,fPn,oen($qn)),DU(n,uPn,oSn,oen(xqn)),DU(n,uPn,sSn,oen(Nqn)),DU(n,uPn,uSn,oen(Dqn)),DU(n,uPn,hSn,oen(Lqn)),DU(n,uPn,ePn,oen(Iqn)),DU(n,uPn,iPn,oen(Pqn)),DU(n,uPn,rPn,oen(Cqn)),DU(n,uPn,cPn,oen(Oqn))}function Yvn(n,t,e,i){var r,c,a,u,o,s,h;if(Al(c=new rin(n),(bon(),qzn)),b5(c,(gjn(),g0n),(Ran(),oit)),r=0,t){for(b5(a=new Ion,(Ojn(),CQn),t),b5(c,CQn,t.i),whn(a,(Ikn(),qit)),ZG(a,c),s=0,h=(o=CU(t.e)).length;s=0&&l<=1&&b>=0&&b<=1?mN(new QS(n.a,n.b),KO(new QS(t.a,t.b),l)):null}function nmn(n){var t,i,r,c,a,u,o,s,h,f;for(s=new Jl(new Yl(Tfn(n)).a.vc().Kc());s.a.Ob();){for(r=Yx(s.a.Pb(),42),h=0,f=0,h=(o=Yx(r.cd(),10)).d.d,f=o.o.b+o.d.a,n.d[o.p]=0,t=o;(c=n.a[t.p])!=o;)i=jtn(t,c),0,u=n.c==(Jq(),w4n)?i.d.n.b+i.d.a.b-i.c.n.b-i.c.a.b:i.c.n.b+i.c.a.b-i.d.n.b-i.d.a.b,a=ty(n.d[t.p])+u,n.d[c.p]=a,h=e.Math.max(h,c.d.d-a),f=e.Math.max(f,a+c.o.b+c.d.a),t=c;t=o;do{n.d[t.p]=ty(n.d[t.p])+h,t=n.a[t.p]}while(t!=o);n.b[o.p]=h+f}}function tmn(n){var t,i,r,c,a,u,o,s,h,f,l;for(n.b=!1,f=JTn,o=ZTn,l=JTn,s=ZTn,i=n.e.a.ec().Kc();i.Ob();)for(r=(t=Yx(i.Pb(),266)).a,f=e.Math.min(f,r.c),o=e.Math.max(o,r.c+r.b),l=e.Math.min(l,r.d),s=e.Math.max(s,r.d+r.a),a=new pb(t.c);a.a=($z(c,n.c.length),Yx(n.c[c],200)).e,!((s=omn(i,f,!1).a)>t.b&&!o)&&((o||s<=t.b)&&(o&&s>t.b?(e.d=s,pY(e,Don(e,s))):(san(e.q,u),e.c=!0),pY(i,r-(e.s+e.r)),Qen(i,e.q.e+e.q.d,t.f),c0(t,i),n.c.length>c&&(acn(($z(c,n.c.length),Yx(n.c[c],200)),i),0==($z(c,n.c.length),Yx(n.c[c],200)).a.c.length&&KV(n,c)),h=!0),h))}function rmn(n,t,e,i){var r,c,a,u,o,s,h;if(h=dwn(n.e.Tg(),t),r=0,c=Yx(n.g,119),o=null,TT(),Yx(t,66).Oj()){for(u=0;u0?n.i:0)>t&&s>0&&(a=0,u+=s+n.i,c=e.Math.max(c,b),r+=s+n.i,s=0,b=0,i&&(++l,eD(n.n,new gG(n.s,u,n.i))),o=0),b+=h.g+(o>0?n.i:0),s=e.Math.max(s,h.f),i&&Cin(Yx(TR(n.n,l),211),h),a+=h.g+(o>0?n.i:0),++o;return c=e.Math.max(c,b),r+=s,i&&(n.r=c,n.d=r,Trn(n.j)),new mH(n.s,n.t,c,r)}function smn(n,t,e,i,r){var c,a,u,o,s,h,f,l,b;if(oE(),B_(n,"src"),B_(e,"dest"),l=V5(n),o=V5(e),kD(0!=(4&l.i),"srcType is not an array"),kD(0!=(4&o.i),"destType is not an array"),f=l.c,a=o.c,kD(0!=(1&f.i)?f==a:0==(1&a.i),"Array types don't match"),b=n.length,s=e.length,t<0||i<0||r<0||t+r>b||i+r>s)throw hp(new Cp);if(0==(1&f.i)&&l!=o)if(h=h1(n),c=h1(e),iI(n)===iI(e)&&ti;)DF(c,u,h[--t]);else for(u=i+r;i0&&hhn(n,t,e,i,r,!0)}function hmn(){hmn=O,mFn=x4(Gy(Wot,1),MTn,25,15,[nTn,1162261467,zEn,1220703125,362797056,1977326743,zEn,387420489,UTn,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128e7,1801088541,113379904,148035889,191102976,244140625,308915776,387420489,481890304,594823321,729e6,887503681,zEn,1291467969,1544804416,1838265625,60466176]),yFn=x4(Gy(Wot,1),MTn,25,15,[-1,-1,31,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5])}function fmn(n,t){var e,i,r,c,a;if(a=Yx(t,136),xln(n),xln(a),null!=a.b){if(n.c=!0,null==n.b)return n.b=VQ(Wot,MTn,25,a.b.length,15,1),void smn(a.b,0,n.b,0,a.b.length);for(c=VQ(Wot,MTn,25,n.b.length+a.b.length,15,1),e=0,i=0,r=0;e=n.b.length?(c[r++]=a.b[i++],c[r++]=a.b[i++]):i>=a.b.length?(c[r++]=n.b[e++],c[r++]=n.b[e++]):a.b[i]0&&(!(r=(!n.n&&(n.n=new m_(act,n,1,7)),Yx(c1(n.n,0),137)).a)||yI(yI((t.a+=' "',t),r),'"'))),!n.b&&(n.b=new AN(Zrt,n,4,7)),e=!(n.b.i<=1&&(!n.c&&(n.c=new AN(Zrt,n,5,8)),n.c.i<=1)),t.a+=e?" [":" ",yI(t,lA(new Ty,new UO(n.b))),e&&(t.a+="]"),t.a+=pIn,e&&(t.a+="["),yI(t,lA(new Ty,new UO(n.c))),e&&(t.a+="]"),t.a)}function wmn(n,t){var e,i,r,c,a,u,o;if(n.a){if(o=null,null!=(u=n.a.ne())?t.a+=""+u:null!=(a=n.a.Dj())&&(-1!=(c=VI(a,gun(91)))?(o=a.substr(c),t.a+=""+l$(null==a?aEn:(vB(a),a),0,c)):t.a+=""+a),n.d&&0!=n.d.i){for(r=!0,t.a+="<",i=new UO(n.d);i.e!=i.i.gc();)e=Yx(hen(i),87),r?r=!1:t.a+=tEn,wmn(e,t);t.a+=">"}null!=o&&(t.a+=""+o)}else n.e?null!=(u=n.e.zb)&&(t.a+=""+u):(t.a+="?",n.b?(t.a+=" super ",wmn(n.b,t)):n.f&&(t.a+=" extends ",wmn(n.f,t)))}function dmn(n,t,e,i){var r,c,a,u,o,s;if(c=X9(i),!ny(hL(Aun(i,(gjn(),q1n))))&&!ny(hL(Aun(n,P1n)))||dC(Yx(Aun(n,g0n),98)))switch(ZG(u=new Ion,n),t?((s=u.n).a=t.a-n.n.a,s.b=t.b-n.n.b,Hon(s,0,0,n.o.a,n.o.b),whn(u,Tpn(u,c))):(r=G7(c),whn(u,e==(h0(),i3n)?r:O9(r))),a=Yx(Aun(i,(Ojn(),bQn)),21),o=u.j,c.g){case 2:case 1:(o==(Ikn(),Tit)||o==Bit)&&a.Fc((edn(),OVn));break;case 4:case 3:(o==(Ikn(),Eit)||o==qit)&&a.Fc((edn(),OVn))}else r=G7(c),u=vpn(n,e,e==(h0(),i3n)?r:O9(r));return u}function gmn(n,t,i){var r,c,a,u,o,s,h;return e.Math.abs(t.s-t.c)h?new wz((iQ(),_4n),i,t,s-h):s>0&&h>0&&(new wz((iQ(),_4n),t,i,0),new wz(_4n,i,t,0))),a)}function pmn(n,t){var i,r,c,a,u;for(u=new t6(new Ql(n.f.b).a);u.b;){if(c=Yx((a=s1(u)).cd(),594),1==t){if(c.gf()!=(t9(),eet)&&c.gf()!=Jtt)continue}else if(c.gf()!=(t9(),Ztt)&&c.gf()!=net)continue;switch(r=Yx(Yx(a.dd(),46).b,81),i=Yx(Yx(a.dd(),46).a,189).c,c.gf().g){case 2:r.g.c=n.e.a,r.g.b=e.Math.max(1,r.g.b+i);break;case 1:r.g.c=r.g.c+i,r.g.b=e.Math.max(1,r.g.b-i);break;case 4:r.g.d=n.e.b,r.g.a=e.Math.max(1,r.g.a+i);break;case 3:r.g.d=r.g.d+i,r.g.a=e.Math.max(1,r.g.a-i)}}}function vmn(n,t){var e,i,r,c,a,u,o,s,f,l,b;for(i=new $K(bA(lbn(t).a.Kc(),new h));Vfn(i);)CO(c1((!(e=Yx(kV(i),79)).b&&(e.b=new AN(Zrt,e,4,7)),e.b),0),186)||(o=iun(Yx(c1((!e.c&&(e.c=new AN(Zrt,e,5,8)),e.c),0),82)),Rfn(e)||(a=t.i+t.g/2,u=t.j+t.f/2,f=o.i+o.g/2,l=o.j+o.f/2,(b=new Pk).a=f-a,b.b=l-u,Ecn(c=new QS(b.a,b.b),t.g,t.f),b.a-=c.a,b.b-=c.b,a=f-b.a,u=l-b.b,Ecn(s=new QS(b.a,b.b),o.g,o.f),b.a-=s.a,b.b-=s.b,f=a+b.a,l=u+b.b,x1(r=Ywn(e,!0,!0),a),R1(r,u),O1(r,f),D1(r,l),vmn(n,o)))}function mmn(n){uT(n,new tun(rk(nk(ik(ek(new du,J$n),"ELK SPOrE Compaction"),"ShrinkTree is a compaction algorithm that maintains the topology of a layout. The relocation of diagram elements is based on contracting a spanning tree."),new tu))),DU(n,J$n,Z$n,oen(x9n)),DU(n,J$n,nLn,oen($9n)),DU(n,J$n,tLn,oen(A9n)),DU(n,J$n,eLn,oen(C9n)),DU(n,J$n,iLn,oen(O9n)),DU(n,J$n,fPn,I9n),DU(n,J$n,LPn,8),DU(n,J$n,rLn,oen(N9n)),DU(n,J$n,cLn,oen(T9n)),DU(n,J$n,aLn,oen(M9n)),DU(n,J$n,oAn,(TA(),!1))}function ymn(n,t,e){var i,r,c,a,u,o,s,h;return i=n.a.o==(RG(),m4n)?JTn:ZTn,!(u=xpn(n,new TS(t,e))).a&&u.c?(KD(n.d,u),i):u.a?(r=u.a.c,o=u.a.d,e?(s=n.a.c==(Jq(),d4n)?o:r,c=n.a.c==d4n?r:o,a=n.a.g[c.i.p],h=ty(n.a.p[a.p])+ty(n.a.d[c.i.p])+c.n.b+c.a.b-ty(n.a.d[s.i.p])-s.n.b-s.a.b):(s=n.a.c==(Jq(),w4n)?o:r,c=n.a.c==w4n?r:o,h=ty(n.a.p[n.a.g[c.i.p].p])+ty(n.a.d[c.i.p])+c.n.b+c.a.b-ty(n.a.d[s.i.p])-s.n.b-s.a.b),n.a.n[n.a.g[r.i.p].p]=(TA(),!0),n.a.n[n.a.g[o.i.p].p]=!0,h):i}function kmn(n,t,e){var i,r,c,a,u,o,s;if(Lwn(n.e,t))TT(),kfn((u=Yx(t,66).Oj()?new cR(t,n):new VP(t,n)).c,u.b),TO(u,Yx(e,14));else{for(s=dwn(n.e.Tg(),t),i=Yx(n.g,119),c=0;cn.o.b)return!1;if(e=i7(n,Eit),t.d+t.a+(e.gc()-1)*r>n.o.b)return!1}return!0}function Smn(n,t){var e,i,r,c,a,u,o,s,h,f,l,b,w;if(a=n.e,o=t.e,0==a)return t;if(0==o)return n;if((c=n.d)+(u=t.d)==2)return e=Gz(n.a[0],uMn),i=Gz(t.a[0],uMn),a==o?(w=WR(h=t7(e,i)),0==(b=WR(UK(h,32)))?new wQ(a,w):new C_(a,2,x4(Gy(Wot,1),MTn,25,15,[w,b]))):Utn(a<0?n7(i,e):n7(e,i));if(a==o)l=a,f=c>=u?WQ(n.a,c,t.a,u):WQ(t.a,u,n.a,c);else{if(0==(r=c!=u?c>u?1:-1:w6(n.a,t.a,c)))return bdn(),pFn;1==r?(l=a,f=GV(n.a,c,t.a,u)):(l=o,f=GV(t.a,u,n.a,c))}return SU(s=new C_(l,f.length,f)),s}function Pmn(n,t,i,r,c,a,u){var o,s,h,f,l,b,w;return l=ny(hL(Aun(t,(gjn(),G1n)))),b=null,a==(h0(),e3n)&&r.c.i==i?b=r.c:a==i3n&&r.d.i==i&&(b=r.d),(h=u)&&l&&!b?(eD(h.e,r),w=e.Math.max(ty(fL(Aun(h.d,y1n))),ty(fL(Aun(r,y1n)))),b5(h.d,y1n,w)):(Ikn(),f=Hit,b?f=b.j:dC(Yx(Aun(i,g0n),98))&&(f=a==e3n?qit:Eit),s=function(n,t,e,i,r,c){var a,u,o,s,h,f;return a=null,s=i==(h0(),e3n)?c.c:c.d,o=X9(t),s.i==e?(a=Yx(BF(n.b,s),10))||(b5(a=Jkn(s,Yx(Aun(e,(gjn(),g0n)),98),r,function(n){var t,e,i,r,c,a,u,o,s,h,f,l;for(r=ny(hL(Aun(u=n.i,(gjn(),I1n)))),h=0,i=0,s=new pb(n.g);s.a=n.b[r+1])r+=2;else{if(!(e=eMn?pI(e,U9(i)):KF(e,i&fTn),c=new nG(10,null,0),function(n,t,e){i_(e,n.a.c.length),QW(n.a,e,t)}(n.a,c,a-1)):(c.bm().length,pI(e=new Oy,c.bm())),0==t.e?(i=t._l())>=eMn?pI(e,U9(i)):KF(e,i&fTn):pI(e,t.bm()),Yx(c,521).b=e.a):Up(n.a,t);else for(r=0;r0&&k8(r,-6)>=0){if(k8(r,0)>=0){for(c=e+WR(r),u=h-1;u>=c;u--)f[u+1]=f[u];return f[++c]=46,o&&(f[--e]=45),Vnn(f,e,h-e+1)}for(a=2;LT(a,t7(sJ(r),1));a++)f[--e]=48;return f[--e]=46,f[--e]=48,o&&(f[--e]=45),Vnn(f,e,h-e)}return w=e+1,i=h,l=new $y,o&&(l.a+="-"),i-w>=1?(_F(l,f[e]),l.a+=".",l.a+=Vnn(f,e+1,h-e-1)):l.a+=Vnn(f,e,h-e),l.a+="E",k8(r,0)>0&&(l.a+="+"),l.a+=""+HK(r),l.a}(D3(n.f),oG(n.e)),n.g):(r=pjn((!n.c&&(n.c=J6(n.f)),n.c),0),0==n.e?r:(t=(!n.c&&(n.c=J6(n.f)),n.c).e<0?2:1,e=r.length,i=-n.e+e-t,(c=new Ay).a+=""+r,n.e>0&&i>=-6?i>=0?UG(c,e-oG(n.e),String.fromCharCode(46)):(c.a=l$(c.a,0,t-1)+"0."+lI(c.a,t-1),UG(c,t+1,Vnn(rFn,0,-oG(i)-1))):(e-t>=1&&(UG(c,t,String.fromCharCode(46)),++e),UG(c,e,String.fromCharCode(69)),i>0&&UG(c,++e,String.fromCharCode(43)),UG(c,++e,""+HK(D3(i)))),n.g=c.a,n.g))}function _mn(n,t,i){var r,c,a;if((c=Yx(Aun(t,(gjn(),BZn)),275))!=(uon(),mVn)){switch(run(i,"Horizontal Compaction",1),n.a=t,function(n,t){n.g=t}(r=new wfn(((a=new dJ).d=t,a.c=Yx(Aun(a.d,b1n),218),function(n){var t,e,i,r,c,a,u;for(t=!1,e=0,r=new pb(n.d.b);r.a0&&Y4(o,!0,(t9(),net)),a.k==(bon(),_zn)&&QB(o),xB(n.f,a,t)):((s=(i=Yx(fq(a7(a)),17)).c.i)==a&&(s=i.d.i),f=new mP(s,yN(dO(a.n),s.n)),xB(n.b,a,f))}(a),Fdn(a),a.a)),n.b),1===Yx(Aun(t,FZn),422).g?Uy(r,new a2(n.a)):Uy(r,(VH(),MBn)),c.g){case 1:_ln(r);break;case 2:_ln(ekn(r,(t9(),net)));break;case 3:_ln(zy(ekn(_ln(r),(t9(),net)),new gr));break;case 4:_ln(zy(ekn(_ln(r),(t9(),net)),new Gw(a)));break;case 5:_ln(function(n,t){return n.b=t,n}(r,IXn))}ekn(r,(t9(),Ztt)),r.e=!0,function(n){var t,i,r,c;for(SE(hH(new SR(null,new Nz(n.a.b,16)),new yr),new kr),function(n){var t,e,i,r,c;for(i=new t6(new Ql(n.b).a);i.b;)t=Yx((e=s1(i)).cd(),10),c=Yx(Yx(e.dd(),46).a,10),r=Yx(Yx(e.dd(),46).b,8),mN(OI(t.n),mN(dO(c.n),r))}(n),SE(hH(new SR(null,new Nz(n.a.b,16)),new jr),new Er),n.c==(g7(),bet)&&(SE(hH(WJ(new SR(null,new Nz(new Yl(n.f),1)),new Tr),new Mr),new Ww(n)),SE(hH(fH(WJ(WJ(new SR(null,new Nz(n.d.b,16)),new Sr),new Pr),new Ir),new Cr),new Qw(n))),c=new QS(JTn,JTn),t=new QS(ZTn,ZTn),r=new pb(n.a.b);r.a1&&(s=h.mg(s,n.a,o));return 1==s.c.length?Yx(TR(s,s.c.length-1),220):2==s.c.length?function(n,t,i,r){var c,a,u,o,s,h,f,l,b,w,d,g,p;return a=n.f,f=t.f,u=a==(xbn(),V8n)||a==Y8n,o=a==Q8n||a==V8n,l=f==Q8n||f==V8n,!u||f!=V8n&&f!=Y8n?a!=Q8n&&a!=J8n||f!=Q8n&&f!=J8n?o&&l?(a==Q8n?(h=n,s=t):(h=t,s=n),b=i.j+i.f,w=h.e+r.f,d=e.Math.max(b,w)-e.Math.min(i.j,h.e),c=(h.d+r.g-i.i)*d,g=i.i+i.g,p=s.d+r.g,c<=(e.Math.max(g,p)-e.Math.min(i.i,s.d))*(s.e+r.f-i.j)?n.f==Q8n?n:t:n.f==V8n?n:t):n:n.f==J8n?n:t:n.f==Y8n?n:t}(($z(0,s.c.length),Yx(s.c[0],220)),($z(1,s.c.length),Yx(s.c[1],220)),u,a):null}function Bmn(n){var t,i,r,c,a,u;for(WZ(n.a,new nt),i=new pb(n.a);i.a=e.Math.abs(r.b)?(r.b=0,a.d+a.a>u.d&&a.du.c&&a.c0){if(t=new QP(n.i,n.g),c=(e=n.i)<100?null:new Ek(e),n.ij())for(i=0;i0){for(u=n.g,s=n.i,xV(n),c=s<100?null:new Ek(s),i=0;i4){if(!n.wj(t))return!1;if(n.rk()){if(u=(e=(i=Yx(t,49)).Ug())==n.e&&(n.Dk()?i.Og(i.Vg(),n.zk())==n.Ak():-1-i.Vg()==n.aj()),n.Ek()&&!u&&!e&&i.Zg())for(r=0;r0)if(t=new t3(n.Gi()),c=(e=h)<100?null:new Ek(e),NL(n,e,t.g),r=1==e?n.Zi(4,c1(t,0),null,0,o):n.Zi(6,t,null,-1,o),n.bj()){for(i=new UO(t);i.e!=i.i.gc();)c=n.dj(hen(i),c);c?(c.Ei(r),c.Fi()):n.$i(r)}else c?(c.Ei(r),c.Fi()):n.$i(r);else NL(n,n.Vi(),n.Wi()),n.$i(n.Zi(6,(XH(),TFn),null,-1,o));else if(n.bj())if((h=n.Vi())>0){for(u=n.Wi(),s=h,NL(n,h,u),c=s<100?null:new Ek(s),i=0;i2*c?(h=new e1(f),s=DR(a)/xR(a),o=njn(h,t,new Sv,e,i,r,s),mN(OI(h.e),o),f.c=VQ(UKn,iEn,1,0,5,1),c=0,f.c[f.c.length]=h,f.c[f.c.length]=a,c=DR(h)*xR(h)+DR(a)*xR(a)):(f.c[f.c.length]=a,c+=DR(a)*xR(a));return f}(u,t,f.a,f.b,(s=r,vB(c),s));break;case 1:w=function(n,t,e,i,r){var c,a,u,o,s,h,f,l,b;for(XH(),JC(n,new zu),a=nD(n),b=new ip,l=new ip,u=null,o=0;0!=a.b;)c=Yx(0==a.b?null:(S$(0!=a.b),VZ(a,a.a.a)),157),!u||DR(u)*xR(u)/21&&(o>DR(u)*xR(u)/2||0==a.b)&&(f=new e1(l),h=DR(u)/xR(u),s=njn(f,t,new Sv,e,i,r,h),mN(OI(f.e),s),u=f,b.c[b.c.length]=f,o=0,l.c=VQ(UKn,iEn,1,0,5,1)));return S4(b,l),b}(u,t,f.a,f.b,(h=r,vB(c),h));break;default:w=function(n,t,e,i,r){var c,a,u,o,s,h,f,l,b;for(u=VQ(Jot,rMn,25,n.c.length,15,1),Xrn(l=new h_(new Uu),n),s=0,b=new ip;0!=l.b.c.length;)if(a=Yx(0==l.b.c.length?null:TR(l.b,0),157),s>1&&DR(a)*xR(a)/2>u[0]){for(c=0;cu[c];)++c;f=new e1(new Oz(b,0,c+1)),h=DR(a)/xR(a),o=njn(f,t,new Sv,e,i,r,h),mN(OI(f.e),o),JQ(mun(l,f)),Xrn(l,new Oz(b,c+1,b.c.length)),b.c=VQ(UKn,iEn,1,0,5,1),s=0,nK(u,u.length,0)}else null!=(0==l.b.c.length?null:TR(l.b,0))&&e2(l,0),s>0&&(u[s]=u[s-1]),u[s]+=DR(a)*xR(a),++s,b.c[b.c.length]=a;return b}(u,t,f.a,f.b,(o=r,vB(c),o))}xkn(n,(b=njn(new e1(w),t,i,f.a,f.b,r,(vB(c),c))).a,b.b,!1,!0)}function Qmn(n,t){var i,r,c,a,u,o,s,h,f,l,b,w,d,g,p;for(c=0,a=0,s=new pb(n.a);s.a.5?p-=2*a*(w-.5):w<.5&&(p+=2*c*(.5-w)),p<(r=u.d.b)&&(p=r),d=u.d.c,p>g.a-d-h&&(p=g.a-d-h),u.n.a=t+p}}function Ymn(n,t){var e,i,r,c,a,u,o,s,h;return s="",0==t.length?n.de(oTn,aTn,-1,-1):(_N((h=Wun(t)).substr(0,3),"at ")&&(h=h.substr(3)),-1==(a=(h=h.replace(/\[.*?\]/g,"")).indexOf("("))?-1==(a=h.indexOf("@"))?(s=h,h=""):(s=Wun(h.substr(a+1)),h=Wun(h.substr(0,a))):(e=h.indexOf(")",a),s=h.substr(a+1,e-(a+1)),h=Wun(h.substr(0,a))),-1!=(a=VI(h,gun(46)))&&(h=h.substr(a+1)),(0==h.length||_N(h,"Anonymous function"))&&(h=aTn),u=LA(s,gun(58)),r=qN(s,gun(58),u-1),o=-1,i=-1,c=oTn,-1!=u&&-1!=r&&(c=s.substr(0,r),o=f$(s.substr(r+1,u-(r+1))),i=f$(s.substr(u+1))),n.de(c,h,o,i))}function Jmn(n,t,e){var i,r,c,a,u,o;if(0==t.l&&0==t.m&&0==t.h)throw hp(new Bm("divide by zero"));if(0==n.l&&0==n.m&&0==n.h)return e&&(P_n=rO(0,0,0)),rO(0,0,0);if(t.h==qTn&&0==t.m&&0==t.l)return function(n,t){return n.h==qTn&&0==n.m&&0==n.l?(t&&(P_n=rO(0,0,0)),JI((LJ(),O_n))):(t&&(P_n=rO(n.l,n.m,n.h)),rO(0,0,0))}(n,e);if(o=!1,t.h>>19!=0&&(t=h5(t),o=!o),a=function(n){var t,e,i;return 0!=((e=n.l)&e-1)||0!=((i=n.m)&i-1)||0!=((t=n.h)&t-1)||0==t&&0==i&&0==e?-1:0==t&&0==i&&0!=e?m0(e):0==t&&0!=i&&0==e?m0(i)+22:0!=t&&0==i&&0==e?m0(t)+44:-1}(t),c=!1,r=!1,i=!1,n.h==qTn&&0==n.m&&0==n.l){if(r=!0,c=!0,-1!=a)return u=tln(n,a),o&&A5(u),e&&(P_n=rO(0,0,0)),u;n=JI((LJ(),I_n)),i=!0,o=!o}else n.h>>19!=0&&(c=!0,n=h5(n),i=!0,o=!o);return-1!=a?_5(n,a,o,c,e):gcn(n,t)<0?(e&&(P_n=c?h5(n):rO(n.l,n.m,n.h)),rO(0,0,0)):function(n,t,e,i,r,c){var a,u,o,s,h,f;for(a=don(t,o=E5(t)-E5(n)),u=rO(0,0,0);o>=0&&(!Irn(n,a)||(o<22?u.l|=1<>>1,a.m=s>>>1|(1&h)<<21,a.l=f>>>1|(1&s)<<21,--o;return e&&A5(u),c&&(i?(P_n=h5(n),r&&(P_n=y4(P_n,(LJ(),O_n)))):P_n=rO(n.l,n.m,n.h)),u}(i?n:rO(n.l,n.m,n.h),t,o,c,r,e)}function Zmn(n,t){var e,i,r,c,a,u,o,s,h,f,l,b,w;if(n.e&&n.c.ct.f||t.g>n.f)){for(e=0,i=0,a=n.w.a.ec().Kc();a.Ob();)r=Yx(a.Pb(),11),V6($5(x4(Gy(B7n,1),TEn,8,0,[r.i.n,r.n,r.a])).b,t.g,t.f)&&++e;for(u=n.r.a.ec().Kc();u.Ob();)r=Yx(u.Pb(),11),V6($5(x4(Gy(B7n,1),TEn,8,0,[r.i.n,r.n,r.a])).b,t.g,t.f)&&--e;for(o=t.w.a.ec().Kc();o.Ob();)r=Yx(o.Pb(),11),V6($5(x4(Gy(B7n,1),TEn,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&++i;for(c=t.r.a.ec().Kc();c.Ob();)r=Yx(c.Pb(),11),V6($5(x4(Gy(B7n,1),TEn,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&--i;e=0)return r=function(n,t){var e;if(CO(e=Ybn(n.Tg(),t),99))return Yx(e,18);throw hp(new Qm(mNn+t+"' is not a valid reference"))}(n,t.substr(1,c-1)),function(n,t,e){var i,r,c,a,u,o,s,h,f,l;for(o=new ip,f=t.length,a=O5(e),s=0;s=0?n._g(s,!1,!0):tfn(n,e,!1),58).Kc();c.Ob();){for(r=Yx(c.Pb(),56),h=0;h=0){i=Yx(TV(n,UZ(n,t.substr(1,e-1)),!1),58),o=0;try{o=ipn(t.substr(e+1),nTn,Yjn)}catch(n){throw CO(n=j4(n),127)?hp(new mJ(n)):hp(n)}if(o=0)return e;switch(TB(PJ(n,e))){case 2:if(_N("",U8(n,e.Hj()).ne())){if(o=$ln(n,t,u=tH(PJ(n,e)),nH(PJ(n,e))))return o;for(a=0,s=(r=Agn(n,t)).gc();a1,h=new UV(b.b);ZC(h.a)||ZC(h.b);)l=(s=Yx(ZC(h.a)?Hz(h.a):Hz(h.b),17)).c==b?s.d:s.c,e.Math.abs($5(x4(Gy(B7n,1),TEn,8,0,[l.i.n,l.n,l.a])).b-u.b)>1&&jwn(n,s,u,a,b)}}function ayn(){ayn=O,$ut=(_k(),Aut).b,xut=Yx(c1(aq(Aut.b),0),34),Lut=Yx(c1(aq(Aut.b),1),34),Nut=Yx(c1(aq(Aut.b),2),34),zut=Aut.bb,Yx(c1(aq(Aut.bb),0),34),Yx(c1(aq(Aut.bb),1),34),Xut=Aut.fb,Wut=Yx(c1(aq(Aut.fb),0),34),Yx(c1(aq(Aut.fb),1),34),Yx(c1(aq(Aut.fb),2),18),Qut=Aut.qb,Zut=Yx(c1(aq(Aut.qb),0),34),Yx(c1(aq(Aut.qb),1),18),Yx(c1(aq(Aut.qb),2),18),Yut=Yx(c1(aq(Aut.qb),3),34),Jut=Yx(c1(aq(Aut.qb),4),34),tot=Yx(c1(aq(Aut.qb),6),34),not=Yx(c1(aq(Aut.qb),5),18),Dut=Aut.j,Rut=Aut.k,Kut=Aut.q,_ut=Aut.w,Fut=Aut.B,But=Aut.A,Hut=Aut.C,qut=Aut.D,Gut=Aut._,Uut=Aut.cb,Vut=Aut.hb}function uyn(n,t){var e,i,r,c;c=n.F,null==t?(n.F=null,j6(n,null)):(n.F=(vB(t),t),-1!=(i=VI(t,gun(60)))?(r=t.substr(0,i),-1==VI(t,gun(46))&&!_N(r,Xjn)&&!_N(r,BDn)&&!_N(r,HDn)&&!_N(r,qDn)&&!_N(r,GDn)&&!_N(r,zDn)&&!_N(r,UDn)&&!_N(r,XDn)&&(r=WDn),-1!=(e=LA(t,gun(62)))&&(r+=""+t.substr(e+1)),j6(n,r)):(r=t,-1==VI(t,gun(46))&&(-1!=(i=VI(t,gun(91)))&&(r=t.substr(0,i)),_N(r,Xjn)||_N(r,BDn)||_N(r,HDn)||_N(r,qDn)||_N(r,GDn)||_N(r,zDn)||_N(r,UDn)||_N(r,XDn)?r=t:(r=WDn,-1!=i&&(r+=""+t.substr(i)))),j6(n,r),r==t&&(n.F=n.D))),0!=(4&n.Db)&&0==(1&n.Db)&&K3(n,new p_(n,1,5,c,t))}function oyn(n,t){var e;if(null==t||_N(t,aEn))return null;if(0==t.length&&n.k!=(lsn(),A7n))return null;switch(n.k.g){case 1:return vtn(t,kLn)?(TA(),L_n):vtn(t,jLn)?(TA(),$_n):null;case 2:try{return d9(ipn(t,nTn,Yjn))}catch(n){if(CO(n=j4(n),127))return null;throw hp(n)}case 4:try{return gon(t)}catch(n){if(CO(n=j4(n),127))return null;throw hp(n)}case 3:return t;case 5:return F6(n),Ghn(n,t);case 6:return F6(n),function(n,t,e){var i,r,c,a,u,o,s;for(s=new cx(i=Yx(t.e&&t.e(),9),Yx(eN(i,i.length),9),0),a=0,u=(c=Ogn(e,"[\\[\\]\\s,]+")).length;a-2;default:return!1}switch(t=n.gj(),n.p){case 0:return null!=t&&ny(hL(t))!=hI(n.k,0);case 1:return null!=t&&Yx(t,217).a!=WR(n.k)<<24>>24;case 2:return null!=t&&Yx(t,172).a!=(WR(n.k)&fTn);case 6:return null!=t&&hI(Yx(t,162).a,n.k);case 5:return null!=t&&Yx(t,19).a!=WR(n.k);case 7:return null!=t&&Yx(t,184).a!=WR(n.k)<<16>>16;case 3:return null!=t&&ty(fL(t))!=n.j;case 4:return null!=t&&Yx(t,155).a!=n.j;default:return null==t?null!=n.n:!Q8(t,n.n)}}function hyn(n,t,e){var i,r,c,a;return n.Fk()&&n.Ek()&&iI(a=u_(n,Yx(e,56)))!==iI(e)?(n.Oi(t),n.Ui(t,$Y(n,0,a)),n.rk()&&(r=Yx(e,49),c=n.Dk()?n.Bk()?r.ih(n.b,nin(Yx(CZ(Cq(n.b),n.aj()),18)).n,Yx(CZ(Cq(n.b),n.aj()).Yj(),26).Bj(),null):r.ih(n.b,tnn(r.Tg(),nin(Yx(CZ(Cq(n.b),n.aj()),18))),null,null):r.ih(n.b,-1-n.aj(),null,null),!Yx(a,49).eh()&&(i=Yx(a,49),c=n.Dk()?n.Bk()?i.gh(n.b,nin(Yx(CZ(Cq(n.b),n.aj()),18)).n,Yx(CZ(Cq(n.b),n.aj()).Yj(),26).Bj(),c):i.gh(n.b,tnn(i.Tg(),nin(Yx(CZ(Cq(n.b),n.aj()),18))),null,c):i.gh(n.b,-1-n.aj(),null,c)),c&&c.Fi()),gC(n.b)&&n.$i(n.Zi(9,e,a,t,!1)),a):e}function fyn(n,t,i){var r,c,a,u,o,s,h,f,l,b,w,d,g,p,v,m,y,k;for(f=ty(fL(Aun(n,(gjn(),R0n)))),r=ty(fL(Aun(n,Y0n))),b5(b=new Yu,R0n,f+r),v=(h=t).d,g=h.c.i,m=h.d.i,p=eC(g.c),y=eC(m.c),c=new ip,l=p;l<=y;l++)Al(o=new rin(n),(bon(),Bzn)),b5(o,(Ojn(),CQn),h),b5(o,g0n,(Ran(),oit)),b5(o,_0n,b),w=Yx(TR(n.b,l),29),l==p?Hrn(o,w.a.c.length-i,w):JG(o,w),(k=ty(fL(Aun(h,y1n))))<0&&b5(h,y1n,k=0),o.o.b=k,d=e.Math.floor(k/2),whn(u=new Ion,(Ikn(),qit)),ZG(u,o),u.n.b=d,whn(s=new Ion,Eit),ZG(s,o),s.n.b=d,QG(h,u),o4(a=new jq,h),b5(a,$1n,null),YG(a,s),QG(a,v),jcn(o,h,a),c.c[c.c.length]=a,h=a;return c}function lyn(n,t){var e,i,r,c,a,u,o,s,h,f,l,b,w,d,g;for(u=Yx($on(n,(Ikn(),qit)).Kc().Pb(),11).e,f=Yx($on(n,Eit).Kc().Pb(),11).g,a=u.c.length,g=Dz(Yx(TR(n.j,0),11));a-- >0;){for($z(0,u.c.length),b=Yx(u.c[0],17),$z(0,f.c.length),r=hJ((i=Yx(f.c[0],17)).d.e,i,0),eX(b,i.d,r),YG(i,null),QG(i,null),l=b.a,t&&KD(l,new fC(g)),e=Ztn(i.a,0);e.b!=e.d.c;)KD(l,new fC(Yx(IX(e),8)));for(d=b.b,h=new pb(i.b);h.a0&&(u=e.Math.max(u,X2(n.C.b+r.d.b,c))),f=r,l=c,b=a;n.C&&n.C.c>0&&(w=b+n.C.c,h&&(w+=f.d.c),u=e.Math.max(u,(XC(),o0(SSn),e.Math.abs(l-1)<=SSn||1==l||isNaN(l)&&isNaN(1)?0:w/(1-l)))),i.n.b=0,i.a.a=u}function wyn(n,t){var i,r,c,a,u,o,s,h,f,l,b,w;if(i=Yx(GB(n.b,t),124),(s=Yx(Yx(_V(n.r,t),21),84)).dc())return i.n.d=0,void(i.n.a=0);for(h=n.u.Hc((Chn(),pit)),u=0,n.A.Hc((Ann(),nrt))&&Wdn(n,t),o=s.Kc(),f=null,b=0,l=0;o.Ob();)a=ty(fL((r=Yx(o.Pb(),111)).b.We((XA(),XHn)))),c=r.b.rf().b,f?(w=l+f.d.a+n.w+r.d.d,u=e.Math.max(u,(XC(),o0(SSn),e.Math.abs(b-a)<=SSn||b==a||isNaN(b)&&isNaN(a)?0:w/(a-b)))):n.C&&n.C.d>0&&(u=e.Math.max(u,X2(n.C.d+r.d.d,a))),f=r,b=a,l=c;n.C&&n.C.a>0&&(w=l+n.C.a,h&&(w+=f.d.a),u=e.Math.max(u,(XC(),o0(SSn),e.Math.abs(b-1)<=SSn||1==b||isNaN(b)&&isNaN(1)?0:w/(1-b)))),i.n.d=0,i.a.b=u}function dyn(n,t,e){var i,r,c,a,u,o;for(this.g=n,u=t.d.length,o=e.d.length,this.d=VQ(Gzn,kIn,10,u+o,0,1),a=0;a0?u1(this,this.f/this.a):null!=NO(t.g,t.d[0]).a&&null!=NO(e.g,e.d[0]).a?u1(this,(ty(NO(t.g,t.d[0]).a)+ty(NO(e.g,e.d[0]).a))/2):null!=NO(t.g,t.d[0]).a?u1(this,NO(t.g,t.d[0]).a):null!=NO(e.g,e.d[0]).a&&u1(this,NO(e.g,e.d[0]).a)}function gyn(n,t){var e,i,r,c,a,u,o,s,h;for(n.a=new HF(function(n){var t;return new cx(t=Yx(n.e&&n.e(),9),Yx(rF(t,t.length),9),t.length)}(oet)),i=new pb(t.a);i.a=1&&(g-a>0&&f>=0?(o.n.a+=d,o.n.b+=c*a):g-a<0&&h>=0&&(o.n.a+=d*g,o.n.b+=c));n.o.a=t.a,n.o.b=t.b,b5(n,(gjn(),n0n),(Ann(),new cx(i=Yx(Ak(lrt),9),Yx(eN(i,i.length),9),0)))}function myn(n){var t,e,i,r,c,a,u,o,s,h;for(i=new ip,a=new pb(n.e.a);a.a1)for(d=VQ(Wot,MTn,25,n.b.b.c.length,15,1),f=0,h=new pb(n.b.b);h.a=u&&r<=o)u<=r&&c<=o?(e[h++]=r,e[h++]=c,i+=2):u<=r?(e[h++]=r,e[h++]=o,n.b[i]=o+1,a+=2):c<=o?(e[h++]=u,e[h++]=c,i+=2):(e[h++]=u,e[h++]=o,n.b[i]=o+1);else{if(!(oZEn)&&o<10);Yy(n.c,new Et),jyn(n),function(n){ikn(n,(t9(),Ztt)),n.d=!0}(n.c),function(n){var t,i,r,c,a,u,o,s;for(a=new pb(n.a.b);a.a=2){for(a=Yx(IX(o=Ztn(e,0)),8),u=Yx(IX(o),8);u.a0&&eD(n.p,l),eD(n.o,l);d=s+(t-=r),f+=t*n.e,QW(n.a,o,d9(d)),QW(n.b,o,f),n.j=e.Math.max(n.j,d),n.k=e.Math.max(n.k,f),n.d+=t,t+=p}}(n),n.q=Yx(Aun(t,(gjn(),F1n)),260),l=Yx(Aun(n.g,_1n),19).a,a=new hi,n.q.g){case 2:case 1:default:Amn(n,a);break;case 3:for(n.q=(_bn(),G2n),Amn(n,a),s=0,o=new pb(n.a);o.an.j&&(n.q=K2n,Amn(n,a));break;case 4:for(n.q=(_bn(),G2n),Amn(n,a),f=0,c=new pb(n.b);c.an.k&&(n.q=B2n,Amn(n,a));break;case 6:Amn(n,new Aw(oG(e.Math.ceil(n.f.length*l/100))));break;case 5:Amn(n,new $w(oG(e.Math.ceil(n.d*l/100))))}(function(n,t){var e,i,r,c,a,u;for(r=new ip,e=0;e<=n.i;e++)(i=new qF(t)).p=n.i-e,r.c[r.c.length]=i;for(u=new pb(n.o);u.a=e}(this.k)}function Oyn(n,t){var e,i,r,c,a,u,o,s,f;for(u=!0,r=0,o=n.f[t.p],s=t.o.b+n.n,e=n.c[t.p][2],QW(n.a,o,d9(Yx(TR(n.a,o),19).a-1+e)),QW(n.b,o,ty(fL(TR(n.b,o)))-s+e*n.e),++o>=n.i?(++n.i,eD(n.a,d9(1)),eD(n.b,s)):(i=n.c[t.p][1],QW(n.a,o,d9(Yx(TR(n.a,o),19).a+1-i)),QW(n.b,o,ty(fL(TR(n.b,o)))+s-i*n.e)),(n.q==(_bn(),K2n)&&(Yx(TR(n.a,o),19).a>n.j||Yx(TR(n.a,o-1),19).a>n.j)||n.q==B2n&&(ty(fL(TR(n.b,o)))>n.k||ty(fL(TR(n.b,o-1)))>n.k))&&(u=!1),c=new $K(bA(u7(t).a.Kc(),new h));Vfn(c);)a=Yx(kV(c),17).c.i,n.f[a.p]==o&&(r+=Yx((f=Oyn(n,a)).a,19).a,u=u&&ny(hL(f.b)));return n.f[t.p]=o,new mP(d9(r+=n.c[t.p][0]),(TA(),!!u))}function Ayn(n,t,i,r,c){var a,u,o,s,h,f,l,b,w,d,g,p,v;for(l=new rp,u=new ip,jhn(n,i,n.d.fg(),u,l),jhn(n,r,n.d.gg(),u,l),n.b=.2*(g=dln(WJ(new SR(null,new Nz(u,16)),new Sa)),p=dln(WJ(new SR(null,new Nz(u,16)),new Pa)),e.Math.min(g,p)),a=0,o=0;o=2&&(v=Nbn(u,!0,b),!n.e&&(n.e=new xd(n)),btn(n.e,v,u,n.b)),Han(u,b),function(n){var t,i,r,c,a,u,o,s,h;for(s=new ip,u=new ip,a=new pb(n);a.a-1){for(c=new pb(u);c.a0||(Fl(o,e.Math.min(o.o,r.o-1)),_l(o,o.i-1),0==o.i&&(u.c[u.c.length]=o))}}(u),w=-1,f=new pb(u);f.ae))}(n)&&(i=(iI(Aun(n,E1n))===iI($et)?Yx(Aun(n,YZn),292):Yx(Aun(n,JZn),292))==(r4(),DVn)?($jn(),YUn):($jn(),fXn),oR(t,($un(),nzn),i)),Yx(Aun(n,c2n),377).g){case 1:oR(t,($un(),nzn),($jn(),sXn));break;case 2:yK(oR(oR(t,($un(),ZGn),($jn(),sUn)),nzn,hUn),tzn,fUn)}return iI(Aun(n,XZn))!==iI((k5(),W2n))&&oR(t,($un(),ZGn),($jn(),hXn)),t}(t)),b5(t,_Qn,Zmn(n.a,t))}function Lyn(n,t){var i,r,c,a,u,o,s,h,f,l,b,w,d,g,p,v,m;for(h=JTn,f=JTn,o=ZTn,s=ZTn,b=new pb(t.i);b.a=u&&r<=o)u<=r&&c<=o?i+=2:u<=r?(n.b[i]=o+1,a+=2):c<=o?(e[h++]=r,e[h++]=u-1,i+=2):(e[h++]=r,e[h++]=u-1,n.b[i]=o+1,a+=2);else{if(!(o0?1:0;c.a[r]!=e;)c=c.a[r],r=n.a.ue(e.d,c.d)>0?1:0;c.a[r]=i,i.b=e.b,i.a[0]=e.a[0],i.a[1]=e.a[1],e.a[0]=null,e.a[1]=null}(n,o,a,h=new nY(f.d,f.e)),l==a&&(l=h)),l.a[l.a[1]==f?1:0]=f.a[f.a[0]?0:1],--n.c),n.b=o.a[1],n.b&&(n.b.b=!1),e.b}function Byn(n,t,i){var r,c,a,u,o,s,h,f,l,b;if(i)for(r=-1,f=new JU(t,0);f.b0&&0==e.c&&(!t&&(t=new ip),t.c[t.c.length]=e);if(t)for(;0!=t.c.length;){if((e=Yx(KV(t,0),233)).b&&e.b.c.length>0)for(!e.b&&(e.b=new ip),c=new pb(e.b);c.ahJ(n,e,0))return new mP(r,e)}else if(ty(NO(r.g,r.d[0]).a)>ty(NO(e.g,e.d[0]).a))return new mP(r,e);for(u=(!e.e&&(e.e=new ip),e.e).Kc();u.Ob();)!(a=Yx(u.Pb(),233)).b&&(a.b=new ip),iz(0,(o=a.b).c.length),GT(o.c,0,e),a.c==o.c.length&&(t.c[t.c.length]=a)}return null}function qyn(n,t){var e,i,r,c,a,u;if(null==n)return aEn;if(null!=t.a.zc(n,t))return"[...]";for(e=new J3(tEn,"[","]"),c=0,a=(r=n).length;c=14&&u<=16?CO(i,177)?HV(e,ohn(Yx(i,177))):CO(i,190)?HV(e,Kan(Yx(i,190))):CO(i,195)?HV(e,jon(Yx(i,195))):CO(i,2012)?HV(e,_an(Yx(i,2012))):CO(i,48)?HV(e,uhn(Yx(i,48))):CO(i,364)?HV(e,Ahn(Yx(i,364))):CO(i,832)?HV(e,ahn(Yx(i,832))):CO(i,104)&&HV(e,chn(Yx(i,104))):t.a._b(i)?(e.a?yI(e.a,e.b):e.a=new SA(e.d),vI(e.a,"[...]")):HV(e,qyn(h1(i),new kR(t))):HV(e,null==i?aEn:I7(i));return e.a?0==e.e.length?e.a.a:e.a.a+""+e.e:e.c}function Gyn(n,t,i,r){var c,a,u,o,s,h,f,l,b,w,d,g;for(w=Kon(Ywn(t,!1,!1)),r&&(w=U5(w)),g=ty(fL(jln(t,(len(),Aqn)))),S$(0!=w.b),b=Yx(w.a.a.c,8),h=Yx(ken(w,1),8),w.b>2?(S4(s=new ip,new Oz(w,1,w.b)),o4(d=new eln(yjn(s,g+n.a)),t),i.c[i.c.length]=d):d=Yx(BF(n.b,r?Kun(t):Bun(t)),266),u=Kun(t),r&&(u=Bun(t)),a=function(n,t){var i,r,c;return c=wPn,Pen(),r=bqn,c=e.Math.abs(n.b),(i=e.Math.abs(t.f-n.b))>16==-10?e=Yx(n.Cb,284).nk(t,e):n.Db>>16==-15&&(!t&&(xjn(),t=Pat),!u&&(xjn(),u=Pat),n.Cb.nh()&&(a=new yJ(n.Cb,1,13,u,t,Ren(IJ(Yx(n.Cb,59)),n),!1),e?e.Ei(a):e=a));else if(CO(n.Cb,88))n.Db>>16==-23&&(CO(t,88)||(xjn(),t=Oat),CO(u,88)||(xjn(),u=Oat),n.Cb.nh()&&(a=new yJ(n.Cb,1,10,u,t,Ren(tW(Yx(n.Cb,26)),n),!1),e?e.Ei(a):e=a));else if(CO(n.Cb,444))for(!(c=Yx(n.Cb,836)).b&&(c.b=new Xg(new Wv)),r=new Wg(new t6(new Ql(c.b.a).a));r.a.b;)e=zyn(i=Yx(s1(r.a).cd(),87),dbn(i,c),e);return e}function Uyn(n){var t,i,r,c,a,u,o,s,h,f,l,b;if((b=Yx(jln(n,(Cjn(),Jnt)),21)).dc())return null;if(o=0,u=0,b.Hc((Ann(),Zit))){for(f=Yx(jln(n,ktt),98),r=2,i=2,c=2,a=2,t=IG(n)?Yx(jln(IG(n),Pnt),103):Yx(jln(n,Pnt),103),h=new UO((!n.c&&(n.c=new m_(oct,n,9,9)),n.c));h.e!=h.i.gc();)if(s=Yx(hen(h),118),(l=Yx(jln(s,Itt),61))==(Ikn(),Hit)&&(l=Zpn(s,t),Aen(s,Itt,l)),f==(Ran(),oit))switch(l.g){case 1:r=e.Math.max(r,s.i+s.g);break;case 2:i=e.Math.max(i,s.j+s.f);break;case 3:c=e.Math.max(c,s.i+s.g);break;case 4:a=e.Math.max(a,s.j+s.f)}else switch(l.g){case 1:r+=s.g+2;break;case 2:i+=s.f+2;break;case 3:c+=s.g+2;break;case 4:a+=s.f+2}o=e.Math.max(r,c),u=e.Math.max(i,a)}return xkn(n,o,u,!0,!0)}function Xyn(n,t,i,r,c){var a,u,o,s,h,f,l,b,w,d,g,p,v,m,y,k;for(m=Yx(kW(HZ(hH(new SR(null,new Nz(t.d,16)),new td(i)),new ed(i)),mY(new H,new B,new rn,x4(Gy(wBn,1),XEn,132,0,[(C6(),aBn)]))),15),l=Yjn,f=nTn,s=new pb(t.b.j);s.a0)?s&&(h=d.p,a?++h:--h,f=!(Rbn(i=o5(Yx(TR(d.c.a,h),10)),y,e[0])||r_(i,y,e[0]))):f=!0),l=!1,(m=t.D.i)&&m.c&&u.e&&(a&&m.p>0||!a&&m.p0&&(t.a+=tEn),Jyn(Yx(hen(a),160),t);for(t.a+=pIn,u=new a$((!i.c&&(i.c=new AN(Zrt,i,5,8)),i.c));u.e!=u.i.gc();)u.e>0&&(t.a+=tEn),Jyn(Yx(hen(u),160),t);t.a+=")"}}}function Zyn(n,t,e){var i,r,c,a,u,o,s,h,f,l,b;if(c=Yx(Aun(n,(Ojn(),CQn)),79)){for(i=n.a,mN(r=new fC(e),function(n){var t,e,i,r;if(r=Yx(Aun(n,(Ojn(),nQn)),37)){for(i=new Pk,t=dB(n.c.i);t!=r;)t=dB(e=t.e),$$(mN(mN(i,e.n),t.c),t.d.b,t.d.d);return i}return nUn}(n)),_3(n.d.i,n.c.i)?(l=n.c,yN(f=$5(x4(Gy(B7n,1),TEn,8,0,[l.n,l.a])),e)):f=Dz(n.c),VW(i,f,i.a,i.a.a),b=Dz(n.d),null!=Aun(n,YQn)&&mN(b,Yx(Aun(n,YQn),8)),VW(i,b,i.c.b,i.c),o1(i,r),L0(a=Ywn(c,!0,!0),Yx(c1((!c.b&&(c.b=new AN(Zrt,c,4,7)),c.b),0),82)),N0(a,Yx(c1((!c.c&&(c.c=new AN(Zrt,c,5,8)),c.c),0),82)),wvn(i,a),h=new pb(n.b);h.aa?1:QI(isNaN(0),isNaN(a)))<0&&(o0(UAn),(e.Math.abs(a-1)<=UAn||1==a||isNaN(a)&&isNaN(1)?0:a<1?-1:a>1?1:QI(isNaN(a),isNaN(1)))<0)&&(o0(UAn),(e.Math.abs(0-u)<=UAn||0==u||isNaN(0)&&isNaN(u)?0:0u?1:QI(isNaN(0),isNaN(u)))<0)&&(o0(UAn),(e.Math.abs(u-1)<=UAn||1==u||isNaN(u)&&isNaN(1)?0:u<1?-1:u>1?1:QI(isNaN(u),isNaN(1)))<0))}function tkn(n,t,i,r,c,a,u){var o,s,h,f,l,b,w,d,g,p,v,m;if(p=function(n,t,e){var i,r,c,a,u,o,s,h;for(h=new ip,c=0,c0(s=new dU(0,e),new n6(0,0,s,e)),r=0,o=new UO(n);o.e!=o.i.gc();)u=Yx(hen(o),33),i=Yx(TR(s.a,s.a.c.length-1),187),r+u.g+(0==Yx(TR(s.a,0),187).b.c.length?0:e)>t&&(r=0,c+=s.b+e,h.c[h.c.length]=s,c0(s=new dU(c,e),i=new n6(0,s.f,s,e)),r=0),0==i.b.c.length||u.f>=i.o&&u.f<=i.f||.5*i.a<=u.f&&1.5*i.a>=u.f?l7(i,u):(c0(s,a=new n6(i.s+i.r+e,s.f,s,e)),l7(a,u)),r=u.i+u.g;return h.c[h.c.length]=s,h}(t,i,n.g),c.n&&c.n&&a&&nU(c,RU(a),(P6(),jrt)),n.b)for(g=0;g0?n.g:0),++i;n.c=c,n.d=r}(n,p),c.n&&c.n&&a&&nU(c,RU(a),(P6(),jrt)),m=e.Math.max(n.d,r.a-(u.b+u.c)),o=(l=e.Math.max(n.c,r.b-(u.d+u.a)))-n.c,n.e&&n.f&&(m/l0&&(n.c[t.c.p][t.p].d+=Xln(n.i,24)*jMn*.07000000029802322-.03500000014901161,n.c[t.c.p][t.p].a=n.c[t.c.p][t.p].d/n.c[t.c.p][t.p].b)}}function okn(n,t,i,r,c){var a,u,o,s,h,f,l,b,w,d,g,p,v,m,y,k,j,E;for(E=0,w=0,l=new pb(t.e);l.a=h&&j>=p&&(b+=d.n.b+g.n.b+g.a.b-k,++o));if(i)for(u=new pb(m.e);u.a=h&&j>=p&&(b+=d.n.b+g.n.b+g.a.b-k,++o))}o>0&&(E+=b/o,++w)}w>0?(t.a=c*E/w,t.g=w):(t.a=0,t.g=0)}function skn(n,t){var i,r,c,a,u,o,s,h,f,l;for(r=new pb(n.a.b);r.aZTn||t.o==v4n&&hr.d,r.d=e.Math.max(r.d,t),o&&i&&(r.d=e.Math.max(r.d,r.a),r.a=r.d+c);break;case 3:i=t>r.a,r.a=e.Math.max(r.a,t),o&&i&&(r.a=e.Math.max(r.a,r.d),r.d=r.a+c);break;case 2:i=t>r.c,r.c=e.Math.max(r.c,t),o&&i&&(r.c=e.Math.max(r.b,r.c),r.b=r.c+c);break;case 4:i=t>r.b,r.b=e.Math.max(r.b,t),o&&i&&(r.b=e.Math.max(r.b,r.c),r.c=r.b+c)}}}(o),function(n){switch(n.q.g){case 5:Rcn(n,(Ikn(),Tit)),Rcn(n,Bit);break;case 4:byn(n,(Ikn(),Tit)),byn(n,Bit);break;default:Tsn(n,(Ikn(),Tit)),Tsn(n,Bit)}}(o),function(n){switch(n.q.g){case 5:Kcn(n,(Ikn(),Eit)),Kcn(n,qit);break;case 4:wyn(n,(Ikn(),Eit)),wyn(n,qit);break;default:Msn(n,(Ikn(),Eit)),Msn(n,qit)}}(o),function(n){var t,e,i,r,c,a,u;if(!n.A.dc()){if(n.A.Hc((Ann(),Zit))&&(Yx(GB(n.b,(Ikn(),Tit)),124).k=!0,Yx(GB(n.b,Bit),124).k=!0,t=n.q!=(Ran(),sit)&&n.q!=oit,Il(Yx(GB(n.b,Eit),124),t),Il(Yx(GB(n.b,qit),124),t),Il(n.g,t),n.A.Hc(nrt)&&(Yx(GB(n.b,Tit),124).j=!0,Yx(GB(n.b,Bit),124).j=!0,Yx(GB(n.b,Eit),124).k=!0,Yx(GB(n.b,qit),124).k=!0,n.g.k=!0)),n.A.Hc(Jit))for(n.a.j=!0,n.a.k=!0,n.g.j=!0,n.g.k=!0,u=n.B.Hc((Vgn(),ort)),c=0,a=(r=Xtn()).length;c0&&(s=n.n.a/c);break;case 2:case 4:(r=n.i.o.b)>0&&(s=n.n.b/r)}b5(n,(Ojn(),KQn),s)}if(o=n.o,a=n.a,i)a.a=i.a,a.b=i.b,n.d=!0;else if(t!=fit&&t!=lit&&u!=Hit)switch(u.g){case 1:a.a=o.a/2;break;case 2:a.a=o.a,a.b=o.b/2;break;case 3:a.a=o.a/2,a.b=o.b;break;case 4:a.b=o.b/2}else a.a=o.a/2,a.b=o.b/2}(s,c,r,Yx(jln(t,w0n),8)),o=new UO((!t.n&&(t.n=new m_(act,t,1,7)),t.n));o.e!=o.i.gc();)!ny(hL(jln(u=Yx(hen(o),137),r0n)))&&u.a&&eD(s.f,d8(u));switch(r.g){case 2:case 1:(s.j==(Ikn(),Tit)||s.j==Bit)&&i.Fc((edn(),OVn));break;case 4:case 3:(s.j==(Ikn(),Eit)||s.j==qit)&&i.Fc((edn(),OVn))}return s}function gkn(n,t,i,r,c,a,u){var o,s,h,f,l,b,w,d,g,p,v,m;for(l=null,r==(Yq(),X4n)?l=t:r==W4n&&(l=i),d=l.a.ec().Kc();d.Ob();){for(w=Yx(d.Pb(),11),g=$5(x4(Gy(B7n,1),TEn,8,0,[w.i.n,w.n,w.a])).b,m=new Qp,o=new Qp,h=new UV(w.b);ZC(h.a)||ZC(h.b);)if(ny(hL(Aun(s=Yx(ZC(h.a)?Hz(h.a):Hz(h.b),17),(Ojn(),HQn))))==c&&-1!=hJ(a,s,0)){if(p=s.d==w?s.c:s.d,v=$5(x4(Gy(B7n,1),TEn,8,0,[p.i.n,p.n,p.a])).b,e.Math.abs(v-g)<.2)continue;v1)for(XW(m,new PS(n,b=new qmn(w,m,r))),u.c[u.c.length]=b,f=m.a.ec().Kc();f.Ob();)uJ(a,Yx(f.Pb(),46).b);if(o.a.gc()>1)for(XW(o,new IS(n,b=new qmn(w,o,r))),u.c[u.c.length]=b,f=o.a.ec().Kc();f.Ob();)uJ(a,Yx(f.Pb(),46).b)}}function pkn(n){uT(n,new tun(tk(rk(nk(ik(ek(new du,C$n),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new Ha),C$n))),DU(n,C$n,AAn,oen(V6n)),DU(n,C$n,LPn,oen(J6n)),DU(n,C$n,HPn,oen(H6n)),DU(n,C$n,eIn,oen(q6n)),DU(n,C$n,BPn,oen(G6n)),DU(n,C$n,qPn,oen(B6n)),DU(n,C$n,FPn,oen(z6n)),DU(n,C$n,GPn,oen(W6n)),DU(n,C$n,M$n,oen(_6n)),DU(n,C$n,T$n,oen(F6n)),DU(n,C$n,I$n,oen(U6n)),DU(n,C$n,j$n,oen(X6n)),DU(n,C$n,E$n,oen(Q6n)),DU(n,C$n,S$n,oen(Y6n)),DU(n,C$n,P$n,oen(Z6n))}function vkn(n){var t;if(this.r=function(n,t){return new Mq(Yx(MF(n),62),Yx(MF(t),62))}(new Pn,new In),this.b=new C7(Yx(MF(trt),290)),this.p=new C7(Yx(MF(trt),290)),this.i=new C7(Yx(MF(JHn),290)),this.e=n,this.o=new fC(n.rf()),this.D=n.Df()||ny(hL(n.We((Cjn(),Fnt)))),this.A=Yx(n.We((Cjn(),Jnt)),21),this.B=Yx(n.We(itt),21),this.q=Yx(n.We(ktt),98),this.u=Yx(n.We(Mtt),21),!function(n){return Chn(),!(V3(sG(tK(pit,x4(Gy(Git,1),XEn,273,0,[mit])),n))>1||V3(sG(tK(git,x4(Gy(Git,1),XEn,273,0,[dit,yit])),n))>1)}(this.u))throw hp(new ly("Invalid port label placement: "+this.u));if(this.v=ny(hL(n.We(Ptt))),this.j=Yx(n.We(Qnt),21),!function(n){return Eln(),!(V3(sG(tK(Xet,x4(Gy(cit,1),XEn,93,0,[Wet])),n))>1||V3(sG(tK(Get,x4(Gy(cit,1),XEn,93,0,[qet,Uet])),n))>1||V3(sG(tK(Yet,x4(Gy(cit,1),XEn,93,0,[Qet,Vet])),n))>1)}(this.j))throw hp(new ly("Invalid node label placement: "+this.j));this.n=Yx(zrn(n,Wnt),116),this.k=ty(fL(zrn(n,Gtt))),this.d=ty(fL(zrn(n,qtt))),this.w=ty(fL(zrn(n,Ytt))),this.s=ty(fL(zrn(n,ztt))),this.t=ty(fL(zrn(n,Utt))),this.C=Yx(zrn(n,Vtt),142),this.c=2*this.d,t=!this.B.Hc((Vgn(),irt)),this.f=new Stn(0,t,0),this.g=new Stn(1,t,0),Nm(this.f,(JZ(),cHn),this.g)}function mkn(n){var t,e,i,r,c,a,u,o,s,h,f;if(null==n)throw hp(new Iy(aEn));if(s=n,o=!1,(c=n.length)>0&&(Lz(0,n.length),45!=(t=n.charCodeAt(0))&&43!=t||(n=n.substr(1),--c,o=45==t)),0==c)throw hp(new Iy(YTn+s+'"'));for(;n.length>0&&(Lz(0,n.length),48==n.charCodeAt(0));)n=n.substr(1),--c;if(c>(Lpn(),Q_n)[10])throw hp(new Iy(YTn+s+'"'));for(r=0;r0&&(f=-parseInt(n.substr(0,i),10),n=n.substr(i),c-=i,e=!1);c>=a;){if(i=parseInt(n.substr(0,a),10),n=n.substr(a),c-=a,e)e=!1;else{if(k8(f,u)<0)throw hp(new Iy(YTn+s+'"'));f=e7(f,h)}f=n7(f,i)}if(k8(f,0)>0)throw hp(new Iy(YTn+s+'"'));if(!o&&k8(f=sJ(f),0)<0)throw hp(new Iy(YTn+s+'"'));return f}function ykn(n,t){var e,i,r,c,a,u,o;if(YD(),this.a=new yO(this),this.b=n,this.c=t,this.f=G_(PJ((wsn(),wut),t)),this.f.dc())if((u=Dcn(wut,n))==t)for(this.e=!0,this.d=new ip,this.f=new fo,this.f.Fc(BRn),Yx(Imn(SJ(wut,i1(n)),""),26)==n&&this.f.Fc(OK(wut,i1(n))),r=$gn(wut,n).Kc();r.Ob();)switch(i=Yx(r.Pb(),170),TB(PJ(wut,i))){case 4:this.d.Fc(i);break;case 5:this.f.Gc(G_(PJ(wut,i)))}else if(TT(),Yx(t,66).Oj())for(this.e=!0,this.f=null,this.d=new ip,a=0,o=(null==n.i&&svn(n),n.i).length;a=0&&a0&&(Yx(GB(n.b,t),124).a.b=i)}function jkn(n,t){var e,i,r,c,a,u,o,s,h,f,l,b,w,d,g,p,v;if((f=t.length)>0&&(Lz(0,t.length),64!=(u=t.charCodeAt(0)))){if(37==u&&(o=!1,0!=(h=t.lastIndexOf("%"))&&(h==f-1||(Lz(h+1,t.length),o=46==t.charCodeAt(h+1))))){if(v=_N("%",a=t.substr(1,h-1))?null:$kn(a),i=0,o)try{i=ipn(t.substr(h+2),nTn,Yjn)}catch(n){throw CO(n=j4(n),127)?hp(new mJ(n)):hp(n)}for(d=b2(n.Wg());d.Ob();)if(CO(b=X3(d),510)&&(p=(r=Yx(b,590)).d,(null==v?null==p:_N(v,p))&&0==i--))return r;return null}if(l=-1==(s=t.lastIndexOf("."))?t:t.substr(0,s),e=0,-1!=s)try{e=ipn(t.substr(s+1),nTn,Yjn)}catch(n){if(!CO(n=j4(n),127))throw hp(n);l=t}for(l=_N("%",l)?null:$kn(l),w=b2(n.Wg());w.Ob();)if(CO(b=X3(w),191)&&(g=(c=Yx(b,191)).ne(),(null==l?null==g:_N(l,g))&&0==e--))return c;return null}return eyn(n,t)}function Ekn(){var n,t,e;for(Ekn=O,new ZJ(1,0),new ZJ(10,0),new ZJ(0,0),iFn=VQ(vFn,TEn,240,11,0,1),rFn=VQ(Xot,sTn,25,100,15,1),cFn=x4(Gy(Jot,1),rMn,25,15,[1,5,25,125,625,3125,15625,78125,390625,1953125,9765625,48828125,244140625,1220703125,6103515625,30517578125,152587890625,762939453125,3814697265625,19073486328125,95367431640625,476837158203125,0x878678326eac9]),aFn=VQ(Wot,MTn,25,cFn.length,15,1),uFn=x4(Gy(Jot,1),rMn,25,15,[1,10,100,hTn,1e4,cMn,1e6,1e7,1e8,UTn,1e10,1e11,1e12,1e13,1e14,1e15,1e16]),oFn=VQ(Wot,MTn,25,uFn.length,15,1),sFn=VQ(vFn,TEn,240,11,0,1),n=0;nr+2&&a5((Lz(r+1,n.length),n.charCodeAt(r+1)),Gct,zct)&&a5((Lz(r+2,n.length),n.charCodeAt(r+2)),Gct,zct))if(e=$D((Lz(r+1,n.length),n.charCodeAt(r+1)),(Lz(r+2,n.length),n.charCodeAt(r+2))),r+=2,i>0?128==(192&e)?t[u++]=e<<24>>24:i=0:e>=128&&(192==(224&e)?(t[u++]=e<<24>>24,i=2):224==(240&e)?(t[u++]=e<<24>>24,i=3):240==(248&e)&&(t[u++]=e<<24>>24,i=4)),i>0){if(u==i){switch(u){case 2:_F(o,((31&t[0])<<6|63&t[1])&fTn);break;case 3:_F(o,((15&t[0])<<12|(63&t[1])<<6|63&t[2])&fTn)}u=0,i=0}}else{for(c=0;c0){if(a+i>n.length)return!1;u=Uhn(n.substr(0,a+i),t)}else u=Uhn(n,t);switch(c){case 71:return u=wun(n,a,x4(Gy(fFn,1),TEn,2,6,[STn,PTn]),t),r.e=u,!0;case 77:case 76:return function(n,t,e,i,r){return i<0?((i=wun(n,r,x4(Gy(fFn,1),TEn,2,6,[lTn,bTn,wTn,dTn,gTn,pTn,vTn,mTn,yTn,kTn,jTn,ETn]),t))<0&&(i=wun(n,r,x4(Gy(fFn,1),TEn,2,6,["Jan","Feb","Mar","Apr",gTn,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),!(i<0||(e.k=i,0))):i>0&&(e.k=i-1,!0)}(n,t,r,u,a);case 69:case 99:return function(n,t,e,i){var r;return(r=wun(n,e,x4(Gy(fFn,1),TEn,2,6,[ITn,CTn,OTn,ATn,$Tn,LTn,NTn]),t))<0&&(r=wun(n,e,x4(Gy(fFn,1),TEn,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),t)),!(r<0||(i.d=r,0))}(n,t,a,r);case 97:return u=wun(n,a,x4(Gy(fFn,1),TEn,2,6,["AM","PM"]),t),r.b=u,!0;case 121:return function(n,t,e,i,r,c){var a,u,o;if(u=32,i<0){if(t[0]>=n.length)return!1;if(43!=(u=XB(n,t[0]))&&45!=u)return!1;if(++t[0],(i=Uhn(n,t))<0)return!1;45==u&&(i=-i)}return 32==u&&t[0]-e==2&&2==r.b&&(a=(o=(new uE).q.getFullYear()-TTn+TTn-80)%100,c.a=i==a,i+=100*(o/100|0)+(i3;)r*=10,--c;n=(n+(r>>1))/r|0}return i.i=n,!0}(u,a,t[0],r);case 104:12==u&&(u=0);case 75:case 72:return!(u<0||(r.f=u,r.g=!1,0));case 107:return!(u<0||(r.f=u,r.g=!0,0));case 109:return!(u<0||(r.j=u,0));case 115:return!(u<0||(r.n=u,0));case 90:if(a=0&&_N(n.substr(t,3),"GMT")||t>=0&&_N(n.substr(t,3),"UTC")?(e[0]=t+3,apn(n,e,i)):apn(n,e,i)}(n,a,t,r);default:return!1}}function Nkn(n,t,e){var i,r,c,a,u,o,s,h,f,l;if(n.e.a.$b(),n.f.a.$b(),n.c.c=VQ(UKn,iEn,1,0,5,1),n.i.c=VQ(UKn,iEn,1,0,5,1),n.g.a.$b(),t)for(a=new pb(t.a);a.a=1&&(j-h>0&&d>=0?(L1(l,l.i+k),N1(l,l.j+s*h)):j-h<0&&w>=0&&(L1(l,l.i+k*j),N1(l,l.j+s)));return Aen(n,(Cjn(),Jnt),(Ann(),new cx(a=Yx(Ak(lrt),9),Yx(eN(a,a.length),9),0))),new QS(E,f)}function Dkn(n){var t,i,r,c,a,u,o,s,h,f,l;if(f=IG(iun(Yx(c1((!n.b&&(n.b=new AN(Zrt,n,4,7)),n.b),0),82)))==IG(iun(Yx(c1((!n.c&&(n.c=new AN(Zrt,n,5,8)),n.c),0),82))),u=new Pk,(t=Yx(jln(n,(L6(),Met)),74))&&t.b>=2){if(0==(!n.a&&(n.a=new m_(tct,n,6,6)),n.a).i)xk(),i=new co,fY((!n.a&&(n.a=new m_(tct,n,6,6)),n.a),i);else if((!n.a&&(n.a=new m_(tct,n,6,6)),n.a).i>1)for(l=new a$((!n.a&&(n.a=new m_(tct,n,6,6)),n.a));l.e!=l.i.gc();)tan(l);wvn(t,Yx(c1((!n.a&&(n.a=new m_(tct,n,6,6)),n.a),0),202))}if(f)for(r=new UO((!n.a&&(n.a=new m_(tct,n,6,6)),n.a));r.e!=r.i.gc();)for(s=new UO((!(i=Yx(hen(r),202)).a&&(i.a=new XO(Qrt,i,5)),i.a));s.e!=s.i.gc();)o=Yx(hen(s),469),u.a=e.Math.max(u.a,o.a),u.b=e.Math.max(u.b,o.b);for(a=new UO((!n.n&&(n.n=new m_(act,n,1,7)),n.n));a.e!=a.i.gc();)c=Yx(hen(a),137),(h=Yx(jln(c,Aet),8))&&jC(c,h.a,h.b),f&&(u.a=e.Math.max(u.a,c.i+c.g),u.b=e.Math.max(u.b,c.j+c.f));return u}function Rkn(n,t,e){var i,r,c,a,u;switch(i=t.i,c=n.i.o,r=n.i.d,u=n.n,a=$5(x4(Gy(B7n,1),TEn,8,0,[u,n.a])),n.j.g){case 1:OL(t,(OJ(),pHn)),i.d=-r.d-e-i.a,Yx(Yx(TR(t.d,0),181).We((Ojn(),kQn)),285)==(Frn(),Ret)?(lY(t,(BY(),lHn)),i.c=a.a-ty(fL(Aun(n,PQn)))-e-i.b):(lY(t,(BY(),fHn)),i.c=a.a+ty(fL(Aun(n,PQn)))+e);break;case 2:lY(t,(BY(),fHn)),i.c=c.a+r.c+e,Yx(Yx(TR(t.d,0),181).We((Ojn(),kQn)),285)==(Frn(),Ret)?(OL(t,(OJ(),pHn)),i.d=a.b-ty(fL(Aun(n,PQn)))-e-i.a):(OL(t,(OJ(),mHn)),i.d=a.b+ty(fL(Aun(n,PQn)))+e);break;case 3:OL(t,(OJ(),mHn)),i.d=c.b+r.a+e,Yx(Yx(TR(t.d,0),181).We((Ojn(),kQn)),285)==(Frn(),Ret)?(lY(t,(BY(),lHn)),i.c=a.a-ty(fL(Aun(n,PQn)))-e-i.b):(lY(t,(BY(),fHn)),i.c=a.a+ty(fL(Aun(n,PQn)))+e);break;case 4:lY(t,(BY(),lHn)),i.c=-r.b-e-i.b,Yx(Yx(TR(t.d,0),181).We((Ojn(),kQn)),285)==(Frn(),Ret)?(OL(t,(OJ(),pHn)),i.d=a.b-ty(fL(Aun(n,PQn)))-e-i.a):(OL(t,(OJ(),mHn)),i.d=a.b+ty(fL(Aun(n,PQn)))+e)}}function Kkn(n,t,i,r,c,a,u){var o,s,h,f,l,b,w,d,g,p,v,m,y,k,j,E,T,M,S,P,I,C,O;for(w=0,S=0,s=new pb(n);s.aw&&(a&&(EI(j,b),EI(T,d9(h.b-1))),C=i.b,O+=b+t,b=0,f=e.Math.max(f,i.b+i.c+I)),L1(o,C),N1(o,O),f=e.Math.max(f,C+I+i.c),b=e.Math.max(b,l),C+=I+t;if(f=e.Math.max(f,r),(P=O+b+i.a)o&&(y=0,k+=u+v,u=0),zgn(g,i,y,k),t=e.Math.max(t,y+p.a),u=e.Math.max(u,p.b),y+=p.a+v;return g}function Fkn(n,t){var e,i,r,c,a,u,o,s,h,f,l,b,w;switch(h=new Nv,n.a.g){case 3:l=Yx(Aun(t.e,(Ojn(),WQn)),15),b=Yx(Aun(t.j,WQn),15),w=Yx(Aun(t.f,WQn),15),e=Yx(Aun(t.e,UQn),15),i=Yx(Aun(t.j,UQn),15),r=Yx(Aun(t.f,UQn),15),S4(a=new ip,l),b.Jc(new yc),S4(a,CO(b,152)?RV(Yx(b,152)):CO(b,131)?Yx(b,131).a:CO(b,54)?new Tm(b):new rE(b)),S4(a,w),S4(c=new ip,e),S4(c,CO(i,152)?RV(Yx(i,152)):CO(i,131)?Yx(i,131).a:CO(i,54)?new Tm(i):new rE(i)),S4(c,r),b5(t.f,WQn,a),b5(t.f,UQn,c),b5(t.f,VQn,t.f),b5(t.e,WQn,null),b5(t.e,UQn,null),b5(t.j,WQn,null),b5(t.j,UQn,null);break;case 1:C2(h,t.e.a),KD(h,t.i.n),C2(h,I3(t.j.a)),KD(h,t.a.n),C2(h,t.f.a);break;default:C2(h,t.e.a),C2(h,I3(t.j.a)),C2(h,t.f.a)}BH(t.f.a),C2(t.f.a,h),YG(t.f,t.e.c),u=Yx(Aun(t.e,(gjn(),$1n)),74),s=Yx(Aun(t.j,$1n),74),o=Yx(Aun(t.f,$1n),74),(u||s||o)&&(H_(f=new Nv,o),H_(f,s),H_(f,u),b5(t.f,$1n,f)),YG(t.j,null),QG(t.j,null),YG(t.e,null),QG(t.e,null),JG(t.a,null),JG(t.i,null),t.g&&Fkn(n,t.g)}function Bkn(n,t,i){var r,c,a,u,o,s,h,f,l,b,w,d,g,p,v,m,y,k,j,E,T,M;return y=n.c[($z(0,t.c.length),Yx(t.c[0],17)).p],T=n.c[($z(1,t.c.length),Yx(t.c[1],17)).p],!(y.a.e.e-y.a.a-(y.b.e.e-y.b.a)==0&&T.a.e.e-T.a.a-(T.b.e.e-T.b.a)==0||!CO(v=y.b.e.f,10)||(p=Yx(v,10),j=n.i[p.p],E=p.c?hJ(p.c.a,p,0):-1,a=JTn,E>0&&(c=Yx(TR(p.c.a,E-1),10),u=n.i[c.p],M=e.Math.ceil(lO(n.n,c,p)),a=j.a.e-p.d.d-(u.a.e+c.o.b+c.d.a)-M),h=JTn,E0&&T.a.e.e-T.a.a-(T.b.e.e-T.b.a)<0,d=y.a.e.e-y.a.a-(y.b.e.e-y.b.a)<0&&T.a.e.e-T.a.a-(T.b.e.e-T.b.a)>0,w=y.a.e.e+y.b.aT.b.e.e+T.a.a,k=0,!g&&!d&&(b?a+l>0?k=l:h-r>0&&(k=r):w&&(a+o>0?k=o:h-m>0&&(k=m))),j.a.e+=k,j.b&&(j.d.e+=k),1)))}function Hkn(n,t,i){var r,c,a,u,o,s,h,f,l,b;if(r=new mH(t.qf().a,t.qf().b,t.rf().a,t.rf().b),c=new hC,n.c)for(u=new pb(t.wf());u.a=2&&(i=Yx(r.Kc().Pb(),111),e=n.u.Hc((Chn(),git)),c=n.u.Hc(yit),!i.a&&!e&&(2==r.gc()||c))}(n,t),e=n.u.Hc((Chn(),dit)),o=s.Kc();o.Ob();)if((u=Yx(o.Pb(),111)).c&&!(u.c.d.c.length<=0)){switch(l=u.b.rf(),(f=(h=u.c).i).b=(c=h.n,h.e.a+c.b+c.c),f.a=(r=h.n,h.e.b+r.d+r.a),t.g){case 1:u.a?(f.c=(l.a-f.b)/2,lY(h,(BY(),hHn))):a||e?(f.c=-f.b-n.s,lY(h,(BY(),lHn))):(f.c=l.a+n.s,lY(h,(BY(),fHn))),f.d=-f.a-n.t,OL(h,(OJ(),pHn));break;case 3:u.a?(f.c=(l.a-f.b)/2,lY(h,(BY(),hHn))):a||e?(f.c=-f.b-n.s,lY(h,(BY(),lHn))):(f.c=l.a+n.s,lY(h,(BY(),fHn))),f.d=l.b+n.t,OL(h,(OJ(),mHn));break;case 2:u.a?(i=n.v?f.a:Yx(TR(h.d,0),181).rf().b,f.d=(l.b-i)/2,OL(h,(OJ(),vHn))):a||e?(f.d=-f.a-n.t,OL(h,(OJ(),pHn))):(f.d=l.b+n.t,OL(h,(OJ(),mHn))),f.c=l.a+n.s,lY(h,(BY(),fHn));break;case 4:u.a?(i=n.v?f.a:Yx(TR(h.d,0),181).rf().b,f.d=(l.b-i)/2,OL(h,(OJ(),vHn))):a||e?(f.d=-f.a-n.t,OL(h,(OJ(),pHn))):(f.d=l.b+n.t,OL(h,(OJ(),mHn))),f.c=-f.b-n.s,lY(h,(BY(),lHn))}a=!1}}function Gkn(n,t){var e,i,r,c,a,u,o,s,h,f,l;if(Ljn(),0==hE(vot)){for(f=VQ(Got,TEn,117,yot.length,0,1),a=0;as&&(i.a+=IO(VQ(Xot,sTn,25,-s,15,1))),i.a+="Is",VI(o,gun(32))>=0)for(r=0;r=i.o.b/2}p?(g=Yx(Aun(i,(Ojn(),JQn)),15))?l?c=g:(r=Yx(Aun(i,QVn),15))?c=g.gc()<=r.gc()?g:r:(c=new ip,b5(i,QVn,c)):(c=new ip,b5(i,JQn,c)):(r=Yx(Aun(i,(Ojn(),QVn)),15))?f?c=r:(g=Yx(Aun(i,JQn),15))?c=r.gc()<=g.gc()?r:g:(c=new ip,b5(i,JQn,c)):(c=new ip,b5(i,QVn,c)),c.Fc(n),b5(n,(Ojn(),JVn),e),t.d==e?(QG(t,null),e.e.c.length+e.g.c.length==0&&ZG(e,null),function(n){var t,e;(t=Yx(Aun(n,(Ojn(),RQn)),10))&&(uJ((e=t.c).a,t),0==e.a.c.length&&uJ(dB(t).b,e))}(e)):(YG(t,null),e.e.c.length+e.g.c.length==0&&ZG(e,null)),BH(t.a)}function Ukn(n,t,i){var r,c,a,u,o,s,f,l,b,w,d,g,p,v,m,y,k,j,E,T,M,S,P,I,C,O,A,$;for(run(i,"MinWidth layering",1),d=t.b,M=t.a,$=Yx(Aun(t,(gjn(),R1n)),19).a,o=Yx(Aun(t,K1n),19).a,n.b=ty(fL(Aun(t,N0n))),n.d=JTn,j=new pb(M);j.a0){for(l=h<100?null:new Ek(h),w=new t3(t).g,g=VQ(Wot,MTn,25,h,15,1),i=0,m=new FZ(h),r=0;r=0;)if(null!=b?Q8(b,w[o]):iI(b)===iI(w[o])){g.length<=i&&smn(g,0,g=VQ(Wot,MTn,25,2*g.length,15,1),0,i),g[i++]=r,fY(m,w[o]);break n}if(iI(b)===iI(u))break}}if(s=m,w=m.g,h=i,i>g.length&&smn(g,0,g=VQ(Wot,MTn,25,i,15,1),0,i),i>0){for(v=!0,c=0;c=0;)Orn(n,g[a]);if(i!=h){for(r=h;--r>=i;)Orn(s,r);smn(g,0,g=VQ(Wot,MTn,25,i,15,1),0,i)}t=s}}}else for(t=function(n,t){var e,i,r;if(t.dc())return iL(),iL(),$ct;for(e=new HL(n,t.gc()),r=new UO(n);r.e!=r.i.gc();)i=hen(r),t.Hc(i)&&fY(e,i);return e}(n,t),r=n.i;--r>=0;)t.Hc(n.g[r])&&(Orn(n,r),v=!0);if(v){if(null!=g){for(f=1==(e=t.gc())?zG(n,4,t.Kc().Pb(),null,g[0],d):zG(n,6,t,g,g[0],d),l=e<100?null:new Ek(e),r=t.Kc();r.Ob();)l=JN(n,Yx(b=r.Pb(),72),l);l?(l.Ei(f),l.Fi()):K3(n.e,f)}else{for(l=function(n){return n<100?null:new Ek(n)}(t.gc()),r=t.Kc();r.Ob();)l=JN(n,Yx(b=r.Pb(),72),l);l&&l.Fi()}return!0}return!1}function Wkn(n,t){var i,r,c,a,u,o,s,f,l,b,w,d,g,p,v,m,y;for((i=new Fen(t)).a||function(n){var t,i,r,c,a;switch(c=Yx(TR(n.a,0),10),t=new rin(n),eD(n.a,t),t.o.a=e.Math.max(1,c.o.a),t.o.b=e.Math.max(1,c.o.b),t.n.a=c.n.a,t.n.b=c.n.b,Yx(Aun(c,(Ojn(),hQn)),61).g){case 4:t.n.a+=2;break;case 1:t.n.b+=2;break;case 2:t.n.a-=2;break;case 3:t.n.b-=2}ZG(r=new Ion,t),YG(i=new jq,a=Yx(TR(c.j,0),11)),QG(i,r),mN(OI(r.n),a.n),mN(OI(r.a),a.a)}(t),f=function(n){var t,e,i,r,c,a,u;for(u=new rV,a=new pb(n.a);a.a=u.b.c)&&(u.b=t),(!u.c||t.c<=u.c.c)&&(u.d=u.c,u.c=t),(!u.e||t.d>=u.e.d)&&(u.e=t),(!u.f||t.d<=u.f.d)&&(u.f=t);return i=new ben((_4(),bzn)),$U(n,jzn,new ay(x4(Gy(lzn,1),iEn,369,0,[i]))),a=new ben(gzn),$U(n,kzn,new ay(x4(Gy(lzn,1),iEn,369,0,[a]))),r=new ben(wzn),$U(n,yzn,new ay(x4(Gy(lzn,1),iEn,369,0,[r]))),c=new ben(dzn),$U(n,mzn,new ay(x4(Gy(lzn,1),iEn,369,0,[c]))),kbn(i.c,bzn),kbn(r.c,wzn),kbn(c.c,dzn),kbn(a.c,gzn),u.a.c=VQ(UKn,iEn,1,0,5,1),S4(u.a,i.c),S4(u.a,I3(r.c)),S4(u.a,c.c),S4(u.a,I3(a.c)),u}(f)),i}function Vkn(n,t,i){var r,c,a,u,o,s,h,f,l,b,w,d;if(null==i.p[t.p]){o=!0,i.p[t.p]=0,u=t,d=i.o==(RG(),v4n)?ZTn:JTn;do{c=n.b.e[u.p],a=u.c.a.c.length,i.o==v4n&&c>0||i.o==m4n&&c(a=uan(n,e))?mgn(n,t,e):mgn(n,e,t),ra?1:0}return(i=Yx(Aun(t,(Ojn(),IQn)),19).a)>(c=Yx(Aun(e,IQn),19).a)?mgn(n,t,e):mgn(n,e,t),ic?1:0}function Ykn(n,t,e,i){var r,c,a,u,o,s,f,l,b,w,d,g;if(ny(hL(jln(t,(Cjn(),ctt)))))return XH(),XH(),TFn;if(o=0!=(!t.a&&(t.a=new m_(uct,t,10,11)),t.a).i,s=!(f=function(n){var t,e,i;if(ny(hL(jln(n,(Cjn(),Fnt))))){for(i=new ip,e=new $K(bA(lbn(n).a.Kc(),new h));Vfn(e);)Whn(t=Yx(kV(e),79))&&ny(hL(jln(t,Bnt)))&&(i.c[i.c.length]=t);return i}return XH(),XH(),TFn}(t)).dc(),o||s){if(!(r=Yx(jln(t,Ltt),149)))throw hp(new ly("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if(g=zS(r,(zfn(),dct)),Otn(t),!o&&s&&!g)return XH(),XH(),TFn;if(u=new ip,iI(jln(t,Rnt))===iI((O8(),$et))&&(zS(r,lct)||zS(r,fct)))for(b=Udn(n,t),C2(w=new ME,(!t.a&&(t.a=new m_(uct,t,10,11)),t.a));0!=w.b;)Otn(l=Yx(0==w.b?null:(S$(0!=w.b),VZ(w,w.a.a)),33)),iI(jln(l,Rnt))===iI(Net)||zQ(l,gnt)&&!oV(r,jln(l,Ltt))?(S4(u,Ykn(n,l,e,i)),Aen(l,Rnt,Net),Fgn(l)):C2(w,(!l.a&&(l.a=new m_(uct,l,10,11)),l.a));else for(b=(!t.a&&(t.a=new m_(uct,t,10,11)),t.a).i,a=new UO((!t.a&&(t.a=new m_(uct,t,10,11)),t.a));a.e!=a.i.gc();)S4(u,Ykn(n,c=Yx(hen(a),33),e,i)),Fgn(c);for(d=new pb(u);d.a=0?G7(u):O9(G7(u)),n.Ye(k0n,b)),s=new Pk,l=!1,n.Xe(w0n)?(x$(s,Yx(n.We(w0n),8)),l=!0):function(n,t,e){n.a=t,n.b=e}(s,a.a/2,a.b/2),b.g){case 4:b5(h,x1n,(d7(),nYn)),b5(h,rQn,(i5(),UWn)),h.o.b=a.b,d<0&&(h.o.a=-d),whn(f,(Ikn(),Eit)),l||(s.a=a.a),s.a-=a.a;break;case 2:b5(h,x1n,(d7(),eYn)),b5(h,rQn,(i5(),GWn)),h.o.b=a.b,d<0&&(h.o.a=-d),whn(f,(Ikn(),qit)),l||(s.a=0);break;case 1:b5(h,pQn,(AJ(),HVn)),h.o.a=a.a,d<0&&(h.o.b=-d),whn(f,(Ikn(),Bit)),l||(s.b=a.b),s.b-=a.b;break;case 3:b5(h,pQn,(AJ(),FVn)),h.o.a=a.a,d<0&&(h.o.b=-d),whn(f,(Ikn(),Tit)),l||(s.b=0)}if(x$(f.n,s),b5(h,w0n,s),t==uit||t==sit||t==oit){if(w=0,t==uit&&n.Xe(p0n))switch(b.g){case 1:case 2:w=Yx(n.We(p0n),19).a;break;case 3:case 4:w=-Yx(n.We(p0n),19).a}else switch(b.g){case 4:case 2:w=c.b,t==sit&&(w/=r.b);break;case 1:case 3:w=c.a,t==sit&&(w/=r.a)}b5(h,KQn,w)}return b5(h,hQn,b),h}function Zkn(n,t,e,i){var r,c,a,u,o,s,h,f,l,b;for(f=!1,s=n+1,$z(n,t.c.length),a=(h=Yx(t.c[n],200)).a,u=null,c=0;cs&&0==($z(s,t.c.length),Yx(t.c[s],200)).a.c.length;)uJ(t,($z(s,t.c.length),t.c[s]));if(!o){--c;continue}if(bpn(t,h,r,o,l,e,s,i)){f=!0;continue}if(l){if(imn(t,h,r,o,e,s,i)){f=!0;continue}if(u8(h,r)){r.c=!0,f=!0;continue}}else if(u8(h,r)){r.c=!0,f=!0;continue}if(f)continue}u8(h,r)?(r.c=!0,f=!0,o&&(o.k=!1)):ern(r.q)}else oE(),acn(h,r),--c,f=!0;return f}function njn(n,t,i,r,c,a,u){var o,s,h,f,l,b,w,d,g,p,v,m,y,k,j,E,T,M,S,P,I,C,O,A;for(g=0,P=0,h=new pb(n.b);h.ag&&(a&&(EI(E,w),EI(M,d9(f.b-1)),eD(n.d,d),o.c=VQ(UKn,iEn,1,0,5,1)),O=i.b,A+=w+t,w=0,l=e.Math.max(l,i.b+i.c+C)),o.c[o.c.length]=s,wen(s,O,A),l=e.Math.max(l,O+C+i.c),w=e.Math.max(w,b),O+=C+t,d=s;if(S4(n.a,o),eD(n.d,Yx(TR(o,o.c.length-1),157)),l=e.Math.max(l,r),(I=A+w+i.a)1&&(u=e.Math.min(u,e.Math.abs(Yx(ken(o.a,1),8).b-f.b)))));else for(d=new pb(t.j);d.ac&&(a=b.a-c,u=Yjn,r.c=VQ(UKn,iEn,1,0,5,1),c=b.a),b.a>=c&&(r.c[r.c.length]=o,o.a.b>1&&(u=e.Math.min(u,e.Math.abs(Yx(ken(o.a,o.a.b-2),8).b-b.b)))));if(0!=r.c.length&&a>t.o.a/2&&u>t.o.b/2){for(ZG(w=new Ion,t),whn(w,(Ikn(),Tit)),w.n.a=t.o.a/2,ZG(g=new Ion,t),whn(g,Bit),g.n.a=t.o.a/2,g.n.b=t.o.b,s=new pb(r);s.a=h.b?YG(o,g):YG(o,w)):(h=Yx(yD(o.a),8),(0==o.a.b?Dz(o.c):Yx(p$(o.a),8)).b>=h.b?QG(o,g):QG(o,w)),(l=Yx(Aun(o,(gjn(),$1n)),74))&&V7(l,h,!0);t.n.a=c-t.o.a/2}}function ejn(n,t,e){var i,r,c,a,u,o,s,h,f,l,b;if(s=t,$0(o=UX(n,RX(e),s),oX(s,rxn)),h=Yx(g1(n.g,Nhn(jG(s,_Nn))),33),i=null,(a=jG(s,"sourcePort"))&&(i=Nhn(a)),f=Yx(g1(n.j,i),118),!h)throw hp(new hy("An edge must have a source node (edge id: '"+itn(s)+sxn));if(f&&!bB(TG(f),h))throw hp(new hy("The source port of an edge must be a port of the edge's source node (edge id: '"+oX(s,rxn)+sxn));if(!o.b&&(o.b=new AN(Zrt,o,4,7)),fY(o.b,f||h),l=Yx(g1(n.g,Nhn(jG(s,lxn))),33),r=null,(u=jG(s,"targetPort"))&&(r=Nhn(u)),b=Yx(g1(n.j,r),118),!l)throw hp(new hy("An edge must have a target node (edge id: '"+itn(s)+sxn));if(b&&!bB(TG(b),l))throw hp(new hy("The target port of an edge must be a port of the edge's target node (edge id: '"+oX(s,rxn)+sxn));if(!o.c&&(o.c=new AN(Zrt,o,5,8)),fY(o.c,b||l),0==(!o.b&&(o.b=new AN(Zrt,o,4,7)),o.b).i||0==(!o.c&&(o.c=new AN(Zrt,o,5,8)),o.c).i)throw c=oX(s,rxn),hp(new hy(oxn+c+sxn));return eun(s,o),Iln(s,o),D5(n,s,o)}function ijn(n,t){var i,r,c,a,u,o,s,h,f,l,b,w,d,g,p,v,m,y,k,j,E,T,M,S,P;return l=function(n,t){var i,r,c,a,u,o,s,h,f,l,b;if(n.dc())return new Pk;for(s=0,f=0,r=n.Kc();r.Ob();)c=Yx(r.Pb(),37).f,s=e.Math.max(s,c.a),f+=c.a*c.b;for(s=e.Math.max(s,e.Math.sqrt(f)*ty(fL(Aun(Yx(n.Kc().Pb(),37),(gjn(),RZn))))),l=0,b=0,o=0,i=t,u=n.Kc();u.Ob();)l+(h=(a=Yx(u.Pb(),37)).f).a>s&&(l=0,b+=o+t,o=0),bgn(a,l,b),i=e.Math.max(i,l+h.a),o=e.Math.max(o,h.b),l+=h.a+t;return new QS(i+t,b+o+t)}(QA(n,(Ikn(),Cit)),t),d=lrn(QA(n,Oit),t),k=lrn(QA(n,Kit),t),M=brn(QA(n,Fit),t),b=brn(QA(n,Mit),t),m=lrn(QA(n,Rit),t),g=lrn(QA(n,Ait),t),E=lrn(QA(n,_it),t),j=lrn(QA(n,Sit),t),S=brn(QA(n,Iit),t),v=lrn(QA(n,xit),t),y=lrn(QA(n,Nit),t),T=lrn(QA(n,Pit),t),P=brn(QA(n,Dit),t),w=brn(QA(n,$it),t),p=lrn(QA(n,Lit),t),i=N5(x4(Gy(Jot,1),rMn,25,15,[m.a,M.a,E.a,P.a])),r=N5(x4(Gy(Jot,1),rMn,25,15,[d.a,l.a,k.a,p.a])),c=v.a,a=N5(x4(Gy(Jot,1),rMn,25,15,[g.a,b.a,j.a,w.a])),h=N5(x4(Gy(Jot,1),rMn,25,15,[m.b,d.b,g.b,y.b])),s=N5(x4(Gy(Jot,1),rMn,25,15,[M.b,l.b,b.b,p.b])),f=S.b,o=N5(x4(Gy(Jot,1),rMn,25,15,[E.b,k.b,j.b,T.b])),wY(QA(n,Cit),i+c,h+f),wY(QA(n,Lit),i+c,h+f),wY(QA(n,Oit),i+c,0),wY(QA(n,Kit),i+c,h+f+s),wY(QA(n,Fit),0,h+f),wY(QA(n,Mit),i+c+r,h+f),wY(QA(n,Ait),i+c+r,0),wY(QA(n,_it),0,h+f+s),wY(QA(n,Sit),i+c+r,h+f+s),wY(QA(n,Iit),0,h),wY(QA(n,xit),i,0),wY(QA(n,Pit),0,h+f+s),wY(QA(n,$it),i+c+r,0),(u=new Pk).a=N5(x4(Gy(Jot,1),rMn,25,15,[i+r+c+a,S.a,y.a,T.a])),u.b=N5(x4(Gy(Jot,1),rMn,25,15,[h+s+f+o,v.b,P.b,w.b])),u}function rjn(n,t,i){var r,c,a,u,o,s,f;if(run(i,"Network simplex node placement",1),n.e=t,n.n=Yx(Aun(t,(Ojn(),zQn)),304),function(n){var t,i,r,c,a,u,o,s,f,l,b,w;for(n.f=new Zp,o=0,r=0,c=new pb(n.e.b);c.a=s.c.c.length?GX((bon(),Hzn),Bzn):GX((bon(),Bzn),Bzn),h*=2,c=i.a.g,i.a.g=e.Math.max(c,c+(h-c)),a=i.b.g,i.b.g=e.Math.max(a,a+(h-a)),r=t}else mln(u),Mmn(($z(0,u.c.length),Yx(u.c[0],17)).d.i)||eD(n.o,u)}(n),Ron(a)),Yen(n.f),c=Yx(Aun(t,V0n),19).a*n.f.a.c.length,Ggn(Xy(Wy(Cx(n.f),c),!1),J2(i,1)),0!=n.d.a.gc()){for(run(a=J2(i,1),"Flexible Where Space Processing",1),u=Yx(qA(YK(fH(new SR(null,new Nz(n.f.a,16)),new qc),new Dc)),19).a,o=Yx(qA(QK(fH(new SR(null,new Nz(n.f.a,16)),new Gc),new Rc)),19).a-u,s=HA(new ev,n.f),f=HA(new ev,n.f),uwn(NE(LE($E(xE(new tv,2e4),o),s),f)),SE(hH(hH(X_(n.i),new zc),new Uc),new vH(u,s,o,f)),r=n.d.a.ec().Kc();r.Ob();)Yx(r.Pb(),213).g=1;Ggn(Xy(Wy(Cx(n.f),c),!1),J2(a,1)),Ron(a)}ny(hL(Aun(t,V1n)))&&(run(a=J2(i,1),"Straight Edges Post-Processing",1),function(n){var t,e,i;for(C2(e=new ME,n.o),i=new kv;0!=e.b;)Bkn(n,t=Yx(0==e.b?null:(S$(0!=e.b),VZ(e,e.a.a)),508),!0)&&eD(i.a,t);for(;0!=i.a.c.length;)Bkn(n,t=Yx(K6(i),508),!1)}(n),Ron(a)),function(n){var t,e,i,r,c,a,u,o,s,h,f,l,b,w,d;for(e=new pb(n.e.b);e.a0)if(r=f.gc(),s=oG(e.Math.floor((r+1)/2))-1,c=oG(e.Math.ceil((r+1)/2))-1,t.o==m4n)for(h=c;h>=s;h--)t.a[y.p]==y&&(d=Yx(f.Xb(h),46),w=Yx(d.a,10),!gE(i,d.b)&&b>n.b.e[w.p]&&(t.a[w.p]=y,t.g[y.p]=t.g[w.p],t.a[y.p]=t.g[y.p],t.f[t.g[y.p].p]=(TA(),!!(ny(t.f[t.g[y.p].p])&y.k==(bon(),Bzn))),b=n.b.e[w.p]));else for(h=s;h<=c;h++)t.a[y.p]==y&&(p=Yx(f.Xb(h),46),g=Yx(p.a,10),!gE(i,p.b)&&b=48&&t<=57))throw hp(new wy(Kjn((GC(),oDn))));for(i=t-48;r=48&&t<=57;)if((i=10*i+t-48)<0)throw hp(new wy(Kjn((GC(),lDn))));if(e=i,44==t){if(r>=n.j)throw hp(new wy(Kjn((GC(),hDn))));if((t=XB(n.i,r++))>=48&&t<=57){for(e=t-48;r=48&&t<=57;)if((e=10*e+t-48)<0)throw hp(new wy(Kjn((GC(),lDn))));if(i>e)throw hp(new wy(Kjn((GC(),fDn))))}else e=-1}if(125!=t)throw hp(new wy(Kjn((GC(),sDn))));n.sl(r)?(Ljn(),Ljn(),c=new cW(9,c),n.d=r+1):(Ljn(),Ljn(),c=new cW(3,c),n.d=r),c.dm(i),c.cm(e),kjn(n)}}return c}function ojn(n,t,e,i,r){var c,a,u,o,s,h,f,l,b,w,d,g,p,v,m,y,k,j,E,T,M;for(w=new pQ(t.b),v=new pQ(t.b),l=new pQ(t.b),j=new pQ(t.b),d=new pQ(t.b),k=Ztn(t,0);k.b!=k.d.c;)for(u=new pb((m=Yx(IX(k),11)).g);u.a0,g=m.g.c.length>0,s&&g?l.c[l.c.length]=m:s?w.c[w.c.length]=m:g&&(v.c[v.c.length]=m);for(b=new pb(w);b.a1)for(b=new a$((!n.a&&(n.a=new m_(tct,n,6,6)),n.a));b.e!=b.i.gc();)tan(b);for(d=I,I>y+m?d=y+m:Ik+w?g=k+w:Cy-m&&dk-w&&gI+P?E=I+P:yC+j?T=C+j:kI-P&&EC-j&&Ti&&(f=i-1),(l=L+Xln(t,24)*jMn*h-h/2)<0?l=1:l>r&&(l=r-1),xk(),I1(c=new ro,f),C1(c,l),fY((!u.a&&(u.a=new XO(Qrt,u,5)),u.a),c)}function gjn(){gjn=O,Cjn(),A0n=Dtt,$0n=Rtt,L0n=Ktt,N0n=_tt,D0n=Ftt,R0n=Btt,F0n=qtt,H0n=ztt,q0n=Utt,B0n=Gtt,G0n=Xtt,U0n=Wtt,W0n=Ytt,_0n=Htt,Ajn(),O0n=ZJn,x0n=nZn,K0n=tZn,z0n=eZn,T0n=new DC(Att,d9(0)),M0n=QJn,S0n=YJn,P0n=JJn,c2n=SZn,Y0n=cZn,J0n=oZn,t2n=gZn,Z0n=fZn,n2n=bZn,u2n=AZn,a2n=IZn,i2n=jZn,e2n=yZn,r2n=TZn,Y1n=BJn,J1n=HJn,v1n=JYn,m1n=tJn,a0n=new RC(12),c0n=new DC(utt,a0n),g7(),b1n=new DC($nt,w1n=het),d0n=new DC(ytt,0),I0n=new DC($tt,d9(1)),RZn=new DC(mnt,OPn),r0n=ctt,g0n=ktt,k0n=Itt,c1n=Snt,xZn=pnt,E1n=Rnt,C0n=new DC(xtt,(TA(),!0)),I1n=Fnt,C1n=Bnt,n0n=Jnt,i0n=itt,t0n=ntt,t9(),a1n=new DC(Pnt,o1n=tet),U1n=Qnt,z1n=Wnt,m0n=Mtt,v0n=Ttt,y0n=Ptt,Ytn(),new DC(btt,s0n=rit),f0n=gtt,l0n=ptt,b0n=vtt,h0n=dtt,Q0n=rZn,B1n=SJn,F1n=TJn,V0n=iZn,x1n=gJn,r1n=KYn,i1n=DYn,VZn=kYn,QZn=jYn,JZn=PYn,YZn=EYn,e1n=NYn,q1n=IJn,G1n=CJn,A1n=sJn,Z1n=UJn,W1n=LJn,k1n=rJn,Q1n=_Jn,g1n=WYn,p1n=QYn,WZn=Tnt,X1n=OJn,BZn=hYn,FZn=oYn,_Zn=uYn,M1n=uJn,T1n=aJn,S1n=oJn,e0n=ttt,$1n=Gnt,y1n=Nnt,f1n=Ont,h1n=Cnt,ZZn=OYn,p0n=Ett,KZn=Ent,P1n=_nt,w0n=mtt,u0n=stt,o0n=ftt,R1n=mJn,K1n=kJn,E0n=Ott,DZn=aYn,_1n=EJn,l1n=GYn,s1n=HYn,H1n=Unt,L1n=bJn,V1n=DJn,X0n=Vtt,u1n=FYn,j0n=WJn,d1n=UYn,N1n=dJn,n1n=$Yn,O1n=qnt,D1n=vJn,t1n=LYn,XZn=mYn,zZn=gYn,qZn=wYn,GZn=dYn,UZn=vYn,HZn=lYn,j1n=cJn}function pjn(n,t){var e,i,r,c,a,u,o,s,h,f,l,b,w,d,g,p,v,m,y,k,j,E,T,M,S,P,I;if(hmn(),T=n.e,w=n.d,r=n.a,0==T)switch(t){case 0:return"0";case 1:return sMn;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return(j=new Ay).a+=t<0?"0E+":"0E",j.a+=-t,j.a}if(y=VQ(Xot,sTn,25,1+(m=10*w+1+7),15,1),e=m,1==w)if((u=r[0])<0){I=Gz(u,uMn);do{d=I,I=Bcn(I,10),y[--e]=48+WR(n7(d,e7(I,10)))&fTn}while(0!=k8(I,0))}else{I=u;do{d=I,I=I/10|0,y[--e]=d-10*I+48&fTn}while(0!=I)}else{smn(r,0,S=VQ(Wot,MTn,25,w,15,1),0,P=w);n:for(;;){for(E=0,s=P-1;s>=0;s--)p=Uan(t7(GK(E,32),Gz(S[s],uMn))),S[s]=WR(p),E=WR(zK(p,32));v=WR(E),g=e;do{y[--e]=48+v%10&fTn}while(0!=(v=v/10|0)&&0!=e);for(i=9-g+e,o=0;o0;o++)y[--e]=48;for(f=P-1;0==S[f];f--)if(0==f)break n;P=f+1}for(;48==y[e];)++e}if(b=T<0,a=m-e-t-1,0==t)return b&&(y[--e]=45),Vnn(y,e,m-e);if(t>0&&a>=-6){if(a>=0){for(h=e+a,l=m-1;l>=h;l--)y[l+1]=y[l];return y[++h]=46,b&&(y[--e]=45),Vnn(y,e,m-e+1)}for(f=2;f<1-a;f++)y[--e]=48;return y[--e]=46,y[--e]=48,b&&(y[--e]=45),Vnn(y,e,m-e)}return M=e+1,c=m,k=new $y,b&&(k.a+="-"),c-M>=1?(_F(k,y[e]),k.a+=".",k.a+=Vnn(y,e+1,m-e-1)):k.a+=Vnn(y,e,m-e),k.a+="E",a>0&&(k.a+="+"),k.a+=""+a,k.a}function vjn(n,t){var i,r,c,a,u,o,s,h,f,l,b,w,d,g,p,v,m,y,k;switch(n.c=t,n.g=new rp,dT(),R7(new Qb(new Xm(n.c))),v=lL(jln(n.c,(Dun(),C9n))),u=Yx(jln(n.c,A9n),316),y=Yx(jln(n.c,$9n),429),c=Yx(jln(n.c,T9n),482),m=Yx(jln(n.c,O9n),430),n.j=ty(fL(jln(n.c,L9n))),a=n.a,u.g){case 0:a=n.a;break;case 1:a=n.b;break;case 2:a=n.i;break;case 3:a=n.e;break;case 4:a=n.f;break;default:throw hp(new Qm(V$n+(null!=u.f?u.f:""+u.g)))}if(n.d=new dG(a,y,c),b5(n.d,(y3(),hqn),hL(jln(n.c,S9n))),n.d.c=ny(hL(jln(n.c,M9n))),0==uq(n.c).i)return n.d;for(h=new UO(uq(n.c));h.e!=h.i.gc();){for(l=(s=Yx(hen(h),33)).g/2,f=s.f/2,k=new QS(s.i+l,s.j+f);P_(n.g,k);)$$(k,(e.Math.random()-.5)*PPn,(e.Math.random()-.5)*PPn);w=Yx(jln(s,(Cjn(),Unt)),142),d=new ez(k,new mH(k.a-l-n.j/2-w.b,k.b-f-n.j/2-w.d,s.g+n.j+(w.b+w.c),s.f+n.j+(w.d+w.a))),eD(n.d.i,d),xB(n.g,k,new mP(d,s))}switch(m.g){case 0:if(null==v)n.d.d=Yx(TR(n.d.i,0),65);else for(p=new pb(n.d.i);p.a1&&VW(f,v,f.c.b,f.c),BZ(c)));v=m}return f}function yjn(n,t){var e,i,r,c,a,u,o,s,h,f,l,b,w,d,g,p;for(i=new ip,u=new ip,g=t/2,b=n.gc(),r=Yx(n.Xb(0),8),p=Yx(n.Xb(1),8),eD(i,($z(0,(w=kln(r.a,r.b,p.a,p.b,g)).c.length),Yx(w.c[0],8))),eD(u,($z(1,w.c.length),Yx(w.c[1],8))),s=2;s=0;o--)KD(e,($z(o,a.c.length),Yx(a.c[o],8)));return e}function kjn(n){var t,e,i;if(n.d>=n.j)return n.a=-1,void(n.c=1);if(t=XB(n.i,n.d++),n.a=t,1!=n.b){switch(t){case 124:i=2;break;case 42:i=3;break;case 43:i=4;break;case 63:i=5;break;case 41:i=7;break;case 46:i=8;break;case 91:i=9;break;case 94:i=11;break;case 36:i=12;break;case 40:if(i=6,n.d>=n.j)break;if(63!=XB(n.i,n.d))break;if(++n.d>=n.j)throw hp(new wy(Kjn((GC(),$xn))));switch(t=XB(n.i,n.d++)){case 58:i=13;break;case 61:i=14;break;case 33:i=15;break;case 91:i=19;break;case 62:i=18;break;case 60:if(n.d>=n.j)throw hp(new wy(Kjn((GC(),$xn))));if(61==(t=XB(n.i,n.d++)))i=16;else{if(33!=t)throw hp(new wy(Kjn((GC(),Lxn))));i=17}break;case 35:for(;n.d=n.j)throw hp(new wy(Kjn((GC(),Axn))));n.a=XB(n.i,n.d++);break;default:i=0}n.c=i}else{switch(t){case 92:if(i=10,n.d>=n.j)throw hp(new wy(Kjn((GC(),Axn))));n.a=XB(n.i,n.d++);break;case 45:512==(512&n.e)&&n.d=j||!qnn(v,i))&&(i=Mz(t,f)),JG(v,i),c=new $K(bA(u7(v).a.Kc(),new h));Vfn(c);)r=Yx(kV(c),17),n.a[r.p]||(g=r.c.i,--n.e[g.p],0==n.e[g.p]&&JQ(mun(w,g)));for(s=f.c.length-1;s>=0;--s)eD(t.b,($z(s,f.c.length),Yx(f.c[s],29)));t.a.c=VQ(UKn,iEn,1,0,5,1),Ron(e)}else Ron(e)}function Ejn(n){var t,e,i,r,c,a,u,o;for(n.b=1,kjn(n),t=null,0==n.c&&94==n.a?(kjn(n),Ljn(),Ljn(),zwn(t=new cU(4),0,jKn),a=new cU(4)):(Ljn(),Ljn(),a=new cU(4)),r=!0;1!=(o=n.c);){if(0==o&&93==n.a&&!r){t&&(_yn(t,a),a=t);break}if(e=n.a,i=!1,10==o)switch(e){case 100:case 68:case 119:case 87:case 115:case 83:fmn(a,rpn(e)),i=!0;break;case 105:case 73:case 99:case 67:fmn(a,rpn(e)),(e=-1)<0&&(i=!0);break;case 112:case 80:if(!(u=Hhn(n,e)))throw hp(new wy(Kjn((GC(),zxn))));fmn(a,u),i=!0;break;default:e=Tdn(n)}else if(24==o&&!r){if(t&&(_yn(t,a),a=t),_yn(a,Ejn(n)),0!=n.c||93!=n.a)throw hp(new wy(Kjn((GC(),Vxn))));break}if(kjn(n),!i){if(0==o){if(91==e)throw hp(new wy(Kjn((GC(),Qxn))));if(93==e)throw hp(new wy(Kjn((GC(),Yxn))));if(45==e&&!r&&93!=n.a)throw hp(new wy(Kjn((GC(),Jxn))))}if(0!=n.c||45!=n.a||45==e&&r)zwn(a,e,e);else{if(kjn(n),1==(o=n.c))throw hp(new wy(Kjn((GC(),Xxn))));if(0==o&&93==n.a)zwn(a,e,e),zwn(a,45,45);else{if(0==o&&93==n.a||24==o)throw hp(new wy(Kjn((GC(),Jxn))));if(c=n.a,0==o){if(91==c)throw hp(new wy(Kjn((GC(),Qxn))));if(93==c)throw hp(new wy(Kjn((GC(),Yxn))));if(45==c)throw hp(new wy(Kjn((GC(),Jxn))))}else 10==o&&(c=Tdn(n));if(kjn(n),e>c)throw hp(new wy(Kjn((GC(),tDn))));zwn(a,e,c)}}}r=!1}if(1==n.c)throw hp(new wy(Kjn((GC(),Xxn))));return xln(a),Lmn(a),n.b=0,kjn(n),a}function Tjn(){Tjn=O,ljn(),Qhn(Azn=new Zq,(Ikn(),Oit),Cit),Qhn(Azn,Fit,Cit),Qhn(Azn,Ait,Cit),Qhn(Azn,Rit,Cit),Qhn(Azn,Dit,Cit),Qhn(Azn,Nit,Cit),Qhn(Azn,Rit,Oit),Qhn(Azn,Cit,Mit),Qhn(Azn,Oit,Mit),Qhn(Azn,Fit,Mit),Qhn(Azn,Ait,Mit),Qhn(Azn,xit,Mit),Qhn(Azn,Rit,Mit),Qhn(Azn,Dit,Mit),Qhn(Azn,Nit,Mit),Qhn(Azn,Iit,Mit),Qhn(Azn,Cit,Kit),Qhn(Azn,Oit,Kit),Qhn(Azn,Mit,Kit),Qhn(Azn,Fit,Kit),Qhn(Azn,Ait,Kit),Qhn(Azn,xit,Kit),Qhn(Azn,Rit,Kit),Qhn(Azn,Iit,Kit),Qhn(Azn,_it,Kit),Qhn(Azn,Dit,Kit),Qhn(Azn,$it,Kit),Qhn(Azn,Nit,Kit),Qhn(Azn,Oit,Fit),Qhn(Azn,Ait,Fit),Qhn(Azn,Rit,Fit),Qhn(Azn,Nit,Fit),Qhn(Azn,Oit,Ait),Qhn(Azn,Fit,Ait),Qhn(Azn,Rit,Ait),Qhn(Azn,Ait,Ait),Qhn(Azn,Dit,Ait),Qhn(Azn,Cit,Sit),Qhn(Azn,Oit,Sit),Qhn(Azn,Mit,Sit),Qhn(Azn,Kit,Sit),Qhn(Azn,Fit,Sit),Qhn(Azn,Ait,Sit),Qhn(Azn,xit,Sit),Qhn(Azn,Rit,Sit),Qhn(Azn,_it,Sit),Qhn(Azn,Iit,Sit),Qhn(Azn,Nit,Sit),Qhn(Azn,Dit,Sit),Qhn(Azn,Lit,Sit),Qhn(Azn,Cit,_it),Qhn(Azn,Oit,_it),Qhn(Azn,Mit,_it),Qhn(Azn,Fit,_it),Qhn(Azn,Ait,_it),Qhn(Azn,xit,_it),Qhn(Azn,Rit,_it),Qhn(Azn,Iit,_it),Qhn(Azn,Nit,_it),Qhn(Azn,$it,_it),Qhn(Azn,Lit,_it),Qhn(Azn,Oit,Iit),Qhn(Azn,Fit,Iit),Qhn(Azn,Ait,Iit),Qhn(Azn,Rit,Iit),Qhn(Azn,_it,Iit),Qhn(Azn,Nit,Iit),Qhn(Azn,Dit,Iit),Qhn(Azn,Cit,Pit),Qhn(Azn,Oit,Pit),Qhn(Azn,Mit,Pit),Qhn(Azn,Fit,Pit),Qhn(Azn,Ait,Pit),Qhn(Azn,xit,Pit),Qhn(Azn,Rit,Pit),Qhn(Azn,Iit,Pit),Qhn(Azn,Nit,Pit),Qhn(Azn,Oit,Dit),Qhn(Azn,Mit,Dit),Qhn(Azn,Kit,Dit),Qhn(Azn,Ait,Dit),Qhn(Azn,Cit,$it),Qhn(Azn,Oit,$it),Qhn(Azn,Kit,$it),Qhn(Azn,Fit,$it),Qhn(Azn,Ait,$it),Qhn(Azn,xit,$it),Qhn(Azn,Rit,$it),Qhn(Azn,Rit,Lit),Qhn(Azn,Ait,Lit),Qhn(Azn,Iit,Cit),Qhn(Azn,Iit,Fit),Qhn(Azn,Iit,Mit),Qhn(Azn,xit,Cit),Qhn(Azn,xit,Oit),Qhn(Azn,xit,Kit)}function Mjn(n,t){switch(n.e){case 0:case 2:case 4:case 6:case 42:case 44:case 46:case 48:case 8:case 10:case 12:case 14:case 16:case 18:case 20:case 22:case 24:case 26:case 28:case 30:case 32:case 34:case 36:case 38:return new eq(n.b,n.a,t,n.c);case 1:return new WO(n.a,t,tnn(t.Tg(),n.c));case 43:return new QO(n.a,t,tnn(t.Tg(),n.c));case 3:return new XO(n.a,t,tnn(t.Tg(),n.c));case 45:return new VO(n.a,t,tnn(t.Tg(),n.c));case 41:return new yY(Yx(fcn(n.c),26),n.a,t,tnn(t.Tg(),n.c));case 50:return new j0(Yx(fcn(n.c),26),n.a,t,tnn(t.Tg(),n.c));case 5:return new TN(n.a,t,tnn(t.Tg(),n.c),n.d.n);case 47:return new MN(n.a,t,tnn(t.Tg(),n.c),n.d.n);case 7:return new m_(n.a,t,tnn(t.Tg(),n.c),n.d.n);case 49:return new EN(n.a,t,tnn(t.Tg(),n.c),n.d.n);case 9:return new tA(n.a,t,tnn(t.Tg(),n.c));case 11:return new nA(n.a,t,tnn(t.Tg(),n.c));case 13:return new ZO(n.a,t,tnn(t.Tg(),n.c));case 15:return new CD(n.a,t,tnn(t.Tg(),n.c));case 17:return new eA(n.a,t,tnn(t.Tg(),n.c));case 19:return new JO(n.a,t,tnn(t.Tg(),n.c));case 21:return new YO(n.a,t,tnn(t.Tg(),n.c));case 23:return new TD(n.a,t,tnn(t.Tg(),n.c));case 25:return new $N(n.a,t,tnn(t.Tg(),n.c),n.d.n);case 27:return new AN(n.a,t,tnn(t.Tg(),n.c),n.d.n);case 29:return new CN(n.a,t,tnn(t.Tg(),n.c),n.d.n);case 31:return new SN(n.a,t,tnn(t.Tg(),n.c),n.d.n);case 33:return new ON(n.a,t,tnn(t.Tg(),n.c),n.d.n);case 35:return new IN(n.a,t,tnn(t.Tg(),n.c),n.d.n);case 37:return new PN(n.a,t,tnn(t.Tg(),n.c),n.d.n);case 39:return new y_(n.a,t,tnn(t.Tg(),n.c),n.d.n);case 40:return new e3(t,tnn(t.Tg(),n.c));default:throw hp(new Im("Unknown feature style: "+n.e))}}function Sjn(n,t,i){var r,c,a,u,o,s,h,f,l,b,w,d,g,p,v,m,y,k,j;switch(run(i,"Brandes & Koepf node placement",1),n.a=t,n.c=avn(t),r=Yx(Aun(t,(gjn(),W1n)),274),w=ny(hL(Aun(t,V1n))),n.d=r==(Wcn(),hVn)&&!w||r==uVn,function(n,t){var e,i,r,c,a,u,o,s,h,f,l,b,w,d,g,p,v,m;if(!((d=t.b.c.length)<3)){for(b=VQ(Wot,MTn,25,d,15,1),f=0,h=new pb(t.b);h.aa)&&__(n.b,Yx(g.b,17));++u}c=a}}}(n,t),k=null,j=null,p=null,v=null,g0(4,UEn),g=new pQ(4),Yx(Aun(t,W1n),274).g){case 3:p=new Bgn(t,n.c.d,(RG(),v4n),(Jq(),w4n)),g.c[g.c.length]=p;break;case 1:v=new Bgn(t,n.c.d,(RG(),m4n),(Jq(),w4n)),g.c[g.c.length]=v;break;case 4:k=new Bgn(t,n.c.d,(RG(),v4n),(Jq(),d4n)),g.c[g.c.length]=k;break;case 2:j=new Bgn(t,n.c.d,(RG(),m4n),(Jq(),d4n)),g.c[g.c.length]=j;break;default:p=new Bgn(t,n.c.d,(RG(),v4n),(Jq(),w4n)),v=new Bgn(t,n.c.d,m4n,w4n),k=new Bgn(t,n.c.d,v4n,d4n),j=new Bgn(t,n.c.d,m4n,d4n),g.c[g.c.length]=k,g.c[g.c.length]=j,g.c[g.c.length]=p,g.c[g.c.length]=v}for(c=new kS(t,n.c),o=new pb(g);o.aE[s]&&(d=s),f=new pb(n.a.b);f.aAln(a))&&(l=a);for(!l&&($z(0,g.c.length),l=Yx(g.c[0],180)),d=new pb(t.b);d.a=-1900?1:0,yI(n,i>=4?x4(Gy(fFn,1),TEn,2,6,[STn,PTn])[u]:x4(Gy(fFn,1),TEn,2,6,["BC","AD"])[u]);break;case 121:!function(n,t,e){var i;switch((i=e.q.getFullYear()-TTn+TTn)<0&&(i=-i),t){case 1:n.a+=i;break;case 2:tZ(n,i%100,2);break;default:tZ(n,i,t)}}(n,i,r);break;case 77:!function(n,t,e){var i;switch(i=e.q.getMonth(),t){case 5:yI(n,x4(Gy(fFn,1),TEn,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[i]);break;case 4:yI(n,x4(Gy(fFn,1),TEn,2,6,[lTn,bTn,wTn,dTn,gTn,pTn,vTn,mTn,yTn,kTn,jTn,ETn])[i]);break;case 3:yI(n,x4(Gy(fFn,1),TEn,2,6,["Jan","Feb","Mar","Apr",gTn,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[i]);break;default:tZ(n,i+1,t)}}(n,i,r);break;case 107:tZ(n,0==(o=c.q.getHours())?24:o,i);break;case 83:!function(n,t,i){var r,c;k8(r=D3(i.q.getTime()),0)<0?(c=hTn-WR(Snn(sJ(r),hTn)))==hTn&&(c=0):c=WR(Snn(r,hTn)),1==t?_F(n,48+(c=e.Math.min((c+50)/100|0,9))&fTn):2==t?tZ(n,c=e.Math.min((c+5)/10|0,99),2):(tZ(n,c,3),t>3&&tZ(n,0,t-3))}(n,i,c);break;case 69:s=r.q.getDay(),yI(n,5==i?x4(Gy(fFn,1),TEn,2,6,["S","M","T","W","T","F","S"])[s]:4==i?x4(Gy(fFn,1),TEn,2,6,[ITn,CTn,OTn,ATn,$Tn,LTn,NTn])[s]:x4(Gy(fFn,1),TEn,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[s]);break;case 97:c.q.getHours()>=12&&c.q.getHours()<24?yI(n,x4(Gy(fFn,1),TEn,2,6,["AM","PM"])[1]):yI(n,x4(Gy(fFn,1),TEn,2,6,["AM","PM"])[0]);break;case 104:tZ(n,0==(h=c.q.getHours()%12)?12:h,i);break;case 75:tZ(n,c.q.getHours()%12,i);break;case 72:tZ(n,c.q.getHours(),i);break;case 99:f=r.q.getDay(),5==i?yI(n,x4(Gy(fFn,1),TEn,2,6,["S","M","T","W","T","F","S"])[f]):4==i?yI(n,x4(Gy(fFn,1),TEn,2,6,[ITn,CTn,OTn,ATn,$Tn,LTn,NTn])[f]):3==i?yI(n,x4(Gy(fFn,1),TEn,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[f]):tZ(n,f,1);break;case 76:l=r.q.getMonth(),5==i?yI(n,x4(Gy(fFn,1),TEn,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[l]):4==i?yI(n,x4(Gy(fFn,1),TEn,2,6,[lTn,bTn,wTn,dTn,gTn,pTn,vTn,mTn,yTn,kTn,jTn,ETn])[l]):3==i?yI(n,x4(Gy(fFn,1),TEn,2,6,["Jan","Feb","Mar","Apr",gTn,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[l]):tZ(n,l+1,i);break;case 81:b=r.q.getMonth()/3|0,yI(n,i<4?x4(Gy(fFn,1),TEn,2,6,["Q1","Q2","Q3","Q4"])[b]:x4(Gy(fFn,1),TEn,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[b]);break;case 100:tZ(n,r.q.getDate(),i);break;case 109:tZ(n,c.q.getMinutes(),i);break;case 115:tZ(n,c.q.getSeconds(),i);break;case 122:yI(n,i<4?a.c[0]:a.c[1]);break;case 118:yI(n,a.b);break;case 90:yI(n,i<3?function(n){var t,e;return e=-n.a,t=x4(Gy(Xot,1),sTn,25,15,[43,48,48,48,48]),e<0&&(t[0]=45,e=-e),t[1]=t[1]+((e/60|0)/10|0)&fTn,t[2]=t[2]+(e/60|0)%10&fTn,t[3]=t[3]+(e%60/10|0)&fTn,t[4]=t[4]+e%10&fTn,Vnn(t,0,t.length)}(a):3==i?function(n){var t,e;return e=-n.a,t=x4(Gy(Xot,1),sTn,25,15,[43,48,48,58,48,48]),e<0&&(t[0]=45,e=-e),t[1]=t[1]+((e/60|0)/10|0)&fTn,t[2]=t[2]+(e/60|0)%10&fTn,t[4]=t[4]+(e%60/10|0)&fTn,t[5]=t[5]+e%10&fTn,Vnn(t,0,t.length)}(a):function(n){var t;return t=x4(Gy(Xot,1),sTn,25,15,[71,77,84,45,48,48,58,48,48]),n<=0&&(t[3]=43,n=-n),t[4]=t[4]+((n/60|0)/10|0)&fTn,t[5]=t[5]+(n/60|0)%10&fTn,t[7]=t[7]+(n%60/10|0)&fTn,t[8]=t[8]+n%10&fTn,Vnn(t,0,t.length)}(a.a));break;default:return!1}return!0}function Ijn(n,t,e,i){var r,c,a,u,o,s,h,f,l,b,w,d,g,p,v,m,y,k,j,E,T,M,S,P,I;if(dgn(t),o=Yx(c1((!t.b&&(t.b=new AN(Zrt,t,4,7)),t.b),0),82),h=Yx(c1((!t.c&&(t.c=new AN(Zrt,t,5,8)),t.c),0),82),u=iun(o),s=iun(h),a=0==(!t.a&&(t.a=new m_(tct,t,6,6)),t.a).i?null:Yx(c1((!t.a&&(t.a=new m_(tct,t,6,6)),t.a),0),202),j=Yx(BF(n.a,u),10),S=Yx(BF(n.a,s),10),E=null,P=null,CO(o,186)&&(CO(k=Yx(BF(n.a,o),299),11)?E=Yx(k,11):CO(k,10)&&(j=Yx(k,10),E=Yx(TR(j.j,0),11))),CO(h,186)&&(CO(M=Yx(BF(n.a,h),299),11)?P=Yx(M,11):CO(M,10)&&(S=Yx(M,10),P=Yx(TR(S.j,0),11))),!j||!S)throw hp(new by("The source or the target of edge "+t+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(o4(d=new jq,t),b5(d,(Ojn(),CQn),t),b5(d,(gjn(),$1n),null),b=Yx(Aun(i,bQn),21),j==S&&b.Fc((edn(),$Vn)),E||(h0(),y=i3n,T=null,a&&dC(Yx(Aun(j,g0n),98))&&(XX(T=new QS(a.j,a.k),EG(t)),UW(T,e),XZ(s,u)&&(y=e3n,mN(T,j.n))),E=dmn(j,T,y,i)),P||(h0(),y=e3n,I=null,a&&dC(Yx(Aun(S,g0n),98))&&(XX(I=new QS(a.b,a.c),EG(t)),UW(I,e)),P=dmn(S,I,y,dB(S))),YG(d,E),QG(d,P),(E.e.c.length>1||E.g.c.length>1||P.e.c.length>1||P.g.c.length>1)&&b.Fc((edn(),PVn)),l=new UO((!t.n&&(t.n=new m_(act,t,1,7)),t.n));l.e!=l.i.gc();)if(!ny(hL(jln(f=Yx(hen(l),137),r0n)))&&f.a)switch(g=d8(f),eD(d.b,g),Yx(Aun(g,f1n),272).g){case 1:case 2:b.Fc((edn(),MVn));break;case 0:b.Fc((edn(),EVn)),b5(g,f1n,(ZZ(),cet))}if(c=Yx(Aun(i,i1n),314),p=Yx(Aun(i,Z1n),315),r=c==(O0(),EWn)||p==(ain(),A2n),a&&0!=(!a.a&&(a.a=new XO(Qrt,a,5)),a.a).i&&r){for(v=Kon(a),w=new Nv,m=Ztn(v,0);m.b!=m.d.c;)KD(w,new fC(Yx(IX(m),8)));b5(d,OQn,w)}return d}function Cjn(){var n,t;Cjn=O,gnt=new Og(CLn),Ltt=new Og(OLn),qen(),pnt=new FI(sAn,vnt=H7n),new tp,mnt=new FI(hPn,null),ynt=new Og(ALn),dan(),Mnt=tK(bnt,x4(Gy(iet,1),XEn,291,0,[snt])),Tnt=new FI(jAn,Mnt),Snt=new FI(oAn,(TA(),!1)),t9(),Pnt=new FI(bAn,Int=tet),g7(),$nt=new FI(xOn,Lnt=wet),Dnt=new FI(U$n,!1),O8(),Rnt=new FI(OOn,Knt=Let),ott=new RC(12),utt=new FI(fPn,ott),Hnt=new FI(RPn,!1),qnt=new FI(NAn,!1),att=new FI(FPn,!1),Ran(),ktt=new FI(KPn,jtt=lit),Ott=new Og(AAn),Att=new Og($Pn),$tt=new Og(xPn),xtt=new Og(DPn),znt=new Nv,Gnt=new FI(EAn,znt),Ent=new FI(SAn,!1),_nt=new FI(PAn,!1),new Og($Ln),Xnt=new Mv,Unt=new FI($An,Xnt),ctt=new FI(aAn,!1),new tp,Ntt=new FI(LLn,1),new FI(NLn,!0),d9(0),new FI(xLn,d9(100)),new FI(DLn,!1),d9(0),new FI(RLn,d9(4e3)),d9(0),new FI(KLn,d9(400)),new FI(_Ln,!1),new FI(FLn,!1),new FI(BLn,!0),new FI(HLn,!1),unn(),knt=new FI(ILn,jnt=prt),Dtt=new FI(WOn,10),Rtt=new FI(VOn,10),Ktt=new FI(oPn,20),_tt=new FI(QOn,10),Ftt=new FI(NPn,2),Btt=new FI(YOn,10),qtt=new FI(JOn,0),Gtt=new FI(tAn,5),ztt=new FI(ZOn,1),Utt=new FI(nAn,1),Xtt=new FI(LPn,20),Wtt=new FI(eAn,10),Ytt=new FI(iAn,10),Htt=new Og(rAn),Qtt=new sC,Vtt=new FI(LAn,Qtt),ftt=new Og(OAn),stt=new FI(CAn,htt=!1),Vnt=new RC(5),Wnt=new FI(wAn,Vnt),Eln(),t=Yx(Ak(cit),9),Ynt=new cx(t,Yx(eN(t,t.length),9),0),Qnt=new FI(qPn,Ynt),Ytn(),btt=new FI(pAn,wtt=eit),gtt=new Og(vAn),ptt=new Og(mAn),vtt=new Og(yAn),dtt=new Og(kAn),n=Yx(Ak(lrt),9),Znt=new cx(n,Yx(eN(n,n.length),9),0),Jnt=new FI(HPn,Znt),rtt=J9((Vgn(),crt)),itt=new FI(BPn,rtt),ett=new QS(0,0),ttt=new FI(eIn,ett),ntt=new FI(lAn,!1),ZZ(),Ont=new FI(TAn,Ant=cet),Cnt=new FI(_Pn,!1),new Og(qLn),d9(1),new FI(GLn,null),mtt=new Og(IAn),Ett=new Og(MAn),Ikn(),Itt=new FI(uAn,Ctt=Hit),ytt=new Og(cAn),Chn(),Stt=J9(mit),Mtt=new FI(GPn,Stt),Ttt=new FI(dAn,!1),Ptt=new FI(gAn,!0),Fnt=new FI(hAn,!1),Bnt=new FI(fAn,!1),Nnt=new FI(sPn,1),vun(),new FI(zLn,xnt=ket),ltt=!0}function Ojn(){var n,t;Ojn=O,CQn=new Og(zPn),nQn=new Og("coordinateOrigin"),_Qn=new Og("processors"),ZVn=new _L("compoundNode",(TA(),!1)),gQn=new _L("insideConnections",!1),OQn=new Og("originalBendpoints"),AQn=new Og("originalDummyNodePosition"),$Qn=new Og("originalLabelEdge"),BQn=new Og("representedLabels"),cQn=new Og("endLabels"),aQn=new Og("endLabel.origin"),kQn=new _L("labelSide",(Frn(),Fet)),PQn=new _L("maxEdgeThickness",0),HQn=new _L("reversed",!1),FQn=new Og(UPn),TQn=new _L("longEdgeSource",null),MQn=new _L("longEdgeTarget",null),EQn=new _L("longEdgeHasLabelDummies",!1),jQn=new _L("longEdgeBeforeLabelDummy",!1),rQn=new _L("edgeConstraint",(i5(),zWn)),vQn=new Og("inLayerLayoutUnit"),pQn=new _L("inLayerConstraint",(AJ(),BVn)),mQn=new _L("inLayerSuccessorConstraint",new ip),yQn=new _L("inLayerSuccessorConstraintBetweenNonDummies",!1),RQn=new Og("portDummy"),tQn=new _L("crossingHint",d9(0)),bQn=new _L("graphProperties",new cx(t=Yx(Ak(KVn),9),Yx(eN(t,t.length),9),0)),hQn=new _L("externalPortSide",(Ikn(),Hit)),fQn=new _L("externalPortSize",new Pk),oQn=new Og("externalPortReplacedDummies"),sQn=new Og("externalPortReplacedDummy"),uQn=new _L("externalPortConnections",new cx(n=Yx(Ak(trt),9),Yx(eN(n,n.length),9),0)),KQn=new _L(OSn,0),VVn=new Og("barycenterAssociates"),JQn=new Og("TopSideComments"),QVn=new Og("BottomSideComments"),JVn=new Og("CommentConnectionPort"),dQn=new _L("inputCollect",!1),xQn=new _L("outputCollect",!1),iQn=new _L("cyclic",!1),eQn=new Og("crossHierarchyMap"),YQn=new Og("targetOffset"),new _L("splineLabelSize",new Pk),zQn=new Og("spacings"),DQn=new _L("partitionConstraint",!1),YVn=new Og("breakingPoint.info"),VQn=new Og("splines.survivingEdge"),WQn=new Og("splines.route.start"),UQn=new Og("splines.edgeChain"),NQn=new Og("originalPortConstraints"),GQn=new Og("selfLoopHolder"),XQn=new Og("splines.nsPortY"),IQn=new Og("modelOrder"),SQn=new Og("longEdgeTargetNode"),lQn=new _L(aCn,!1),qQn=new _L(aCn,!1),wQn=new Og("layerConstraints.hiddenNodes"),LQn=new Og("layerConstraints.opposidePort"),QQn=new Og("targetNode.modelOrder")}function Ajn(){Ajn=O,fZ(),FYn=new FI(uCn,BYn=FWn),rJn=new FI(oCn,(TA(),!1)),dX(),sJn=new FI(sCn,hJn=zVn),IJn=new FI(hCn,!1),CJn=new FI(fCn,!0),aYn=new FI(lCn,!1),$J(),WJn=new FI(bCn,VJn=J2n),d9(1),iZn=new FI(wCn,d9(7)),rZn=new FI(dCn,!1),cJn=new FI(gCn,!1),min(),KYn=new FI(pCn,_Yn=NWn),nun(),SJn=new FI(vCn,PJn=d2n),d7(),gJn=new FI(mCn,pJn=iYn),d9(-1),dJn=new FI(yCn,d9(-1)),d9(-1),vJn=new FI(kCn,d9(-1)),d9(-1),mJn=new FI(jCn,d9(4)),d9(-1),kJn=new FI(ECn,d9(2)),_bn(),TJn=new FI(TCn,MJn=q2n),d9(0),EJn=new FI(MCn,d9(0)),bJn=new FI(SCn,d9(Yjn)),O0(),DYn=new FI(PCn,RYn=TWn),kYn=new FI(ICn,!1),OYn=new FI(CCn,.1),NYn=new FI(OCn,!1),d9(-1),$Yn=new FI(ACn,d9(-1)),d9(-1),LYn=new FI($Cn,d9(-1)),d9(0),jYn=new FI(LCn,d9(40)),r4(),PYn=new FI(NCn,IYn=RVn),EYn=new FI(xCn,TYn=xVn),ain(),UJn=new FI(DCn,XJn=O2n),DJn=new Og(RCn),cJ(),OJn=new FI(KCn,AJn=iVn),Wcn(),LJn=new FI(_Cn,NJn=hVn),new tp,_Jn=new FI(FCn,.3),BJn=new Og(BCn),Hen(),HJn=new FI(HCn,qJn=S2n),d3(),WYn=new FI(qCn,VYn=o3n),rQ(),QYn=new FI(GCn,YYn=b3n),$6(),JYn=new FI(zCn,ZYn=v3n),tJn=new FI(UCn,.2),UYn=new FI(XCn,2),ZJn=new FI(WCn,null),tZn=new FI(VCn,10),nZn=new FI(QCn,10),eZn=new FI(YCn,20),d9(0),QJn=new FI(JCn,d9(0)),d9(0),YJn=new FI(ZCn,d9(0)),d9(0),JJn=new FI(nOn,d9(0)),uYn=new FI(tOn,!1),uon(),hYn=new FI(eOn,fYn=mVn),aY(),oYn=new FI(iOn,sYn=yWn),uJn=new FI(rOn,!1),d9(0),aJn=new FI(cOn,d9(16)),d9(0),oJn=new FI(aOn,d9(5)),F4(),SZn=new FI(uOn,PZn=P3n),cZn=new FI(oOn,10),oZn=new FI(sOn,1),f0(),gZn=new FI(hOn,pZn=OWn),fZn=new Og(fOn),wZn=d9(1),d9(0),bZn=new FI(lOn,wZn),V2(),AZn=new FI(bOn,$Zn=k3n),IZn=new Og(wOn),jZn=new FI(dOn,!0),yZn=new FI(gOn,2),TZn=new FI(pOn,!0),pon(),GYn=new FI(vOn,zYn=ZWn),psn(),HYn=new FI(mOn,qYn=bWn),k5(),mYn=new FI(yOn,yYn=W2n),vYn=new FI(kOn,!1),e9(),lYn=new FI(jOn,bYn=Izn),i8(),gYn=new FI(EOn,pYn=m2n),wYn=new FI(TOn,0),dYn=new FI(MOn,0),lJn=DWn,fJn=EWn,yJn=w2n,jJn=w2n,wJn=f2n,O8(),AYn=$et,xYn=TWn,CYn=TWn,MYn=TWn,SYn=$et,RJn=L2n,KJn=O2n,$Jn=O2n,xJn=O2n,FJn=$2n,zJn=L2n,GJn=L2n,g7(),nJn=bet,eJn=bet,iJn=v3n,XYn=fet,aZn=I3n,uZn=S3n,sZn=I3n,hZn=S3n,vZn=I3n,mZn=S3n,lZn=CWn,dZn=OWn,LZn=I3n,NZn=S3n,CZn=I3n,OZn=S3n,EZn=S3n,kZn=S3n,MZn=S3n}function $jn(){$jn=O,vUn=new vM("DIRECTION_PREPROCESSOR",0),dUn=new vM("COMMENT_PREPROCESSOR",1),mUn=new vM("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),xUn=new vM("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),nXn=new vM("PARTITION_PREPROCESSOR",4),_Un=new vM("LABEL_DUMMY_INSERTER",5),aXn=new vM("SELF_LOOP_PREPROCESSOR",6),GUn=new vM("LAYER_CONSTRAINT_PREPROCESSOR",7),JUn=new vM("PARTITION_MIDPROCESSOR",8),OUn=new vM("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),WUn=new vM("NODE_PROMOTION",10),qUn=new vM("LAYER_CONSTRAINT_POSTPROCESSOR",11),ZUn=new vM("PARTITION_POSTPROCESSOR",12),SUn=new vM("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),oXn=new vM("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),sUn=new vM("BREAKING_POINT_INSERTER",15),XUn=new vM("LONG_EDGE_SPLITTER",16),eXn=new vM("PORT_SIDE_PROCESSOR",17),DUn=new vM("INVERTED_PORT_PROCESSOR",18),tXn=new vM("PORT_LIST_SORTER",19),hXn=new vM("SORT_BY_INPUT_ORDER_OF_MODEL",20),QUn=new vM("NORTH_SOUTH_PORT_PREPROCESSOR",21),hUn=new vM("BREAKING_POINT_PROCESSOR",22),YUn=new vM(KIn,23),fXn=new vM(_In,24),rXn=new vM("SELF_LOOP_PORT_RESTORER",25),sXn=new vM("SINGLE_EDGE_GRAPH_WRAPPER",26),RUn=new vM("IN_LAYER_CONSTRAINT_PROCESSOR",27),EUn=new vM("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),KUn=new vM("LABEL_AND_NODE_SIZE_PROCESSOR",29),NUn=new vM("INNERMOST_NODE_MARGIN_CALCULATOR",30),uXn=new vM("SELF_LOOP_ROUTER",31),bUn=new vM("COMMENT_NODE_MARGIN_CALCULATOR",32),kUn=new vM("END_LABEL_PREPROCESSOR",33),BUn=new vM("LABEL_DUMMY_SWITCHER",34),lUn=new vM("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),HUn=new vM("LABEL_SIDE_SELECTOR",36),$Un=new vM("HYPEREDGE_DUMMY_MERGER",37),PUn=new vM("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),zUn=new vM("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),CUn=new vM("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),gUn=new vM("CONSTRAINTS_POSTPROCESSOR",41),wUn=new vM("COMMENT_POSTPROCESSOR",42),LUn=new vM("HYPERNODE_PROCESSOR",43),IUn=new vM("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),UUn=new vM("LONG_EDGE_JOINER",45),cXn=new vM("SELF_LOOP_POSTPROCESSOR",46),fUn=new vM("BREAKING_POINT_REMOVER",47),VUn=new vM("NORTH_SOUTH_PORT_POSTPROCESSOR",48),AUn=new vM("HORIZONTAL_COMPACTOR",49),FUn=new vM("LABEL_DUMMY_REMOVER",50),TUn=new vM("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),jUn=new vM("END_LABEL_SORTER",52),iXn=new vM("REVERSED_EDGE_RESTORER",53),yUn=new vM("END_LABEL_POSTPROCESSOR",54),MUn=new vM("HIERARCHICAL_NODE_RESIZER",55),pUn=new vM("DIRECTION_POSTPROCESSOR",56)}function Ljn(){Ljn=O,Tot=new np(7),Mot=new BR(8,94),new BR(8,64),Sot=new BR(8,36),$ot=new BR(8,65),Lot=new BR(8,122),Not=new BR(8,90),Rot=new BR(8,98),Oot=new BR(8,66),xot=new BR(8,60),Kot=new BR(8,62),Eot=new np(11),zwn(jot=new cU(4),48,57),zwn(Dot=new cU(4),48,57),zwn(Dot,65,90),zwn(Dot,95,95),zwn(Dot,97,122),zwn(Aot=new cU(4),9,9),zwn(Aot,10,10),zwn(Aot,12,12),zwn(Aot,13,13),zwn(Aot,32,32),Pot=nvn(jot),Cot=nvn(Dot),Iot=nvn(Aot),vot=new rp,mot=new rp,yot=x4(Gy(fFn,1),TEn,2,6,["Cn","Lu","Ll","Lt","Lm","Lo","Mn","Me","Mc","Nd","Nl","No","Zs","Zl","Zp","Cc","Cf",null,"Co","Cs","Pd","Ps","Pe","Pc","Po","Sm","Sc","Sk","So","Pi","Pf","L","M","N","Z","C","P","S"]),pot=x4(Gy(fFn,1),TEn,2,6,["Basic Latin","Latin-1 Supplement","Latin Extended-A","Latin Extended-B","IPA Extensions","Spacing Modifier Letters","Combining Diacritical Marks","Greek","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul Jamo","Ethiopic","Cherokee","Unified Canadian Aboriginal Syllabics","Ogham","Runic","Khmer","Mongolian","Latin Extended Additional","Greek Extended","General Punctuation","Superscripts and Subscripts","Currency Symbols","Combining Marks for Symbols","Letterlike Symbols","Number Forms","Arrows","Mathematical Operators","Miscellaneous Technical","Control Pictures","Optical Character Recognition","Enclosed Alphanumerics","Box Drawing","Block Elements","Geometric Shapes","Miscellaneous Symbols","Dingbats","Braille Patterns","CJK Radicals Supplement","Kangxi Radicals","Ideographic Description Characters","CJK Symbols and Punctuation","Hiragana","Katakana","Bopomofo","Hangul Compatibility Jamo","Kanbun","Bopomofo Extended","Enclosed CJK Letters and Months","CJK Compatibility","CJK Unified Ideographs Extension A","CJK Unified Ideographs","Yi Syllables","Yi Radicals","Hangul Syllables",AKn,"CJK Compatibility Ideographs","Alphabetic Presentation Forms","Arabic Presentation Forms-A","Combining Half Marks","CJK Compatibility Forms","Small Form Variants","Arabic Presentation Forms-B","Specials","Halfwidth and Fullwidth Forms","Old Italic","Gothic","Deseret","Byzantine Musical Symbols","Musical Symbols","Mathematical Alphanumeric Symbols","CJK Unified Ideographs Extension B","CJK Compatibility Ideographs Supplement","Tags"]),kot=x4(Gy(Wot,1),MTn,25,15,[66304,66351,66352,66383,66560,66639,118784,119039,119040,119295,119808,120831,131072,173782,194560,195103,917504,917631])}function Njn(){Njn=O,BHn=new U2("OUT_T_L",0,(BY(),fHn),(OJ(),pHn),(JZ(),rHn),rHn,x4(Gy(YKn,1),iEn,21,0,[tK((Eln(),Wet),x4(Gy(cit,1),XEn,93,0,[Yet,Get]))])),FHn=new U2("OUT_T_C",1,hHn,pHn,rHn,cHn,x4(Gy(YKn,1),iEn,21,0,[tK(Wet,x4(Gy(cit,1),XEn,93,0,[Yet,qet])),tK(Wet,x4(Gy(cit,1),XEn,93,0,[Yet,qet,zet]))])),HHn=new U2("OUT_T_R",2,lHn,pHn,rHn,aHn,x4(Gy(YKn,1),iEn,21,0,[tK(Wet,x4(Gy(cit,1),XEn,93,0,[Yet,Uet]))])),$Hn=new U2("OUT_B_L",3,fHn,mHn,aHn,rHn,x4(Gy(YKn,1),iEn,21,0,[tK(Wet,x4(Gy(cit,1),XEn,93,0,[Vet,Get]))])),AHn=new U2("OUT_B_C",4,hHn,mHn,aHn,cHn,x4(Gy(YKn,1),iEn,21,0,[tK(Wet,x4(Gy(cit,1),XEn,93,0,[Vet,qet])),tK(Wet,x4(Gy(cit,1),XEn,93,0,[Vet,qet,zet]))])),LHn=new U2("OUT_B_R",5,lHn,mHn,aHn,aHn,x4(Gy(YKn,1),iEn,21,0,[tK(Wet,x4(Gy(cit,1),XEn,93,0,[Vet,Uet]))])),DHn=new U2("OUT_L_T",6,lHn,mHn,rHn,rHn,x4(Gy(YKn,1),iEn,21,0,[tK(Wet,x4(Gy(cit,1),XEn,93,0,[Get,Yet,zet]))])),xHn=new U2("OUT_L_C",7,lHn,vHn,cHn,rHn,x4(Gy(YKn,1),iEn,21,0,[tK(Wet,x4(Gy(cit,1),XEn,93,0,[Get,Qet])),tK(Wet,x4(Gy(cit,1),XEn,93,0,[Get,Qet,zet]))])),NHn=new U2("OUT_L_B",8,lHn,pHn,aHn,rHn,x4(Gy(YKn,1),iEn,21,0,[tK(Wet,x4(Gy(cit,1),XEn,93,0,[Get,Vet,zet]))])),_Hn=new U2("OUT_R_T",9,fHn,mHn,rHn,aHn,x4(Gy(YKn,1),iEn,21,0,[tK(Wet,x4(Gy(cit,1),XEn,93,0,[Uet,Yet,zet]))])),KHn=new U2("OUT_R_C",10,fHn,vHn,cHn,aHn,x4(Gy(YKn,1),iEn,21,0,[tK(Wet,x4(Gy(cit,1),XEn,93,0,[Uet,Qet])),tK(Wet,x4(Gy(cit,1),XEn,93,0,[Uet,Qet,zet]))])),RHn=new U2("OUT_R_B",11,fHn,pHn,aHn,aHn,x4(Gy(YKn,1),iEn,21,0,[tK(Wet,x4(Gy(cit,1),XEn,93,0,[Uet,Vet,zet]))])),CHn=new U2("IN_T_L",12,fHn,mHn,rHn,rHn,x4(Gy(YKn,1),iEn,21,0,[tK(Xet,x4(Gy(cit,1),XEn,93,0,[Yet,Get])),tK(Xet,x4(Gy(cit,1),XEn,93,0,[Yet,Get,zet]))])),IHn=new U2("IN_T_C",13,hHn,mHn,rHn,cHn,x4(Gy(YKn,1),iEn,21,0,[tK(Xet,x4(Gy(cit,1),XEn,93,0,[Yet,qet])),tK(Xet,x4(Gy(cit,1),XEn,93,0,[Yet,qet,zet]))])),OHn=new U2("IN_T_R",14,lHn,mHn,rHn,aHn,x4(Gy(YKn,1),iEn,21,0,[tK(Xet,x4(Gy(cit,1),XEn,93,0,[Yet,Uet])),tK(Xet,x4(Gy(cit,1),XEn,93,0,[Yet,Uet,zet]))])),SHn=new U2("IN_C_L",15,fHn,vHn,cHn,rHn,x4(Gy(YKn,1),iEn,21,0,[tK(Xet,x4(Gy(cit,1),XEn,93,0,[Qet,Get])),tK(Xet,x4(Gy(cit,1),XEn,93,0,[Qet,Get,zet]))])),MHn=new U2("IN_C_C",16,hHn,vHn,cHn,cHn,x4(Gy(YKn,1),iEn,21,0,[tK(Xet,x4(Gy(cit,1),XEn,93,0,[Qet,qet])),tK(Xet,x4(Gy(cit,1),XEn,93,0,[Qet,qet,zet]))])),PHn=new U2("IN_C_R",17,lHn,vHn,cHn,aHn,x4(Gy(YKn,1),iEn,21,0,[tK(Xet,x4(Gy(cit,1),XEn,93,0,[Qet,Uet])),tK(Xet,x4(Gy(cit,1),XEn,93,0,[Qet,Uet,zet]))])),EHn=new U2("IN_B_L",18,fHn,pHn,aHn,rHn,x4(Gy(YKn,1),iEn,21,0,[tK(Xet,x4(Gy(cit,1),XEn,93,0,[Vet,Get])),tK(Xet,x4(Gy(cit,1),XEn,93,0,[Vet,Get,zet]))])),jHn=new U2("IN_B_C",19,hHn,pHn,aHn,cHn,x4(Gy(YKn,1),iEn,21,0,[tK(Xet,x4(Gy(cit,1),XEn,93,0,[Vet,qet])),tK(Xet,x4(Gy(cit,1),XEn,93,0,[Vet,qet,zet]))])),THn=new U2("IN_B_R",20,lHn,pHn,aHn,aHn,x4(Gy(YKn,1),iEn,21,0,[tK(Xet,x4(Gy(cit,1),XEn,93,0,[Vet,Uet])),tK(Xet,x4(Gy(cit,1),XEn,93,0,[Vet,Uet,zet]))])),qHn=new U2(MSn,21,null,null,null,null,x4(Gy(YKn,1),iEn,21,0,[]))}function xjn(){xjn=O,vat=(YF(),gat).b,Yx(c1(aq(gat.b),0),34),Yx(c1(aq(gat.b),1),18),pat=gat.a,Yx(c1(aq(gat.a),0),34),Yx(c1(aq(gat.a),1),18),Yx(c1(aq(gat.a),2),18),Yx(c1(aq(gat.a),3),18),Yx(c1(aq(gat.a),4),18),mat=gat.o,Yx(c1(aq(gat.o),0),34),Yx(c1(aq(gat.o),1),34),kat=Yx(c1(aq(gat.o),2),18),Yx(c1(aq(gat.o),3),18),Yx(c1(aq(gat.o),4),18),Yx(c1(aq(gat.o),5),18),Yx(c1(aq(gat.o),6),18),Yx(c1(aq(gat.o),7),18),Yx(c1(aq(gat.o),8),18),Yx(c1(aq(gat.o),9),18),Yx(c1(aq(gat.o),10),18),Yx(c1(aq(gat.o),11),18),Yx(c1(aq(gat.o),12),18),Yx(c1(aq(gat.o),13),18),Yx(c1(aq(gat.o),14),18),Yx(c1(aq(gat.o),15),18),Yx(c1(cq(gat.o),0),59),Yx(c1(cq(gat.o),1),59),Yx(c1(cq(gat.o),2),59),Yx(c1(cq(gat.o),3),59),Yx(c1(cq(gat.o),4),59),Yx(c1(cq(gat.o),5),59),Yx(c1(cq(gat.o),6),59),Yx(c1(cq(gat.o),7),59),Yx(c1(cq(gat.o),8),59),Yx(c1(cq(gat.o),9),59),yat=gat.p,Yx(c1(aq(gat.p),0),34),Yx(c1(aq(gat.p),1),34),Yx(c1(aq(gat.p),2),34),Yx(c1(aq(gat.p),3),34),Yx(c1(aq(gat.p),4),18),Yx(c1(aq(gat.p),5),18),Yx(c1(cq(gat.p),0),59),Yx(c1(cq(gat.p),1),59),jat=gat.q,Yx(c1(aq(gat.q),0),34),Eat=gat.v,Yx(c1(aq(gat.v),0),18),Yx(c1(cq(gat.v),0),59),Yx(c1(cq(gat.v),1),59),Yx(c1(cq(gat.v),2),59),Tat=gat.w,Yx(c1(aq(gat.w),0),34),Yx(c1(aq(gat.w),1),34),Yx(c1(aq(gat.w),2),34),Yx(c1(aq(gat.w),3),18),Mat=gat.B,Yx(c1(aq(gat.B),0),18),Yx(c1(cq(gat.B),0),59),Yx(c1(cq(gat.B),1),59),Yx(c1(cq(gat.B),2),59),Iat=gat.Q,Yx(c1(aq(gat.Q),0),18),Yx(c1(cq(gat.Q),0),59),Cat=gat.R,Yx(c1(aq(gat.R),0),34),Oat=gat.S,Yx(c1(cq(gat.S),0),59),Yx(c1(cq(gat.S),1),59),Yx(c1(cq(gat.S),2),59),Yx(c1(cq(gat.S),3),59),Yx(c1(cq(gat.S),4),59),Yx(c1(cq(gat.S),5),59),Yx(c1(cq(gat.S),6),59),Yx(c1(cq(gat.S),7),59),Yx(c1(cq(gat.S),8),59),Yx(c1(cq(gat.S),9),59),Yx(c1(cq(gat.S),10),59),Yx(c1(cq(gat.S),11),59),Yx(c1(cq(gat.S),12),59),Yx(c1(cq(gat.S),13),59),Yx(c1(cq(gat.S),14),59),Aat=gat.T,Yx(c1(aq(gat.T),0),18),Yx(c1(aq(gat.T),2),18),$at=Yx(c1(aq(gat.T),3),18),Yx(c1(aq(gat.T),4),18),Yx(c1(cq(gat.T),0),59),Yx(c1(cq(gat.T),1),59),Yx(c1(aq(gat.T),1),18),Lat=gat.U,Yx(c1(aq(gat.U),0),34),Yx(c1(aq(gat.U),1),34),Yx(c1(aq(gat.U),2),18),Yx(c1(aq(gat.U),3),18),Yx(c1(aq(gat.U),4),18),Yx(c1(aq(gat.U),5),18),Yx(c1(cq(gat.U),0),59),Nat=gat.V,Yx(c1(aq(gat.V),0),18),xat=gat.W,Yx(c1(aq(gat.W),0),34),Yx(c1(aq(gat.W),1),34),Yx(c1(aq(gat.W),2),34),Yx(c1(aq(gat.W),3),18),Yx(c1(aq(gat.W),4),18),Yx(c1(aq(gat.W),5),18),Rat=gat.bb,Yx(c1(aq(gat.bb),0),34),Yx(c1(aq(gat.bb),1),34),Yx(c1(aq(gat.bb),2),34),Yx(c1(aq(gat.bb),3),34),Yx(c1(aq(gat.bb),4),34),Yx(c1(aq(gat.bb),5),34),Yx(c1(aq(gat.bb),6),34),Yx(c1(aq(gat.bb),7),18),Yx(c1(cq(gat.bb),0),59),Yx(c1(cq(gat.bb),1),59),Kat=gat.eb,Yx(c1(aq(gat.eb),0),34),Yx(c1(aq(gat.eb),1),34),Yx(c1(aq(gat.eb),2),34),Yx(c1(aq(gat.eb),3),34),Yx(c1(aq(gat.eb),4),34),Yx(c1(aq(gat.eb),5),34),Yx(c1(aq(gat.eb),6),18),Yx(c1(aq(gat.eb),7),18),Dat=gat.ab,Yx(c1(aq(gat.ab),0),34),Yx(c1(aq(gat.ab),1),34),Sat=gat.H,Yx(c1(aq(gat.H),0),18),Yx(c1(aq(gat.H),1),18),Yx(c1(aq(gat.H),2),18),Yx(c1(aq(gat.H),3),18),Yx(c1(aq(gat.H),4),18),Yx(c1(aq(gat.H),5),18),Yx(c1(cq(gat.H),0),59),_at=gat.db,Yx(c1(aq(gat.db),0),18),Pat=gat.M}function Djn(n){uT(n,new tun(ck(tk(rk(nk(ik(ek(new du,CIn),"ELK Layered"),"Layer-based algorithm provided by the Eclipse Layout Kernel. Arranges as many edges as possible into one direction by placing nodes into subsequent layers. This implementation supports different routing styles (straight, orthogonal, splines); if orthogonal routing is selected, arbitrary port constraints are respected, thus enabling the layout of block diagrams such as actor-oriented models or circuit schematics. Furthermore, full layout of compound graphs with cross-hierarchy edges is supported when the respective option is activated on the top level."),new Ic),CIn),tK((zfn(),vct),x4(Gy(kct,1),XEn,237,0,[dct,gct,wct,pct,lct,fct]))))),DU(n,CIn,WOn,oen(A0n)),DU(n,CIn,VOn,oen($0n)),DU(n,CIn,oPn,oen(L0n)),DU(n,CIn,QOn,oen(N0n)),DU(n,CIn,NPn,oen(D0n)),DU(n,CIn,YOn,oen(R0n)),DU(n,CIn,JOn,oen(F0n)),DU(n,CIn,ZOn,oen(H0n)),DU(n,CIn,nAn,oen(q0n)),DU(n,CIn,tAn,oen(B0n)),DU(n,CIn,LPn,oen(G0n)),DU(n,CIn,eAn,oen(U0n)),DU(n,CIn,iAn,oen(W0n)),DU(n,CIn,rAn,oen(_0n)),DU(n,CIn,WCn,oen(O0n)),DU(n,CIn,QCn,oen(x0n)),DU(n,CIn,VCn,oen(K0n)),DU(n,CIn,YCn,oen(z0n)),DU(n,CIn,$Pn,d9(0)),DU(n,CIn,JCn,oen(M0n)),DU(n,CIn,ZCn,oen(S0n)),DU(n,CIn,nOn,oen(P0n)),DU(n,CIn,uOn,oen(c2n)),DU(n,CIn,oOn,oen(Y0n)),DU(n,CIn,sOn,oen(J0n)),DU(n,CIn,hOn,oen(t2n)),DU(n,CIn,fOn,oen(Z0n)),DU(n,CIn,lOn,oen(n2n)),DU(n,CIn,bOn,oen(u2n)),DU(n,CIn,wOn,oen(a2n)),DU(n,CIn,dOn,oen(i2n)),DU(n,CIn,gOn,oen(e2n)),DU(n,CIn,pOn,oen(r2n)),DU(n,CIn,BCn,oen(Y1n)),DU(n,CIn,HCn,oen(J1n)),DU(n,CIn,zCn,oen(v1n)),DU(n,CIn,UCn,oen(m1n)),DU(n,CIn,fPn,a0n),DU(n,CIn,xOn,w1n),DU(n,CIn,cAn,0),DU(n,CIn,xPn,d9(1)),DU(n,CIn,hPn,OPn),DU(n,CIn,aAn,oen(r0n)),DU(n,CIn,KPn,oen(g0n)),DU(n,CIn,uAn,oen(k0n)),DU(n,CIn,oAn,oen(c1n)),DU(n,CIn,sAn,oen(xZn)),DU(n,CIn,OOn,oen(E1n)),DU(n,CIn,DPn,(TA(),!0)),DU(n,CIn,hAn,oen(I1n)),DU(n,CIn,fAn,oen(C1n)),DU(n,CIn,HPn,oen(n0n)),DU(n,CIn,BPn,oen(i0n)),DU(n,CIn,lAn,oen(t0n)),DU(n,CIn,bAn,o1n),DU(n,CIn,qPn,oen(U1n)),DU(n,CIn,wAn,oen(z1n)),DU(n,CIn,GPn,oen(m0n)),DU(n,CIn,dAn,oen(v0n)),DU(n,CIn,gAn,oen(y0n)),DU(n,CIn,pAn,s0n),DU(n,CIn,vAn,oen(f0n)),DU(n,CIn,mAn,oen(l0n)),DU(n,CIn,yAn,oen(b0n)),DU(n,CIn,kAn,oen(h0n)),DU(n,CIn,dCn,oen(Q0n)),DU(n,CIn,vCn,oen(B1n)),DU(n,CIn,TCn,oen(F1n)),DU(n,CIn,wCn,oen(V0n)),DU(n,CIn,mCn,oen(x1n)),DU(n,CIn,pCn,oen(r1n)),DU(n,CIn,PCn,oen(i1n)),DU(n,CIn,ICn,oen(VZn)),DU(n,CIn,LCn,oen(QZn)),DU(n,CIn,NCn,oen(JZn)),DU(n,CIn,xCn,oen(YZn)),DU(n,CIn,OCn,oen(e1n)),DU(n,CIn,hCn,oen(q1n)),DU(n,CIn,fCn,oen(G1n)),DU(n,CIn,sCn,oen(A1n)),DU(n,CIn,DCn,oen(Z1n)),DU(n,CIn,_Cn,oen(W1n)),DU(n,CIn,oCn,oen(k1n)),DU(n,CIn,FCn,oen(Q1n)),DU(n,CIn,qCn,oen(g1n)),DU(n,CIn,GCn,oen(p1n)),DU(n,CIn,jAn,oen(WZn)),DU(n,CIn,KCn,oen(X1n)),DU(n,CIn,eOn,oen(BZn)),DU(n,CIn,iOn,oen(FZn)),DU(n,CIn,tOn,oen(_Zn)),DU(n,CIn,rOn,oen(M1n)),DU(n,CIn,cOn,oen(T1n)),DU(n,CIn,aOn,oen(S1n)),DU(n,CIn,eIn,oen(e0n)),DU(n,CIn,EAn,oen($1n)),DU(n,CIn,sPn,oen(y1n)),DU(n,CIn,TAn,oen(f1n)),DU(n,CIn,_Pn,oen(h1n)),DU(n,CIn,CCn,oen(ZZn)),DU(n,CIn,MAn,oen(p0n)),DU(n,CIn,SAn,oen(KZn)),DU(n,CIn,PAn,oen(P1n)),DU(n,CIn,IAn,oen(w0n)),DU(n,CIn,CAn,oen(u0n)),DU(n,CIn,OAn,oen(o0n)),DU(n,CIn,jCn,oen(R1n)),DU(n,CIn,ECn,oen(K1n)),DU(n,CIn,AAn,oen(E0n)),DU(n,CIn,lCn,oen(DZn)),DU(n,CIn,MCn,oen(_1n)),DU(n,CIn,vOn,oen(l1n)),DU(n,CIn,mOn,oen(s1n)),DU(n,CIn,$An,oen(H1n)),DU(n,CIn,SCn,oen(L1n)),DU(n,CIn,RCn,oen(V1n)),DU(n,CIn,LAn,oen(X0n)),DU(n,CIn,uCn,oen(u1n)),DU(n,CIn,bCn,oen(j0n)),DU(n,CIn,XCn,oen(d1n)),DU(n,CIn,yCn,oen(N1n)),DU(n,CIn,ACn,oen(n1n)),DU(n,CIn,NAn,oen(O1n)),DU(n,CIn,kCn,oen(D1n)),DU(n,CIn,$Cn,oen(t1n)),DU(n,CIn,yOn,oen(XZn)),DU(n,CIn,EOn,oen(zZn)),DU(n,CIn,TOn,oen(qZn)),DU(n,CIn,MOn,oen(GZn)),DU(n,CIn,kOn,oen(UZn)),DU(n,CIn,jOn,oen(HZn)),DU(n,CIn,gCn,oen(j1n))}function Rjn(n,t){var e;return dot||(dot=new rp,got=new rp,Ljn(),Ljn(),$nn(e=new cU(4),"\t\n\r\r "),GG(dot,SKn,e),GG(got,SKn,nvn(e)),$nn(e=new cU(4),CKn),GG(dot,TKn,e),GG(got,TKn,nvn(e)),$nn(e=new cU(4),CKn),GG(dot,TKn,e),GG(got,TKn,nvn(e)),$nn(e=new cU(4),OKn),fmn(e,Yx(aG(dot,TKn),117)),GG(dot,MKn,e),GG(got,MKn,nvn(e)),$nn(e=new cU(4),"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),GG(dot,PKn,e),GG(got,PKn,nvn(e)),$nn(e=new cU(4),OKn),zwn(e,95,95),zwn(e,58,58),GG(dot,IKn,e),GG(got,IKn,nvn(e))),Yx(aG(t?dot:got,n),136)}function Kjn(n){return _N("_UI_EMFDiagnostic_marker",n)?"EMF Problem":_N("_UI_CircularContainment_diagnostic",n)?"An object may not circularly contain itself":_N(Cxn,n)?"Wrong character.":_N(Oxn,n)?"Invalid reference number.":_N(Axn,n)?"A character is required after \\.":_N($xn,n)?"'?' is not expected. '(?:' or '(?=' or '(?!' or '(?<' or '(?#' or '(?>'?":_N(Lxn,n)?"'(?<' or '(? toIndex: ",DMn=", toIndex: ",RMn="Index: ",KMn=", Size: ",_Mn="org.eclipse.elk.alg.common",FMn={62:1},BMn="org.eclipse.elk.alg.common.compaction",HMn="Scanline/EventHandler",qMn="org.eclipse.elk.alg.common.compaction.oned",GMn="CNode belongs to another CGroup.",zMn="ISpacingsHandler/1",UMn="The ",XMn=" instance has been finished already.",WMn="The direction ",VMn=" is not supported by the CGraph instance.",QMn="OneDimensionalCompactor",YMn="OneDimensionalCompactor/lambda$0$Type",JMn="Quadruplet",ZMn="ScanlineConstraintCalculator",nSn="ScanlineConstraintCalculator/ConstraintsScanlineHandler",tSn="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",eSn="ScanlineConstraintCalculator/Timestamp",iSn="ScanlineConstraintCalculator/lambda$0$Type",rSn={169:1,45:1},cSn="org.eclipse.elk.alg.common.compaction.options",aSn="org.eclipse.elk.core.data",uSn="org.eclipse.elk.polyomino.traversalStrategy",oSn="org.eclipse.elk.polyomino.lowLevelSort",sSn="org.eclipse.elk.polyomino.highLevelSort",hSn="org.eclipse.elk.polyomino.fill",fSn={130:1},lSn="polyomino",bSn="org.eclipse.elk.alg.common.networksimplex",wSn={177:1,3:1,4:1},dSn="org.eclipse.elk.alg.common.nodespacing",gSn="org.eclipse.elk.alg.common.nodespacing.cellsystem",pSn="CENTER",vSn={212:1,326:1},mSn={3:1,4:1,5:1,595:1},ySn="LEFT",kSn="RIGHT",jSn="Vertical alignment cannot be null",ESn="BOTTOM",TSn="org.eclipse.elk.alg.common.nodespacing.internal",MSn="UNDEFINED",SSn=.01,PSn="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",ISn="LabelPlacer/lambda$0$Type",CSn="LabelPlacer/lambda$1$Type",OSn="portRatioOrPosition",ASn="org.eclipse.elk.alg.common.overlaps",$Sn="DOWN",LSn="org.eclipse.elk.alg.common.polyomino",NSn="NORTH",xSn="EAST",DSn="SOUTH",RSn="WEST",KSn="org.eclipse.elk.alg.common.polyomino.structures",_Sn="Direction",FSn="Grid is only of size ",BSn=". Requested point (",HSn=") is out of bounds.",qSn=" Given center based coordinates were (",GSn="org.eclipse.elk.graph.properties",zSn="IPropertyHolder",USn={3:1,94:1,134:1},XSn="org.eclipse.elk.alg.common.spore",WSn="org.eclipse.elk.alg.common.utils",VSn={209:1},QSn="org.eclipse.elk.core",YSn="Connected Components Compaction",JSn="org.eclipse.elk.alg.disco",ZSn="org.eclipse.elk.alg.disco.graph",nPn="org.eclipse.elk.alg.disco.options",tPn="CompactionStrategy",ePn="org.eclipse.elk.disco.componentCompaction.strategy",iPn="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",rPn="org.eclipse.elk.disco.debug.discoGraph",cPn="org.eclipse.elk.disco.debug.discoPolys",aPn="componentCompaction",uPn="org.eclipse.elk.disco",oPn="org.eclipse.elk.spacing.componentComponent",sPn="org.eclipse.elk.edge.thickness",hPn="org.eclipse.elk.aspectRatio",fPn="org.eclipse.elk.padding",lPn="org.eclipse.elk.alg.disco.transform",bPn=1.5707963267948966,wPn=17976931348623157e292,dPn={3:1,4:1,5:1,192:1},gPn={3:1,6:1,4:1,5:1,106:1,120:1},pPn="org.eclipse.elk.alg.force",vPn="ComponentsProcessor",mPn="ComponentsProcessor/1",yPn="org.eclipse.elk.alg.force.graph",kPn="Component Layout",jPn="org.eclipse.elk.alg.force.model",EPn="org.eclipse.elk.force.model",TPn="org.eclipse.elk.force.iterations",MPn="org.eclipse.elk.force.repulsivePower",SPn="org.eclipse.elk.force.temperature",PPn=.001,IPn="org.eclipse.elk.force.repulsion",CPn="org.eclipse.elk.alg.force.options",OPn=1.600000023841858,APn="org.eclipse.elk.force",$Pn="org.eclipse.elk.priority",LPn="org.eclipse.elk.spacing.nodeNode",NPn="org.eclipse.elk.spacing.edgeLabel",xPn="org.eclipse.elk.randomSeed",DPn="org.eclipse.elk.separateConnectedComponents",RPn="org.eclipse.elk.interactive",KPn="org.eclipse.elk.portConstraints",_Pn="org.eclipse.elk.edgeLabels.inline",FPn="org.eclipse.elk.omitNodeMicroLayout",BPn="org.eclipse.elk.nodeSize.options",HPn="org.eclipse.elk.nodeSize.constraints",qPn="org.eclipse.elk.nodeLabels.placement",GPn="org.eclipse.elk.portLabels.placement",zPn="origin",UPn="random",XPn="boundingBox.upLeft",WPn="boundingBox.lowRight",VPn="org.eclipse.elk.stress.fixed",QPn="org.eclipse.elk.stress.desiredEdgeLength",YPn="org.eclipse.elk.stress.dimension",JPn="org.eclipse.elk.stress.epsilon",ZPn="org.eclipse.elk.stress.iterationLimit",nIn="org.eclipse.elk.stress",tIn="ELK Stress",eIn="org.eclipse.elk.nodeSize.minimum",iIn="org.eclipse.elk.alg.force.stress",rIn="Layered layout",cIn="org.eclipse.elk.alg.layered",aIn="org.eclipse.elk.alg.layered.compaction.components",uIn="org.eclipse.elk.alg.layered.compaction.oned",oIn="org.eclipse.elk.alg.layered.compaction.oned.algs",sIn="org.eclipse.elk.alg.layered.compaction.recthull",hIn="org.eclipse.elk.alg.layered.components",fIn="NONE",lIn={3:1,6:1,4:1,9:1,5:1,122:1},bIn={3:1,6:1,4:1,5:1,141:1,106:1,120:1},wIn="org.eclipse.elk.alg.layered.compound",dIn={51:1},gIn="org.eclipse.elk.alg.layered.graph",pIn=" -> ",vIn="Not supported by LGraph",mIn="Port side is undefined",yIn={3:1,6:1,4:1,5:1,474:1,141:1,106:1,120:1},kIn={3:1,6:1,4:1,5:1,141:1,193:1,203:1,106:1,120:1},jIn={3:1,6:1,4:1,5:1,141:1,1943:1,203:1,106:1,120:1},EIn="([{\"' \t\r\n",TIn=")]}\"' \t\r\n",MIn="The given string contains parts that cannot be parsed as numbers.",SIn="org.eclipse.elk.core.math",PIn={3:1,4:1,142:1,207:1,414:1},IIn={3:1,4:1,116:1,207:1,414:1},CIn="org.eclipse.elk.layered",OIn="org.eclipse.elk.alg.layered.graph.transform",AIn="ElkGraphImporter",$In="ElkGraphImporter/lambda$0$Type",LIn="ElkGraphImporter/lambda$1$Type",NIn="ElkGraphImporter/lambda$2$Type",xIn="ElkGraphImporter/lambda$4$Type",DIn="Node margin calculation",RIn="org.eclipse.elk.alg.layered.intermediate",KIn="ONE_SIDED_GREEDY_SWITCH",_In="TWO_SIDED_GREEDY_SWITCH",FIn="No implementation is available for the layout processor ",BIn="IntermediateProcessorStrategy",HIn="Node '",qIn="FIRST_SEPARATE",GIn="LAST_SEPARATE",zIn="Odd port side processing",UIn="org.eclipse.elk.alg.layered.intermediate.compaction",XIn="org.eclipse.elk.alg.layered.intermediate.greedyswitch",WIn="org.eclipse.elk.alg.layered.p3order.counting",VIn={225:1},QIn="org.eclipse.elk.alg.layered.intermediate.loops",YIn="org.eclipse.elk.alg.layered.intermediate.loops.ordering",JIn="org.eclipse.elk.alg.layered.intermediate.loops.routing",ZIn="org.eclipse.elk.alg.layered.intermediate.preserveorder",nCn="org.eclipse.elk.alg.layered.intermediate.wrapping",tCn="org.eclipse.elk.alg.layered.options",eCn="INTERACTIVE",iCn="DEPTH_FIRST",rCn="EDGE_LENGTH",cCn="SELF_LOOPS",aCn="firstTryWithInitialOrder",uCn="org.eclipse.elk.layered.directionCongruency",oCn="org.eclipse.elk.layered.feedbackEdges",sCn="org.eclipse.elk.layered.interactiveReferencePoint",hCn="org.eclipse.elk.layered.mergeEdges",fCn="org.eclipse.elk.layered.mergeHierarchyEdges",lCn="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",bCn="org.eclipse.elk.layered.portSortingStrategy",wCn="org.eclipse.elk.layered.thoroughness",dCn="org.eclipse.elk.layered.unnecessaryBendpoints",gCn="org.eclipse.elk.layered.generatePositionAndLayerIds",pCn="org.eclipse.elk.layered.cycleBreaking.strategy",vCn="org.eclipse.elk.layered.layering.strategy",mCn="org.eclipse.elk.layered.layering.layerConstraint",yCn="org.eclipse.elk.layered.layering.layerChoiceConstraint",kCn="org.eclipse.elk.layered.layering.layerId",jCn="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",ECn="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",TCn="org.eclipse.elk.layered.layering.nodePromotion.strategy",MCn="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",SCn="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",PCn="org.eclipse.elk.layered.crossingMinimization.strategy",ICn="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",CCn="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",OCn="org.eclipse.elk.layered.crossingMinimization.semiInteractive",ACn="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",$Cn="org.eclipse.elk.layered.crossingMinimization.positionId",LCn="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",NCn="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",xCn="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",DCn="org.eclipse.elk.layered.nodePlacement.strategy",RCn="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",KCn="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",_Cn="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",FCn="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",BCn="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",HCn="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",qCn="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",GCn="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",zCn="org.eclipse.elk.layered.edgeRouting.splines.mode",UCn="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",XCn="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",WCn="org.eclipse.elk.layered.spacing.baseValue",VCn="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",QCn="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",YCn="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",JCn="org.eclipse.elk.layered.priority.direction",ZCn="org.eclipse.elk.layered.priority.shortness",nOn="org.eclipse.elk.layered.priority.straightness",tOn="org.eclipse.elk.layered.compaction.connectedComponents",eOn="org.eclipse.elk.layered.compaction.postCompaction.strategy",iOn="org.eclipse.elk.layered.compaction.postCompaction.constraints",rOn="org.eclipse.elk.layered.highDegreeNodes.treatment",cOn="org.eclipse.elk.layered.highDegreeNodes.threshold",aOn="org.eclipse.elk.layered.highDegreeNodes.treeHeight",uOn="org.eclipse.elk.layered.wrapping.strategy",oOn="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",sOn="org.eclipse.elk.layered.wrapping.correctionFactor",hOn="org.eclipse.elk.layered.wrapping.cutting.strategy",fOn="org.eclipse.elk.layered.wrapping.cutting.cuts",lOn="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",bOn="org.eclipse.elk.layered.wrapping.validify.strategy",wOn="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",dOn="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",gOn="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",pOn="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",vOn="org.eclipse.elk.layered.edgeLabels.sideSelection",mOn="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",yOn="org.eclipse.elk.layered.considerModelOrder.strategy",kOn="org.eclipse.elk.layered.considerModelOrder.noModelOrder",jOn="org.eclipse.elk.layered.considerModelOrder.components",EOn="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",TOn="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",MOn="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",SOn="layering",POn="layering.minWidth",IOn="layering.nodePromotion",COn="crossingMinimization",OOn="org.eclipse.elk.hierarchyHandling",AOn="crossingMinimization.greedySwitch",$On="nodePlacement",LOn="nodePlacement.bk",NOn="edgeRouting",xOn="org.eclipse.elk.edgeRouting",DOn="spacing",ROn="priority",KOn="compaction",_On="compaction.postCompaction",FOn="Specifies whether and how post-process compaction is applied.",BOn="highDegreeNodes",HOn="wrapping",qOn="wrapping.cutting",GOn="wrapping.validify",zOn="wrapping.multiEdge",UOn="edgeLabels",XOn="considerModelOrder",WOn="org.eclipse.elk.spacing.commentComment",VOn="org.eclipse.elk.spacing.commentNode",QOn="org.eclipse.elk.spacing.edgeEdge",YOn="org.eclipse.elk.spacing.edgeNode",JOn="org.eclipse.elk.spacing.labelLabel",ZOn="org.eclipse.elk.spacing.labelPortHorizontal",nAn="org.eclipse.elk.spacing.labelPortVertical",tAn="org.eclipse.elk.spacing.labelNode",eAn="org.eclipse.elk.spacing.nodeSelfLoop",iAn="org.eclipse.elk.spacing.portPort",rAn="org.eclipse.elk.spacing.individual",cAn="org.eclipse.elk.port.borderOffset",aAn="org.eclipse.elk.noLayout",uAn="org.eclipse.elk.port.side",oAn="org.eclipse.elk.debugMode",sAn="org.eclipse.elk.alignment",hAn="org.eclipse.elk.insideSelfLoops.activate",fAn="org.eclipse.elk.insideSelfLoops.yo",lAn="org.eclipse.elk.nodeSize.fixedGraphSize",bAn="org.eclipse.elk.direction",wAn="org.eclipse.elk.nodeLabels.padding",dAn="org.eclipse.elk.portLabels.nextToPortIfPossible",gAn="org.eclipse.elk.portLabels.treatAsGroup",pAn="org.eclipse.elk.portAlignment.default",vAn="org.eclipse.elk.portAlignment.north",mAn="org.eclipse.elk.portAlignment.south",yAn="org.eclipse.elk.portAlignment.west",kAn="org.eclipse.elk.portAlignment.east",jAn="org.eclipse.elk.contentAlignment",EAn="org.eclipse.elk.junctionPoints",TAn="org.eclipse.elk.edgeLabels.placement",MAn="org.eclipse.elk.port.index",SAn="org.eclipse.elk.commentBox",PAn="org.eclipse.elk.hypernode",IAn="org.eclipse.elk.port.anchor",CAn="org.eclipse.elk.partitioning.activate",OAn="org.eclipse.elk.partitioning.partition",AAn="org.eclipse.elk.position",$An="org.eclipse.elk.margins",LAn="org.eclipse.elk.spacing.portsSurrounding",NAn="org.eclipse.elk.interactiveLayout",xAn="org.eclipse.elk.core.util",DAn={3:1,4:1,5:1,593:1},RAn="NETWORK_SIMPLEX",KAn={123:1,51:1},_An="org.eclipse.elk.alg.layered.p1cycles",FAn="org.eclipse.elk.alg.layered.p2layers",BAn={402:1,225:1},HAn={832:1,3:1,4:1},qAn="org.eclipse.elk.alg.layered.p3order",GAn="org.eclipse.elk.alg.layered.p4nodes",zAn={3:1,4:1,5:1,840:1},UAn=1e-5,XAn="org.eclipse.elk.alg.layered.p4nodes.bk",WAn="org.eclipse.elk.alg.layered.p5edges",VAn="org.eclipse.elk.alg.layered.p5edges.orthogonal",QAn="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",YAn=1e-6,JAn="org.eclipse.elk.alg.layered.p5edges.splines",ZAn=.09999999999999998,n$n=1e-8,t$n=4.71238898038469,e$n=3.141592653589793,i$n="org.eclipse.elk.alg.mrtree",r$n="org.eclipse.elk.alg.mrtree.graph",c$n="org.eclipse.elk.alg.mrtree.intermediate",a$n="Set neighbors in level",u$n="DESCENDANTS",o$n="org.eclipse.elk.mrtree.weighting",s$n="org.eclipse.elk.mrtree.searchOrder",h$n="org.eclipse.elk.alg.mrtree.options",f$n="org.eclipse.elk.mrtree",l$n="org.eclipse.elk.tree",b$n="org.eclipse.elk.alg.radial",w$n=6.283185307179586,d$n=5e-324,g$n="org.eclipse.elk.alg.radial.intermediate",p$n="org.eclipse.elk.alg.radial.intermediate.compaction",v$n={3:1,4:1,5:1,106:1},m$n="org.eclipse.elk.alg.radial.intermediate.optimization",y$n="No implementation is available for the layout option ",k$n="org.eclipse.elk.alg.radial.options",j$n="org.eclipse.elk.radial.orderId",E$n="org.eclipse.elk.radial.radius",T$n="org.eclipse.elk.radial.compactor",M$n="org.eclipse.elk.radial.compactionStepSize",S$n="org.eclipse.elk.radial.sorter",P$n="org.eclipse.elk.radial.wedgeCriteria",I$n="org.eclipse.elk.radial.optimizationCriteria",C$n="org.eclipse.elk.radial",O$n="org.eclipse.elk.alg.radial.p1position.wedge",A$n="org.eclipse.elk.alg.radial.sorting",$$n=5.497787143782138,L$n=3.9269908169872414,N$n=2.356194490192345,x$n="org.eclipse.elk.alg.rectpacking",D$n="org.eclipse.elk.alg.rectpacking.firstiteration",R$n="org.eclipse.elk.alg.rectpacking.options",K$n="org.eclipse.elk.rectpacking.optimizationGoal",_$n="org.eclipse.elk.rectpacking.lastPlaceShift",F$n="org.eclipse.elk.rectpacking.currentPosition",B$n="org.eclipse.elk.rectpacking.desiredPosition",H$n="org.eclipse.elk.rectpacking.onlyFirstIteration",q$n="org.eclipse.elk.rectpacking.rowCompaction",G$n="org.eclipse.elk.rectpacking.expandToAspectRatio",z$n="org.eclipse.elk.rectpacking.targetWidth",U$n="org.eclipse.elk.expandNodes",X$n="org.eclipse.elk.rectpacking",W$n="org.eclipse.elk.alg.rectpacking.util",V$n="No implementation available for ",Q$n="org.eclipse.elk.alg.spore",Y$n="org.eclipse.elk.alg.spore.options",J$n="org.eclipse.elk.sporeCompaction",Z$n="org.eclipse.elk.underlyingLayoutAlgorithm",nLn="org.eclipse.elk.processingOrder.treeConstruction",tLn="org.eclipse.elk.processingOrder.spanningTreeCostFunction",eLn="org.eclipse.elk.processingOrder.preferredRoot",iLn="org.eclipse.elk.processingOrder.rootSelection",rLn="org.eclipse.elk.structure.structureExtractionStrategy",cLn="org.eclipse.elk.compaction.compactionStrategy",aLn="org.eclipse.elk.compaction.orthogonal",uLn="org.eclipse.elk.overlapRemoval.maxIterations",oLn="org.eclipse.elk.overlapRemoval.runScanline",sLn="processingOrder",hLn="overlapRemoval",fLn="org.eclipse.elk.sporeOverlap",lLn="org.eclipse.elk.alg.spore.p1structure",bLn="org.eclipse.elk.alg.spore.p2processingorder",wLn="org.eclipse.elk.alg.spore.p3execution",dLn="Invalid index: ",gLn="org.eclipse.elk.core.alg",pLn={331:1},vLn={288:1},mLn="Make sure its type is registered with the ",yLn=" utility class.",kLn="true",jLn="false",ELn="Couldn't clone property '",TLn=.05,MLn="org.eclipse.elk.core.options",SLn=1.2999999523162842,PLn="org.eclipse.elk.box",ILn="org.eclipse.elk.box.packingMode",CLn="org.eclipse.elk.algorithm",OLn="org.eclipse.elk.resolvedAlgorithm",ALn="org.eclipse.elk.bendPoints",$Ln="org.eclipse.elk.labelManager",LLn="org.eclipse.elk.scaleFactor",NLn="org.eclipse.elk.animate",xLn="org.eclipse.elk.animTimeFactor",DLn="org.eclipse.elk.layoutAncestors",RLn="org.eclipse.elk.maxAnimTime",KLn="org.eclipse.elk.minAnimTime",_Ln="org.eclipse.elk.progressBar",FLn="org.eclipse.elk.validateGraph",BLn="org.eclipse.elk.validateOptions",HLn="org.eclipse.elk.zoomToFit",qLn="org.eclipse.elk.font.name",GLn="org.eclipse.elk.font.size",zLn="org.eclipse.elk.edge.type",ULn="partitioning",XLn="nodeLabels",WLn="portAlignment",VLn="nodeSize",QLn="port",YLn="portLabels",JLn="insideSelfLoops",ZLn="org.eclipse.elk.fixed",nNn="org.eclipse.elk.random",tNn="port must have a parent node to calculate the port side",eNn="The edge needs to have exactly one edge section. Found: ",iNn="org.eclipse.elk.core.util.adapters",rNn="org.eclipse.emf.ecore",cNn="org.eclipse.elk.graph",aNn="EMapPropertyHolder",uNn="ElkBendPoint",oNn="ElkGraphElement",sNn="ElkConnectableShape",hNn="ElkEdge",fNn="ElkEdgeSection",lNn="EModelElement",bNn="ENamedElement",wNn="ElkLabel",dNn="ElkNode",gNn="ElkPort",pNn={92:1,90:1},vNn="org.eclipse.emf.common.notify.impl",mNn="The feature '",yNn="' is not a valid changeable feature",kNn="Expecting null",jNn="' is not a valid feature",ENn="The feature ID",TNn=" is not a valid feature ID",MNn=32768,SNn={105:1,92:1,90:1,56:1,49:1,97:1},PNn="org.eclipse.emf.ecore.impl",INn="org.eclipse.elk.graph.impl",CNn="Recursive containment not allowed for ",ONn="The datatype '",ANn="' is not a valid classifier",$Nn="The value '",LNn={190:1,3:1,4:1},NNn="The class '",xNn="http://www.eclipse.org/elk/ElkGraph",DNn=1024,RNn="property",KNn="value",_Nn="source",FNn="properties",BNn="identifier",HNn="height",qNn="width",GNn="parent",zNn="text",UNn="children",XNn="hierarchical",WNn="sources",VNn="targets",QNn="sections",YNn="bendPoints",JNn="outgoingShape",ZNn="incomingShape",nxn="outgoingSections",txn="incomingSections",exn="org.eclipse.emf.common.util",ixn="Severe implementation error in the Json to ElkGraph importer.",rxn="id",cxn="org.eclipse.elk.graph.json",axn="Unhandled parameter types: ",uxn="startPoint",oxn="An edge must have at least one source and one target (edge id: '",sxn="').",hxn="Referenced edge section does not exist: ",fxn=" (edge id: '",lxn="target",bxn="sourcePoint",wxn="targetPoint",dxn="group",gxn="name",pxn="connectableShape cannot be null",vxn="edge cannot be null",mxn="Passed edge is not 'simple'.",yxn="org.eclipse.elk.graph.util",kxn="The 'no duplicates' constraint is violated",jxn="targetIndex=",Exn=", size=",Txn="sourceIndex=",Mxn={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1},Sxn={3:1,4:1,20:1,28:1,52:1,14:1,47:1,15:1,54:1,67:1,63:1,58:1,588:1},Pxn="logging",Ixn="measureExecutionTime",Cxn="parser.parse.1",Oxn="parser.parse.2",Axn="parser.next.1",$xn="parser.next.2",Lxn="parser.next.3",Nxn="parser.next.4",xxn="parser.factor.1",Dxn="parser.factor.2",Rxn="parser.factor.3",Kxn="parser.factor.4",_xn="parser.factor.5",Fxn="parser.factor.6",Bxn="parser.atom.1",Hxn="parser.atom.2",qxn="parser.atom.3",Gxn="parser.atom.4",zxn="parser.atom.5",Uxn="parser.cc.1",Xxn="parser.cc.2",Wxn="parser.cc.3",Vxn="parser.cc.5",Qxn="parser.cc.6",Yxn="parser.cc.7",Jxn="parser.cc.8",Zxn="parser.ope.1",nDn="parser.ope.2",tDn="parser.ope.3",eDn="parser.descape.1",iDn="parser.descape.2",rDn="parser.descape.3",cDn="parser.descape.4",aDn="parser.descape.5",uDn="parser.process.1",oDn="parser.quantifier.1",sDn="parser.quantifier.2",hDn="parser.quantifier.3",fDn="parser.quantifier.4",lDn="parser.quantifier.5",bDn="org.eclipse.emf.common.notify",wDn={415:1,672:1},dDn={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1},gDn={366:1,143:1},pDn="index=",vDn={3:1,4:1,5:1,126:1},mDn={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,58:1},yDn={3:1,6:1,4:1,5:1,192:1},kDn={3:1,4:1,5:1,165:1,367:1},jDn=";/?:@&=+$,",EDn="invalid authority: ",TDn="EAnnotation",MDn="ETypedElement",SDn="EStructuralFeature",PDn="EAttribute",IDn="EClassifier",CDn="EEnumLiteral",ODn="EGenericType",ADn="EOperation",$Dn="EParameter",LDn="EReference",NDn="ETypeParameter",xDn="org.eclipse.emf.ecore.util",DDn={76:1},RDn={3:1,20:1,14:1,15:1,58:1,589:1,76:1,69:1,95:1},KDn="org.eclipse.emf.ecore.util.FeatureMap$Entry",_Dn=8192,FDn=2048,BDn="byte",HDn="char",qDn="double",GDn="float",zDn="int",UDn="long",XDn="short",WDn="java.lang.Object",VDn={3:1,4:1,5:1,247:1},QDn={3:1,4:1,5:1,673:1},YDn={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,69:1},JDn={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,76:1,69:1,95:1},ZDn="mixed",nRn="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",tRn="kind",eRn={3:1,4:1,5:1,674:1},iRn={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1,76:1,69:1,95:1},rRn={20:1,28:1,52:1,14:1,15:1,58:1,69:1},cRn={47:1,125:1,279:1},aRn={72:1,332:1},uRn="The value of type '",oRn="' must be of type '",sRn=1316,hRn="http://www.eclipse.org/emf/2002/Ecore",fRn=-32768,lRn="constraints",bRn="baseType",wRn="getEStructuralFeature",dRn="getFeatureID",gRn="feature",pRn="getOperationID",vRn="operation",mRn="defaultValue",yRn="eTypeParameters",kRn="isInstance",jRn="getEEnumLiteral",ERn="eContainingClass",TRn={55:1},MRn={3:1,4:1,5:1,119:1},SRn="org.eclipse.emf.ecore.resource",PRn={92:1,90:1,591:1,1935:1},IRn="org.eclipse.emf.ecore.resource.impl",CRn="unspecified",ORn="simple",ARn="attribute",$Rn="attributeWildcard",LRn="element",NRn="elementWildcard",xRn="collapse",DRn="itemType",RRn="namespace",KRn="##targetNamespace",_Rn="whiteSpace",FRn="wildcards",BRn="http://www.eclipse.org/emf/2003/XMLType",HRn="##any",qRn="uninitialized",GRn="The multiplicity constraint is violated",zRn="org.eclipse.emf.ecore.xml.type",URn="ProcessingInstruction",XRn="SimpleAnyType",WRn="XMLTypeDocumentRoot",VRn="org.eclipse.emf.ecore.xml.type.impl",QRn="INF",YRn="processing",JRn="ENTITIES_._base",ZRn="minLength",nKn="ENTITY",tKn="NCName",eKn="IDREFS_._base",iKn="integer",rKn="token",cKn="pattern",aKn="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",uKn="\\i\\c*",oKn="[\\i-[:]][\\c-[:]]*",sKn="nonPositiveInteger",hKn="maxInclusive",fKn="NMTOKEN",lKn="NMTOKENS_._base",bKn="nonNegativeInteger",wKn="minInclusive",dKn="normalizedString",gKn="unsignedByte",pKn="unsignedInt",vKn="18446744073709551615",mKn="unsignedShort",yKn="processingInstruction",kKn="org.eclipse.emf.ecore.xml.type.internal",jKn=1114111,EKn="Internal Error: shorthands: \\u",TKn="xml:isDigit",MKn="xml:isWord",SKn="xml:isSpace",PKn="xml:isNameChar",IKn="xml:isInitialNameChar",CKn="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",OKn="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",AKn="Private Use",$Kn="ASSIGNED",LKn="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\ufeff\ufeff＀￯",NKn="UNASSIGNED",xKn={3:1,117:1},DKn="org.eclipse.emf.ecore.xml.type.util",RKn={3:1,4:1,5:1,368:1},KKn="org.eclipse.xtext.xbase.lib",_Kn="Cannot add elements to a Range",FKn="Cannot set elements in a Range",BKn="Cannot remove elements from a Range",HKn="locale",qKn="default",GKn="user.agent";e.goog=e.goog||{},e.goog.global=e.goog.global||e,Bjn={},!Array.isArray&&(Array.isArray=function(n){return"[object Array]"===Object.prototype.toString.call(n)}),!Date.now&&(Date.now=function(){return(new Date).getTime()}),Wfn(1,null,{},r),Fjn.Fb=function(n){return WI(this,n)},Fjn.Gb=function(){return this.gm},Fjn.Hb=function(){return _A(this)},Fjn.Ib=function(){return Nk(V5(this))+"@"+(W5(this)>>>0).toString(16)},Fjn.equals=function(n){return this.Fb(n)},Fjn.hashCode=function(){return this.Hb()},Fjn.toString=function(){return this.Ib()},Wfn(290,1,{290:1,2026:1},m5),Fjn.le=function(n){var t;return(t=new m5).i=4,t.c=n>1?qG(this,n-1):this,t},Fjn.me=function(){return sL(this),this.b},Fjn.ne=function(){return Nk(this)},Fjn.oe=function(){return sL(this),this.k},Fjn.pe=function(){return 0!=(4&this.i)},Fjn.qe=function(){return 0!=(1&this.i)},Fjn.Ib=function(){return LZ(this)},Fjn.i=0;var zKn,UKn=EF(Jjn,"Object",1),XKn=EF(Jjn,"Class",290);Wfn(1998,1,Zjn),EF(nEn,"Optional",1998),Wfn(1170,1998,Zjn,c),Fjn.Fb=function(n){return n===this},Fjn.Hb=function(){return 2040732332},Fjn.Ib=function(){return"Optional.absent()"},Fjn.Jb=function(n){return MF(n),gm(),zKn},EF(nEn,"Absent",1170),Wfn(628,1,{},Ty),EF(nEn,"Joiner",628);var WKn=aR(nEn,"Predicate");Wfn(582,1,{169:1,582:1,3:1,45:1},Ff),Fjn.Mb=function(n){return R5(this,n)},Fjn.Lb=function(n){return R5(this,n)},Fjn.Fb=function(n){var t;return!!CO(n,582)&&(t=Yx(n,582),sln(this.a,t.a))},Fjn.Hb=function(){return K5(this.a)+306654252},Fjn.Ib=function(){return function(n){var t,e,i,r;for(t=_F(yI(new SA("Predicates."),"and"),40),e=!0,r=new Vl(n);r.b0},Fjn.Pb=function(){if(this.c>=this.d)throw hp(new Kp);return this.Xb(this.c++)},Fjn.Tb=function(){return this.c},Fjn.Ub=function(){if(this.c<=0)throw hp(new Kp);return this.Xb(--this.c)},Fjn.Vb=function(){return this.c-1},Fjn.c=0,Fjn.d=0,EF(oEn,"AbstractIndexedListIterator",386),Wfn(699,198,uEn),Fjn.Ob=function(){return X0(this)},Fjn.Pb=function(){return bJ(this)},Fjn.e=1,EF(oEn,"AbstractIterator",699),Wfn(1986,1,{224:1}),Fjn.Zb=function(){return this.f||(this.f=this.ac())},Fjn.Fb=function(n){return f6(this,n)},Fjn.Hb=function(){return W5(this.Zb())},Fjn.dc=function(){return 0==this.gc()},Fjn.ec=function(){return FK(this)},Fjn.Ib=function(){return I7(this.Zb())},EF(oEn,"AbstractMultimap",1986),Wfn(726,1986,hEn),Fjn.$b=function(){v0(this)},Fjn._b=function(n){return Ok(this,n)},Fjn.ac=function(){return new Xj(this,this.c)},Fjn.ic=function(n){return this.hc()},Fjn.bc=function(){return new iA(this,this.c)},Fjn.jc=function(){return this.mc(this.hc())},Fjn.kc=function(){return new tm(this)},Fjn.lc=function(){return lun(this.c.vc().Nc(),new u,64,this.d)},Fjn.cc=function(n){return _V(this,n)},Fjn.fc=function(n){return h8(this,n)},Fjn.gc=function(){return this.d},Fjn.mc=function(n){return XH(),new fb(n)},Fjn.nc=function(){return new nm(this)},Fjn.oc=function(){return lun(this.c.Cc().Nc(),new a,64,this.d)},Fjn.pc=function(n,t){return new dQ(this,n,t,null)},Fjn.d=0,EF(oEn,"AbstractMapBasedMultimap",726),Wfn(1631,726,hEn),Fjn.hc=function(){return new pQ(this.a)},Fjn.jc=function(){return XH(),XH(),TFn},Fjn.cc=function(n){return Yx(_V(this,n),15)},Fjn.fc=function(n){return Yx(h8(this,n),15)},Fjn.Zb=function(){return QH(this)},Fjn.Fb=function(n){return f6(this,n)},Fjn.qc=function(n){return Yx(_V(this,n),15)},Fjn.rc=function(n){return Yx(h8(this,n),15)},Fjn.mc=function(n){return lq(Yx(n,15))},Fjn.pc=function(n,t){return kX(this,n,Yx(t,15),null)},EF(oEn,"AbstractListMultimap",1631),Wfn(732,1,fEn),Fjn.Nb=function(n){I_(this,n)},Fjn.Ob=function(){return this.c.Ob()||this.e.Ob()},Fjn.Pb=function(){var n;return this.e.Ob()||(n=Yx(this.c.Pb(),42),this.b=n.cd(),this.a=Yx(n.dd(),14),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},Fjn.Qb=function(){this.e.Qb(),this.a.dc()&&this.c.Qb(),--this.d.d},EF(oEn,"AbstractMapBasedMultimap/Itr",732),Wfn(1099,732,fEn,nm),Fjn.sc=function(n,t){return t},EF(oEn,"AbstractMapBasedMultimap/1",1099),Wfn(1100,1,{},a),Fjn.Kb=function(n){return Yx(n,14).Nc()},EF(oEn,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1100),Wfn(1101,732,fEn,tm),Fjn.sc=function(n,t){return new Wj(n,t)},EF(oEn,"AbstractMapBasedMultimap/2",1101);var VKn=aR(lEn,"Map");Wfn(1967,1,bEn),Fjn.wc=function(n){S3(this,n)},Fjn.yc=function(n,t,e){return Y9(this,n,t,e)},Fjn.$b=function(){this.vc().$b()},Fjn.tc=function(n){return Fin(this,n)},Fjn._b=function(n){return!!Ian(this,n,!1)},Fjn.uc=function(n){var t,e;for(t=this.vc().Kc();t.Ob();)if(e=Yx(t.Pb(),42).dd(),iI(n)===iI(e)||null!=n&&Q8(n,e))return!0;return!1},Fjn.Fb=function(n){var t,e,i;if(n===this)return!0;if(!CO(n,83))return!1;if(i=Yx(n,83),this.gc()!=i.gc())return!1;for(e=i.vc().Kc();e.Ob();)if(t=Yx(e.Pb(),42),!this.tc(t))return!1;return!0},Fjn.xc=function(n){return eI(Ian(this,n,!1))},Fjn.Hb=function(){return W4(this.vc())},Fjn.dc=function(){return 0==this.gc()},Fjn.ec=function(){return new Yl(this)},Fjn.zc=function(n,t){throw hp(new sy("Put not supported on this map"))},Fjn.Ac=function(n){i3(this,n)},Fjn.Bc=function(n){return eI(Ian(this,n,!0))},Fjn.gc=function(){return this.vc().gc()},Fjn.Ib=function(){return Fan(this)},Fjn.Cc=function(){return new Zl(this)},EF(lEn,"AbstractMap",1967),Wfn(1987,1967,bEn),Fjn.bc=function(){return new eE(this)},Fjn.vc=function(){return _K(this)},Fjn.ec=function(){return this.g||(this.g=this.bc())},Fjn.Cc=function(){return this.i||(this.i=new iE(this))},EF(oEn,"Maps/ViewCachingAbstractMap",1987),Wfn(389,1987,bEn,Xj),Fjn.xc=function(n){return function(n,t){var e,i;return(e=Yx(x8(n.d,t),14))?(i=t,n.e.pc(i,e)):null}(this,n)},Fjn.Bc=function(n){return function(n,t){var e,i;return(e=Yx(n.d.Bc(t),14))?((i=n.e.hc()).Gc(e),n.e.d-=e.gc(),e.$b(),i):null}(this,n)},Fjn.$b=function(){this.d==this.e.c?this.e.$b():vR(new mR(this))},Fjn._b=function(n){return R8(this.d,n)},Fjn.Ec=function(){return new zf(this)},Fjn.Dc=function(){return this.Ec()},Fjn.Fb=function(n){return this===n||Q8(this.d,n)},Fjn.Hb=function(){return W5(this.d)},Fjn.ec=function(){return this.e.ec()},Fjn.gc=function(){return this.d.gc()},Fjn.Ib=function(){return I7(this.d)},EF(oEn,"AbstractMapBasedMultimap/AsMap",389);var QKn=aR(Jjn,"Iterable");Wfn(28,1,wEn),Fjn.Jc=function(n){XW(this,n)},Fjn.Lc=function(){return this.Oc()},Fjn.Nc=function(){return new Nz(this,0)},Fjn.Oc=function(){return new SR(null,this.Nc())},Fjn.Fc=function(n){throw hp(new sy("Add not supported on this collection"))},Fjn.Gc=function(n){return C2(this,n)},Fjn.$b=function(){iH(this)},Fjn.Hc=function(n){return V7(this,n,!1)},Fjn.Ic=function(n){return m4(this,n)},Fjn.dc=function(){return 0==this.gc()},Fjn.Mc=function(n){return V7(this,n,!0)},Fjn.Pc=function(){return CK(this)},Fjn.Qc=function(n){return _in(this,n)},Fjn.Ib=function(){return Gun(this)},EF(lEn,"AbstractCollection",28);var YKn=aR(lEn,"Set");Wfn(dEn,28,gEn),Fjn.Nc=function(){return new Nz(this,1)},Fjn.Fb=function(n){return stn(this,n)},Fjn.Hb=function(){return W4(this)},EF(lEn,"AbstractSet",dEn),Wfn(1970,dEn,gEn),EF(oEn,"Sets/ImprovedAbstractSet",1970),Wfn(1971,1970,gEn),Fjn.$b=function(){this.Rc().$b()},Fjn.Hc=function(n){return vnn(this,n)},Fjn.dc=function(){return this.Rc().dc()},Fjn.Mc=function(n){var t;return!!this.Hc(n)&&(t=Yx(n,42),this.Rc().ec().Mc(t.cd()))},Fjn.gc=function(){return this.Rc().gc()},EF(oEn,"Maps/EntrySet",1971),Wfn(1097,1971,gEn,zf),Fjn.Hc=function(n){return D8(this.a.d.vc(),n)},Fjn.Kc=function(){return new mR(this.a)},Fjn.Rc=function(){return this.a},Fjn.Mc=function(n){var t;return!!D8(this.a.d.vc(),n)&&(t=Yx(n,42),pV(this.a.e,t.cd()),!0)},Fjn.Nc=function(){return Vx(this.a.d.vc().Nc(),new Uf(this.a))},EF(oEn,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1097),Wfn(1098,1,{},Uf),Fjn.Kb=function(n){return WW(this.a,Yx(n,42))},EF(oEn,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1098),Wfn(730,1,fEn,mR),Fjn.Nb=function(n){I_(this,n)},Fjn.Pb=function(){var n;return n=Yx(this.b.Pb(),42),this.a=Yx(n.dd(),14),WW(this.c,n)},Fjn.Ob=function(){return this.b.Ob()},Fjn.Qb=function(){x3(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},EF(oEn,"AbstractMapBasedMultimap/AsMap/AsMapIterator",730),Wfn(532,1970,gEn,eE),Fjn.$b=function(){this.b.$b()},Fjn.Hc=function(n){return this.b._b(n)},Fjn.Jc=function(n){MF(n),this.b.wc(new gl(n))},Fjn.dc=function(){return this.b.dc()},Fjn.Kc=function(){return new Mm(this.b.vc().Kc())},Fjn.Mc=function(n){return!!this.b._b(n)&&(this.b.Bc(n),!0)},Fjn.gc=function(){return this.b.gc()},EF(oEn,"Maps/KeySet",532),Wfn(318,532,gEn,iA),Fjn.$b=function(){vR(new $j(this,this.b.vc().Kc()))},Fjn.Ic=function(n){return this.b.ec().Ic(n)},Fjn.Fb=function(n){return this===n||Q8(this.b.ec(),n)},Fjn.Hb=function(){return W5(this.b.ec())},Fjn.Kc=function(){return new $j(this,this.b.vc().Kc())},Fjn.Mc=function(n){var t,e;return e=0,(t=Yx(this.b.Bc(n),14))&&(e=t.gc(),t.$b(),this.a.d-=e),e>0},Fjn.Nc=function(){return this.b.ec().Nc()},EF(oEn,"AbstractMapBasedMultimap/KeySet",318),Wfn(731,1,fEn,$j),Fjn.Nb=function(n){I_(this,n)},Fjn.Ob=function(){return this.c.Ob()},Fjn.Pb=function(){return this.a=Yx(this.c.Pb(),42),this.a.cd()},Fjn.Qb=function(){var n;x3(!!this.a),n=Yx(this.a.dd(),14),this.c.Qb(),this.b.a.d-=n.gc(),n.$b(),this.a=null},EF(oEn,"AbstractMapBasedMultimap/KeySet/1",731),Wfn(491,389,{83:1,161:1},wL),Fjn.bc=function(){return this.Sc()},Fjn.ec=function(){return this.Tc()},Fjn.Sc=function(){return new Oj(this.c,this.Uc())},Fjn.Tc=function(){return this.b||(this.b=this.Sc())},Fjn.Uc=function(){return Yx(this.d,161)},EF(oEn,"AbstractMapBasedMultimap/SortedAsMap",491),Wfn(542,491,pEn,dL),Fjn.bc=function(){return new Aj(this.a,Yx(Yx(this.d,161),171))},Fjn.Sc=function(){return new Aj(this.a,Yx(Yx(this.d,161),171))},Fjn.ec=function(){return Yx(this.b||(this.b=new Aj(this.a,Yx(Yx(this.d,161),171))),271)},Fjn.Tc=function(){return Yx(this.b||(this.b=new Aj(this.a,Yx(Yx(this.d,161),171))),271)},Fjn.Uc=function(){return Yx(Yx(this.d,161),171)},EF(oEn,"AbstractMapBasedMultimap/NavigableAsMap",542),Wfn(490,318,vEn,Oj),Fjn.Nc=function(){return this.b.ec().Nc()},EF(oEn,"AbstractMapBasedMultimap/SortedKeySet",490),Wfn(388,490,mEn,Aj),EF(oEn,"AbstractMapBasedMultimap/NavigableKeySet",388),Wfn(541,28,wEn,dQ),Fjn.Fc=function(n){var t,e;return A7(this),e=this.d.dc(),(t=this.d.Fc(n))&&(++this.f.d,e&&tN(this)),t},Fjn.Gc=function(n){var t,e,i;return!n.dc()&&(A7(this),i=this.d.gc(),(t=this.d.Gc(n))&&(e=this.d.gc(),this.f.d+=e-i,0==i&&tN(this)),t)},Fjn.$b=function(){var n;A7(this),0!=(n=this.d.gc())&&(this.d.$b(),this.f.d-=n,oK(this))},Fjn.Hc=function(n){return A7(this),this.d.Hc(n)},Fjn.Ic=function(n){return A7(this),this.d.Ic(n)},Fjn.Fb=function(n){return n===this||(A7(this),Q8(this.d,n))},Fjn.Hb=function(){return A7(this),W5(this.d)},Fjn.Kc=function(){return A7(this),new rD(this)},Fjn.Mc=function(n){var t;return A7(this),(t=this.d.Mc(n))&&(--this.f.d,oK(this)),t},Fjn.gc=function(){return bI(this)},Fjn.Nc=function(){return A7(this),this.d.Nc()},Fjn.Ib=function(){return A7(this),I7(this.d)},EF(oEn,"AbstractMapBasedMultimap/WrappedCollection",541);var JKn=aR(lEn,"List");Wfn(728,541,{20:1,28:1,14:1,15:1},LK),Fjn.ad=function(n){I2(this,n)},Fjn.Nc=function(){return A7(this),this.d.Nc()},Fjn.Vc=function(n,t){var e;A7(this),e=this.d.dc(),Yx(this.d,15).Vc(n,t),++this.a.d,e&&tN(this)},Fjn.Wc=function(n,t){var e,i,r;return!t.dc()&&(A7(this),r=this.d.gc(),(e=Yx(this.d,15).Wc(n,t))&&(i=this.d.gc(),this.a.d+=i-r,0==r&&tN(this)),e)},Fjn.Xb=function(n){return A7(this),Yx(this.d,15).Xb(n)},Fjn.Xc=function(n){return A7(this),Yx(this.d,15).Xc(n)},Fjn.Yc=function(){return A7(this),new VC(this)},Fjn.Zc=function(n){return A7(this),new RH(this,n)},Fjn.$c=function(n){var t;return A7(this),t=Yx(this.d,15).$c(n),--this.a.d,oK(this),t},Fjn._c=function(n,t){return A7(this),Yx(this.d,15)._c(n,t)},Fjn.bd=function(n,t){return A7(this),kX(this.a,this.e,Yx(this.d,15).bd(n,t),this.b?this.b:this)},EF(oEn,"AbstractMapBasedMultimap/WrappedList",728),Wfn(1096,728,{20:1,28:1,14:1,15:1,54:1},C$),EF(oEn,"AbstractMapBasedMultimap/RandomAccessWrappedList",1096),Wfn(620,1,fEn,rD),Fjn.Nb=function(n){I_(this,n)},Fjn.Ob=function(){return rH(this),this.b.Ob()},Fjn.Pb=function(){return rH(this),this.b.Pb()},Fjn.Qb=function(){gA(this)},EF(oEn,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",620),Wfn(729,620,yEn,VC,RH),Fjn.Qb=function(){gA(this)},Fjn.Rb=function(n){var t;t=0==bI(this.a),(rH(this),Yx(this.b,125)).Rb(n),++this.a.a.d,t&&tN(this.a)},Fjn.Sb=function(){return(rH(this),Yx(this.b,125)).Sb()},Fjn.Tb=function(){return(rH(this),Yx(this.b,125)).Tb()},Fjn.Ub=function(){return(rH(this),Yx(this.b,125)).Ub()},Fjn.Vb=function(){return(rH(this),Yx(this.b,125)).Vb()},Fjn.Wb=function(n){(rH(this),Yx(this.b,125)).Wb(n)},EF(oEn,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",729),Wfn(727,541,vEn,yL),Fjn.Nc=function(){return A7(this),this.d.Nc()},EF(oEn,"AbstractMapBasedMultimap/WrappedSortedSet",727),Wfn(1095,727,mEn,PC),EF(oEn,"AbstractMapBasedMultimap/WrappedNavigableSet",1095),Wfn(1094,541,gEn,kL),Fjn.Nc=function(){return A7(this),this.d.Nc()},EF(oEn,"AbstractMapBasedMultimap/WrappedSet",1094),Wfn(1103,1,{},u),Fjn.Kb=function(n){return function(n){var t;return t=n.cd(),Vx(Yx(n.dd(),14).Nc(),new Xf(t))}(Yx(n,42))},EF(oEn,"AbstractMapBasedMultimap/lambda$1$Type",1103),Wfn(1102,1,{},Xf),Fjn.Kb=function(n){return new Wj(this.a,n)},EF(oEn,"AbstractMapBasedMultimap/lambda$2$Type",1102);var ZKn,n_n,t_n,e_n,i_n=aR(lEn,"Map/Entry");Wfn(345,1,kEn),Fjn.Fb=function(n){var t;return!!CO(n,42)&&(t=Yx(n,42),bB(this.cd(),t.cd())&&bB(this.dd(),t.dd()))},Fjn.Hb=function(){var n,t;return n=this.cd(),t=this.dd(),(null==n?0:W5(n))^(null==t?0:W5(t))},Fjn.ed=function(n){throw hp(new xp)},Fjn.Ib=function(){return this.cd()+"="+this.dd()},EF(oEn,jEn,345),Wfn(1988,28,wEn),Fjn.$b=function(){this.fd().$b()},Fjn.Hc=function(n){var t;return!!CO(n,42)&&(t=Yx(n,42),function(n,t,e){var i;return!!(i=Yx(n.Zb().xc(t),14))&&i.Hc(e)}(this.fd(),t.cd(),t.dd()))},Fjn.Mc=function(n){var t;return!!CO(n,42)&&(t=Yx(n,42),jU(this.fd(),t.cd(),t.dd()))},Fjn.gc=function(){return this.fd().d},EF(oEn,"Multimaps/Entries",1988),Wfn(733,1988,wEn,Wf),Fjn.Kc=function(){return this.a.kc()},Fjn.fd=function(){return this.a},Fjn.Nc=function(){return this.a.lc()},EF(oEn,"AbstractMultimap/Entries",733),Wfn(734,733,gEn,em),Fjn.Nc=function(){return this.a.lc()},Fjn.Fb=function(n){return _on(this,n)},Fjn.Hb=function(){return O2(this)},EF(oEn,"AbstractMultimap/EntrySet",734),Wfn(735,28,wEn,Vf),Fjn.$b=function(){this.a.$b()},Fjn.Hc=function(n){return function(n,t){var e;for(e=n.Zb().Cc().Kc();e.Ob();)if(Yx(e.Pb(),14).Hc(t))return!0;return!1}(this.a,n)},Fjn.Kc=function(){return this.a.nc()},Fjn.gc=function(){return this.a.d},Fjn.Nc=function(){return this.a.oc()},EF(oEn,"AbstractMultimap/Values",735),Wfn(1989,28,{835:1,20:1,28:1,14:1}),Fjn.Jc=function(n){MF(n),eH(this).Jc(new dl(n))},Fjn.Nc=function(){var n;return lun(n=eH(this).Nc(),new y,64|1296&n.qd(),this.a.d)},Fjn.Fc=function(n){return jy(),!0},Fjn.Gc=function(n){return MF(this),MF(n),CO(n,543)?BU(Yx(n,835)):!n.dc()&&zJ(this,n.Kc())},Fjn.Hc=function(n){var t;return((t=Yx(x8(QH(this.a),n),14))?t.gc():0)>0},Fjn.Fb=function(n){return function(n,t){var e,i,r;if(t===n)return!0;if(CO(t,543)){if(r=Yx(t,835),n.a.d!=r.a.d||eH(n).gc()!=eH(r).gc())return!1;for(i=eH(r).Kc();i.Ob();)if(Sz(n,(e=Yx(i.Pb(),416)).a.cd())!=Yx(e.a.dd(),14).gc())return!1;return!0}return!1}(this,n)},Fjn.Hb=function(){return W5(eH(this))},Fjn.dc=function(){return eH(this).dc()},Fjn.Mc=function(n){return xhn(this,n,1)>0},Fjn.Ib=function(){return I7(eH(this))},EF(oEn,"AbstractMultiset",1989),Wfn(1991,1970,gEn),Fjn.$b=function(){v0(this.a.a)},Fjn.Hc=function(n){var t;return!(!CO(n,492)||(t=Yx(n,416),Yx(t.a.dd(),14).gc()<=0||Sz(this.a,t.a.cd())!=Yx(t.a.dd(),14).gc()))},Fjn.Mc=function(n){var t,e,i;return!(!CO(n,492)||(t=(e=Yx(n,416)).a.cd(),0==(i=Yx(e.a.dd(),14).gc())))&&function(n,t,e){var i,r,c;return g0(e,"oldCount"),g0(0,"newCount"),((i=Yx(x8(QH(n.a),t),14))?i.gc():0)==e&&(g0(0,"count"),(c=-((r=Yx(x8(QH(n.a),t),14))?r.gc():0))>0?jy():c<0&&xhn(n,t,-c),!0)}(this.a,t,i)},EF(oEn,"Multisets/EntrySet",1991),Wfn(1109,1991,gEn,Qf),Fjn.Kc=function(){return new Pm(_K(QH(this.a.a)).Kc())},Fjn.gc=function(){return QH(this.a.a).gc()},EF(oEn,"AbstractMultiset/EntrySet",1109),Wfn(619,726,hEn),Fjn.hc=function(){return this.gd()},Fjn.jc=function(){return this.hd()},Fjn.cc=function(n){return this.jd(n)},Fjn.fc=function(n){return this.kd(n)},Fjn.Zb=function(){return this.f||(this.f=this.ac())},Fjn.hd=function(){return XH(),XH(),SFn},Fjn.Fb=function(n){return f6(this,n)},Fjn.jd=function(n){return Yx(_V(this,n),21)},Fjn.kd=function(n){return Yx(h8(this,n),21)},Fjn.mc=function(n){return XH(),new Ny(Yx(n,21))},Fjn.pc=function(n,t){return new kL(this,n,Yx(t,21))},EF(oEn,"AbstractSetMultimap",619),Wfn(1657,619,hEn),Fjn.hc=function(){return new Vk(this.b)},Fjn.gd=function(){return new Vk(this.b)},Fjn.jc=function(){return LF(new Vk(this.b))},Fjn.hd=function(){return LF(new Vk(this.b))},Fjn.cc=function(n){return Yx(Yx(_V(this,n),21),84)},Fjn.jd=function(n){return Yx(Yx(_V(this,n),21),84)},Fjn.fc=function(n){return Yx(Yx(h8(this,n),21),84)},Fjn.kd=function(n){return Yx(Yx(h8(this,n),21),84)},Fjn.mc=function(n){return CO(n,271)?LF(Yx(n,271)):(XH(),new CA(Yx(n,84)))},Fjn.Zb=function(){return this.f||(this.f=CO(this.c,171)?new dL(this,Yx(this.c,171)):CO(this.c,161)?new wL(this,Yx(this.c,161)):new Xj(this,this.c))},Fjn.pc=function(n,t){return CO(t,271)?new PC(this,n,Yx(t,271)):new yL(this,n,Yx(t,84))},EF(oEn,"AbstractSortedSetMultimap",1657),Wfn(1658,1657,hEn),Fjn.Zb=function(){return Yx(Yx(this.f||(this.f=CO(this.c,171)?new dL(this,Yx(this.c,171)):CO(this.c,161)?new wL(this,Yx(this.c,161)):new Xj(this,this.c)),161),171)},Fjn.ec=function(){return Yx(Yx(this.i||(this.i=CO(this.c,171)?new Aj(this,Yx(this.c,171)):CO(this.c,161)?new Oj(this,Yx(this.c,161)):new iA(this,this.c)),84),271)},Fjn.bc=function(){return CO(this.c,171)?new Aj(this,Yx(this.c,171)):CO(this.c,161)?new Oj(this,Yx(this.c,161)):new iA(this,this.c)},EF(oEn,"AbstractSortedKeySortedSetMultimap",1658),Wfn(2010,1,{1947:1}),Fjn.Fb=function(n){return function(n,t){var e;return t===n||!!CO(t,664)&&(e=Yx(t,1947),stn(n.g||(n.g=new Yf(n)),e.g||(e.g=new Yf(e))))}(this,n)},Fjn.Hb=function(){return W4(this.g||(this.g=new Yf(this)))},Fjn.Ib=function(){return Fan(this.f||(this.f=new uA(this)))},EF(oEn,"AbstractTable",2010),Wfn(665,dEn,gEn,Yf),Fjn.$b=function(){Ey()},Fjn.Hc=function(n){var t,e;return!!CO(n,468)&&(t=Yx(n,682),!!(e=Yx(x8(PF(this.a),uI(t.c.e,t.b)),83))&&D8(e.vc(),new Wj(uI(t.c.c,t.a),bQ(t.c,t.b,t.a))))},Fjn.Kc=function(){return new rA(n=this.a,n.e.Hd().gc()*n.c.Hd().gc());var n},Fjn.Mc=function(n){var t,e;return!!CO(n,468)&&(t=Yx(n,682),!!(e=Yx(x8(PF(this.a),uI(t.c.e,t.b)),83))&&function(n,t){MF(n);try{return n.Mc(t)}catch(n){if(CO(n=j4(n),205)||CO(n,173))return!1;throw hp(n)}}(e.vc(),new Wj(uI(t.c.c,t.a),bQ(t.c,t.b,t.a))))},Fjn.gc=function(){return OR(this.a)},Fjn.Nc=function(){return hR((n=this.a).e.Hd().gc()*n.c.Hd().gc(),273,new Hf(n));var n},EF(oEn,"AbstractTable/CellSet",665),Wfn(1928,28,wEn,Jf),Fjn.$b=function(){Ey()},Fjn.Hc=function(n){return function(n,t){var e,i,r,c,a,u,o;for(u=0,o=(a=n.a).length;u=0?"+":"")+(i/60|0),t=YI(e.Math.abs(i)%60),(Cun(),AFn)[this.q.getDay()]+" "+$Fn[this.q.getMonth()]+" "+YI(this.q.getDate())+" "+YI(this.q.getHours())+":"+YI(this.q.getMinutes())+":"+YI(this.q.getSeconds())+" GMT"+n+t+" "+this.q.getFullYear()};var E_n,T_n,M_n,S_n,P_n,I_n,C_n,O_n,A_n,$_n,L_n,N_n=EF(lEn,"Date",199);Wfn(1915,199,_Tn,Tcn),Fjn.a=!1,Fjn.b=0,Fjn.c=0,Fjn.d=0,Fjn.e=0,Fjn.f=0,Fjn.g=!1,Fjn.i=0,Fjn.j=0,Fjn.k=0,Fjn.n=0,Fjn.o=0,Fjn.p=0,EF("com.google.gwt.i18n.shared.impl","DateRecord",1915),Wfn(1966,1,{}),Fjn.fe=function(){return null},Fjn.ge=function(){return null},Fjn.he=function(){return null},Fjn.ie=function(){return null},Fjn.je=function(){return null},EF(FTn,"JSONValue",1966),Wfn(216,1966,{216:1},Sl,jl),Fjn.Fb=function(n){return!!CO(n,216)&&Jz(this.a,Yx(n,216).a)},Fjn.ee=function(){return fp},Fjn.Hb=function(){return sq(this.a)},Fjn.fe=function(){return this},Fjn.Ib=function(){var n,t,e;for(e=new SA("["),t=0,n=this.a.length;t0&&(e.a+=","),mI(e,VJ(this,t));return e.a+="]",e.a},EF(FTn,"JSONArray",216),Wfn(483,1966,{483:1},El),Fjn.ee=function(){return lp},Fjn.ge=function(){return this},Fjn.Ib=function(){return TA(),""+this.a},Fjn.a=!1,EF(FTn,"JSONBoolean",483),Wfn(985,60,eTn,Cm),EF(FTn,"JSONException",985),Wfn(1023,1966,{},v),Fjn.ee=function(){return pp},Fjn.Ib=function(){return aEn},EF(FTn,"JSONNull",1023),Wfn(258,1966,{258:1},Tl),Fjn.Fb=function(n){return!!CO(n,258)&&this.a==Yx(n,258).a},Fjn.ee=function(){return bp},Fjn.Hb=function(){return ZI(this.a)},Fjn.he=function(){return this},Fjn.Ib=function(){return this.a+""},Fjn.a=0,EF(FTn,"JSONNumber",258),Wfn(183,1966,{183:1},Om,Ml),Fjn.Fb=function(n){return!!CO(n,183)&&Jz(this.a,Yx(n,183).a)},Fjn.ee=function(){return wp},Fjn.Hb=function(){return sq(this.a)},Fjn.ie=function(){return this},Fjn.Ib=function(){var n,t,e,i,r,c;for(c=new SA("{"),n=!0,i=0,r=(e=l2(this,VQ(fFn,TEn,2,0,6,1))).length;i=0?":"+this.c:"")+")"},Fjn.c=0;var tFn=EF(Jjn,"StackTraceElement",310);zjn={3:1,475:1,35:1,2:1};var eFn,iFn,rFn,cFn,aFn,uFn,oFn,sFn,hFn,fFn=EF(Jjn,rTn,2);Wfn(107,418,{475:1},Cy,Oy,MA),EF(Jjn,"StringBuffer",107),Wfn(100,418,{475:1},Ay,$y,SA),EF(Jjn,"StringBuilder",100),Wfn(687,73,VTn,Ly),EF(Jjn,"StringIndexOutOfBoundsException",687),Wfn(2043,1,{}),Wfn(844,1,{},x),Fjn.Kb=function(n){return Yx(n,78).e},EF(Jjn,"Throwable/lambda$0$Type",844),Wfn(41,60,{3:1,102:1,60:1,78:1,41:1},xp,sy),EF(Jjn,"UnsupportedOperationException",41),Wfn(240,236,{3:1,35:1,236:1,240:1},ZJ,Wk),Fjn.wd=function(n){return Ipn(this,Yx(n,240))},Fjn.ke=function(){return gon(Kmn(this))},Fjn.Fb=function(n){var t;return this===n||!!CO(n,240)&&(t=Yx(n,240),this.e==t.e&&0==Ipn(this,t))},Fjn.Hb=function(){var n;return 0!=this.b?this.b:this.a<54?(n=D3(this.f),this.b=WR(Gz(n,-1)),this.b=33*this.b+WR(Gz(zK(n,32),-1)),this.b=17*this.b+oG(this.e),this.b):(this.b=17*b8(this.c)+oG(this.e),this.b)},Fjn.Ib=function(){return Kmn(this)},Fjn.a=0,Fjn.b=0,Fjn.d=0,Fjn.e=0,Fjn.f=0;var lFn,bFn,wFn,dFn,gFn,pFn,vFn=EF("java.math","BigDecimal",240);Wfn(91,236,{3:1,35:1,236:1,91:1},jen,wQ,C_,pan,Mtn,IC),Fjn.wd=function(n){return utn(this,Yx(n,91))},Fjn.ke=function(){return gon(pjn(this,0))},Fjn.Fb=function(n){return q7(this,n)},Fjn.Hb=function(){return b8(this)},Fjn.Ib=function(){return pjn(this,0)},Fjn.b=-2,Fjn.c=0,Fjn.d=0,Fjn.e=0;var mFn,yFn,kFn,jFn,EFn=EF("java.math","BigInteger",91);Wfn(488,1967,bEn),Fjn.$b=function(){U_(this)},Fjn._b=function(n){return P_(this,n)},Fjn.uc=function(n){return m6(this,n,this.g)||m6(this,n,this.f)},Fjn.vc=function(){return new Ql(this)},Fjn.xc=function(n){return BF(this,n)},Fjn.zc=function(n,t){return xB(this,n,t)},Fjn.Bc=function(n){return zV(this,n)},Fjn.gc=function(){return hE(this)},EF(lEn,"AbstractHashMap",488),Wfn(261,dEn,gEn,Ql),Fjn.$b=function(){this.a.$b()},Fjn.Hc=function(n){return XU(this,n)},Fjn.Kc=function(){return new t6(this.a)},Fjn.Mc=function(n){var t;return!!XU(this,n)&&(t=Yx(n,42).cd(),this.a.Bc(t),!0)},Fjn.gc=function(){return this.a.gc()},EF(lEn,"AbstractHashMap/EntrySet",261),Wfn(262,1,fEn,t6),Fjn.Nb=function(n){I_(this,n)},Fjn.Pb=function(){return s1(this)},Fjn.Ob=function(){return this.b},Fjn.Qb=function(){oY(this)},Fjn.b=!1,EF(lEn,"AbstractHashMap/EntrySetIterator",262),Wfn(417,1,fEn,Vl),Fjn.Nb=function(n){I_(this,n)},Fjn.Ob=function(){return OT(this)},Fjn.Pb=function(){return FH(this)},Fjn.Qb=function(){hB(this)},Fjn.b=0,Fjn.c=-1,EF(lEn,"AbstractList/IteratorImpl",417),Wfn(96,417,yEn,JU),Fjn.Qb=function(){hB(this)},Fjn.Rb=function(n){ZL(this,n)},Fjn.Sb=function(){return this.b>0},Fjn.Tb=function(){return this.b},Fjn.Ub=function(){return S$(this.b>0),this.a.Xb(this.c=--this.b)},Fjn.Vb=function(){return this.b-1},Fjn.Wb=function(n){M$(-1!=this.c),this.a._c(this.c,n)},EF(lEn,"AbstractList/ListIteratorImpl",96),Wfn(219,52,WEn,Oz),Fjn.Vc=function(n,t){iz(n,this.b),this.c.Vc(this.a+n,t),++this.b},Fjn.Xb=function(n){return $z(n,this.b),this.c.Xb(this.a+n)},Fjn.$c=function(n){var t;return $z(n,this.b),t=this.c.$c(this.a+n),--this.b,t},Fjn._c=function(n,t){return $z(n,this.b),this.c._c(this.a+n,t)},Fjn.gc=function(){return this.b},Fjn.a=0,Fjn.b=0,EF(lEn,"AbstractList/SubList",219),Wfn(384,dEn,gEn,Yl),Fjn.$b=function(){this.a.$b()},Fjn.Hc=function(n){return this.a._b(n)},Fjn.Kc=function(){return new Jl(this.a.vc().Kc())},Fjn.Mc=function(n){return!!this.a._b(n)&&(this.a.Bc(n),!0)},Fjn.gc=function(){return this.a.gc()},EF(lEn,"AbstractMap/1",384),Wfn(691,1,fEn,Jl),Fjn.Nb=function(n){I_(this,n)},Fjn.Ob=function(){return this.a.Ob()},Fjn.Pb=function(){return Yx(this.a.Pb(),42).cd()},Fjn.Qb=function(){this.a.Qb()},EF(lEn,"AbstractMap/1/1",691),Wfn(226,28,wEn,Zl),Fjn.$b=function(){this.a.$b()},Fjn.Hc=function(n){return this.a.uc(n)},Fjn.Kc=function(){return new ub(this.a.vc().Kc())},Fjn.gc=function(){return this.a.gc()},EF(lEn,"AbstractMap/2",226),Wfn(294,1,fEn,ub),Fjn.Nb=function(n){I_(this,n)},Fjn.Ob=function(){return this.a.Ob()},Fjn.Pb=function(){return Yx(this.a.Pb(),42).dd()},Fjn.Qb=function(){this.a.Qb()},EF(lEn,"AbstractMap/2/1",294),Wfn(484,1,{484:1,42:1}),Fjn.Fb=function(n){var t;return!!CO(n,42)&&(t=Yx(n,42),qB(this.d,t.cd())&&qB(this.e,t.dd()))},Fjn.cd=function(){return this.d},Fjn.dd=function(){return this.e},Fjn.Hb=function(){return NC(this.d)^NC(this.e)},Fjn.ed=function(n){return YL(this,n)},Fjn.Ib=function(){return this.d+"="+this.e},EF(lEn,"AbstractMap/AbstractEntry",484),Wfn(383,484,{484:1,383:1,42:1},zT),EF(lEn,"AbstractMap/SimpleEntry",383),Wfn(1984,1,hMn),Fjn.Fb=function(n){var t;return!!CO(n,42)&&(t=Yx(n,42),qB(this.cd(),t.cd())&&qB(this.dd(),t.dd()))},Fjn.Hb=function(){return NC(this.cd())^NC(this.dd())},Fjn.Ib=function(){return this.cd()+"="+this.dd()},EF(lEn,jEn,1984),Wfn(1992,1967,pEn),Fjn.tc=function(n){return vV(this,n)},Fjn._b=function(n){return XN(this,n)},Fjn.vc=function(){return new hb(this)},Fjn.xc=function(n){return eI(c6(this,n))},Fjn.ec=function(){return new ob(this)},EF(lEn,"AbstractNavigableMap",1992),Wfn(739,dEn,gEn,hb),Fjn.Hc=function(n){return CO(n,42)&&vV(this.b,Yx(n,42))},Fjn.Kc=function(){return new gN(this.b)},Fjn.Mc=function(n){var t;return!!CO(n,42)&&(t=Yx(n,42),iY(this.b,t))},Fjn.gc=function(){return this.b.c},EF(lEn,"AbstractNavigableMap/EntrySet",739),Wfn(493,dEn,mEn,ob),Fjn.Nc=function(){return new RT(this)},Fjn.$b=function(){$m(this.a)},Fjn.Hc=function(n){return XN(this.a,n)},Fjn.Kc=function(){return new sb(new gN(new UA(this.a).b))},Fjn.Mc=function(n){return!!XN(this.a,n)&&(fG(this.a,n),!0)},Fjn.gc=function(){return this.a.c},EF(lEn,"AbstractNavigableMap/NavigableKeySet",493),Wfn(494,1,fEn,sb),Fjn.Nb=function(n){I_(this,n)},Fjn.Ob=function(){return OT(this.a.a)},Fjn.Pb=function(){return m$(this.a).cd()},Fjn.Qb=function(){hx(this.a)},EF(lEn,"AbstractNavigableMap/NavigableKeySet/1",494),Wfn(2004,28,wEn),Fjn.Fc=function(n){return JQ(mun(this,n)),!0},Fjn.Gc=function(n){return vB(n),jD(n!=this,"Can't add a queue to itself"),C2(this,n)},Fjn.$b=function(){for(;null!=YJ(this););},EF(lEn,"AbstractQueue",2004),Wfn(302,28,{4:1,20:1,28:1,14:1},ep,xz),Fjn.Fc=function(n){return CX(this,n),!0},Fjn.$b=function(){iW(this)},Fjn.Hc=function(n){return T4(new VB(this),n)},Fjn.dc=function(){return ry(this)},Fjn.Kc=function(){return new VB(this)},Fjn.Mc=function(n){return function(n,t){return!!T4(n,t)&&(a0(n),!0)}(new VB(this),n)},Fjn.gc=function(){return this.c-this.b&this.a.length-1},Fjn.Nc=function(){return new Nz(this,272)},Fjn.Qc=function(n){var t;return t=this.c-this.b&this.a.length-1,n.lengtht&&DF(n,t,null),n},Fjn.b=0,Fjn.c=0,EF(lEn,"ArrayDeque",302),Wfn(446,1,fEn,VB),Fjn.Nb=function(n){I_(this,n)},Fjn.Ob=function(){return this.a!=this.b},Fjn.Pb=function(){return w8(this)},Fjn.Qb=function(){a0(this)},Fjn.a=0,Fjn.b=0,Fjn.c=-1,EF(lEn,"ArrayDeque/IteratorImpl",446),Wfn(12,52,fMn,ip,pQ,sx),Fjn.Vc=function(n,t){ZR(this,n,t)},Fjn.Fc=function(n){return eD(this,n)},Fjn.Wc=function(n,t){return H6(this,n,t)},Fjn.Gc=function(n){return S4(this,n)},Fjn.$b=function(){this.c=VQ(UKn,iEn,1,0,5,1)},Fjn.Hc=function(n){return-1!=hJ(this,n,0)},Fjn.Jc=function(n){WZ(this,n)},Fjn.Xb=function(n){return TR(this,n)},Fjn.Xc=function(n){return hJ(this,n,0)},Fjn.dc=function(){return 0==this.c.length},Fjn.Kc=function(){return new pb(this)},Fjn.$c=function(n){return KV(this,n)},Fjn.Mc=function(n){return uJ(this,n)},Fjn.Ud=function(n,t){Az(this,n,t)},Fjn._c=function(n,t){return QW(this,n,t)},Fjn.gc=function(){return this.c.length},Fjn.ad=function(n){JC(this,n)},Fjn.Pc=function(){return w$(this)},Fjn.Qc=function(n){return Htn(this,n)};var TFn,MFn,SFn,PFn,IFn,CFn,OFn,AFn,$Fn,LFn=EF(lEn,"ArrayList",12);Wfn(7,1,fEn,pb),Fjn.Nb=function(n){I_(this,n)},Fjn.Ob=function(){return ZC(this)},Fjn.Pb=function(){return Hz(this)},Fjn.Qb=function(){z_(this)},Fjn.a=0,Fjn.b=-1,EF(lEn,"ArrayList/1",7),Wfn(2013,e.Function,{},T),Fjn.te=function(n,t){return $9(n,t)},Wfn(154,52,lMn,ay),Fjn.Hc=function(n){return-1!=p0(this,n)},Fjn.Jc=function(n){var t,e,i,r;for(vB(n),i=0,r=(e=this.a).length;i>>0).toString(16))},Fjn.f=0,Fjn.i=ZTn;var EBn,TBn,MBn,SBn,PBn=EF(qMn,"CNode",57);Wfn(814,1,{},uv),EF(qMn,"CNode/CNodeBuilder",814),Wfn(1525,1,{},dn),Fjn.Oe=function(n,t){return 0},Fjn.Pe=function(n,t){return 0},EF(qMn,zMn,1525),Wfn(1790,1,{},gn),Fjn.Le=function(n){var t,i,r,c,a,u,o,s,h,f,l,b,w,d,g;for(h=JTn,r=new pb(n.a.b);r.ae.d.c||e.d.c==r.d.c&&e.d.b0?n+this.n.d+this.n.a:0},Fjn.Se=function(){var n,t,i,r,c;if(c=0,this.e)this.b?c=this.b.a:this.a[1][1]&&(c=this.a[1][1].Se());else if(this.g)c=x7(this,lcn(this,null,!0));else for(JZ(),i=0,r=(t=x4(Gy(sHn,1),XEn,232,0,[rHn,cHn,aHn])).length;i0?c+this.n.b+this.n.c:0},Fjn.Te=function(){var n,t,e,i,r;if(this.g)for(n=lcn(this,null,!1),JZ(),i=0,r=(e=x4(Gy(sHn,1),XEn,232,0,[rHn,cHn,aHn])).length;i0&&(r[0]+=this.d,i-=r[0]),r[2]>0&&(r[2]+=this.d,i-=r[2]),this.c.a=e.Math.max(0,i),this.c.d=t.d+n.d+(this.c.a-i)/2,r[1]=e.Math.max(r[1],i),MV(this,cHn,t.d+n.d+r[0]-(r[1]-i)/2,r)},Fjn.b=null,Fjn.d=0,Fjn.e=!1,Fjn.f=!1,Fjn.g=!1;var hHn,fHn,lHn,bHn=0,wHn=0;EF(gSn,"GridContainerCell",1473),Wfn(461,22,{3:1,35:1,22:1,461:1},oM);var dHn,gHn=X1(gSn,"HorizontalLabelAlignment",461,u_n,(function(){return BY(),x4(Gy(gHn,1),XEn,461,0,[fHn,hHn,lHn])}),(function(n){return BY(),rZ((mQ(),dHn),n)}));Wfn(306,212,{212:1,306:1},eG,KZ,qq),Fjn.Re=function(){return XD(this)},Fjn.Se=function(){return WD(this)},Fjn.a=0,Fjn.c=!1;var pHn,vHn,mHn,yHn=EF(gSn,"LabelCell",306);Wfn(244,326,{212:1,326:1,244:1},Stn),Fjn.Re=function(){return Dhn(this)},Fjn.Se=function(){return Rhn(this)},Fjn.Te=function(){cvn(this)},Fjn.Ue=function(){hvn(this)},Fjn.b=0,Fjn.c=0,Fjn.d=!1,EF(gSn,"StripContainerCell",244),Wfn(1626,1,YEn,En),Fjn.Mb=function(n){return function(n){return!!n&&n.k}(Yx(n,212))},EF(gSn,"StripContainerCell/lambda$0$Type",1626),Wfn(1627,1,{},Tn),Fjn.Fe=function(n){return Yx(n,212).Se()},EF(gSn,"StripContainerCell/lambda$1$Type",1627),Wfn(1628,1,YEn,Mn),Fjn.Mb=function(n){return function(n){return!!n&&n.j}(Yx(n,212))},EF(gSn,"StripContainerCell/lambda$2$Type",1628),Wfn(1629,1,{},Sn),Fjn.Fe=function(n){return Yx(n,212).Re()},EF(gSn,"StripContainerCell/lambda$3$Type",1629),Wfn(462,22,{3:1,35:1,22:1,462:1},sM);var kHn,jHn,EHn,THn,MHn,SHn,PHn,IHn,CHn,OHn,AHn,$Hn,LHn,NHn,xHn,DHn,RHn,KHn,_Hn,FHn,BHn,HHn,qHn,GHn=X1(gSn,"VerticalLabelAlignment",462,u_n,(function(){return OJ(),x4(Gy(GHn,1),XEn,462,0,[mHn,vHn,pHn])}),(function(n){return OJ(),rZ((yQ(),kHn),n)}));Wfn(789,1,{},vkn),Fjn.c=0,Fjn.d=0,Fjn.k=0,Fjn.s=0,Fjn.t=0,Fjn.v=!1,Fjn.w=0,Fjn.D=!1,EF(TSn,"NodeContext",789),Wfn(1471,1,FMn,Pn),Fjn.ue=function(n,t){return nC(Yx(n,61),Yx(t,61))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(TSn,"NodeContext/0methodref$comparePortSides$Type",1471),Wfn(1472,1,FMn,In),Fjn.ue=function(n,t){return function(n,t){var e;if(0!=(e=nC(n.b.Hf(),t.b.Hf())))return e;switch(n.b.Hf().g){case 1:case 2:return eO(n.b.sf(),t.b.sf());case 3:case 4:return eO(t.b.sf(),n.b.sf())}return 0}(Yx(n,111),Yx(t,111))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(TSn,"NodeContext/1methodref$comparePortContexts$Type",1472),Wfn(159,22,{3:1,35:1,22:1,159:1},U2);var zHn,UHn,XHn,WHn,VHn,QHn,YHn,JHn=X1(TSn,"NodeLabelLocation",159,u_n,Xtn,(function(n){return Njn(),rZ((LI(),zHn),n)}));Wfn(111,1,{111:1},gfn),Fjn.a=!1,EF(TSn,"PortContext",111),Wfn(1476,1,PEn,Cn),Fjn.td=function(n){oj(Yx(n,306))},EF(PSn,ISn,1476),Wfn(1477,1,YEn,On),Fjn.Mb=function(n){return!!Yx(n,111).c},EF(PSn,CSn,1477),Wfn(1478,1,PEn,An),Fjn.td=function(n){oj(Yx(n,111).c)},EF(PSn,"LabelPlacer/lambda$2$Type",1478),Wfn(1475,1,PEn,Ln),Fjn.td=function(n){PL(),function(n){n.b.tf(n.e)}(Yx(n,111))},EF(PSn,"NodeLabelAndSizeUtilities/lambda$0$Type",1475),Wfn(790,1,PEn,kx),Fjn.td=function(n){hT(this.b,this.c,this.a,Yx(n,181))},Fjn.a=!1,Fjn.c=!1,EF(PSn,"NodeLabelCellCreator/lambda$0$Type",790),Wfn(1474,1,PEn,Yb),Fjn.td=function(n){!function(n,t){Fon(n.c,t)}(this.a,Yx(n,181))},EF(PSn,"PortContextCreator/lambda$0$Type",1474),Wfn(1829,1,{},Nn),EF(ASn,"GreedyRectangleStripOverlapRemover",1829),Wfn(1830,1,FMn,$n),Fjn.ue=function(n,t){return function(n,t){return $9(n.c.d,t.c.d)}(Yx(n,222),Yx(t,222))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(ASn,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1830),Wfn(1786,1,{},lv),Fjn.a=5,Fjn.e=0,EF(ASn,"RectangleStripOverlapRemover",1786),Wfn(1787,1,FMn,Dn),Fjn.ue=function(n,t){return function(n,t){return $9(n.c.c,t.c.c)}(Yx(n,222),Yx(t,222))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(ASn,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1787),Wfn(1789,1,FMn,Rn),Fjn.ue=function(n,t){return function(n,t){return $9(n.c.c+n.c.b,t.c.c+t.c.b)}(Yx(n,222),Yx(t,222))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(ASn,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1789),Wfn(406,22,{3:1,35:1,22:1,406:1},hM);var ZHn,nqn,tqn,eqn,iqn,rqn=X1(ASn,"RectangleStripOverlapRemover/OverlapRemovalDirection",406,u_n,(function(){return e4(),x4(Gy(rqn,1),XEn,406,0,[YHn,WHn,VHn,QHn])}),(function(n){return e4(),rZ((zY(),ZHn),n)}));Wfn(222,1,{222:1},fK),EF(ASn,"RectangleStripOverlapRemover/RectangleNode",222),Wfn(1788,1,PEn,Jb),Fjn.td=function(n){!function(n,t){var e,i;switch(i=t.c,e=t.a,n.b.g){case 0:e.d=n.e-i.a-i.d;break;case 1:e.d+=n.e;break;case 2:e.c=n.e-i.a-i.d;break;case 3:e.c=n.e+i.d}}(this.a,Yx(n,222))},EF(ASn,"RectangleStripOverlapRemover/lambda$1$Type",1788),Wfn(1304,1,FMn,Kn),Fjn.ue=function(n,t){return function(n,t){var e,i,r,c;return e=new _n,1==(r=2==(r=(i=Yx(kW(fH(new SR(null,new Nz(n.f,16)),e),kJ(new Q,new Y,new cn,new an,x4(Gy(wBn,1),XEn,132,0,[(C6(),uBn),aBn]))),21)).gc())?1:0)&&sI(Snn(Yx(kW(hH(i.Lc(),new Fn),k3(ytn(0),new en)),162).a,2),0)&&(r=0),1==(c=2==(c=(i=Yx(kW(fH(new SR(null,new Nz(t.f,16)),e),kJ(new Q,new Y,new cn,new an,x4(Gy(wBn,1),XEn,132,0,[uBn,aBn]))),21)).gc())?1:0)&&sI(Snn(Yx(kW(hH(i.Lc(),new Bn),k3(ytn(0),new en)),162).a,2),0)&&(c=0),r0?Y_(n.a,t,e):Y_(n.b,t,e)}(this,Yx(n,46),Yx(t,167))},EF(LSn,"SuccessorCombination",777),Wfn(644,1,{},Wn),Fjn.Ce=function(n,t){var i;return function(n){var t,i,r,c,a;return i=c=Yx(n.a,19).a,r=a=Yx(n.b,19).a,t=e.Math.max(e.Math.abs(c),e.Math.abs(a)),c<=0&&c==a?(i=0,r=a-1):c==-t&&a!=t?(i=a,r=c,a>=0&&++i):(i=-a,r=c),new mP(d9(i),d9(r))}((i=Yx(n,46),Yx(t,167),i))},EF(LSn,"SuccessorJitter",644),Wfn(643,1,{},Vn),Fjn.Ce=function(n,t){var i;return function(n){var t,i;if(t=Yx(n.a,19).a,i=Yx(n.b,19).a,t>=0){if(t==i)return new mP(d9(-t-1),d9(-t-1));if(t==-i)return new mP(d9(-t),d9(i+1))}return e.Math.abs(t)>e.Math.abs(i)?new mP(d9(-t),d9(t<0?i:i+1)):new mP(d9(t+1),d9(i))}((i=Yx(n,46),Yx(t,167),i))},EF(LSn,"SuccessorLineByLine",643),Wfn(568,1,{},Qn),Fjn.Ce=function(n,t){var e;return function(n){var t,e,i,r;return t=i=Yx(n.a,19).a,e=r=Yx(n.b,19).a,0==i&&0==r?e-=1:-1==i&&r<=0?(t=0,e-=2):i<=0&&r>0?(t-=1,e-=1):i>=0&&r<0?(t+=1,e+=1):i>0&&r>=0?(t-=1,e+=1):(t+=1,e-=1),new mP(d9(t),d9(e))}((e=Yx(n,46),Yx(t,167),e))},EF(LSn,"SuccessorManhattan",568),Wfn(1356,1,{},Yn),Fjn.Ce=function(n,t){var i;return function(n){var t,i,r;return i=Yx(n.a,19).a,r=Yx(n.b,19).a,i<(t=e.Math.max(e.Math.abs(i),e.Math.abs(r)))&&r==-t?new mP(d9(i+1),d9(r)):i==t&&r=-t&&r==t?new mP(d9(i-1),d9(r)):new mP(d9(i),d9(r-1))}((i=Yx(n,46),Yx(t,167),i))},EF(LSn,"SuccessorMaxNormWindingInMathPosSense",1356),Wfn(400,1,{},Zb),Fjn.Ce=function(n,t){return Y_(this,n,t)},Fjn.c=!1,Fjn.d=!1,Fjn.e=!1,Fjn.f=!1,EF(LSn,"SuccessorQuadrantsGeneric",400),Wfn(1357,1,{},Jn),Fjn.Kb=function(n){return Yx(n,324).a},EF(LSn,"SuccessorQuadrantsGeneric/lambda$0$Type",1357),Wfn(323,22,{3:1,35:1,22:1,323:1},iM),Fjn.a=!1;var cqn,aqn=X1(KSn,_Sn,323,u_n,(function(){return Sen(),x4(Gy(aqn,1),XEn,323,0,[tqn,nqn,eqn,iqn])}),(function(n){return Sen(),rZ((UY(),cqn),n)}));Wfn(1298,1,{}),Fjn.Ib=function(){var n,t,e,i,r,c;for(e=" ",n=d9(0),r=0;r0&&L1(p,y*j),k>0&&N1(p,k*E);for(S3(n.b,new lt),t=new ip,u=new t6(new Ql(n.c).a);u.b;)i=Yx((a=s1(u)).cd(),79),e=Yx(a.dd(),395).a,r=Ywn(i,!1,!1),wvn(f=Xan(Kun(i),Kon(r),e),r),(m=_un(i))&&-1==hJ(t,m,0)&&(t.c[t.c.length]=m,OH(m,(S$(0!=f.b),Yx(f.a.a.c,8)),e));for(g=new t6(new Ql(n.d).a);g.b;)i=Yx((d=s1(g)).cd(),79),e=Yx(d.dd(),395).a,r=Ywn(i,!1,!1),f=Xan(Bun(i),U5(Kon(r)),e),wvn(f=U5(f),r),(m=Fun(i))&&-1==hJ(t,m,0)&&(t.c[t.c.length]=m,OH(m,(S$(0!=f.b),Yx(f.c.b.c,8)),e))}(r),Aen(n,Cqn,this.b),Ron(t)},Fjn.a=0,EF(JSn,"DisCoLayoutProvider",1132),Wfn(1244,1,{},ct),Fjn.c=!1,Fjn.e=0,Fjn.f=0,EF(JSn,"DisCoPolyominoCompactor",1244),Wfn(561,1,{561:1},qR),Fjn.b=!0,EF(ZSn,"DCComponent",561),Wfn(394,22,{3:1,35:1,22:1,394:1},eM),Fjn.a=!1;var pqn,vqn,mqn=X1(ZSn,"DCDirection",394,u_n,(function(){return Pen(),x4(Gy(mqn,1),XEn,394,0,[bqn,lqn,wqn,dqn])}),(function(n){return Pen(),rZ((XY(),pqn),n)}));Wfn(266,134,{3:1,266:1,94:1,134:1},eln),EF(ZSn,"DCElement",266),Wfn(395,1,{395:1},Bin),Fjn.c=0,EF(ZSn,"DCExtension",395),Wfn(755,134,USn,jk),EF(ZSn,"DCGraph",755),Wfn(481,22,{3:1,35:1,22:1,481:1},I$);var yqn,kqn,jqn,Eqn,Tqn,Mqn,Sqn,Pqn,Iqn,Cqn,Oqn,Aqn,$qn,Lqn,Nqn,xqn,Dqn,Rqn,Kqn,_qn,Fqn,Bqn=X1(nPn,tPn,481,u_n,(function(){return BE(),x4(Gy(Bqn,1),XEn,481,0,[vqn])}),(function(n){return BE(),rZ((yX(),yqn),n)}));Wfn(854,1,fSn,Fh),Fjn.Qe=function(n){j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,ePn),aPn),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),Eqn),(lsn(),O7n)),Bqn),J9((Qtn(),T7n))))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,iPn),aPn),"Connected Components Layout Algorithm"),"A layout algorithm that is to be applied to each connected component before the components themselves are compacted. If unspecified, the positions of the components' nodes are not altered."),N7n),fFn),J9(T7n)))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,rPn),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),L7n),UKn),J9(T7n)))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,cPn),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),L7n),UKn),J9(T7n)))),Qvn((new Bh,n))},EF(nPn,"DisCoMetaDataProvider",854),Wfn(998,1,fSn,Bh),Fjn.Qe=function(n){Qvn(n)},EF(nPn,"DisCoOptions",998),Wfn(999,1,{},at),Fjn.$e=function(){return new rt},Fjn._e=function(n){},EF(nPn,"DisCoOptions/DiscoFactory",999),Wfn(562,167,{321:1,167:1,562:1},nbn),Fjn.a=0,Fjn.b=0,Fjn.c=0,Fjn.d=0,EF("org.eclipse.elk.alg.disco.structures","DCPolyomino",562),Wfn(1268,1,YEn,ut),Fjn.Mb=function(n){return $I(n)},EF(lPn,"ElkGraphComponentsProcessor/lambda$0$Type",1268),Wfn(1269,1,{},ot),Fjn.Kb=function(n){return UH(),Kun(Yx(n,79))},EF(lPn,"ElkGraphComponentsProcessor/lambda$1$Type",1269),Wfn(1270,1,YEn,st),Fjn.Mb=function(n){return function(n){return UH(),Kun(n)==IG(Bun(n))}(Yx(n,79))},EF(lPn,"ElkGraphComponentsProcessor/lambda$2$Type",1270),Wfn(1271,1,{},ht),Fjn.Kb=function(n){return UH(),Bun(Yx(n,79))},EF(lPn,"ElkGraphComponentsProcessor/lambda$3$Type",1271),Wfn(1272,1,YEn,ft),Fjn.Mb=function(n){return function(n){return UH(),Bun(n)==IG(Kun(n))}(Yx(n,79))},EF(lPn,"ElkGraphComponentsProcessor/lambda$4$Type",1272),Wfn(1273,1,YEn,tw),Fjn.Mb=function(n){return function(n,t){return UH(),n==IG(Kun(t))||n==IG(Bun(t))}(this.a,Yx(n,79))},EF(lPn,"ElkGraphComponentsProcessor/lambda$5$Type",1273),Wfn(1274,1,{},ew),Fjn.Kb=function(n){return function(n,t){return UH(),n==Kun(t)?Bun(t):Kun(t)}(this.a,Yx(n,79))},EF(lPn,"ElkGraphComponentsProcessor/lambda$6$Type",1274),Wfn(1241,1,{},rW),Fjn.a=0,EF(lPn,"ElkGraphTransformer",1241),Wfn(1242,1,{},lt),Fjn.Od=function(n,t){!function(n,t,e){var i,r,c,a;n.a=e.b.d,CO(t,352)?(XW(c=Kon(r=Ywn(Yx(t,79),!1,!1)),i=new iw(n)),wvn(c,r),null!=t.We((Cjn(),Gnt))&&XW(Yx(t.We(Gnt),74),i)):((a=Yx(t,470)).Hg(a.Dg()+n.a.a),a.Ig(a.Eg()+n.a.b))}(this,Yx(n,160),Yx(t,266))},EF(lPn,"ElkGraphTransformer/OffsetApplier",1242),Wfn(1243,1,PEn,iw),Fjn.td=function(n){!function(n,t){$$(t,n.a.a.a,n.a.a.b)}(this,Yx(n,8))},EF(lPn,"ElkGraphTransformer/OffsetApplier/OffSetToChainApplier",1243),Wfn(753,1,{},bt),EF(pPn,vPn,753),Wfn(1232,1,FMn,wt),Fjn.ue=function(n,t){return function(n,t){var e,i,r;return 0==(e=Yx(Aun(t,(Bdn(),bGn)),19).a-Yx(Aun(n,bGn),19).a)?(i=yN(dO(Yx(Aun(n,(d2(),kGn)),8)),Yx(Aun(n,jGn),8)),r=yN(dO(Yx(Aun(t,kGn),8)),Yx(Aun(t,jGn),8)),$9(i.a*i.b,r.a*r.b)):e}(Yx(n,231),Yx(t,231))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(pPn,mPn,1232),Wfn(740,209,VSn,iv),Fjn.Ze=function(n,t){bbn(this,n,t)},EF(pPn,"ForceLayoutProvider",740),Wfn(357,134,{3:1,357:1,94:1,134:1}),EF(yPn,"FParticle",357),Wfn(559,357,{3:1,559:1,357:1,94:1,134:1},dF),Fjn.Ib=function(){var n;return this.a?(n=hJ(this.a.a,this,0))>=0?"b"+n+"["+YW(this.a)+"]":"b["+YW(this.a)+"]":"b_"+_A(this)},EF(yPn,"FBendpoint",559),Wfn(282,134,{3:1,282:1,94:1,134:1},rN),Fjn.Ib=function(){return YW(this)},EF(yPn,"FEdge",282),Wfn(231,134,{3:1,231:1,94:1,134:1},XV);var Hqn,qqn,Gqn,zqn,Uqn,Xqn,Wqn,Vqn,Qqn,Yqn,Jqn=EF(yPn,"FGraph",231);Wfn(447,357,{3:1,447:1,357:1,94:1,134:1},wW),Fjn.Ib=function(){return null==this.b||0==this.b.length?"l["+YW(this.a)+"]":"l_"+this.b},EF(yPn,"FLabel",447),Wfn(144,357,{3:1,144:1,357:1,94:1,134:1},GF),Fjn.Ib=function(){return Yz(this)},Fjn.b=0,EF(yPn,"FNode",144),Wfn(2003,1,{}),Fjn.bf=function(n){Kpn(this,n)},Fjn.cf=function(){trn(this)},Fjn.d=0,EF(jPn,"AbstractForceModel",2003),Wfn(631,2003,{631:1},Z3),Fjn.af=function(n,t){var i,r,c,a;return mhn(this.f,n,t),c=yN(dO(t.d),n.d),a=e.Math.sqrt(c.a*c.a+c.b*c.b),r=e.Math.max(0,a-fB(n.e)/2-fB(t.e)/2),KO(c,((i=F5(this.e,n,t))>0?-function(n,t){return n>0?e.Math.log(n/t):-100}(r,this.c)*i:function(n,t){return n>0?t/(n*n):100*t}(r,this.b)*Yx(Aun(n,(Bdn(),bGn)),19).a)/a),c},Fjn.bf=function(n){Kpn(this,n),this.a=Yx(Aun(n,(Bdn(),iGn)),19).a,this.c=ty(fL(Aun(n,mGn))),this.b=ty(fL(Aun(n,dGn)))},Fjn.df=function(n){return n0?t*t/n:t*t*100}(r=e.Math.max(0,u-fB(n.e)/2-fB(t.e)/2),this.a)*Yx(Aun(n,(Bdn(),bGn)),19).a,(i=F5(this.e,n,t))>0&&(a-=function(n,t){return n*n/t}(r,this.a)*i),KO(c,a*this.b/u),c},Fjn.bf=function(n){var t,i,r,c,a,u,o;for(Kpn(this,n),this.b=ty(fL(Aun(n,(Bdn(),yGn)))),this.c=this.b/Yx(Aun(n,iGn),19).a,r=n.e.c.length,a=0,c=0,o=new pb(n.e);o.a0},Fjn.a=0,Fjn.b=0,Fjn.c=0,EF(jPn,"FruchtermanReingoldModel",632),Wfn(849,1,fSn,qh),Fjn.Qe=function(n){j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,EPn),""),"Force Model"),"Determines the model for force calculation."),Gqn),(lsn(),O7n)),UGn),J9((Qtn(),T7n))))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,TPn),""),"Iterations"),"The number of iterations on the force model."),d9(300)),$7n),U_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,MPn),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),d9(0)),$7n),U_n),J9(k7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,SPn),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),PPn),C7n),H_n),J9(T7n)))),xU(n,SPn,EPn,Vqn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,IPn),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),C7n),H_n),J9(T7n)))),xU(n,IPn,EPn,Uqn),Mkn((new Gh,n))},EF(CPn,"ForceMetaDataProvider",849),Wfn(424,22,{3:1,35:1,22:1,424:1},fM);var Zqn,nGn,tGn,eGn,iGn,rGn,cGn,aGn,uGn,oGn,sGn,hGn,fGn,lGn,bGn,wGn,dGn,gGn,pGn,vGn,mGn,yGn,kGn,jGn,EGn,TGn,MGn,SGn,PGn,IGn,CGn,OGn,AGn,$Gn,LGn,NGn,xGn,DGn,RGn,KGn,_Gn,FGn,BGn,HGn,qGn,GGn,zGn,UGn=X1(CPn,"ForceModelStrategy",424,u_n,(function(){return hZ(),x4(Gy(UGn,1),XEn,424,0,[Qqn,Yqn])}),(function(n){return hZ(),rZ((MW(),Zqn),n)}));Wfn(988,1,fSn,Gh),Fjn.Qe=function(n){Mkn(n)},EF(CPn,"ForceOptions",988),Wfn(989,1,{},dt),Fjn.$e=function(){return new iv},Fjn._e=function(n){},EF(CPn,"ForceOptions/ForceFactory",989),Wfn(850,1,fSn,zh),Fjn.Qe=function(n){j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,VPn),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(TA(),!1)),(lsn(),I7n)),D_n),J9((Qtn(),E7n))))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,QPn),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),C7n),H_n),tK(T7n,x4(Gy(D7n,1),XEn,175,0,[k7n]))))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,YPn),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),PGn),O7n),ezn),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,JPn),""),"Stress Epsilon"),"Termination criterion for the iterative process."),PPn),C7n),H_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,ZPn),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),d9(Yjn)),$7n),U_n),J9(T7n)))),Kyn((new Uh,n))},EF(CPn,"StressMetaDataProvider",850),Wfn(992,1,fSn,Uh),Fjn.Qe=function(n){Kyn(n)},EF(CPn,"StressOptions",992),Wfn(993,1,{},gt),Fjn.$e=function(){return new cN},Fjn._e=function(n){},EF(CPn,"StressOptions/StressFactory",993),Wfn(1128,209,VSn,cN),Fjn.Ze=function(n,t){var e,i,r,c;for(run(t,tIn,1),ny(hL(jln(n,(Wrn(),xGn))))?ny(hL(jln(n,BGn)))||rG(new Xb((dT(),new Xm(n)))):bbn(new iv,n,J2(t,1)),i=w5(n),c=(e=ovn(this.a,i)).Kc();c.Ob();)(r=Yx(c.Pb(),231)).e.c.length<=1||($mn(this.b,r),Mln(this.b),WZ(r.d,new pt));Okn(i=_kn(e)),Ron(t)},EF(iIn,"StressLayoutProvider",1128),Wfn(1129,1,PEn,pt),Fjn.td=function(n){Wvn(Yx(n,447))},EF(iIn,"StressLayoutProvider/lambda$0$Type",1129),Wfn(990,1,{},Hp),Fjn.c=0,Fjn.e=0,Fjn.g=0,EF(iIn,"StressMajorization",990),Wfn(379,22,{3:1,35:1,22:1,379:1},lM);var XGn,WGn,VGn,QGn,YGn,JGn,ZGn,nzn,tzn,ezn=X1(iIn,"StressMajorization/Dimension",379,u_n,(function(){return CJ(),x4(Gy(ezn,1),XEn,379,0,[GGn,qGn,zGn])}),(function(n){return CJ(),rZ((jQ(),XGn),n)}));Wfn(991,1,FMn,rw),Fjn.ue=function(n,t){return function(n,t,e){return $9(n[t.b],n[e.b])}(this.a,Yx(n,144),Yx(t,144))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(iIn,"StressMajorization/lambda$0$Type",991),Wfn(1229,1,{},gU),EF(cIn,"ElkLayered",1229),Wfn(1230,1,PEn,vt),Fjn.td=function(n){!function(n){var t;if((t=Yx(Aun(n,(gjn(),i1n)),314))==(O0(),TWn))throw hp(new by("The hierarchy aware processor "+t+" in child node "+n+" is only allowed if the root node specifies the same hierarchical processor."))}(Yx(n,37))},EF(cIn,"ElkLayered/lambda$0$Type",1230),Wfn(1231,1,PEn,cw),Fjn.td=function(n){!function(n,t){b5(t,(gjn(),YZn),n)}(this.a,Yx(n,37))},EF(cIn,"ElkLayered/lambda$1$Type",1231),Wfn(1263,1,{},fO),EF(cIn,"GraphConfigurator",1263),Wfn(759,1,PEn,aw),Fjn.td=function(n){ron(this.a,Yx(n,10))},EF(cIn,"GraphConfigurator/lambda$0$Type",759),Wfn(760,1,{},mt),Fjn.Kb=function(n){return Mcn(),new SR(null,new Nz(Yx(n,29).a,16))},EF(cIn,"GraphConfigurator/lambda$1$Type",760),Wfn(761,1,PEn,uw),Fjn.td=function(n){ron(this.a,Yx(n,10))},EF(cIn,"GraphConfigurator/lambda$2$Type",761),Wfn(1127,209,VSn,cv),Fjn.Ze=function(n,t){var e;e=Kvn(new wv,n),iI(jln(n,(gjn(),E1n)))===iI((O8(),$et))?_7(this.a,e,t):ofn(this.a,e,t),Tkn(new Wh,e)},EF(cIn,"LayeredLayoutProvider",1127),Wfn(356,22,{3:1,35:1,22:1,356:1},bM);var izn,rzn,czn,azn=X1(cIn,"LayeredPhases",356,u_n,(function(){return $un(),x4(Gy(azn,1),XEn,356,0,[YGn,JGn,ZGn,nzn,tzn])}),(function(n){return $un(),rZ((mZ(),izn),n)}));Wfn(1651,1,{},y0),Fjn.i=0,EF(aIn,"ComponentsToCGraphTransformer",1651),Wfn(1652,1,{},yt),Fjn.ef=function(n,t){return e.Math.min(null!=n.a?ty(n.a):n.c.i,null!=t.a?ty(t.a):t.c.i)},Fjn.ff=function(n,t){return e.Math.min(null!=n.a?ty(n.a):n.c.i,null!=t.a?ty(t.a):t.c.i)},EF(aIn,"ComponentsToCGraphTransformer/1",1652),Wfn(81,1,{81:1}),Fjn.i=0,Fjn.k=!0,Fjn.o=ZTn;var uzn,ozn,szn,hzn=EF(uIn,"CNode",81);Wfn(460,81,{460:1,81:1},zA,Etn),Fjn.Ib=function(){return""},EF(aIn,"ComponentsToCGraphTransformer/CRectNode",460),Wfn(1623,1,{},kt),EF(aIn,"OneDimensionalComponentsCompaction",1623),Wfn(1624,1,{},jt),Fjn.Kb=function(n){return function(n){return r8(),TA(),0!=Yx(n.a,81).d.e}(Yx(n,46))},Fjn.Fb=function(n){return this===n},EF(aIn,"OneDimensionalComponentsCompaction/lambda$0$Type",1624),Wfn(1625,1,{},Et),Fjn.Kb=function(n){return function(n){return r8(),TA(),!!(M7(Yx(n.a,81).j,Yx(n.b,103))||0!=Yx(n.a,81).d.e&&M7(Yx(n.a,81).j,Yx(n.b,103)))}(Yx(n,46))},Fjn.Fb=function(n){return this===n},EF(aIn,"OneDimensionalComponentsCompaction/lambda$1$Type",1625),Wfn(1654,1,{},HF),EF(uIn,"CGraph",1654),Wfn(189,1,{189:1},Ttn),Fjn.b=0,Fjn.c=0,Fjn.e=0,Fjn.g=!0,Fjn.i=ZTn,EF(uIn,"CGroup",189),Wfn(1653,1,{},Pt),Fjn.ef=function(n,t){return e.Math.max(null!=n.a?ty(n.a):n.c.i,null!=t.a?ty(t.a):t.c.i)},Fjn.ff=function(n,t){return e.Math.max(null!=n.a?ty(n.a):n.c.i,null!=t.a?ty(t.a):t.c.i)},EF(uIn,zMn,1653),Wfn(1655,1,{},rfn),Fjn.d=!1;var fzn=EF(uIn,QMn,1655);Wfn(1656,1,{},It),Fjn.Kb=function(n){return WE(),TA(),0!=Yx(Yx(n,46).a,81).d.e},Fjn.Fb=function(n){return this===n},EF(uIn,YMn,1656),Wfn(823,1,{},gR),Fjn.a=!1,Fjn.b=!1,Fjn.c=!1,Fjn.d=!1,EF(uIn,JMn,823),Wfn(1825,1,{},lK),EF(oIn,ZMn,1825);var lzn=aR(sIn,HMn);Wfn(1826,1,{369:1},yq),Fjn.Ke=function(n){!function(n,t){var e,i,r;t.a?(uF(n.b,t.b),n.a[t.b.i]=Yx(BN(n.b,t.b),81),(e=Yx(FN(n.b,t.b),81))&&(n.a[e.i]=t.b)):(!!(i=Yx(BN(n.b,t.b),81))&&i==n.a[t.b.i]&&!!i.d&&i.d!=t.b.d&&i.f.Fc(t.b),!!(r=Yx(FN(n.b,t.b),81))&&n.a[r.i]==t.b&&!!r.d&&r.d!=t.b.d&&t.b.f.Fc(r),RA(n.b,t.b))}(this,Yx(n,466))},EF(oIn,nSn,1826),Wfn(1827,1,FMn,Ct),Fjn.ue=function(n,t){return function(n,t){return $9(n.g.c+n.g.b/2,t.g.c+t.g.b/2)}(Yx(n,81),Yx(t,81))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(oIn,tSn,1827),Wfn(466,1,{466:1},CM),Fjn.a=!1,EF(oIn,eSn,466),Wfn(1828,1,FMn,Ot),Fjn.ue=function(n,t){return function(n,t){var e,i,r;if(i=n.b.g.d,n.a||(i+=n.b.g.a),r=t.b.g.d,t.a||(r+=t.b.g.a),0==(e=$9(i,r))){if(!n.a&&t.a)return-1;if(!t.a&&n.a)return 1}return e}(Yx(n,466),Yx(t,466))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(oIn,iSn,1828),Wfn(140,1,{140:1},LM,ED),Fjn.Fb=function(n){var t;return null!=n&&pzn==V5(n)&&(t=Yx(n,140),qB(this.c,t.c)&&qB(this.d,t.d))},Fjn.Hb=function(){return G6(x4(Gy(UKn,1),iEn,1,5,[this.c,this.d]))},Fjn.Ib=function(){return"("+this.c+tEn+this.d+(this.a?"cx":"")+this.b+")"},Fjn.a=!0,Fjn.c=0,Fjn.d=0;var bzn,wzn,dzn,gzn,pzn=EF(sIn,"Point",140);Wfn(405,22,{3:1,35:1,22:1,405:1},wM);var vzn,mzn,yzn,kzn,jzn,Ezn,Tzn,Mzn,Szn,Pzn,Izn,Czn=X1(sIn,"Point/Quadrant",405,u_n,(function(){return _4(),x4(Gy(Czn,1),XEn,405,0,[bzn,gzn,wzn,dzn])}),(function(n){return _4(),rZ((GY(),vzn),n)}));Wfn(1642,1,{},ov),Fjn.b=null,Fjn.c=null,Fjn.d=null,Fjn.e=null,Fjn.f=null,EF(sIn,"RectilinearConvexHull",1642),Wfn(574,1,{369:1},ben),Fjn.Ke=function(n){!function(n,t){n.a.ue(t.d,n.b)>0&&(eD(n.c,new ED(t.c,t.d,n.d)),n.b=t.d)}(this,Yx(n,140))},Fjn.b=0,EF(sIn,"RectilinearConvexHull/MaximalElementsEventHandler",574),Wfn(1644,1,FMn,Mt),Fjn.ue=function(n,t){return function(n,t){return VE(),$9((vB(n),n),(vB(t),t))}(fL(n),fL(t))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(sIn,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1644),Wfn(1643,1,{369:1},xZ),Fjn.Ke=function(n){zbn(this,Yx(n,140))},Fjn.a=0,Fjn.b=null,Fjn.c=null,Fjn.d=null,Fjn.e=null,EF(sIn,"RectilinearConvexHull/RectangleEventHandler",1643),Wfn(1645,1,FMn,St),Fjn.ue=function(n,t){return function(n,t){return oZ(),n.c==t.c?$9(t.d,n.d):$9(n.c,t.c)}(Yx(n,140),Yx(t,140))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(sIn,"RectilinearConvexHull/lambda$0$Type",1645),Wfn(1646,1,FMn,Tt),Fjn.ue=function(n,t){return function(n,t){return oZ(),n.c==t.c?$9(n.d,t.d):$9(n.c,t.c)}(Yx(n,140),Yx(t,140))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(sIn,"RectilinearConvexHull/lambda$1$Type",1646),Wfn(1647,1,FMn,At),Fjn.ue=function(n,t){return function(n,t){return oZ(),n.c==t.c?$9(t.d,n.d):$9(t.c,n.c)}(Yx(n,140),Yx(t,140))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(sIn,"RectilinearConvexHull/lambda$2$Type",1647),Wfn(1648,1,FMn,$t),Fjn.ue=function(n,t){return function(n,t){return oZ(),n.c==t.c?$9(n.d,t.d):$9(t.c,n.c)}(Yx(n,140),Yx(t,140))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(sIn,"RectilinearConvexHull/lambda$3$Type",1648),Wfn(1649,1,FMn,Lt),Fjn.ue=function(n,t){return Nun(Yx(n,140),Yx(t,140))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(sIn,"RectilinearConvexHull/lambda$4$Type",1649),Wfn(1650,1,{},tz),EF(sIn,"Scanline",1650),Wfn(2005,1,{}),EF(hIn,"AbstractGraphPlacer",2005),Wfn(325,1,{325:1},F$),Fjn.mf=function(n){return!!this.nf(n)&&(Qhn(this.b,Yx(Aun(n,(Ojn(),uQn)),21),n),!0)},Fjn.nf=function(n){var t,e,i;for(t=Yx(Aun(n,(Ojn(),uQn)),21),i=Yx(_V(Mzn,t),21).Kc();i.Ob();)if(e=Yx(i.Pb(),21),!Yx(_V(this.b,e),15).dc())return!1;return!0},EF(hIn,"ComponentGroup",325),Wfn(765,2005,{},sv),Fjn.of=function(n){var t;for(t=new pb(this.a);t.ai?1:0}(Yx(n,37),Yx(t,37))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(hIn,"ComponentsProcessor/lambda$0$Type",1265),Wfn(570,325,{325:1,570:1},iV),Fjn.mf=function(n){return a6(this,n)},Fjn.nf=function(n){return Fbn(this,n)},EF(hIn,"ModelOrderComponentGroup",570),Wfn(1291,2005,{},Dt),Fjn.lf=function(n,t){var i,r,c,a,u,o,s,h,f,l,b,w,d,g,p,v,m,y,k,j;if(1!=n.gc()){if(n.dc())return t.a.c=VQ(UKn,iEn,1,0,5,1),t.f.a=0,void(t.f.b=0);if(iI(Aun(t,(gjn(),HZn)))===iI((e9(),Izn))){for(s=n.Kc();s.Ob();){for(p=0,d=new pb((u=Yx(s.Pb(),37)).a);d.ab&&(k=0,j+=l+c,l=0),bgn(u,k+(g=u.c).a,j+g.b),OI(g),i=e.Math.max(i,k+v.a),l=e.Math.max(l,v.b),k+=v.a+c;if(t.f.a=i,t.f.b=j+l,ny(hL(Aun(a,_Zn)))){for(bjn(r=new Nt,n,c),f=n.Kc();f.Ob();)mN(OI(Yx(f.Pb(),37).c),r.e);mN(OI(t.f),r.a)}dY(t,n)}else(m=Yx(n.Xb(0),37))!=t&&(t.a.c=VQ(UKn,iEn,1,0,5,1),Dgn(t,m,0,0),o4(t,m),HH(t.d,m.d),t.f.a=m.f.a,t.f.b=m.f.b)},EF(hIn,"SimpleRowGraphPlacer",1291),Wfn(1292,1,FMn,Rt),Fjn.ue=function(n,t){return function(n,t){var e;return 0==(e=t.p-n.p)?$9(n.f.a*n.f.b,t.f.a*t.f.b):e}(Yx(n,37),Yx(t,37))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(hIn,"SimpleRowGraphPlacer/1",1292),Wfn(1262,1,rSn,Kt),Fjn.Lb=function(n){var t;return!!(t=Yx(Aun(Yx(n,243).b,(gjn(),$1n)),74))&&0!=t.b},Fjn.Fb=function(n){return this===n},Fjn.Mb=function(n){var t;return!!(t=Yx(Aun(Yx(n,243).b,(gjn(),$1n)),74))&&0!=t.b},EF(wIn,"CompoundGraphPostprocessor/1",1262),Wfn(1261,1,dIn,dv),Fjn.pf=function(n,t){Wen(this,Yx(n,37),t)},EF(wIn,"CompoundGraphPreprocessor",1261),Wfn(441,1,{441:1},c9),Fjn.c=!1,EF(wIn,"CompoundGraphPreprocessor/ExternalPort",441),Wfn(243,1,{243:1},jx),Fjn.Ib=function(){return d$(this.c)+":"+Khn(this.b)},EF(wIn,"CrossHierarchyEdge",243),Wfn(763,1,FMn,ow),Fjn.ue=function(n,t){return function(n,t,e){var i,r;return t.c==(h0(),i3n)&&e.c==e3n?-1:t.c==e3n&&e.c==i3n?1:(i=X6(t.a,n.a),r=X6(e.a,n.a),t.c==i3n?r-i:i-r)}(this,Yx(n,243),Yx(t,243))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(wIn,"CrossHierarchyEdgeComparator",763),Wfn(299,134,{3:1,299:1,94:1,134:1}),Fjn.p=0,EF(gIn,"LGraphElement",299),Wfn(17,299,{3:1,17:1,299:1,94:1,134:1},jq),Fjn.Ib=function(){return Khn(this)};var Nzn=EF(gIn,"LEdge",17);Wfn(37,299,{3:1,20:1,37:1,299:1,94:1,134:1},k0),Fjn.Jc=function(n){XW(this,n)},Fjn.Kc=function(){return new pb(this.b)},Fjn.Ib=function(){return 0==this.b.c.length?"G-unlayered"+Gun(this.a):0==this.a.c.length?"G-layered"+Gun(this.b):"G[layerless"+Gun(this.a)+", layers"+Gun(this.b)+"]"};var xzn,Dzn=EF(gIn,"LGraph",37);Wfn(657,1,{}),Fjn.qf=function(){return this.e.n},Fjn.We=function(n){return Aun(this.e,n)},Fjn.rf=function(){return this.e.o},Fjn.sf=function(){return this.e.p},Fjn.Xe=function(n){return O$(this.e,n)},Fjn.tf=function(n){this.e.n.a=n.a,this.e.n.b=n.b},Fjn.uf=function(n){this.e.o.a=n.a,this.e.o.b=n.b},Fjn.vf=function(n){this.e.p=n},EF(gIn,"LGraphAdapters/AbstractLShapeAdapter",657),Wfn(577,1,{839:1},sw),Fjn.wf=function(){var n,t;if(!this.b)for(this.b=h$(this.a.b.c.length),t=new pb(this.a.b);t.a0&&l8((Lz(t-1,n.length),n.charCodeAt(t-1)),TIn);)--t;if(r> ",n),krn(e)),yI(mI((n.a+="[",n),e.i),"]")),n.a},Fjn.c=!0,Fjn.d=!1;var nUn,tUn,eUn,iUn,rUn=EF(gIn,"LPort",11);Wfn(397,1,$En,fw),Fjn.Jc=function(n){XW(this,n)},Fjn.Kc=function(){return new lw(new pb(this.a.e))},EF(gIn,"LPort/1",397),Wfn(1290,1,fEn,lw),Fjn.Nb=function(n){I_(this,n)},Fjn.Pb=function(){return Yx(Hz(this.a),17).c},Fjn.Ob=function(){return ZC(this.a)},Fjn.Qb=function(){z_(this.a)},EF(gIn,"LPort/1/1",1290),Wfn(359,1,$En,bw),Fjn.Jc=function(n){XW(this,n)},Fjn.Kc=function(){return new ww(new pb(this.a.g))},EF(gIn,"LPort/2",359),Wfn(762,1,fEn,ww),Fjn.Nb=function(n){I_(this,n)},Fjn.Pb=function(){return Yx(Hz(this.a),17).d},Fjn.Ob=function(){return ZC(this.a)},Fjn.Qb=function(){z_(this.a)},EF(gIn,"LPort/2/1",762),Wfn(1283,1,$En,IM),Fjn.Jc=function(n){XW(this,n)},Fjn.Kc=function(){return new UV(this)},EF(gIn,"LPort/CombineIter",1283),Wfn(201,1,fEn,UV),Fjn.Nb=function(n){I_(this,n)},Fjn.Qb=function(){Bk()},Fjn.Ob=function(){return YA(this)},Fjn.Pb=function(){return ZC(this.a)?Hz(this.a):Hz(this.b)},EF(gIn,"LPort/CombineIter/1",201),Wfn(1285,1,rSn,Bt),Fjn.Lb=function(n){return JK(n)},Fjn.Fb=function(n){return this===n},Fjn.Mb=function(n){return Q2(),0!=Yx(n,11).e.c.length},EF(gIn,"LPort/lambda$0$Type",1285),Wfn(1284,1,rSn,Ht),Fjn.Lb=function(n){return ZK(n)},Fjn.Fb=function(n){return this===n},Fjn.Mb=function(n){return Q2(),0!=Yx(n,11).g.c.length},EF(gIn,"LPort/lambda$1$Type",1284),Wfn(1286,1,rSn,qt),Fjn.Lb=function(n){return Q2(),Yx(n,11).j==(Ikn(),Tit)},Fjn.Fb=function(n){return this===n},Fjn.Mb=function(n){return Q2(),Yx(n,11).j==(Ikn(),Tit)},EF(gIn,"LPort/lambda$2$Type",1286),Wfn(1287,1,rSn,Gt),Fjn.Lb=function(n){return Q2(),Yx(n,11).j==(Ikn(),Eit)},Fjn.Fb=function(n){return this===n},Fjn.Mb=function(n){return Q2(),Yx(n,11).j==(Ikn(),Eit)},EF(gIn,"LPort/lambda$3$Type",1287),Wfn(1288,1,rSn,zt),Fjn.Lb=function(n){return Q2(),Yx(n,11).j==(Ikn(),Bit)},Fjn.Fb=function(n){return this===n},Fjn.Mb=function(n){return Q2(),Yx(n,11).j==(Ikn(),Bit)},EF(gIn,"LPort/lambda$4$Type",1288),Wfn(1289,1,rSn,Ut),Fjn.Lb=function(n){return Q2(),Yx(n,11).j==(Ikn(),qit)},Fjn.Fb=function(n){return this===n},Fjn.Mb=function(n){return Q2(),Yx(n,11).j==(Ikn(),qit)},EF(gIn,"LPort/lambda$5$Type",1289),Wfn(29,299,{3:1,20:1,299:1,29:1,94:1,134:1},qF),Fjn.Jc=function(n){XW(this,n)},Fjn.Kc=function(){return new pb(this.a)},Fjn.Ib=function(){return"L_"+hJ(this.b.b,this,0)+Gun(this.a)},EF(gIn,"Layer",29),Wfn(1342,1,{},wv),EF(OIn,AIn,1342),Wfn(1346,1,{},Xt),Fjn.Kb=function(n){return iun(Yx(n,82))},EF(OIn,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1346),Wfn(1349,1,{},Wt),Fjn.Kb=function(n){return iun(Yx(n,82))},EF(OIn,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1349),Wfn(1343,1,PEn,dw),Fjn.td=function(n){vfn(this.a,Yx(n,118))},EF(OIn,$In,1343),Wfn(1344,1,PEn,gw),Fjn.td=function(n){vfn(this.a,Yx(n,118))},EF(OIn,LIn,1344),Wfn(1345,1,{},Vt),Fjn.Kb=function(n){return new SR(null,new Nz(function(n){return!n.c&&(n.c=new AN(Zrt,n,5,8)),n.c}(Yx(n,79)),16))},EF(OIn,NIn,1345),Wfn(1347,1,YEn,pw),Fjn.Mb=function(n){return function(n,t){return XZ(t,TG(n))}(this.a,Yx(n,33))},EF(OIn,xIn,1347),Wfn(1348,1,{},Qt),Fjn.Kb=function(n){return new SR(null,new Nz(function(n){return!n.b&&(n.b=new AN(Zrt,n,4,7)),n.b}(Yx(n,79)),16))},EF(OIn,"ElkGraphImporter/lambda$5$Type",1348),Wfn(1350,1,YEn,vw),Fjn.Mb=function(n){return function(n,t){return XZ(t,TG(n))}(this.a,Yx(n,33))},EF(OIn,"ElkGraphImporter/lambda$7$Type",1350),Wfn(1351,1,YEn,Yt),Fjn.Mb=function(n){return function(n){return Whn(n)&&ny(hL(jln(n,(gjn(),C1n))))}(Yx(n,79))},EF(OIn,"ElkGraphImporter/lambda$8$Type",1351),Wfn(1278,1,{},Wh),EF(OIn,"ElkGraphLayoutTransferrer",1278),Wfn(1279,1,YEn,mw),Fjn.Mb=function(n){return function(n,t){return UE(),!_3(t.d.i,n)}(this.a,Yx(n,17))},EF(OIn,"ElkGraphLayoutTransferrer/lambda$0$Type",1279),Wfn(1280,1,PEn,yw),Fjn.td=function(n){UE(),eD(this.a,Yx(n,17))},EF(OIn,"ElkGraphLayoutTransferrer/lambda$1$Type",1280),Wfn(1281,1,YEn,kw),Fjn.Mb=function(n){return function(n,t){return UE(),_3(t.d.i,n)}(this.a,Yx(n,17))},EF(OIn,"ElkGraphLayoutTransferrer/lambda$2$Type",1281),Wfn(1282,1,PEn,jw),Fjn.td=function(n){UE(),eD(this.a,Yx(n,17))},EF(OIn,"ElkGraphLayoutTransferrer/lambda$3$Type",1282),Wfn(1485,1,dIn,Jt),Fjn.pf=function(n,t){!function(n,t){run(t,DIn,1),SE(WJ(new SR(null,new Nz(n.b,16)),new Zt),new ne),Ron(t)}(Yx(n,37),t)},EF(RIn,"CommentNodeMarginCalculator",1485),Wfn(1486,1,{},Zt),Fjn.Kb=function(n){return new SR(null,new Nz(Yx(n,29).a,16))},EF(RIn,"CommentNodeMarginCalculator/lambda$0$Type",1486),Wfn(1487,1,PEn,ne),Fjn.td=function(n){!function(n){var t,i,r,c,a,u,o,s,h,f,l,b;if(o=n.d,l=Yx(Aun(n,(Ojn(),JQn)),15),t=Yx(Aun(n,QVn),15),l||t){if(a=ty(fL(pnn(n,(gjn(),A0n)))),u=ty(fL(pnn(n,$0n))),b=0,l){for(h=0,c=l.Kc();c.Ob();)r=Yx(c.Pb(),10),h=e.Math.max(h,r.o.b),b+=r.o.a;b+=a*(l.gc()-1),o.d+=h+u}if(i=0,t){for(h=0,c=t.Kc();c.Ob();)r=Yx(c.Pb(),10),h=e.Math.max(h,r.o.b),i+=r.o.a;i+=a*(t.gc()-1),o.a+=h+u}(s=e.Math.max(b,i))>n.o.a&&(f=(s-n.o.a)/2,o.b=e.Math.max(o.b,f),o.c=e.Math.max(o.c,f))}}(Yx(n,10))},EF(RIn,"CommentNodeMarginCalculator/lambda$1$Type",1487),Wfn(1488,1,dIn,te),Fjn.pf=function(n,t){!function(n,t){var e,i,r,c,a,u,o;for(run(t,"Comment post-processing",1),c=new pb(n.b);c.a0&&Jgn(($z(0,e.c.length),Yx(e.c[0],29)),n),e.c.length>1&&Jgn(Yx(TR(e,e.c.length-1),29),n),Ron(t)}(Yx(n,37),t)},EF(RIn,"HierarchicalPortPositionProcessor",1517),Wfn(1518,1,dIn,Vh),Fjn.pf=function(n,t){!function(n,t){var i,r,c,a,u,o,s,f,l,b,w,d,g,p,v,m,y,k,j,E,T,M;for(n.b=t,n.a=Yx(Aun(t,(gjn(),T1n)),19).a,n.c=Yx(Aun(t,S1n),19).a,0==n.c&&(n.c=Yjn),g=new JU(t.b,0);g.b=n.a&&(r=Nvn(n,v),l=e.Math.max(l,r.b),y=e.Math.max(y,r.d),eD(o,new mP(v,r)));for(E=new ip,f=0;f0),g.a.Xb(g.c=--g.b),ZL(g,T=new qF(n.b)),S$(g.b=2){for(b=!0,e=Yx(Hz(h=new pb(r.j)),11),f=null;h.a0)}(Yx(n,17))},EF(RIn,"PartitionPreprocessor/lambda$2$Type",1577),Wfn(1578,1,PEn,ki),Fjn.td=function(n){!function(n){var t;mvn(n,!0),t=hTn,O$(n,(gjn(),M0n))&&(t+=Yx(Aun(n,M0n),19).a),b5(n,M0n,d9(t))}(Yx(n,17))},EF(RIn,"PartitionPreprocessor/lambda$3$Type",1578),Wfn(1579,1,dIn,rf),Fjn.pf=function(n,t){!function(n,t){var e,i,r,c,a,u;for(run(t,"Port order processing",1),u=Yx(Aun(n,(gjn(),j0n)),421),e=new pb(n.b);e.at.d.c){if((b=n.c[t.a.d])==(g=n.c[f.a.d]))continue;uwn(NE(LE(xE($E(new tv,1),100),b),g))}}}(this),function(n){var t,e,i,r,c,a,u;for(c=new ME,r=new pb(n.d.a);r.a1)for(t=HA((e=new ev,++n.b,e),n.d),u=Ztn(c,0);u.b!=u.d.c;)a=Yx(IX(u),121),uwn(NE(LE(xE($E(new tv,1),0),t),a))}(this),Ggn(Cx(this.d),new am),c=new pb(this.a.a.b);c.a=g&&(eD(a,d9(f)),m=e.Math.max(m,y[f-1]-l),o+=d,p+=y[f-1]-p,l=y[f-1],d=s[f]),d=e.Math.max(d,s[f]),++f;o+=d}(w=e.Math.min(1/m,1/t.b/o))>r&&(r=w,i=a)}return i},Fjn.Wf=function(){return!1},EF(nCn,"MSDCutIndexHeuristic",802),Wfn(1617,1,dIn,Sc),Fjn.pf=function(n,t){Cvn(Yx(n,37),t)},EF(nCn,"SingleEdgeGraphWrapper",1617),Wfn(227,22,{3:1,35:1,22:1,227:1},FM);var vWn,mWn,yWn,kWn=X1(tCn,"CenterEdgeLabelPlacementStrategy",227,u_n,(function(){return psn(),x4(Gy(kWn,1),XEn,227,0,[bWn,dWn,lWn,wWn,gWn,fWn])}),(function(n){return psn(),rZ((y1(),vWn),n)}));Wfn(422,22,{3:1,35:1,22:1,422:1},BM);var jWn,EWn,TWn,MWn,SWn=X1(tCn,"ConstraintCalculationStrategy",422,u_n,(function(){return aY(),x4(Gy(SWn,1),XEn,422,0,[mWn,yWn])}),(function(n){return aY(),rZ((AW(),jWn),n)}));Wfn(314,22,{3:1,35:1,22:1,314:1,246:1,234:1},HM),Fjn.Kf=function(){return Shn(this)},Fjn.Xf=function(){return Shn(this)};var PWn,IWn,CWn,OWn,AWn=X1(tCn,"CrossingMinimizationStrategy",314,u_n,(function(){return O0(),x4(Gy(AWn,1),XEn,314,0,[TWn,EWn,MWn])}),(function(n){return O0(),rZ((TQ(),PWn),n)}));Wfn(337,22,{3:1,35:1,22:1,337:1},qM);var $Wn,LWn,NWn,xWn,DWn,RWn,KWn=X1(tCn,"CuttingStrategy",337,u_n,(function(){return f0(),x4(Gy(KWn,1),XEn,337,0,[IWn,OWn,CWn])}),(function(n){return f0(),rZ((MQ(),$Wn),n)}));Wfn(335,22,{3:1,35:1,22:1,335:1,246:1,234:1},GM),Fjn.Kf=function(){return fln(this)},Fjn.Xf=function(){return fln(this)};var _Wn,FWn,BWn,HWn=X1(tCn,"CycleBreakingStrategy",335,u_n,(function(){return min(),x4(Gy(HWn,1),XEn,335,0,[NWn,LWn,DWn,RWn,xWn])}),(function(n){return min(),rZ((lZ(),_Wn),n)}));Wfn(419,22,{3:1,35:1,22:1,419:1},zM);var qWn,GWn,zWn,UWn,XWn=X1(tCn,"DirectionCongruency",419,u_n,(function(){return fZ(),x4(Gy(XWn,1),XEn,419,0,[FWn,BWn])}),(function(n){return fZ(),rZ((PW(),qWn),n)}));Wfn(450,22,{3:1,35:1,22:1,450:1},UM);var WWn,VWn,QWn,YWn,JWn,ZWn,nVn,tVn=X1(tCn,"EdgeConstraint",450,u_n,(function(){return i5(),x4(Gy(tVn,1),XEn,450,0,[zWn,GWn,UWn])}),(function(n){return i5(),rZ((SQ(),WWn),n)}));Wfn(276,22,{3:1,35:1,22:1,276:1},XM);var eVn,iVn,rVn,cVn=X1(tCn,"EdgeLabelSideSelection",276,u_n,(function(){return pon(),x4(Gy(cVn,1),XEn,276,0,[QWn,VWn,JWn,YWn,nVn,ZWn])}),(function(n){return pon(),rZ((T1(),eVn),n)}));Wfn(479,22,{3:1,35:1,22:1,479:1},WM);var aVn,uVn,oVn,sVn,hVn,fVn,lVn,bVn=X1(tCn,"EdgeStraighteningStrategy",479,u_n,(function(){return cJ(),x4(Gy(bVn,1),XEn,479,0,[rVn,iVn])}),(function(n){return cJ(),rZ((IW(),aVn),n)}));Wfn(274,22,{3:1,35:1,22:1,274:1},VM);var wVn,dVn,gVn,pVn,vVn,mVn,yVn,kVn=X1(tCn,"FixedAlignment",274,u_n,(function(){return Wcn(),x4(Gy(kVn,1),XEn,274,0,[hVn,sVn,lVn,oVn,fVn,uVn])}),(function(n){return Wcn(),rZ((j1(),wVn),n)}));Wfn(275,22,{3:1,35:1,22:1,275:1},QM);var jVn,EVn,TVn,MVn,SVn,PVn,IVn,CVn,OVn,AVn,$Vn,LVn=X1(tCn,"GraphCompactionStrategy",275,u_n,(function(){return uon(),x4(Gy(LVn,1),XEn,275,0,[mVn,gVn,yVn,vVn,pVn,dVn])}),(function(n){return uon(),rZ((k1(),jVn),n)}));Wfn(256,22,{3:1,35:1,22:1,256:1},YM);var NVn,xVn,DVn,RVn,KVn=X1(tCn,"GraphProperties",256,u_n,(function(){return edn(),x4(Gy(KVn,1),XEn,256,0,[TVn,SVn,PVn,IVn,CVn,OVn,$Vn,EVn,MVn,AVn])}),(function(n){return edn(),rZ((n5(),NVn),n)}));Wfn(292,22,{3:1,35:1,22:1,292:1},JM);var _Vn,FVn,BVn,HVn,qVn=X1(tCn,"GreedySwitchType",292,u_n,(function(){return r4(),x4(Gy(qVn,1),XEn,292,0,[DVn,RVn,xVn])}),(function(n){return r4(),rZ((CQ(),_Vn),n)}));Wfn(303,22,{3:1,35:1,22:1,303:1},ZM);var GVn,zVn,UVn,XVn=X1(tCn,"InLayerConstraint",303,u_n,(function(){return AJ(),x4(Gy(XVn,1),XEn,303,0,[BVn,HVn,FVn])}),(function(n){return AJ(),rZ((IQ(),GVn),n)}));Wfn(420,22,{3:1,35:1,22:1,420:1},nS);var WVn,VVn,QVn,YVn,JVn,ZVn,nQn,tQn,eQn,iQn,rQn,cQn,aQn,uQn,oQn,sQn,hQn,fQn,lQn,bQn,wQn,dQn,gQn,pQn,vQn,mQn,yQn,kQn,jQn,EQn,TQn,MQn,SQn,PQn,IQn,CQn,OQn,AQn,$Qn,LQn,NQn,xQn,DQn,RQn,KQn,_Qn,FQn,BQn,HQn,qQn,GQn,zQn,UQn,XQn,WQn,VQn,QQn,YQn,JQn,ZQn,nYn,tYn,eYn,iYn,rYn=X1(tCn,"InteractiveReferencePoint",420,u_n,(function(){return dX(),x4(Gy(rYn,1),XEn,420,0,[zVn,UVn])}),(function(n){return dX(),rZ(($W(),WVn),n)}));Wfn(163,22,{3:1,35:1,22:1,163:1},cS);var cYn,aYn,uYn,oYn,sYn,hYn,fYn,lYn,bYn,wYn,dYn,gYn,pYn,vYn,mYn,yYn,kYn,jYn,EYn,TYn,MYn,SYn,PYn,IYn,CYn,OYn,AYn,$Yn,LYn,NYn,xYn,DYn,RYn,KYn,_Yn,FYn,BYn,HYn,qYn,GYn,zYn,UYn,XYn,WYn,VYn,QYn,YYn,JYn,ZYn,nJn,tJn,eJn,iJn,rJn,cJn,aJn,uJn,oJn,sJn,hJn,fJn,lJn,bJn,wJn,dJn,gJn,pJn,vJn,mJn,yJn,kJn,jJn,EJn,TJn,MJn,SJn,PJn,IJn,CJn,OJn,AJn,$Jn,LJn,NJn,xJn,DJn,RJn,KJn,_Jn,FJn,BJn,HJn,qJn,GJn,zJn,UJn,XJn,WJn,VJn,QJn,YJn,JJn,ZJn,nZn,tZn,eZn,iZn,rZn,cZn,aZn,uZn,oZn,sZn,hZn,fZn,lZn,bZn,wZn,dZn,gZn,pZn,vZn,mZn,yZn,kZn,jZn,EZn,TZn,MZn,SZn,PZn,IZn,CZn,OZn,AZn,$Zn,LZn,NZn,xZn,DZn,RZn,KZn,_Zn,FZn,BZn,HZn,qZn,GZn,zZn,UZn,XZn,WZn,VZn,QZn,YZn,JZn,ZZn,n1n,t1n,e1n,i1n,r1n,c1n,a1n,u1n,o1n,s1n,h1n,f1n,l1n,b1n,w1n,d1n,g1n,p1n,v1n,m1n,y1n,k1n,j1n,E1n,T1n,M1n,S1n,P1n,I1n,C1n,O1n,A1n,$1n,L1n,N1n,x1n,D1n,R1n,K1n,_1n,F1n,B1n,H1n,q1n,G1n,z1n,U1n,X1n,W1n,V1n,Q1n,Y1n,J1n,Z1n,n0n,t0n,e0n,i0n,r0n,c0n,a0n,u0n,o0n,s0n,h0n,f0n,l0n,b0n,w0n,d0n,g0n,p0n,v0n,m0n,y0n,k0n,j0n,E0n,T0n,M0n,S0n,P0n,I0n,C0n,O0n,A0n,$0n,L0n,N0n,x0n,D0n,R0n,K0n,_0n,F0n,B0n,H0n,q0n,G0n,z0n,U0n,X0n,W0n,V0n,Q0n,Y0n,J0n,Z0n,n2n,t2n,e2n,i2n,r2n,c2n,a2n,u2n,o2n,s2n,h2n,f2n,l2n,b2n,w2n,d2n,g2n,p2n=X1(tCn,"LayerConstraint",163,u_n,(function(){return d7(),x4(Gy(p2n,1),XEn,163,0,[iYn,ZQn,nYn,tYn,eYn])}),(function(n){return d7(),rZ((dZ(),cYn),n)}));Wfn(848,1,fSn,of),Fjn.Qe=function(n){j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,uCn),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),BYn),(lsn(),O7n)),XWn),J9((Qtn(),T7n))))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,oCn),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(TA(),!1)),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,sCn),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),hJn),O7n),rYn),J9(T7n)))),xU(n,sCn,pCn,lJn),xU(n,sCn,PCn,fJn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,hCn),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,fCn),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),I7n),D_n),J9(T7n)))),j7(n,new isn(function(n,t){return n.f=t,n}(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,lCn),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),I7n),D_n),J9(M7n)),x4(Gy(fFn,1),TEn,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,bCn),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),VJn),O7n),c3n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,wCn),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),d9(7)),$7n),U_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,dCn),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,gCn),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,pCn),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),_Yn),O7n),HWn),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,vCn),SOn),"Node Layering Strategy"),"Strategy for node layering."),PJn),O7n),j2n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,mCn),SOn),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),pJn),O7n),p2n),J9(E7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,yCn),SOn),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),d9(-1)),$7n),U_n),J9(E7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,kCn),SOn),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),d9(-1)),$7n),U_n),J9(E7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,jCn),POn),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),d9(4)),$7n),U_n),J9(T7n)))),xU(n,jCn,vCn,yJn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,ECn),POn),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),d9(2)),$7n),U_n),J9(T7n)))),xU(n,ECn,vCn,jJn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,TCn),IOn),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),MJn),O7n),Q2n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,MCn),IOn),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),d9(0)),$7n),U_n),J9(T7n)))),xU(n,MCn,TCn,null),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,SCn),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),d9(Yjn)),$7n),U_n),J9(T7n)))),xU(n,SCn,vCn,wJn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,PCn),COn),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),RYn),O7n),AWn),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,ICn),COn),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,CCn),COn),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),C7n),H_n),J9(T7n)))),xU(n,CCn,OOn,AYn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,OCn),COn),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),I7n),D_n),J9(T7n)))),xU(n,OCn,PCn,xYn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,ACn),COn),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),d9(-1)),$7n),U_n),J9(E7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,$Cn),COn),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),d9(-1)),$7n),U_n),J9(E7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,LCn),AOn),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),d9(40)),$7n),U_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,NCn),AOn),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),IYn),O7n),qVn),J9(T7n)))),xU(n,NCn,PCn,CYn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,xCn),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),TYn),O7n),qVn),J9(T7n)))),xU(n,xCn,PCn,MYn),xU(n,xCn,OOn,SYn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,DCn),$On),"Node Placement Strategy"),"Strategy for node placement."),XJn),O7n),z2n),J9(T7n)))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,RCn),$On),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),I7n),D_n),J9(T7n)))),xU(n,RCn,DCn,RJn),xU(n,RCn,DCn,KJn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,KCn),LOn),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),AJn),O7n),bVn),J9(T7n)))),xU(n,KCn,DCn,$Jn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,_Cn),LOn),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),NJn),O7n),kVn),J9(T7n)))),xU(n,_Cn,DCn,xJn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,FCn),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),C7n),H_n),J9(T7n)))),xU(n,FCn,DCn,FJn),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,BCn),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),O7n),x2n),J9(E7n)))),xU(n,BCn,DCn,zJn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,HCn),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),qJn),O7n),x2n),J9(T7n)))),xU(n,HCn,DCn,GJn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,qCn),NOn),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),VYn),O7n),w3n),J9(E7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,GCn),NOn),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),YYn),O7n),m3n),J9(E7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,zCn),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),ZYn),O7n),T3n),J9(T7n)))),xU(n,zCn,xOn,nJn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,UCn),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),C7n),H_n),J9(T7n)))),xU(n,UCn,xOn,eJn),xU(n,UCn,zCn,iJn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,XCn),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),C7n),H_n),J9(T7n)))),xU(n,XCn,xOn,XYn),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,WCn),DOn),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),C7n),H_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,VCn),DOn),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),C7n),H_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,QCn),DOn),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),C7n),H_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,YCn),DOn),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),C7n),H_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,JCn),ROn),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),d9(0)),$7n),U_n),J9(k7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,ZCn),ROn),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),d9(0)),$7n),U_n),J9(k7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,nOn),ROn),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),d9(0)),$7n),U_n),J9(k7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,tOn),KOn),YSn),"Tries to further compact components (disconnected sub-graphs)."),!1),I7n),D_n),J9(T7n)))),xU(n,tOn,DPn,!0),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,eOn),_On),"Post Compaction Strategy"),FOn),fYn),O7n),LVn),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,iOn),_On),"Post Compaction Constraint Calculation"),FOn),sYn),O7n),SWn),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,rOn),BOn),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,cOn),BOn),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),d9(16)),$7n),U_n),J9(T7n)))),xU(n,cOn,rOn,!0),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,aOn),BOn),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),d9(5)),$7n),U_n),J9(T7n)))),xU(n,aOn,rOn,!0),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,uOn),HOn),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),PZn),O7n),F3n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,oOn),HOn),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),C7n),H_n),J9(T7n)))),xU(n,oOn,uOn,aZn),xU(n,oOn,uOn,uZn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,sOn),HOn),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),C7n),H_n),J9(T7n)))),xU(n,sOn,uOn,sZn),xU(n,sOn,uOn,hZn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,hOn),qOn),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),pZn),O7n),KWn),J9(T7n)))),xU(n,hOn,uOn,vZn),xU(n,hOn,uOn,mZn),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,fOn),qOn),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),L7n),JKn),J9(T7n)))),xU(n,fOn,hOn,lZn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,lOn),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),wZn),$7n),U_n),J9(T7n)))),xU(n,lOn,hOn,dZn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,bOn),GOn),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),$Zn),O7n),C3n),J9(T7n)))),xU(n,bOn,uOn,LZn),xU(n,bOn,uOn,NZn),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,wOn),GOn),"Valid Indices for Wrapping"),null),L7n),JKn),J9(T7n)))),xU(n,wOn,uOn,CZn),xU(n,wOn,uOn,OZn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,dOn),zOn),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),I7n),D_n),J9(T7n)))),xU(n,dOn,uOn,EZn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,gOn),zOn),"Distance Penalty When Improving Cuts"),null),2),C7n),H_n),J9(T7n)))),xU(n,gOn,uOn,kZn),xU(n,gOn,dOn,!0),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,pOn),zOn),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),I7n),D_n),J9(T7n)))),xU(n,pOn,uOn,MZn),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,vOn),UOn),"Edge Label Side Selection"),"Method to decide on edge label sides."),zYn),O7n),cVn),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,mOn),UOn),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),qYn),O7n),kWn),tK(T7n,x4(Gy(D7n,1),XEn,175,0,[j7n]))))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,yOn),XOn),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),yYn),O7n),n3n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,kOn),XOn),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),I7n),D_n),J9(E7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,jOn),XOn),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),bYn),O7n),Lzn),J9(T7n)))),xU(n,jOn,DPn,null),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,EOn),XOn),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),pYn),O7n),I2n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,TOn),XOn),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),C7n),H_n),J9(T7n)))),xU(n,TOn,yOn,null),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,MOn),XOn),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),C7n),H_n),J9(T7n)))),xU(n,MOn,yOn,null),Djn((new ff,n))},EF(tCn,"LayeredMetaDataProvider",848),Wfn(986,1,fSn,ff),Fjn.Qe=function(n){Djn(n)},EF(tCn,"LayeredOptions",986),Wfn(987,1,{},Ic),Fjn.$e=function(){return new cv},Fjn._e=function(n){},EF(tCn,"LayeredOptions/LayeredFactory",987),Wfn(1372,1,{}),Fjn.a=0,EF(xAn,"ElkSpacings/AbstractSpacingsBuilder",1372),Wfn(779,1372,{},B7),EF(tCn,"LayeredSpacings/LayeredSpacingsBuilder",779),Wfn(313,22,{3:1,35:1,22:1,313:1,246:1,234:1},tS),Fjn.Kf=function(){return rbn(this)},Fjn.Xf=function(){return rbn(this)};var v2n,m2n,y2n,k2n,j2n=X1(tCn,"LayeringStrategy",313,u_n,(function(){return nun(),x4(Gy(j2n,1),XEn,313,0,[d2n,b2n,f2n,l2n,g2n,w2n])}),(function(n){return nun(),rZ((E1(),v2n),n)}));Wfn(378,22,{3:1,35:1,22:1,378:1},eS);var E2n,T2n,M2n,S2n,P2n,I2n=X1(tCn,"LongEdgeOrderingStrategy",378,u_n,(function(){return i8(),x4(Gy(I2n,1),XEn,378,0,[m2n,y2n,k2n])}),(function(n){return i8(),rZ((OQ(),E2n),n)}));Wfn(197,22,{3:1,35:1,22:1,197:1},iS);var C2n,O2n,A2n,$2n,L2n,N2n,x2n=X1(tCn,"NodeFlexibility",197,u_n,(function(){return Hen(),x4(Gy(x2n,1),XEn,197,0,[S2n,P2n,M2n,T2n])}),(function(n){return Hen(),rZ((JY(),C2n),n)}));Wfn(315,22,{3:1,35:1,22:1,315:1,246:1,234:1},rS),Fjn.Kf=function(){return hln(this)},Fjn.Xf=function(){return hln(this)};var D2n,R2n,K2n,_2n,F2n,B2n,H2n,q2n,G2n,z2n=X1(tCn,"NodePlacementStrategy",315,u_n,(function(){return ain(),x4(Gy(z2n,1),XEn,315,0,[N2n,A2n,$2n,O2n,L2n])}),(function(n){return ain(),rZ((bZ(),D2n),n)}));Wfn(260,22,{3:1,35:1,22:1,260:1},aS);var U2n,X2n,W2n,V2n,Q2n=X1(tCn,"NodePromotionStrategy",260,u_n,(function(){return _bn(),x4(Gy(Q2n,1),XEn,260,0,[q2n,K2n,B2n,_2n,F2n,R2n,H2n,G2n])}),(function(n){return _bn(),rZ((g3(),U2n),n)}));Wfn(339,22,{3:1,35:1,22:1,339:1},uS);var Y2n,J2n,Z2n,n3n=X1(tCn,"OrderingStrategy",339,u_n,(function(){return k5(),x4(Gy(n3n,1),XEn,339,0,[W2n,X2n,V2n])}),(function(n){return k5(),rZ(($Q(),Y2n),n)}));Wfn(421,22,{3:1,35:1,22:1,421:1},oS);var t3n,e3n,i3n,r3n,c3n=X1(tCn,"PortSortingStrategy",421,u_n,(function(){return $J(),x4(Gy(c3n,1),XEn,421,0,[J2n,Z2n])}),(function(n){return $J(),rZ((OW(),t3n),n)}));Wfn(452,22,{3:1,35:1,22:1,452:1},sS);var a3n,u3n,o3n,s3n,h3n=X1(tCn,"PortType",452,u_n,(function(){return h0(),x4(Gy(h3n,1),XEn,452,0,[r3n,e3n,i3n])}),(function(n){return h0(),rZ((LQ(),a3n),n)}));Wfn(375,22,{3:1,35:1,22:1,375:1},hS);var f3n,l3n,b3n,w3n=X1(tCn,"SelfLoopDistributionStrategy",375,u_n,(function(){return d3(),x4(Gy(w3n,1),XEn,375,0,[u3n,o3n,s3n])}),(function(n){return d3(),rZ((AQ(),f3n),n)}));Wfn(376,22,{3:1,35:1,22:1,376:1},fS);var d3n,g3n,p3n,v3n,m3n=X1(tCn,"SelfLoopOrderingStrategy",376,u_n,(function(){return rQ(),x4(Gy(m3n,1),XEn,376,0,[b3n,l3n])}),(function(n){return rQ(),rZ((CW(),d3n),n)}));Wfn(304,1,{304:1},pyn),EF(tCn,"Spacings",304),Wfn(336,22,{3:1,35:1,22:1,336:1},lS);var y3n,k3n,j3n,E3n,T3n=X1(tCn,"SplineRoutingMode",336,u_n,(function(){return $6(),x4(Gy(T3n,1),XEn,336,0,[g3n,p3n,v3n])}),(function(n){return $6(),rZ((xQ(),y3n),n)}));Wfn(338,22,{3:1,35:1,22:1,338:1},bS);var M3n,S3n,P3n,I3n,C3n=X1(tCn,"ValidifyStrategy",338,u_n,(function(){return V2(),x4(Gy(C3n,1),XEn,338,0,[E3n,k3n,j3n])}),(function(n){return V2(),rZ((DQ(),M3n),n)}));Wfn(377,22,{3:1,35:1,22:1,377:1},wS);var O3n,A3n,$3n,L3n,N3n,x3n,D3n,R3n,K3n,_3n,F3n=X1(tCn,"WrappingStrategy",377,u_n,(function(){return F4(),x4(Gy(F3n,1),XEn,377,0,[P3n,I3n,S3n])}),(function(n){return F4(),rZ((NQ(),O3n),n)}));Wfn(1383,1,KAn,lf),Fjn.Yf=function(n){return Yx(n,37),A3n},Fjn.pf=function(n,t){!function(n,t,e){var i,r,c,a,u,o,s,h;for(run(e,"Depth-first cycle removal",1),o=(s=t.a).c.length,n.c=new ip,n.d=VQ(Vot,wSn,25,o,16,1),n.a=VQ(Vot,wSn,25,o,16,1),n.b=new ip,c=0,u=new pb(s);u.a0?S+1:1);for(a=new pb(k.g);a.a0?S+1:1)}0==n.c[s]?KD(n.e,d):0==n.a[s]&&KD(n.f,d),++s}for(w=-1,b=1,f=new ip,n.d=Yx(Aun(t,(Ojn(),FQn)),230);A>0;){for(;0!=n.e.b;)I=Yx(mD(n.e),10),n.b[I.p]=w--,Ugn(n,I),--A;for(;0!=n.f.b;)C=Yx(mD(n.f),10),n.b[C.p]=b++,Ugn(n,C),--A;if(A>0){for(l=nTn,v=new pb(m);v.a=l&&(y>l&&(f.c=VQ(UKn,iEn,1,0,5,1),l=y),f.c[f.c.length]=d);h=n.Zf(f),n.b[h.p]=b++,Ugn(n,h),--A}}for(P=m.c.length+1,s=0;sn.b[O]&&(mvn(i,!0),b5(t,iQn,(TA(),!0)));n.a=null,n.c=null,n.b=null,BH(n.f),BH(n.e),Ron(e)}(this,Yx(n,37),t)},Fjn.Zf=function(n){return Yx(TR(n,Uen(this.d,n.c.length)),10)},EF(_An,"GreedyCycleBreaker",782),Wfn(1386,782,KAn,KP),Fjn.Zf=function(n){var t,e,i,r;for(r=null,t=Yjn,i=new pb(n);i.a0&&esn(n,u,h);for(r=new pb(h);r.a=s){S$(v.b>0),v.a.Xb(v.c=--v.b);break}g.a>h&&(c?(S4(c.b,g.b),c.a=e.Math.max(c.a,g.a),hB(v)):(eD(g.b,l),g.c=e.Math.min(g.c,h),g.a=e.Math.max(g.a,s),c=g))}c||((c=new gv).c=h,c.a=s,ZL(v,c),eD(c.b,l))}for(o=t.b,f=0,p=new pb(r);p.at.p?-1:0}(Yx(n,10),Yx(t,10))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(FAn,"StretchWidthLayerer/1",1394),Wfn(402,1,BAn),Fjn.Nf=function(n,t,e,i,r,c){},Fjn._f=function(n,t,e){return Zgn(this,n,t,e)},Fjn.Mf=function(){this.g=VQ(Zot,HAn,25,this.d,15,1),this.f=VQ(Zot,HAn,25,this.d,15,1)},Fjn.Of=function(n,t){this.e[n]=VQ(Wot,MTn,25,t[n].length,15,1)},Fjn.Pf=function(n,t,e){e[n][t].p=t,this.e[n][t]=t},Fjn.Qf=function(n,t,e,i){Yx(TR(i[n][t].j,e),11).p=this.d++},Fjn.b=0,Fjn.c=0,Fjn.d=0,EF(qAn,"AbstractBarycenterPortDistributor",402),Wfn(1633,1,FMn,od),Fjn.ue=function(n,t){return function(n,t,e){var i,r,c,a;return(c=t.j)!=(a=e.j)?c.g-a.g:(i=n.f[t.p],r=n.f[e.p],0==i&&0==r?0:0==i?-1:0==r?1:$9(i,r))}(this.a,Yx(n,11),Yx(t,11))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(qAn,"AbstractBarycenterPortDistributor/lambda$0$Type",1633),Wfn(817,1,VIn,wX),Fjn.Nf=function(n,t,e,i,r,c){},Fjn.Pf=function(n,t,e){},Fjn.Qf=function(n,t,e,i){},Fjn.Lf=function(){return!1},Fjn.Mf=function(){this.c=this.e.a,this.g=this.f.g},Fjn.Of=function(n,t){t[n][0].c.p=n},Fjn.Rf=function(){return!1},Fjn.ag=function(n,t,e,i){e?Ocn(this,n):(Gcn(this,n,i),Byn(this,n,t)),n.c.length>1&&(ny(hL(Aun(dB(($z(0,n.c.length),Yx(n.c[0],10))),(gjn(),VZn))))?Gln(n,this.d,Yx(this,660)):(XH(),JC(n,this.d)),u4(this.e,n))},Fjn.Sf=function(n,t,e,i){var r,c,a,u,o,s,h;for(t!=$R(e,n.length)&&(c=n[t-(e?1:-1)],lQ(this.f,c,e?(h0(),i3n):(h0(),e3n))),r=n[t][0],h=!i||r.k==(bon(),_zn),s=DV(n[t]),this.ag(s,h,!1,e),a=0,o=new pb(s);o.a"),n0?DG(this.a,n[t-1],n[t]):!e&&t0&&(e+=o.n.a+o.o.a/2,++f),b=new pb(o.j);b.a0&&(e/=f),g=VQ(Jot,rMn,25,i.a.c.length,15,1),u=0,s=new pb(i.a);s.a1&&(ny(hL(Aun(dB(($z(0,n.c.length),Yx(n.c[0],10))),(gjn(),VZn))))?Gln(n,this.d,this):(XH(),JC(n,this.d)),ny(hL(Aun(dB(($z(0,n.c.length),Yx(n.c[0],10))),VZn)))||u4(this.e,n))},EF(qAn,"ModelOrderBarycenterHeuristic",660),Wfn(1803,1,FMn,pd),Fjn.ue=function(n,t){return Non(this.a,Yx(n,10),Yx(t,10))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(qAn,"ModelOrderBarycenterHeuristic/lambda$0$Type",1803),Wfn(1403,1,KAn,yf),Fjn.Yf=function(n){var t;return Yx(n,37),oR(t=vC(Q3n),($un(),ZGn),($jn(),tXn)),t},Fjn.pf=function(n,t){!function(n){run(n,"No crossing minimization",1),Ron(n)}((Yx(n,37),t))},EF(qAn,"NoCrossingMinimizer",1403),Wfn(796,402,BAn,yk),Fjn.$f=function(n,t,e){var i,r,c,a,u,o,s,h,f,l,b;switch(f=this.g,e.g){case 1:for(r=0,c=0,h=new pb(n.j);h.a1&&(r.j==(Ikn(),Eit)?this.b[n]=!0:r.j==qit&&n>0&&(this.b[n-1]=!0))},Fjn.f=0,EF(WIn,"AllCrossingsCounter",1798),Wfn(587,1,{},s2),Fjn.b=0,Fjn.d=0,EF(WIn,"BinaryIndexedTree",587),Wfn(524,1,{},rx),EF(WIn,"CrossingsCounter",524),Wfn(1906,1,FMn,vd),Fjn.ue=function(n,t){return function(n,t,e){return eO(n.d[t.p],n.d[e.p])}(this.a,Yx(n,11),Yx(t,11))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(WIn,"CrossingsCounter/lambda$0$Type",1906),Wfn(1907,1,FMn,md),Fjn.ue=function(n,t){return function(n,t,e){return eO(n.d[t.p],n.d[e.p])}(this.a,Yx(n,11),Yx(t,11))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(WIn,"CrossingsCounter/lambda$1$Type",1907),Wfn(1908,1,FMn,yd),Fjn.ue=function(n,t){return function(n,t,e){return eO(n.d[t.p],n.d[e.p])}(this.a,Yx(n,11),Yx(t,11))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(WIn,"CrossingsCounter/lambda$2$Type",1908),Wfn(1909,1,FMn,kd),Fjn.ue=function(n,t){return function(n,t,e){return eO(n.d[t.p],n.d[e.p])}(this.a,Yx(n,11),Yx(t,11))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(WIn,"CrossingsCounter/lambda$3$Type",1909),Wfn(1910,1,PEn,jd),Fjn.td=function(n){!function(n,t){dD(),eD(n,new mP(t,d9(t.e.c.length+t.g.c.length)))}(this.a,Yx(n,11))},EF(WIn,"CrossingsCounter/lambda$4$Type",1910),Wfn(1911,1,YEn,Ed),Fjn.Mb=function(n){return function(n,t){return dD(),t!=n}(this.a,Yx(n,11))},EF(WIn,"CrossingsCounter/lambda$5$Type",1911),Wfn(1912,1,PEn,Td),Fjn.td=function(n){NP(this,n)},EF(WIn,"CrossingsCounter/lambda$6$Type",1912),Wfn(1913,1,PEn,pS),Fjn.td=function(n){var t;dD(),OX(this.b,(t=this.a,Yx(n,11),t))},EF(WIn,"CrossingsCounter/lambda$7$Type",1913),Wfn(826,1,rSn,xc),Fjn.Lb=function(n){return dD(),O$(Yx(n,11),(Ojn(),RQn))},Fjn.Fb=function(n){return this===n},Fjn.Mb=function(n){return dD(),O$(Yx(n,11),(Ojn(),RQn))},EF(WIn,"CrossingsCounter/lambda$8$Type",826),Wfn(1905,1,{},Md),EF(WIn,"HyperedgeCrossingsCounter",1905),Wfn(467,1,{35:1,467:1},fN),Fjn.wd=function(n){return function(n,t){return n.et.e?1:n.ft.f?1:W5(n)-W5(t)}(this,Yx(n,467))},Fjn.b=0,Fjn.c=0,Fjn.e=0,Fjn.f=0;var n4n=EF(WIn,"HyperedgeCrossingsCounter/Hyperedge",467);Wfn(362,1,{35:1,362:1},gH),Fjn.wd=function(n){return function(n,t){return n.ct.c?1:n.bt.b?1:n.a!=t.a?W5(n.a)-W5(t.a):n.d==(GW(),e4n)&&t.d==t4n?-1:n.d==t4n&&t.d==e4n?1:0}(this,Yx(n,362))},Fjn.b=0,Fjn.c=0;var t4n,e4n,i4n=EF(WIn,"HyperedgeCrossingsCounter/HyperedgeCorner",362);Wfn(523,22,{3:1,35:1,22:1,523:1},gS);var r4n,c4n,a4n,u4n,o4n,s4n=X1(WIn,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",523,u_n,(function(){return GW(),x4(Gy(s4n,1),XEn,523,0,[e4n,t4n])}),(function(n){return GW(),rZ((NW(),r4n),n)}));Wfn(1405,1,KAn,hf),Fjn.Yf=function(n){return Yx(Aun(Yx(n,37),(Ojn(),bQn)),21).Hc((edn(),SVn))?c4n:null},Fjn.pf=function(n,t){!function(n,t,e){var i;for(run(e,"Interactive node placement",1),n.a=Yx(Aun(t,(Ojn(),zQn)),304),i=new pb(t.b);i.a1},EF(GAn,"NetworkSimplexPlacer/lambda$18$Type",1431),Wfn(1432,1,PEn,vH),Fjn.td=function(n){!function(n,t,e,i,r){hz(),uwn(NE(LE($E(xE(new tv,0),r.d.e-n),t),r.d)),uwn(NE(LE($E(xE(new tv,0),e-r.a.e),r.a),i))}(this.c,this.b,this.d,this.a,Yx(n,401))},Fjn.c=0,Fjn.d=0,EF(GAn,"NetworkSimplexPlacer/lambda$19$Type",1432),Wfn(1415,1,{},Xc),Fjn.Kb=function(n){return hz(),new SR(null,new Nz(Yx(n,29).a,16))},EF(GAn,"NetworkSimplexPlacer/lambda$2$Type",1415),Wfn(1433,1,PEn,Cd),Fjn.td=function(n){!function(n,t){hz(),t.n.b+=n}(this.a,Yx(n,11))},Fjn.a=0,EF(GAn,"NetworkSimplexPlacer/lambda$20$Type",1433),Wfn(1434,1,{},Wc),Fjn.Kb=function(n){return hz(),new SR(null,new Nz(Yx(n,29).a,16))},EF(GAn,"NetworkSimplexPlacer/lambda$21$Type",1434),Wfn(1435,1,PEn,Od),Fjn.td=function(n){RO(this.a,Yx(n,10))},EF(GAn,"NetworkSimplexPlacer/lambda$22$Type",1435),Wfn(1436,1,YEn,Vc),Fjn.Mb=function(n){return SL(n)},EF(GAn,"NetworkSimplexPlacer/lambda$23$Type",1436),Wfn(1437,1,{},Qc),Fjn.Kb=function(n){return hz(),new SR(null,new Nz(Yx(n,29).a,16))},EF(GAn,"NetworkSimplexPlacer/lambda$24$Type",1437),Wfn(1438,1,YEn,Ad),Fjn.Mb=function(n){return function(n,t){return 2==n.j[t.p]}(this.a,Yx(n,10))},EF(GAn,"NetworkSimplexPlacer/lambda$25$Type",1438),Wfn(1439,1,PEn,yS),Fjn.td=function(n){!function(n,t,e){var i,r,c;for(r=new $K(bA(a7(e).a.Kc(),new h));Vfn(r);)ZW(i=Yx(kV(r),17))||!ZW(i)&&i.c.i.c==i.d.i.c||(c=Cbn(n,i,e,new yv)).c.length>1&&(t.c[t.c.length]=c)}(this.a,this.b,Yx(n,10))},EF(GAn,"NetworkSimplexPlacer/lambda$26$Type",1439),Wfn(1440,1,YEn,Yc),Fjn.Mb=function(n){return hz(),!ZW(Yx(n,17))},EF(GAn,"NetworkSimplexPlacer/lambda$27$Type",1440),Wfn(1441,1,YEn,Jc),Fjn.Mb=function(n){return hz(),!ZW(Yx(n,17))},EF(GAn,"NetworkSimplexPlacer/lambda$28$Type",1441),Wfn(1442,1,{},$d),Fjn.Ce=function(n,t){return AO(this.a,Yx(n,29),Yx(t,29))},EF(GAn,"NetworkSimplexPlacer/lambda$29$Type",1442),Wfn(1416,1,{},Zc),Fjn.Kb=function(n){return hz(),new SR(null,new nF(new $K(bA(o7(Yx(n,10)).a.Kc(),new h))))},EF(GAn,"NetworkSimplexPlacer/lambda$3$Type",1416),Wfn(1417,1,YEn,na),Fjn.Mb=function(n){return hz(),function(n){return hz(),!(ZW(n)||!ZW(n)&&n.c.i.c==n.d.i.c)}(Yx(n,17))},EF(GAn,"NetworkSimplexPlacer/lambda$4$Type",1417),Wfn(1418,1,PEn,Ld),Fjn.td=function(n){!function(n,t){var i,r,c,a,u,o,s,h,f,l,b;i=HA(new ev,n.f),o=n.i[t.c.i.p],l=n.i[t.d.i.p],u=t.c,f=t.d,a=u.a.b,h=f.a.b,o.b||(a+=u.n.b),l.b||(h+=f.n.b),s=oG(e.Math.max(0,a-h)),c=oG(e.Math.max(0,h-a)),b=e.Math.max(1,Yx(Aun(t,(gjn(),P0n)),19).a)*GX(t.c.i.k,t.d.i.k),r=new vS(uwn(NE(LE($E(xE(new tv,b),c),i),Yx(BF(n.k,t.c),121))),uwn(NE(LE($E(xE(new tv,b),s),i),Yx(BF(n.k,t.d),121)))),n.c[t.p]=r}(this.a,Yx(n,17))},EF(GAn,"NetworkSimplexPlacer/lambda$5$Type",1418),Wfn(1419,1,{},ta),Fjn.Kb=function(n){return hz(),new SR(null,new Nz(Yx(n,29).a,16))},EF(GAn,"NetworkSimplexPlacer/lambda$6$Type",1419),Wfn(1420,1,YEn,ea),Fjn.Mb=function(n){return hz(),Yx(n,10).k==(bon(),Hzn)},EF(GAn,"NetworkSimplexPlacer/lambda$7$Type",1420),Wfn(1421,1,{},ia),Fjn.Kb=function(n){return hz(),new SR(null,new nF(new $K(bA(a7(Yx(n,10)).a.Kc(),new h))))},EF(GAn,"NetworkSimplexPlacer/lambda$8$Type",1421),Wfn(1422,1,YEn,ra),Fjn.Mb=function(n){return hz(),function(n){return!ZW(n)&&n.c.i.c==n.d.i.c}(Yx(n,17))},EF(GAn,"NetworkSimplexPlacer/lambda$9$Type",1422),Wfn(1404,1,KAn,Sf),Fjn.Yf=function(n){return Yx(Aun(Yx(n,37),(Ojn(),bQn)),21).Hc((edn(),SVn))?b4n:null},Fjn.pf=function(n,t){!function(n,t){var i,r,c,a,u,o,s,h,f,l;for(run(t,"Simple node placement",1),l=Yx(Aun(n,(Ojn(),zQn)),304),o=0,a=new pb(n.b);a.a0?(b=(w-1)*e,u&&(b+=i),h&&(b+=i),b0&&(k-=d),Qmn(u,k),l=0,w=new pb(u.a);w.a0),o.a.Xb(o.c=--o.b)),s=.4*r*l,!a&&o.b"+this.b+" ("+((null!=(n=this.c).f?n.f:""+n.g)+")");var n},Fjn.d=0,EF(VAn,"HyperEdgeSegmentDependency",129),Wfn(520,22,{3:1,35:1,22:1,520:1},MS);var B4n,H4n,q4n,G4n,z4n,U4n,X4n,W4n,V4n=X1(VAn,"HyperEdgeSegmentDependency/DependencyType",520,u_n,(function(){return iQ(),x4(Gy(V4n,1),XEn,520,0,[_4n,K4n])}),(function(n){return iQ(),rZ((LW(),B4n),n)}));Wfn(1815,1,{},xd),EF(VAn,"HyperEdgeSegmentSplitter",1815),Wfn(1816,1,{},Ik),Fjn.a=0,Fjn.b=0,EF(VAn,"HyperEdgeSegmentSplitter/AreaRating",1816),Wfn(329,1,{329:1},Lx),Fjn.a=0,Fjn.b=0,Fjn.c=0,EF(VAn,"HyperEdgeSegmentSplitter/FreeArea",329),Wfn(1817,1,FMn,ja),Fjn.ue=function(n,t){return function(n,t){return $9(n.c-n.s,t.c-t.s)}(Yx(n,112),Yx(t,112))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(VAn,"HyperEdgeSegmentSplitter/lambda$0$Type",1817),Wfn(1818,1,PEn,yH),Fjn.td=function(n){QX(this.a,this.d,this.c,this.b,Yx(n,112))},Fjn.b=0,EF(VAn,"HyperEdgeSegmentSplitter/lambda$1$Type",1818),Wfn(1819,1,{},Ea),Fjn.Kb=function(n){return new SR(null,new Nz(Yx(n,112).e,16))},EF(VAn,"HyperEdgeSegmentSplitter/lambda$2$Type",1819),Wfn(1820,1,{},Ta),Fjn.Kb=function(n){return new SR(null,new Nz(Yx(n,112).j,16))},EF(VAn,"HyperEdgeSegmentSplitter/lambda$3$Type",1820),Wfn(1821,1,{},Ma),Fjn.Fe=function(n){return ty(fL(n))},EF(VAn,"HyperEdgeSegmentSplitter/lambda$4$Type",1821),Wfn(655,1,{},gF),Fjn.a=0,Fjn.b=0,Fjn.c=0,EF(VAn,"OrthogonalRoutingGenerator",655),Wfn(1638,1,{},Sa),Fjn.Kb=function(n){return new SR(null,new Nz(Yx(n,112).e,16))},EF(VAn,"OrthogonalRoutingGenerator/lambda$0$Type",1638),Wfn(1639,1,{},Pa),Fjn.Kb=function(n){return new SR(null,new Nz(Yx(n,112).j,16))},EF(VAn,"OrthogonalRoutingGenerator/lambda$1$Type",1639),Wfn(661,1,{}),EF(QAn,"BaseRoutingDirectionStrategy",661),Wfn(1807,661,{},Ov),Fjn.dg=function(n,t,i){var r,c,a,u,o,s,h,f,l,b,w,d,g;if(!n.r||n.q)for(f=t+n.o*i,h=new pb(n.n);h.aPPn&&(c=n,r=new QS(l,a=f),KD(u.a,r),kpn(this,u,c,r,!1),(b=n.r)&&(r=new QS(w=ty(fL(ken(b.e,0))),a),KD(u.a,r),kpn(this,u,c,r,!1),c=b,r=new QS(w,a=t+b.o*i),KD(u.a,r),kpn(this,u,c,r,!1)),r=new QS(g,a),KD(u.a,r),kpn(this,u,c,r,!1)))},Fjn.eg=function(n){return n.i.n.a+n.n.a+n.a.a},Fjn.fg=function(){return Ikn(),Bit},Fjn.gg=function(){return Ikn(),Tit},EF(QAn,"NorthToSouthRoutingStrategy",1807),Wfn(1808,661,{},Av),Fjn.dg=function(n,t,i){var r,c,a,u,o,s,h,f,l,b,w,d,g;if(!n.r||n.q)for(f=t-n.o*i,h=new pb(n.n);h.aPPn&&(c=n,r=new QS(l,a=f),KD(u.a,r),kpn(this,u,c,r,!1),(b=n.r)&&(r=new QS(w=ty(fL(ken(b.e,0))),a),KD(u.a,r),kpn(this,u,c,r,!1),c=b,r=new QS(w,a=t-b.o*i),KD(u.a,r),kpn(this,u,c,r,!1)),r=new QS(g,a),KD(u.a,r),kpn(this,u,c,r,!1)))},Fjn.eg=function(n){return n.i.n.a+n.n.a+n.a.a},Fjn.fg=function(){return Ikn(),Tit},Fjn.gg=function(){return Ikn(),Bit},EF(QAn,"SouthToNorthRoutingStrategy",1808),Wfn(1806,661,{},$v),Fjn.dg=function(n,t,i){var r,c,a,u,o,s,h,f,l,b,w,d,g;if(!n.r||n.q)for(f=t+n.o*i,h=new pb(n.n);h.aPPn&&(c=n,r=new QS(a=f,l),KD(u.a,r),kpn(this,u,c,r,!0),(b=n.r)&&(r=new QS(a,w=ty(fL(ken(b.e,0)))),KD(u.a,r),kpn(this,u,c,r,!0),c=b,r=new QS(a=t+b.o*i,w),KD(u.a,r),kpn(this,u,c,r,!0)),r=new QS(a,g),KD(u.a,r),kpn(this,u,c,r,!0)))},Fjn.eg=function(n){return n.i.n.b+n.n.b+n.a.b},Fjn.fg=function(){return Ikn(),Eit},Fjn.gg=function(){return Ikn(),qit},EF(QAn,"WestToEastRoutingStrategy",1806),Wfn(813,1,{},Tvn),Fjn.Ib=function(){return Gun(this.a)},Fjn.b=0,Fjn.c=!1,Fjn.d=!1,Fjn.f=0,EF(JAn,"NubSpline",813),Wfn(407,1,{407:1},Pwn,Qq),EF(JAn,"NubSpline/PolarCP",407),Wfn(1453,1,KAn,grn),Fjn.Yf=function(n){return function(n){var t,e;return T3(t=new fX,H4n),(e=Yx(Aun(n,(Ojn(),bQn)),21)).Hc((edn(),$Vn))&&T3(t,U4n),e.Hc(EVn)&&T3(t,q4n),e.Hc(OVn)&&T3(t,z4n),e.Hc(MVn)&&T3(t,G4n),t}(Yx(n,37))},Fjn.pf=function(n,t){!function(n,t,i){var r,c,a,u,o,s,h,f,l,b,w,d,g,p,v,m,y,k,j,E,T,M,S,P,I;if(run(i,"Spline edge routing",1),0==t.b.c.length)return t.f.a=0,void Ron(i);v=ty(fL(Aun(t,(gjn(),z0n)))),o=ty(fL(Aun(t,K0n))),u=ty(fL(Aun(t,x0n))),T=Yx(Aun(t,v1n),336)==($6(),v3n),E=ty(fL(Aun(t,m1n))),n.d=t,n.j.c=VQ(UKn,iEn,1,0,5,1),n.a.c=VQ(UKn,iEn,1,0,5,1),U_(n.k),f=oI((s=Yx(TR(t.b,0),29)).a,(ywn(),D4n)),l=oI((d=Yx(TR(t.b,t.b.c.length-1),29)).a,D4n),g=new pb(t.b),p=null,I=0;do{for(Nkn(n,p,m=g.a0?(h=0,p&&(h+=o),h+=(M-1)*u,m&&(h+=o),T&&m&&(h=e.Math.max(h,hwn(m,u,v,E))),h("+this.c+") "+this.b},Fjn.c=0,EF(JAn,"SplineEdgeRouter/Dependency",268),Wfn(455,22,{3:1,35:1,22:1,455:1},SS);var Q4n,Y4n,J4n,Z4n,n5n,t5n=X1(JAn,"SplineEdgeRouter/SideToProcess",455,u_n,(function(){return Yq(),x4(Gy(t5n,1),XEn,455,0,[X4n,W4n])}),(function(n){return Yq(),rZ((RW(),Q4n),n)}));Wfn(1454,1,YEn,ya),Fjn.Mb=function(n){return kwn(),!Yx(n,128).o},EF(JAn,"SplineEdgeRouter/lambda$0$Type",1454),Wfn(1455,1,{},ma),Fjn.Ge=function(n){return kwn(),Yx(n,128).v+1},EF(JAn,"SplineEdgeRouter/lambda$1$Type",1455),Wfn(1456,1,PEn,PS),Fjn.td=function(n){!function(n,t,e){xB(n.b,Yx(e.b,17),t)}(this.a,this.b,Yx(n,46))},EF(JAn,"SplineEdgeRouter/lambda$2$Type",1456),Wfn(1457,1,PEn,IS),Fjn.td=function(n){!function(n,t,e){xB(n.b,Yx(e.b,17),t)}(this.a,this.b,Yx(n,46))},EF(JAn,"SplineEdgeRouter/lambda$3$Type",1457),Wfn(128,1,{35:1,128:1},Ksn,qmn),Fjn.wd=function(n){return function(n,t){return n.s-t.s}(this,Yx(n,128))},Fjn.b=0,Fjn.e=!1,Fjn.f=0,Fjn.g=0,Fjn.j=!1,Fjn.k=!1,Fjn.n=0,Fjn.o=!1,Fjn.p=!1,Fjn.q=!1,Fjn.s=0,Fjn.u=0,Fjn.v=0,Fjn.F=0,EF(JAn,"SplineSegment",128),Wfn(459,1,{459:1},ka),Fjn.a=0,Fjn.b=!1,Fjn.c=!1,Fjn.d=!1,Fjn.e=!1,Fjn.f=0,EF(JAn,"SplineSegment/EdgeInformation",459),Wfn(1234,1,{},da),EF(i$n,vPn,1234),Wfn(1235,1,FMn,ga),Fjn.ue=function(n,t){return function(n,t){var e,i,r;return 0==(e=Yx(Aun(t,(cln(),U5n)),19).a-Yx(Aun(n,U5n),19).a)?(i=yN(dO(Yx(Aun(n,(ryn(),b5n)),8)),Yx(Aun(n,w5n),8)),r=yN(dO(Yx(Aun(t,b5n),8)),Yx(Aun(t,w5n),8)),$9(i.a*i.b,r.a*r.b)):e}(Yx(n,135),Yx(t,135))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(i$n,mPn,1235),Wfn(1233,1,{},fj),EF(i$n,"MrTree",1233),Wfn(393,22,{3:1,35:1,22:1,393:1,246:1,234:1},CS),Fjn.Kf=function(){return _hn(this)},Fjn.Xf=function(){return _hn(this)};var e5n,i5n=X1(i$n,"TreeLayoutPhases",393,u_n,(function(){return Krn(),x4(Gy(i5n,1),XEn,393,0,[Y4n,J4n,Z4n,n5n])}),(function(n){return Krn(),rZ((WY(),e5n),n)}));Wfn(1130,209,VSn,wN),Fjn.Ze=function(n,t){var i,r,c,a,u,o;for(ny(hL(jln(n,(cln(),H5n))))||rG(new Xb((dT(),new Xm(n)))),o4(u=new nQ,n),b5(u,(ryn(),E5n),n),function(n,t,i){var r,c,a,u,o;for(a=0,c=new UO((!n.a&&(n.a=new m_(uct,n,10,11)),n.a));c.e!=c.i.gc();)u="",0==(!(r=Yx(hen(c),33)).n&&(r.n=new m_(act,r,1,7)),r.n).i||(u=Yx(c1((!r.n&&(r.n=new m_(act,r,1,7)),r.n),0),137).a),o4(o=new Z5(a++,t,u),r),b5(o,(ryn(),E5n),r),o.e.b=r.j+r.f/2,o.f.a=e.Math.max(r.g,1),o.e.a=r.i+r.g/2,o.f.b=e.Math.max(r.f,1),KD(t.b,o),Ysn(i.f,r,o)}(n,u,o=new rp),function(n,t,e){var i,r,c,a,u,o,s;for(a=new UO((!n.a&&(n.a=new m_(uct,n,10,11)),n.a));a.e!=a.i.gc();)for(r=new $K(bA(lbn(c=Yx(hen(a),33)).a.Kc(),new h));Vfn(r);)Rfn(i=Yx(kV(r),79))||Rfn(i)||Whn(i)||(o=Yx(eI(Dq(e.f,c)),86),s=Yx(BF(e,iun(Yx(c1((!i.c&&(i.c=new AN(Zrt,i,5,8)),i.c),0),82))),86),o&&s&&(b5(u=new iq(o,s),(ryn(),E5n),i),o4(u,i),KD(o.d,u),KD(s.b,u),KD(t.a,u)))}(n,u,o),a=u,r=new pb(c=gpn(this.a,a));r.al&&(P=0,I+=f+E,f=0),gbn(k,u,P,I),t=e.Math.max(t,P+j.a),f=e.Math.max(f,j.b),P+=j.a+E;for(y=new rp,i=new rp,M=new pb(n);M.a"+Qz(this.c):"e_"+W5(this)},EF(r$n,"TEdge",188),Wfn(135,134,{3:1,135:1,94:1,134:1},nQ),Fjn.Ib=function(){var n,t,e,i,r;for(r=null,i=Ztn(this.b,0);i.b!=i.d.c;)r+=(null==(e=Yx(IX(i),86)).c||0==e.c.length?"n_"+e.g:"n_"+e.c)+"\n";for(t=Ztn(this.a,0);t.b!=t.d.c;)r+=((n=Yx(IX(t),188)).b&&n.c?Qz(n.b)+"->"+Qz(n.c):"e_"+W5(n))+"\n";return r};var r5n=EF(r$n,"TGraph",135);Wfn(633,502,{3:1,502:1,633:1,94:1,134:1}),EF(r$n,"TShape",633),Wfn(86,633,{3:1,502:1,86:1,633:1,94:1,134:1},Z5),Fjn.Ib=function(){return Qz(this)};var c5n,a5n,u5n,o5n,s5n,h5n,f5n=EF(r$n,"TNode",86);Wfn(255,1,$En,Dd),Fjn.Jc=function(n){XW(this,n)},Fjn.Kc=function(){return new Rd(Ztn(this.a.d,0))},EF(r$n,"TNode/2",255),Wfn(358,1,fEn,Rd),Fjn.Nb=function(n){I_(this,n)},Fjn.Pb=function(){return Yx(IX(this.a),188).c},Fjn.Ob=function(){return ij(this.a)},Fjn.Qb=function(){BZ(this.a)},EF(r$n,"TNode/2/1",358),Wfn(1840,1,dIn,bN),Fjn.pf=function(n,t){ivn(this,Yx(n,135),t)},EF(c$n,"FanProcessor",1840),Wfn(327,22,{3:1,35:1,22:1,327:1,234:1},OS),Fjn.Kf=function(){switch(this.g){case 0:return new sm;case 1:return new bN;case 2:return new Oa;case 3:return new Ia;case 4:return new $a;case 5:return new La;default:throw hp(new Qm(FIn+(null!=this.f?this.f:""+this.g)))}};var l5n,b5n,w5n,d5n,g5n,p5n,v5n,m5n,y5n,k5n,j5n,E5n,T5n,M5n,S5n,P5n,I5n,C5n,O5n,A5n,$5n,L5n,N5n,x5n,D5n,R5n,K5n,_5n,F5n,B5n,H5n,q5n,G5n,z5n,U5n,X5n,W5n,V5n,Q5n,Y5n,J5n,Z5n=X1(c$n,BIn,327,u_n,(function(){return ysn(),x4(Gy(Z5n,1),XEn,327,0,[h5n,a5n,o5n,u5n,s5n,c5n])}),(function(n){return ysn(),rZ((M1(),l5n),n)}));Wfn(1843,1,dIn,Ia),Fjn.pf=function(n,t){Pln(this,Yx(n,135),t)},Fjn.a=0,EF(c$n,"LevelHeightProcessor",1843),Wfn(1844,1,$En,Ca),Fjn.Jc=function(n){XW(this,n)},Fjn.Kc=function(){return XH(),sE(),PFn},EF(c$n,"LevelHeightProcessor/1",1844),Wfn(1841,1,dIn,Oa),Fjn.pf=function(n,t){Nsn(this,Yx(n,135),t)},Fjn.a=0,EF(c$n,"NeighborsProcessor",1841),Wfn(1842,1,$En,Aa),Fjn.Jc=function(n){XW(this,n)},Fjn.Kc=function(){return XH(),sE(),PFn},EF(c$n,"NeighborsProcessor/1",1842),Wfn(1845,1,dIn,$a),Fjn.pf=function(n,t){Sln(this,Yx(n,135),t)},Fjn.a=0,EF(c$n,"NodePositionProcessor",1845),Wfn(1839,1,dIn,sm),Fjn.pf=function(n,t){!function(n,t){var e,i,r,c,a,u,o;for(n.a.c=VQ(UKn,iEn,1,0,5,1),i=Ztn(t.b,0);i.b!=i.d.c;)0==(e=Yx(IX(i),86)).b.b&&(b5(e,(ryn(),C5n),(TA(),!0)),eD(n.a,e));switch(n.a.c.length){case 0:b5(r=new Z5(0,t,"DUMMY_ROOT"),(ryn(),C5n),(TA(),!0)),b5(r,g5n,!0),KD(t.b,r);break;case 1:break;default:for(c=new Z5(0,t,"SUPER_ROOT"),u=new pb(n.a);u.aw$n&&(c-=w$n),h=(o=Yx(jln(r,Ott),8)).a,l=o.b+n,(a=e.Math.atan2(l,h))<0&&(a+=w$n),(a+=t)>w$n&&(a-=w$n),XC(),o0(1e-10),e.Math.abs(c-a)<=1e-10||c==a||isNaN(c)&&isNaN(a)?0:ca?1:QI(isNaN(c),isNaN(a))}(this.a,this.b,Yx(n,33),Yx(t,33))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},Fjn.a=0,Fjn.b=0,EF(b$n,"RadialUtil/lambda$0$Type",549),Wfn(1375,1,dIn,Da),Fjn.pf=function(n,t){!function(n,t){var i,r,c,a,u,o,s,h,f,l,b,w,d,g,p,v;for(run(t,"Calculate Graph Size",1),t.n&&n&&nU(t,RU(n),(P6(),jrt)),o=wPn,s=wPn,a=d$n,u=d$n,l=new UO((!n.a&&(n.a=new m_(uct,n,10,11)),n.a));l.e!=l.i.gc();)d=(h=Yx(hen(l),33)).i,g=h.j,v=h.g,r=h.f,c=Yx(jln(h,(Cjn(),Unt)),142),o=e.Math.min(o,d-c.b),s=e.Math.min(s,g-c.d),a=e.Math.max(a,d+v+c.c),u=e.Math.max(u,g+r+c.a);for(b=new QS(o-(w=Yx(jln(n,(Cjn(),utt)),116)).b,s-w.d),f=new UO((!n.a&&(n.a=new m_(uct,n,10,11)),n.a));f.e!=f.i.gc();)L1(h=Yx(hen(f),33),h.i-b.a),N1(h,h.j-b.b);p=a-o+(w.b+w.c),i=u-s+(w.d+w.a),$1(n,p),A1(n,i),t.n&&n&&nU(t,RU(n),(P6(),jrt))}(Yx(n,33),t)},EF(g$n,"CalculateGraphSize",1375),Wfn(442,22,{3:1,35:1,22:1,442:1,234:1},NS),Fjn.Kf=function(){switch(this.g){case 0:return new Ba;case 1:return new xa;case 2:return new Da;default:throw hp(new Qm(FIn+(null!=this.f?this.f:""+this.g)))}};var v6n,m6n,y6n,k6n=X1(g$n,BIn,442,u_n,(function(){return m7(),x4(Gy(k6n,1),XEn,442,0,[g6n,w6n,d6n])}),(function(n){return m7(),rZ((KQ(),v6n),n)}));Wfn(645,1,{}),Fjn.e=1,Fjn.g=0,EF(p$n,"AbstractRadiusExtensionCompaction",645),Wfn(1772,645,{},rL),Fjn.hg=function(n){var t,e,i,r,c,a,u,o,s;for(this.c=Yx(jln(n,(eL(),s6n)),33),function(n,t){n.f=t}(this,this.c),this.d=Ven(Yx(jln(n,(_rn(),Y6n)),293)),(o=Yx(jln(n,_6n),19))&&Bl(this,o.a),Hl(this,(vB(u=fL(jln(n,(Cjn(),Xtt)))),u)),s=idn(this.c),this.d&&this.d.lg(s),function(n,t){var e,i,r;for(i=new pb(t);i.ai?1:0}(Yx(n,33),Yx(t,33))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(x$n,"RectPackingLayoutProvider/lambda$0$Type",1137),Wfn(1256,1,{},Nx),Fjn.a=0,Fjn.c=!1,EF(D$n,"AreaApproximation",1256);var l8n,b8n,w8n,d8n=aR(D$n,"BestCandidateFilter");Wfn(638,1,{526:1},Qa),Fjn.mg=function(n,t,i){var r,c,a,u,o,s;for(s=new ip,a=JTn,o=new pb(n);o.a1)for(i=new pb(n.a);i.a>>28]|t[n>>24&15]<<4|t[n>>20&15]<<8|t[n>>16&15]<<12|t[n>>12&15]<<16|t[n>>8&15]<<20|t[n>>4&15]<<24|t[15&n]<<28);var n,t},Fjn.Jf=function(n){var t,e,i;for(e=0;e0&&f8((Lz(t-1,n.length),n.charCodeAt(t-1)),TIn);)--t;if(e>=t)throw hp(new Qm("The given string does not contain any numbers."));if(2!=(i=Ogn(n.substr(e,t-e),",|;|\r|\n")).length)throw hp(new Qm("Exactly two numbers are expected, "+i.length+" were found."));try{this.a=gon(Wun(i[0])),this.b=gon(Wun(i[1]))}catch(n){throw CO(n=j4(n),127)?hp(new Qm(MIn+n)):hp(n)}},Fjn.Ib=function(){return"("+this.a+","+this.b+")"},Fjn.a=0,Fjn.b=0;var B7n=EF(SIn,"KVector",8);Wfn(74,68,{3:1,4:1,20:1,28:1,52:1,14:1,68:1,15:1,74:1,414:1},Nv,kk,_$),Fjn.Pc=function(){return function(n){var t,e,i;for(t=0,i=VQ(B7n,TEn,8,n.b,0,1),e=Ztn(n,0);e.b!=e.d.c;)i[t++]=Yx(IX(e),8);return i}(this)},Fjn.Jf=function(n){var t,e,i,r,c;e=Ogn(n,",|;|\\(|\\)|\\[|\\]|\\{|\\}| |\t|\n"),BH(this);try{for(t=0,r=0,i=0,c=0;t0&&(r%2==0?i=gon(e[t]):c=gon(e[t]),r>0&&r%2!=0&&KD(this,new QS(i,c)),++r),++t}catch(n){throw CO(n=j4(n),127)?hp(new Qm("The given string does not match the expected format for vectors."+n)):hp(n)}},Fjn.Ib=function(){var n,t,e;for(n=new SA("("),t=Ztn(this,0);t.b!=t.d.c;)yI(n,(e=Yx(IX(t),8)).a+","+e.b),t.b!=t.d.c&&(n.a+="; ");return(n.a+=")",n).a};var H7n,q7n,G7n,z7n,U7n,X7n,W7n=EF(SIn,"KVectorChain",74);Wfn(248,22,{3:1,35:1,22:1,248:1},YS);var V7n,Q7n,Y7n,J7n,Z7n,nnt,tnt,ent,int,rnt,cnt,ant,unt,ont,snt,hnt,fnt,lnt,bnt,wnt=X1(MLn,"Alignment",248,u_n,(function(){return qen(),x4(Gy(wnt,1),XEn,248,0,[H7n,z7n,U7n,X7n,q7n,G7n])}),(function(n){return qen(),rZ((m1(),V7n),n)}));Wfn(979,1,fSn,Af),Fjn.Qe=function(n){Epn(n)},EF(MLn,"BoxLayouterOptions",979),Wfn(980,1,{},xu),Fjn.$e=function(){return new Gu},Fjn._e=function(n){},EF(MLn,"BoxLayouterOptions/BoxFactory",980),Wfn(291,22,{3:1,35:1,22:1,291:1},JS);var dnt,gnt,pnt,vnt,mnt,ynt,knt,jnt,Ent,Tnt,Mnt,Snt,Pnt,Int,Cnt,Ont,Ant,$nt,Lnt,Nnt,xnt,Dnt,Rnt,Knt,_nt,Fnt,Bnt,Hnt,qnt,Gnt,znt,Unt,Xnt,Wnt,Vnt,Qnt,Ynt,Jnt,Znt,ntt,ttt,ett,itt,rtt,ctt,att,utt,ott,stt,htt,ftt,ltt,btt,wtt,dtt,gtt,ptt,vtt,mtt,ytt,ktt,jtt,Ett,Ttt,Mtt,Stt,Ptt,Itt,Ctt,Ott,Att,$tt,Ltt,Ntt,xtt,Dtt,Rtt,Ktt,_tt,Ftt,Btt,Htt,qtt,Gtt,ztt,Utt,Xtt,Wtt,Vtt,Qtt,Ytt,Jtt,Ztt,net,tet,eet,iet=X1(MLn,"ContentAlignment",291,u_n,(function(){return dan(),x4(Gy(iet,1),XEn,291,0,[bnt,lnt,fnt,snt,ont,hnt])}),(function(n){return dan(),rZ((v1(),dnt),n)}));Wfn(684,1,fSn,$f),Fjn.Qe=function(n){j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,CLn),""),"Layout Algorithm"),"Select a specific layout algorithm."),(lsn(),N7n)),fFn),J9((Qtn(),T7n))))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,OLn),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),L7n),y7n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,sAn),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),vnt),O7n),wnt),J9(E7n)))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,hPn),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),C7n),H_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,ALn),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),L7n),W7n),J9(k7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,jAn),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),Mnt),A7n),iet),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,oAn),""),"Debug Mode"),"Whether additional debug information shall be generated."),(TA(),!1)),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,bAn),""),_Sn),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),Int),O7n),oet),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,xOn),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),Lnt),O7n),Eet),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,U$n),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,OOn),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),Knt),O7n),Bet),tK(T7n,x4(Gy(D7n,1),XEn,175,0,[E7n]))))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,fPn),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),ott),L7n),Zzn),tK(T7n,x4(Gy(D7n,1),XEn,175,0,[E7n]))))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,RPn),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,NAn),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,FPn),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,KPn),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),jtt),O7n),kit),J9(E7n)))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,AAn),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),L7n),B7n),tK(E7n,x4(Gy(D7n,1),XEn,175,0,[M7n,j7n]))))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,$Pn),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),$7n),U_n),tK(E7n,x4(Gy(D7n,1),XEn,175,0,[k7n]))))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,xPn),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),$7n),U_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,DPn),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,EAn),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),znt),L7n),W7n),J9(k7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,SAn),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),I7n),D_n),J9(E7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,PAn),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),I7n),D_n),J9(E7n)))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,$Ln),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),L7n),tst),tK(T7n,x4(Gy(D7n,1),XEn,175,0,[j7n]))))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,$An),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),Xnt),L7n),Rzn),J9(E7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,aAn),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),I7n),D_n),tK(E7n,x4(Gy(D7n,1),XEn,175,0,[k7n,M7n,j7n]))))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,LLn),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),C7n),H_n),J9(E7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,NLn),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,xLn),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),d9(100)),$7n),U_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,DLn),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,RLn),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),d9(4e3)),$7n),U_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,KLn),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),d9(400)),$7n),U_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,_Ln),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,FLn),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,BLn),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,HLn),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,ILn),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),jnt),O7n),yrt),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,WOn),DOn),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),C7n),H_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,VOn),DOn),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),C7n),H_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,oPn),DOn),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),C7n),H_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,QOn),DOn),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),C7n),H_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,NPn),DOn),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),C7n),H_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,YOn),DOn),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),C7n),H_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,JOn),DOn),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),C7n),H_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,tAn),DOn),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),C7n),H_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,ZOn),DOn),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),C7n),H_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,nAn),DOn),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),C7n),H_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,LPn),DOn),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),C7n),H_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,eAn),DOn),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),C7n),H_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,iAn),DOn),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),C7n),H_n),tK(T7n,x4(Gy(D7n,1),XEn,175,0,[E7n]))))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,rAn),DOn),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),L7n),Mrt),tK(E7n,x4(Gy(D7n,1),XEn,175,0,[k7n,M7n,j7n]))))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,LAn),DOn),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),Qtt),L7n),Rzn),J9(T7n)))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,OAn),ULn),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),$7n),U_n),tK(T7n,x4(Gy(D7n,1),XEn,175,0,[E7n]))))),xU(n,OAn,CAn,ltt),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,CAn),ULn),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),htt),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,wAn),XLn),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),Vnt),L7n),Zzn),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,qPn),XLn),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),Ynt),A7n),cit),tK(E7n,x4(Gy(D7n,1),XEn,175,0,[j7n]))))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,pAn),WLn),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),wtt),O7n),bit),J9(E7n)))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,vAn),WLn),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),O7n),bit),J9(E7n)))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,mAn),WLn),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),O7n),bit),J9(E7n)))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,yAn),WLn),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),O7n),bit),J9(E7n)))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,kAn),WLn),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),O7n),bit),J9(E7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,HPn),VLn),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),Znt),A7n),lrt),J9(E7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,BPn),VLn),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),rtt),A7n),vrt),J9(E7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,eIn),VLn),"Node Size Minimum"),"The minimal size to which a node can be reduced."),ett),L7n),B7n),J9(E7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,lAn),VLn),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),I7n),D_n),J9(T7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,TAn),UOn),"Edge Label Placement"),"Gives a hint on where to put edge labels."),Ant),O7n),det),J9(j7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,_Pn),UOn),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),I7n),D_n),J9(j7n)))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,qLn),"font"),"Font Name"),"Font name used for a label."),N7n),fFn),J9(j7n)))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,GLn),"font"),"Font Size"),"Font size used for a label."),$7n),U_n),J9(j7n)))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,IAn),QLn),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),L7n),B7n),J9(M7n)))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,MAn),QLn),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),$7n),U_n),J9(M7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,uAn),QLn),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),Ctt),O7n),trt),J9(M7n)))),j7(n,new isn(dk(wk(gk(sk(bk(fk(lk(new Fu,cAn),QLn),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),C7n),H_n),J9(M7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,GPn),YLn),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),Stt),A7n),Git),J9(E7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,dAn),YLn),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),I7n),D_n),J9(E7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,gAn),YLn),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),I7n),D_n),J9(E7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,hAn),JLn),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),I7n),D_n),J9(E7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,fAn),JLn),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),I7n),D_n),J9(k7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,sPn),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),C7n),H_n),J9(k7n)))),j7(n,new isn(dk(wk(gk(hk(sk(bk(fk(lk(new Fu,zLn),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),xnt),O7n),xet),J9(k7n)))),oT(n,new dz(ak(ok(uk(new pu,CIn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),oT(n,new dz(ak(ok(uk(new pu,"org.eclipse.elk.orthogonal"),"Orthogonal"),'Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia \'86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.'))),oT(n,new dz(ak(ok(uk(new pu,APn),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),oT(n,new dz(ak(ok(uk(new pu,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),oT(n,new dz(ak(ok(uk(new pu,l$n),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),oT(n,new dz(ak(ok(uk(new pu,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),oT(n,new dz(ak(ok(uk(new pu,C$n),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),Mgn((new Lf,n)),Epn((new Af,n)),ydn((new Nf,n))},EF(MLn,"CoreOptions",684),Wfn(103,22,{3:1,35:1,22:1,103:1},ZS);var ret,cet,aet,uet,oet=X1(MLn,_Sn,103,u_n,(function(){return t9(),x4(Gy(oet,1),XEn,103,0,[tet,net,Ztt,Jtt,eet])}),(function(n){return t9(),rZ((yZ(),ret),n)}));Wfn(272,22,{3:1,35:1,22:1,272:1},nP);var set,het,fet,bet,wet,det=X1(MLn,"EdgeLabelPlacement",272,u_n,(function(){return ZZ(),x4(Gy(det,1),XEn,272,0,[cet,aet,uet])}),(function(n){return ZZ(),rZ((GQ(),set),n)}));Wfn(218,22,{3:1,35:1,22:1,218:1},tP);var get,pet,vet,met,yet,ket,jet,Eet=X1(MLn,"EdgeRouting",218,u_n,(function(){return g7(),x4(Gy(Eet,1),XEn,218,0,[wet,fet,het,bet])}),(function(n){return g7(),rZ((tJ(),get),n)}));Wfn(312,22,{3:1,35:1,22:1,312:1},eP);var Tet,Met,Set,Pet,Iet,Cet,Oet,Aet,$et,Let,Net,xet=X1(MLn,"EdgeType",312,u_n,(function(){return vun(),x4(Gy(xet,1),XEn,312,0,[ket,met,jet,pet,yet,vet])}),(function(n){return vun(),rZ((P1(),Tet),n)}));Wfn(977,1,fSn,Lf),Fjn.Qe=function(n){Mgn(n)},EF(MLn,"FixedLayouterOptions",977),Wfn(978,1,{},Vu),Fjn.$e=function(){return new Hu},Fjn._e=function(n){},EF(MLn,"FixedLayouterOptions/FixedFactory",978),Wfn(334,22,{3:1,35:1,22:1,334:1},iP);var Det,Ret,Ket,_et,Fet,Bet=X1(MLn,"HierarchyHandling",334,u_n,(function(){return O8(),x4(Gy(Bet,1),XEn,334,0,[Let,$et,Net])}),(function(n){return O8(),rZ((qQ(),Det),n)}));Wfn(285,22,{3:1,35:1,22:1,285:1},rP);var Het,qet,Get,zet,Uet,Xet,Wet,Vet,Qet,Yet,Jet=X1(MLn,"LabelSide",285,u_n,(function(){return Frn(),x4(Gy(Jet,1),XEn,285,0,[Fet,Ret,Ket,_et])}),(function(n){return Frn(),rZ((nJ(),Het),n)}));Wfn(93,22,{3:1,35:1,22:1,93:1},cP);var Zet,nit,tit,eit,iit,rit,cit=X1(MLn,"NodeLabelPlacement",93,u_n,(function(){return Eln(),x4(Gy(cit,1),XEn,93,0,[Get,qet,Uet,Yet,Qet,Vet,Xet,Wet,zet])}),(function(n){return Eln(),rZ((n4(),Zet),n)}));Wfn(249,22,{3:1,35:1,22:1,249:1},aP);var ait,uit,oit,sit,hit,fit,lit,bit=X1(MLn,"PortAlignment",249,u_n,(function(){return Ytn(),x4(Gy(bit,1),XEn,249,0,[eit,rit,nit,tit,iit])}),(function(n){return Ytn(),rZ((kZ(),ait),n)}));Wfn(98,22,{3:1,35:1,22:1,98:1},uP);var wit,dit,git,pit,vit,mit,yit,kit=X1(MLn,"PortConstraints",98,u_n,(function(){return Ran(),x4(Gy(kit,1),XEn,98,0,[lit,fit,hit,uit,sit,oit])}),(function(n){return Ran(),rZ((n1(),wit),n)}));Wfn(273,22,{3:1,35:1,22:1,273:1},oP);var jit,Eit,Tit,Mit,Sit,Pit,Iit,Cit,Oit,Ait,$it,Lit,Nit,xit,Dit,Rit,Kit,_it,Fit,Bit,Hit,qit,Git=X1(MLn,"PortLabelPlacement",273,u_n,(function(){return Chn(),x4(Gy(Git,1),XEn,273,0,[mit,pit,vit,git,dit,yit])}),(function(n){return Chn(),rZ((S1(),jit),n)}));Wfn(61,22,{3:1,35:1,22:1,61:1},sP);var zit,Uit,Xit,Wit,Vit,Qit,Yit,Jit,Zit,nrt,trt=X1(MLn,"PortSide",61,u_n,(function(){return Ikn(),x4(Gy(trt,1),lIn,61,0,[Hit,Tit,Eit,Bit,qit])}),(function(n){return Ikn(),rZ((jZ(),zit),n)}));Wfn(981,1,fSn,Nf),Fjn.Qe=function(n){ydn(n)},EF(MLn,"RandomLayouterOptions",981),Wfn(982,1,{},Qu),Fjn.$e=function(){return new no},Fjn._e=function(n){},EF(MLn,"RandomLayouterOptions/RandomFactory",982),Wfn(374,22,{3:1,35:1,22:1,374:1},hP);var ert,irt,rrt,crt,art,urt,ort,srt,hrt,frt,lrt=X1(MLn,"SizeConstraint",374,u_n,(function(){return Ann(),x4(Gy(lrt,1),XEn,374,0,[Zit,nrt,Jit,Yit])}),(function(n){return Ann(),rZ((iJ(),ert),n)}));Wfn(259,22,{3:1,35:1,22:1,259:1},fP);var brt,wrt,drt,grt,prt,vrt=X1(MLn,"SizeOptions",259,u_n,(function(){return Vgn(),x4(Gy(vrt,1),XEn,259,0,[crt,urt,rrt,ort,srt,frt,hrt,art,irt])}),(function(n){return Vgn(),rZ((t5(),brt),n)}));Wfn(370,1,{1949:1},am),Fjn.b=!1,Fjn.c=0,Fjn.d=-1,Fjn.e=null,Fjn.f=null,Fjn.g=-1,Fjn.j=!1,Fjn.k=!1,Fjn.n=!1,Fjn.o=0,Fjn.q=0,Fjn.r=0,EF(xAn,"BasicProgressMonitor",370),Wfn(972,209,VSn,Gu),Fjn.Ze=function(n,t){var e,i,r,c,a,u,o,s,h;run(t,"Box layout",2),r=ey(fL(jln(n,(Run(),unt)))),c=Yx(jln(n,rnt),116),e=ny(hL(jln(n,Z7n))),i=ny(hL(jln(n,nnt))),0===Yx(jln(n,Y7n),311).g?(u=new sx((!n.a&&(n.a=new m_(uct,n,10,11)),n.a)),XH(),JC(u,new Vd(i)),a=u,o=Asn(n),(null==(s=fL(jln(n,Q7n)))||(vB(s),s<=0))&&(s=1.3),xkn(n,(h=Kkn(a,r,c,o.a,o.b,e,(vB(s),s))).a,h.b,!1,!0)):Vmn(n,r,c,e),Ron(t)},EF(xAn,"BoxLayoutProvider",972),Wfn(973,1,FMn,Vd),Fjn.ue=function(n,t){return function(n,t,e){var i,r,c;if(!(r=Yx(jln(t,(Run(),ant)),19))&&(r=d9(0)),!(c=Yx(jln(e,ant),19))&&(c=d9(0)),r.a>c.a)return-1;if(r.a0&&d.b>0&&xkn(g,d.a,d.b,!0,!0)),b=e.Math.max(b,g.i+g.g),w=e.Math.max(w,g.j+g.f),f=new UO((!g.n&&(g.n=new m_(act,g,1,7)),g.n));f.e!=f.i.gc();)o=Yx(hen(f),137),(T=Yx(jln(o,Aet),8))&&jC(o,T.a,T.b),b=e.Math.max(b,g.i+o.i+o.g),w=e.Math.max(w,g.j+o.j+o.f);for(k=new UO((!g.c&&(g.c=new m_(oct,g,9,9)),g.c));k.e!=k.i.gc();)for(y=Yx(hen(k),118),(T=Yx(jln(y,Aet),8))&&jC(y,T.a,T.b),j=g.i+y.i,E=g.j+y.j,b=e.Math.max(b,j+y.g),w=e.Math.max(w,E+y.f),s=new UO((!y.n&&(y.n=new m_(act,y,1,7)),y.n));s.e!=s.i.gc();)o=Yx(hen(s),137),(T=Yx(jln(o,Aet),8))&&jC(o,T.a,T.b),b=e.Math.max(b,j+o.i+o.g),w=e.Math.max(w,E+o.j+o.f);for(c=new $K(bA(lbn(g).a.Kc(),new h));Vfn(c);)l=Dkn(i=Yx(kV(c),79)),b=e.Math.max(b,l.a),w=e.Math.max(w,l.b);for(r=new $K(bA(fbn(g).a.Kc(),new h));Vfn(r);)IG(Kun(i=Yx(kV(r),79)))!=n&&(l=Dkn(i),b=e.Math.max(b,l.a),w=e.Math.max(w,l.b))}if(a==(g7(),het))for(p=new UO((!n.a&&(n.a=new m_(uct,n,10,11)),n.a));p.e!=p.i.gc();)for(r=new $K(bA(lbn(g=Yx(hen(p),33)).a.Kc(),new h));Vfn(r);)0==(u=Npn(i=Yx(kV(r),79))).b?Aen(i,Gnt,null):Aen(i,Gnt,u);ny(hL(jln(n,(L6(),Pet))))||xkn(n,b+(m=Yx(jln(n,Cet),116)).b+m.c,w+m.d+m.a,!0,!0),Ron(t)},EF(xAn,"FixedLayoutProvider",1138),Wfn(373,134,{3:1,414:1,373:1,94:1,134:1},Yu,FJ),Fjn.Jf=function(n){var t,e,i,r,c,a,u;if(n)try{for(a=Ogn(n,";,;"),r=0,c=(i=a).length;r>16&fTn|n^(e&fTn)<<16},Fjn.Kc=function(){return new Zd(this)},Fjn.Ib=function(){return null==this.a&&null==this.b?"pair(null,null)":null==this.a?"pair(null,"+I7(this.b)+")":null==this.b?"pair("+I7(this.a)+",null)":"pair("+I7(this.a)+","+I7(this.b)+")"},EF(xAn,"Pair",46),Wfn(983,1,fEn,Zd),Fjn.Nb=function(n){I_(this,n)},Fjn.Ob=function(){return!this.c&&(!this.b&&null!=this.a.a||null!=this.a.b)},Fjn.Pb=function(){if(!this.c&&!this.b&&null!=this.a.a)return this.b=!0,this.a.a;if(!this.c&&null!=this.a.b)return this.c=!0,this.a.b;throw hp(new Kp)},Fjn.Qb=function(){throw this.c&&null!=this.a.b?this.a.b=null:this.b&&null!=this.a.a&&(this.a.a=null),hp(new Lp)},Fjn.b=!1,Fjn.c=!1,EF(xAn,"Pair/1",983),Wfn(448,1,{448:1},jH),Fjn.Fb=function(n){return qB(this.a,Yx(n,448).a)&&qB(this.c,Yx(n,448).c)&&qB(this.d,Yx(n,448).d)&&qB(this.b,Yx(n,448).b)},Fjn.Hb=function(){return G6(x4(Gy(UKn,1),iEn,1,5,[this.a,this.c,this.d,this.b]))},Fjn.Ib=function(){return"("+this.a+tEn+this.c+tEn+this.d+tEn+this.b+")"},EF(xAn,"Quadruple",448),Wfn(1126,209,VSn,no),Fjn.Ze=function(n,t){var i;run(t,"Random Layout",1),0!=(!n.a&&(n.a=new m_(uct,n,10,11)),n.a).i?(function(n,t,i,r,c){var a,u,o,s,f,l,b,w,d,g,p,v,m,y,k,j,E,T,M,S;for(y=0,g=0,d=0,w=1,m=new UO((!n.a&&(n.a=new m_(uct,n,10,11)),n.a));m.e!=m.i.gc();)w+=FX(new $K(bA(lbn(p=Yx(hen(m),33)).a.Kc(),new h))),T=p.g,g=e.Math.max(g,T),b=p.f,d=e.Math.max(d,b),y+=T*b;for(u=y+2*r*r*w*(!n.a&&(n.a=new m_(uct,n,10,11)),n.a).i,a=e.Math.sqrt(u),s=e.Math.max(a*i,g),o=e.Math.max(a/i,d),v=new UO((!n.a&&(n.a=new m_(uct,n,10,11)),n.a));v.e!=v.i.gc();)p=Yx(hen(v),33),M=c.b+(Xln(t,26)*mMn+Xln(t,27)*yMn)*(s-p.g),S=c.b+(Xln(t,26)*mMn+Xln(t,27)*yMn)*(o-p.f),L1(p,M),N1(p,S);for(E=s+(c.b+c.c),j=o+(c.d+c.a),k=new UO((!n.a&&(n.a=new m_(uct,n,10,11)),n.a));k.e!=k.i.gc();)for(l=new $K(bA(lbn(Yx(hen(k),33)).a.Kc(),new h));Vfn(l);)Rfn(f=Yx(kV(l),79))||djn(f,t,E,j);xkn(n,E+=c.b+c.c,j+=c.d+c.a,!1,!0)}(n,(i=Yx(jln(n,(Onn(),Vit)),19))&&0!=i.a?new jW(i.a):new c7,ey(fL(jln(n,Uit))),ey(fL(jln(n,Qit))),Yx(jln(n,Xit),116)),Ron(t)):Ron(t)},EF(xAn,"RandomLayoutProvider",1126),Wfn(553,1,{}),Fjn.qf=function(){return new QS(this.f.i,this.f.j)},Fjn.We=function(n){return Oq(n,(Cjn(),ytt))?jln(this.f,Irt):jln(this.f,n)},Fjn.rf=function(){return new QS(this.f.g,this.f.f)},Fjn.sf=function(){return this.g},Fjn.Xe=function(n){return zQ(this.f,n)},Fjn.tf=function(n){L1(this.f,n.a),N1(this.f,n.b)},Fjn.uf=function(n){$1(this.f,n.a),A1(this.f,n.b)},Fjn.vf=function(n){this.g=n},Fjn.g=0,EF(iNn,"ElkGraphAdapters/AbstractElkGraphElementAdapter",553),Wfn(554,1,{839:1},ng),Fjn.wf=function(){var n,t;if(!this.b)for(this.b=nX(JB(this.a).i),t=new UO(JB(this.a));t.e!=t.i.gc();)n=Yx(hen(t),137),eD(this.b,new Wm(n));return this.b},Fjn.b=null,EF(iNn,"ElkGraphAdapters/ElkEdgeAdapter",554),Wfn(301,553,{},Xm),Fjn.xf=function(){return hrn(this)},Fjn.a=null,EF(iNn,"ElkGraphAdapters/ElkGraphAdapter",301),Wfn(630,553,{181:1},Wm),EF(iNn,"ElkGraphAdapters/ElkLabelAdapter",630),Wfn(629,553,{680:1},e$),Fjn.wf=function(){return function(n){var t,e;if(!n.b)for(n.b=nX(Yx(n.f,33).Ag().i),e=new UO(Yx(n.f,33).Ag());e.e!=e.i.gc();)t=Yx(hen(e),137),eD(n.b,new Wm(t));return n.b}(this)},Fjn.Af=function(){var n;return!(n=Yx(jln(this.f,(Cjn(),Unt)),142))&&(n=new Mv),n},Fjn.Cf=function(){return function(n){var t,e;if(!n.e)for(n.e=nX(ZB(Yx(n.f,33)).i),e=new UO(ZB(Yx(n.f,33)));e.e!=e.i.gc();)t=Yx(hen(e),118),eD(n.e,new Ag(t));return n.e}(this)},Fjn.Ef=function(n){var t;t=new yx(n),Aen(this.f,(Cjn(),Unt),t)},Fjn.Ff=function(n){Aen(this.f,(Cjn(),utt),new mx(n))},Fjn.yf=function(){return this.d},Fjn.zf=function(){var n,t;if(!this.a)for(this.a=new ip,t=new $K(bA(fbn(Yx(this.f,33)).a.Kc(),new h));Vfn(t);)n=Yx(kV(t),79),eD(this.a,new ng(n));return this.a},Fjn.Bf=function(){var n,t;if(!this.c)for(this.c=new ip,t=new $K(bA(lbn(Yx(this.f,33)).a.Kc(),new h));Vfn(t);)n=Yx(kV(t),79),eD(this.c,new ng(n));return this.c},Fjn.Df=function(){return 0!=uq(Yx(this.f,33)).i||ny(hL(Yx(this.f,33).We((Cjn(),Fnt))))},Fjn.Gf=function(){MJ(this,(dT(),Prt))},Fjn.a=null,Fjn.b=null,Fjn.c=null,Fjn.d=null,Fjn.e=null,EF(iNn,"ElkGraphAdapters/ElkNodeAdapter",629),Wfn(1266,553,{838:1},Ag),Fjn.wf=function(){return function(n){var t,e;if(!n.b)for(n.b=nX(Yx(n.f,118).Ag().i),e=new UO(Yx(n.f,118).Ag());e.e!=e.i.gc();)t=Yx(hen(e),137),eD(n.b,new Wm(t));return n.b}(this)},Fjn.zf=function(){var n,t;if(!this.a)for(this.a=h$(Yx(this.f,118).xg().i),t=new UO(Yx(this.f,118).xg());t.e!=t.i.gc();)n=Yx(hen(t),79),eD(this.a,new ng(n));return this.a},Fjn.Bf=function(){var n,t;if(!this.c)for(this.c=h$(Yx(this.f,118).yg().i),t=new UO(Yx(this.f,118).yg());t.e!=t.i.gc();)n=Yx(hen(t),79),eD(this.c,new ng(n));return this.c},Fjn.Hf=function(){return Yx(Yx(this.f,118).We((Cjn(),Itt)),61)},Fjn.If=function(){var n,t,e,i,r,c,a;for(i=TG(Yx(this.f,118)),e=new UO(Yx(this.f,118).yg());e.e!=e.i.gc();)for(a=new UO((!(n=Yx(hen(e),79)).c&&(n.c=new AN(Zrt,n,5,8)),n.c));a.e!=a.i.gc();){if(XZ(iun(c=Yx(hen(a),82)),i))return!0;if(iun(c)==i&&ny(hL(jln(n,(Cjn(),Bnt)))))return!0}for(t=new UO(Yx(this.f,118).xg());t.e!=t.i.gc();)for(r=new UO((!(n=Yx(hen(t),79)).b&&(n.b=new AN(Zrt,n,4,7)),n.b));r.e!=r.i.gc();)if(XZ(iun(Yx(hen(r),82)),i))return!0;return!1},Fjn.a=null,Fjn.b=null,Fjn.c=null,EF(iNn,"ElkGraphAdapters/ElkPortAdapter",1266),Wfn(1267,1,FMn,to),Fjn.ue=function(n,t){return function(n,t){var e,i,r,c;if(0!=(c=Yx(jln(n,(Cjn(),Itt)),61).g-Yx(jln(t,Itt),61).g))return c;if(e=Yx(jln(n,Ett),19),i=Yx(jln(t,Ett),19),e&&i&&0!=(r=e.a-i.a))return r;switch(Yx(jln(n,Itt),61).g){case 1:return $9(n.i,t.i);case 2:return $9(n.j,t.j);case 3:return $9(t.i,n.i);case 4:return $9(t.j,n.j);default:throw hp(new Ym(mIn))}}(Yx(n,118),Yx(t,118))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(iNn,"ElkGraphAdapters/PortComparator",1267);var Ort,Art,$rt,Lrt,Nrt,xrt,Drt,Rrt,Krt,_rt,Frt,Brt,Hrt,qrt,Grt,zrt,Urt,Xrt,Wrt=aR(rNn,"EObject"),Vrt=aR(cNn,aNn),Qrt=aR(cNn,uNn),Yrt=aR(cNn,oNn),Jrt=aR(cNn,"ElkShape"),Zrt=aR(cNn,sNn),nct=aR(cNn,hNn),tct=aR(cNn,fNn),ect=aR(rNn,lNn),ict=aR(rNn,"EFactory"),rct=aR(rNn,bNn),cct=aR(rNn,"EPackage"),act=aR(cNn,wNn),uct=aR(cNn,dNn),oct=aR(cNn,gNn);Wfn(90,1,pNn),Fjn.Jg=function(){return this.Kg(),null},Fjn.Kg=function(){return null},Fjn.Lg=function(){return this.Kg(),!1},Fjn.Mg=function(){return!1},Fjn.Ng=function(n){K3(this,n)},EF(vNn,"BasicNotifierImpl",90),Wfn(97,90,SNn),Fjn.nh=function(){return gC(this)},Fjn.Og=function(n,t){return n},Fjn.Pg=function(){throw hp(new xp)},Fjn.Qg=function(n){var t;return t=nin(Yx(CZ(this.Tg(),this.Vg()),18)),this.eh().ih(this,t.n,t.f,n)},Fjn.Rg=function(n,t){throw hp(new xp)},Fjn.Sg=function(n,t,e){return opn(this,n,t,e)},Fjn.Tg=function(){var n;return this.Pg()&&(n=this.Pg().ck())?n:this.zh()},Fjn.Ug=function(){return Bfn(this)},Fjn.Vg=function(){throw hp(new xp)},Fjn.Wg=function(){var n,t;return!(t=this.ph().dk())&&this.Pg().ik((kT(),t=null==(n=Wq(svn(this.Tg())))?Vat:new n$(this,n))),t},Fjn.Xg=function(n,t){return n},Fjn.Yg=function(n){return n.Gj()?n.aj():tnn(this.Tg(),n)},Fjn.Zg=function(){var n;return(n=this.Pg())?n.fk():null},Fjn.$g=function(){return this.Pg()?this.Pg().ck():null},Fjn._g=function(n,t,e){return $en(this,n,t,e)},Fjn.ah=function(n){return TY(this,n)},Fjn.bh=function(n,t){return TV(this,n,t)},Fjn.dh=function(){var n;return!!(n=this.Pg())&&n.gk()},Fjn.eh=function(){throw hp(new xp)},Fjn.fh=function(){return rtn(this)},Fjn.gh=function(n,t,e,i){return men(this,n,t,i)},Fjn.hh=function(n,t,e){return Yx(CZ(this.Tg(),t),66).Nj().Qj(this,this.yh(),t-this.Ah(),n,e)},Fjn.ih=function(n,t,e,i){return Uq(this,n,t,i)},Fjn.jh=function(n,t,e){return Yx(CZ(this.Tg(),t),66).Nj().Rj(this,this.yh(),t-this.Ah(),n,e)},Fjn.kh=function(){return!!this.Pg()&&!!this.Pg().ek()},Fjn.lh=function(n){return uen(this,n)},Fjn.mh=function(n){return CG(this,n)},Fjn.oh=function(n){return eyn(this,n)},Fjn.ph=function(){throw hp(new xp)},Fjn.qh=function(){return this.Pg()?this.Pg().ek():null},Fjn.rh=function(){return rtn(this)},Fjn.sh=function(n,t){Vsn(this,n,t)},Fjn.th=function(n){this.ph().hk(n)},Fjn.uh=function(n){this.ph().kk(n)},Fjn.vh=function(n){this.ph().jk(n)},Fjn.wh=function(n,t){var e,i,r,c;return(c=this.Zg())&&n&&(t=Ten(c.Vk(),this,t),c.Zk(this)),(i=this.eh())&&(0!=(Ign(this,this.eh(),this.Vg()).Bb&eMn)?(r=i.fh())&&(n?!c&&r.Zk(this):r.Yk(this)):(t=(e=this.Vg())>=0?this.Qg(t):this.eh().ih(this,-1-e,null,t),t=this.Sg(null,-1,t))),this.uh(n),t},Fjn.xh=function(n){var t,e,i,r,c,a,u;if((c=tnn(e=this.Tg(),n))>=(t=this.Ah()))return Yx(n,66).Nj().Uj(this,this.yh(),c-t);if(c<=-1){if(!(a=iyn((wsn(),wut),e,n)))throw hp(new Qm(mNn+n.ne()+jNn));if(TT(),Yx(a,66).Oj()||(a=Bz(PJ(wut,a))),r=Yx((i=this.Yg(a))>=0?this._g(i,!0,!0):tfn(this,a,!0),153),(u=a.Zj())>1||-1==u)return Yx(Yx(r,215).hl(n,!1),76)}else if(n.$j())return Yx((i=this.Yg(n))>=0?this._g(i,!1,!0):tfn(this,n,!1),76);return new qP(this,n)},Fjn.yh=function(){return DJ(this)},Fjn.zh=function(){return(YF(),gat).S},Fjn.Ah=function(){return vF(this.zh())},Fjn.Bh=function(n){usn(this,n)},Fjn.Ib=function(){return Kln(this)},EF(PNn,"BasicEObjectImpl",97),Wfn(114,97,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1}),Fjn.Ch=function(n){return RJ(this)[n]},Fjn.Dh=function(n,t){DF(RJ(this),n,t)},Fjn.Eh=function(n){DF(RJ(this),n,null)},Fjn.Jg=function(){return Yx(H3(this,4),126)},Fjn.Kg=function(){throw hp(new xp)},Fjn.Lg=function(){return 0!=(4&this.Db)},Fjn.Pg=function(){throw hp(new xp)},Fjn.Fh=function(n){wtn(this,2,n)},Fjn.Rg=function(n,t){this.Db=t<<16|255&this.Db,this.Fh(n)},Fjn.Tg=function(){return Cq(this)},Fjn.Vg=function(){return this.Db>>16},Fjn.Wg=function(){var n;return kT(),null==(n=Wq(svn(Yx(H3(this,16),26)||this.zh())))?Vat:new n$(this,n)},Fjn.Mg=function(){return 0==(1&this.Db)},Fjn.Zg=function(){return Yx(H3(this,128),1935)},Fjn.$g=function(){return Yx(H3(this,16),26)},Fjn.dh=function(){return 0!=(32&this.Db)},Fjn.eh=function(){return Yx(H3(this,2),49)},Fjn.kh=function(){return 0!=(64&this.Db)},Fjn.ph=function(){throw hp(new xp)},Fjn.qh=function(){return Yx(H3(this,64),281)},Fjn.th=function(n){wtn(this,16,n)},Fjn.uh=function(n){wtn(this,128,n)},Fjn.vh=function(n){wtn(this,64,n)},Fjn.yh=function(){return dtn(this)},Fjn.Db=0,EF(PNn,"MinimalEObjectImpl",114),Wfn(115,114,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),Fjn.Fh=function(n){this.Cb=n},Fjn.eh=function(){return this.Cb},EF(PNn,"MinimalEObjectImpl/Container",115),Wfn(1985,115,{105:1,413:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),Fjn._g=function(n,t,e){return Mrn(this,n,t,e)},Fjn.jh=function(n,t,e){return fon(this,n,t,e)},Fjn.lh=function(n){return Zz(this,n)},Fjn.sh=function(n,t){J5(this,n,t)},Fjn.zh=function(){return ajn(),Hrt},Fjn.Bh=function(n){Q4(this,n)},Fjn.Ve=function(){return een(this)},Fjn.We=function(n){return jln(this,n)},Fjn.Xe=function(n){return zQ(this,n)},Fjn.Ye=function(n,t){return Aen(this,n,t)},EF(INn,"EMapPropertyHolderImpl",1985),Wfn(567,115,{105:1,469:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},ro),Fjn._g=function(n,t,e){switch(n){case 0:return this.a;case 1:return this.b}return $en(this,n,t,e)},Fjn.lh=function(n){switch(n){case 0:return 0!=this.a;case 1:return 0!=this.b}return uen(this,n)},Fjn.sh=function(n,t){switch(n){case 0:return void I1(this,ty(fL(t)));case 1:return void C1(this,ty(fL(t)))}Vsn(this,n,t)},Fjn.zh=function(){return ajn(),$rt},Fjn.Bh=function(n){switch(n){case 0:return void I1(this,0);case 1:return void C1(this,0)}usn(this,n)},Fjn.Ib=function(){var n;return 0!=(64&this.Db)?Kln(this):((n=new MA(Kln(this))).a+=" (x: ",Jk(n,this.a),n.a+=", y: ",Jk(n,this.b),n.a+=")",n.a)},Fjn.a=0,Fjn.b=0,EF(INn,"ElkBendPointImpl",567),Wfn(723,1985,{105:1,413:1,160:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),Fjn._g=function(n,t,e){return n9(this,n,t,e)},Fjn.hh=function(n,t,e){return sun(this,n,t,e)},Fjn.jh=function(n,t,e){return d4(this,n,t,e)},Fjn.lh=function(n){return z3(this,n)},Fjn.sh=function(n,t){Vcn(this,n,t)},Fjn.zh=function(){return ajn(),Drt},Fjn.Bh=function(n){A8(this,n)},Fjn.zg=function(){return this.k},Fjn.Ag=function(){return JB(this)},Fjn.Ib=function(){return V9(this)},Fjn.k=null,EF(INn,"ElkGraphElementImpl",723),Wfn(724,723,{105:1,413:1,160:1,470:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),Fjn._g=function(n,t,e){return S7(this,n,t,e)},Fjn.lh=function(n){return z7(this,n)},Fjn.sh=function(n,t){Qcn(this,n,t)},Fjn.zh=function(){return ajn(),Brt},Fjn.Bh=function(n){rnn(this,n)},Fjn.Bg=function(){return this.f},Fjn.Cg=function(){return this.g},Fjn.Dg=function(){return this.i},Fjn.Eg=function(){return this.j},Fjn.Fg=function(n,t){kC(this,n,t)},Fjn.Gg=function(n,t){jC(this,n,t)},Fjn.Hg=function(n){L1(this,n)},Fjn.Ig=function(n){N1(this,n)},Fjn.Ib=function(){return yon(this)},Fjn.f=0,Fjn.g=0,Fjn.i=0,Fjn.j=0,EF(INn,"ElkShapeImpl",724),Wfn(725,724,{105:1,413:1,82:1,160:1,470:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),Fjn._g=function(n,t,e){return bin(this,n,t,e)},Fjn.hh=function(n,t,e){return Lcn(this,n,t,e)},Fjn.jh=function(n,t,e){return Ncn(this,n,t,e)},Fjn.lh=function(n){return B5(this,n)},Fjn.sh=function(n,t){oln(this,n,t)},Fjn.zh=function(){return ajn(),Lrt},Fjn.Bh=function(n){yen(this,n)},Fjn.xg=function(){return!this.d&&(this.d=new AN(nct,this,8,5)),this.d},Fjn.yg=function(){return!this.e&&(this.e=new AN(nct,this,7,4)),this.e},EF(INn,"ElkConnectableShapeImpl",725),Wfn(352,723,{105:1,413:1,79:1,160:1,352:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},io),Fjn.Qg=function(n){return ucn(this,n)},Fjn._g=function(n,t,e){switch(n){case 3:return EG(this);case 4:return!this.b&&(this.b=new AN(Zrt,this,4,7)),this.b;case 5:return!this.c&&(this.c=new AN(Zrt,this,5,8)),this.c;case 6:return!this.a&&(this.a=new m_(tct,this,6,6)),this.a;case 7:return TA(),!this.b&&(this.b=new AN(Zrt,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new AN(Zrt,this,5,8)),this.c.i<=1));case 8:return TA(),!!Rfn(this);case 9:return TA(),!!Whn(this);case 10:return TA(),!this.b&&(this.b=new AN(Zrt,this,4,7)),0!=this.b.i&&(!this.c&&(this.c=new AN(Zrt,this,5,8)),0!=this.c.i)}return n9(this,n,t,e)},Fjn.hh=function(n,t,e){var i;switch(t){case 3:return this.Cb&&(e=(i=this.Db>>16)>=0?ucn(this,e):this.Cb.ih(this,-1-i,null,e)),AL(this,Yx(n,33),e);case 4:return!this.b&&(this.b=new AN(Zrt,this,4,7)),wnn(this.b,n,e);case 5:return!this.c&&(this.c=new AN(Zrt,this,5,8)),wnn(this.c,n,e);case 6:return!this.a&&(this.a=new m_(tct,this,6,6)),wnn(this.a,n,e)}return sun(this,n,t,e)},Fjn.jh=function(n,t,e){switch(t){case 3:return AL(this,null,e);case 4:return!this.b&&(this.b=new AN(Zrt,this,4,7)),Ten(this.b,n,e);case 5:return!this.c&&(this.c=new AN(Zrt,this,5,8)),Ten(this.c,n,e);case 6:return!this.a&&(this.a=new m_(tct,this,6,6)),Ten(this.a,n,e)}return d4(this,n,t,e)},Fjn.lh=function(n){switch(n){case 3:return!!EG(this);case 4:return!!this.b&&0!=this.b.i;case 5:return!!this.c&&0!=this.c.i;case 6:return!!this.a&&0!=this.a.i;case 7:return!this.b&&(this.b=new AN(Zrt,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new AN(Zrt,this,5,8)),this.c.i<=1));case 8:return Rfn(this);case 9:return Whn(this);case 10:return!this.b&&(this.b=new AN(Zrt,this,4,7)),0!=this.b.i&&(!this.c&&(this.c=new AN(Zrt,this,5,8)),0!=this.c.i)}return z3(this,n)},Fjn.sh=function(n,t){switch(n){case 3:return void Sbn(this,Yx(t,33));case 4:return!this.b&&(this.b=new AN(Zrt,this,4,7)),Hmn(this.b),!this.b&&(this.b=new AN(Zrt,this,4,7)),void jF(this.b,Yx(t,14));case 5:return!this.c&&(this.c=new AN(Zrt,this,5,8)),Hmn(this.c),!this.c&&(this.c=new AN(Zrt,this,5,8)),void jF(this.c,Yx(t,14));case 6:return!this.a&&(this.a=new m_(tct,this,6,6)),Hmn(this.a),!this.a&&(this.a=new m_(tct,this,6,6)),void jF(this.a,Yx(t,14))}Vcn(this,n,t)},Fjn.zh=function(){return ajn(),Nrt},Fjn.Bh=function(n){switch(n){case 3:return void Sbn(this,null);case 4:return!this.b&&(this.b=new AN(Zrt,this,4,7)),void Hmn(this.b);case 5:return!this.c&&(this.c=new AN(Zrt,this,5,8)),void Hmn(this.c);case 6:return!this.a&&(this.a=new m_(tct,this,6,6)),void Hmn(this.a)}A8(this,n)},Fjn.Ib=function(){return bmn(this)},EF(INn,"ElkEdgeImpl",352),Wfn(439,1985,{105:1,413:1,202:1,439:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},co),Fjn.Qg=function(n){return Yrn(this,n)},Fjn._g=function(n,t,e){switch(n){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new XO(Qrt,this,5)),this.a;case 6:return MG(this);case 7:return t?Zen(this):this.i;case 8:return t?Jen(this):this.f;case 9:return!this.g&&(this.g=new AN(tct,this,9,10)),this.g;case 10:return!this.e&&(this.e=new AN(tct,this,10,9)),this.e;case 11:return this.d}return Mrn(this,n,t,e)},Fjn.hh=function(n,t,e){var i;switch(t){case 6:return this.Cb&&(e=(i=this.Db>>16)>=0?Yrn(this,e):this.Cb.ih(this,-1-i,null,e)),$L(this,Yx(n,79),e);case 9:return!this.g&&(this.g=new AN(tct,this,9,10)),wnn(this.g,n,e);case 10:return!this.e&&(this.e=new AN(tct,this,10,9)),wnn(this.e,n,e)}return Yx(CZ(Yx(H3(this,16),26)||(ajn(),xrt),t),66).Nj().Qj(this,dtn(this),t-vF((ajn(),xrt)),n,e)},Fjn.jh=function(n,t,e){switch(t){case 5:return!this.a&&(this.a=new XO(Qrt,this,5)),Ten(this.a,n,e);case 6:return $L(this,null,e);case 9:return!this.g&&(this.g=new AN(tct,this,9,10)),Ten(this.g,n,e);case 10:return!this.e&&(this.e=new AN(tct,this,10,9)),Ten(this.e,n,e)}return fon(this,n,t,e)},Fjn.lh=function(n){switch(n){case 1:return 0!=this.j;case 2:return 0!=this.k;case 3:return 0!=this.b;case 4:return 0!=this.c;case 5:return!!this.a&&0!=this.a.i;case 6:return!!MG(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&0!=this.g.i;case 10:return!!this.e&&0!=this.e.i;case 11:return null!=this.d}return Zz(this,n)},Fjn.sh=function(n,t){switch(n){case 1:return void x1(this,ty(fL(t)));case 2:return void R1(this,ty(fL(t)));case 3:return void O1(this,ty(fL(t)));case 4:return void D1(this,ty(fL(t)));case 5:return!this.a&&(this.a=new XO(Qrt,this,5)),Hmn(this.a),!this.a&&(this.a=new XO(Qrt,this,5)),void jF(this.a,Yx(t,14));case 6:return void Tbn(this,Yx(t,79));case 7:return void N0(this,Yx(t,82));case 8:return void L0(this,Yx(t,82));case 9:return!this.g&&(this.g=new AN(tct,this,9,10)),Hmn(this.g),!this.g&&(this.g=new AN(tct,this,9,10)),void jF(this.g,Yx(t,14));case 10:return!this.e&&(this.e=new AN(tct,this,10,9)),Hmn(this.e),!this.e&&(this.e=new AN(tct,this,10,9)),void jF(this.e,Yx(t,14));case 11:return void Y0(this,lL(t))}J5(this,n,t)},Fjn.zh=function(){return ajn(),xrt},Fjn.Bh=function(n){switch(n){case 1:return void x1(this,0);case 2:return void R1(this,0);case 3:return void O1(this,0);case 4:return void D1(this,0);case 5:return!this.a&&(this.a=new XO(Qrt,this,5)),void Hmn(this.a);case 6:return void Tbn(this,null);case 7:return void N0(this,null);case 8:return void L0(this,null);case 9:return!this.g&&(this.g=new AN(tct,this,9,10)),void Hmn(this.g);case 10:return!this.e&&(this.e=new AN(tct,this,10,9)),void Hmn(this.e);case 11:return void Y0(this,null)}Q4(this,n)},Fjn.Ib=function(){return Mfn(this)},Fjn.b=0,Fjn.c=0,Fjn.d=null,Fjn.j=0,Fjn.k=0,EF(INn,"ElkEdgeSectionImpl",439),Wfn(150,115,{105:1,92:1,90:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1}),Fjn._g=function(n,t,e){return 0==n?(!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),this.Ab):RY(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n),t,e)},Fjn.hh=function(n,t,e){return 0==t?(!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),wnn(this.Ab,n,e)):Yx(CZ(Yx(H3(this,16),26)||this.zh(),t),66).Nj().Qj(this,dtn(this),t-vF(this.zh()),n,e)},Fjn.jh=function(n,t,e){return 0==t?(!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Ten(this.Ab,n,e)):Yx(CZ(Yx(H3(this,16),26)||this.zh(),t),66).Nj().Rj(this,dtn(this),t-vF(this.zh()),n,e)},Fjn.lh=function(n){return 0==n?!!this.Ab&&0!=this.Ab.i:xX(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n))},Fjn.oh=function(n){return jkn(this,n)},Fjn.sh=function(n,t){if(0===n)return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Hmn(this.Ab),!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void jF(this.Ab,Yx(t,14));E7(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n),t)},Fjn.uh=function(n){wtn(this,128,n)},Fjn.zh=function(){return xjn(),Iat},Fjn.Bh=function(n){if(0===n)return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void Hmn(this.Ab);r9(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n))},Fjn.Gh=function(){this.Bb|=1},Fjn.Hh=function(n){return dpn(this,n)},Fjn.Bb=0,EF(PNn,"EModelElementImpl",150),Wfn(704,150,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1},xf),Fjn.Ih=function(n,t){return Dyn(this,n,t)},Fjn.Jh=function(n){var t,e,i,r;if(this.a!=i1(n)||0!=(256&n.Bb))throw hp(new Qm(NNn+n.zb+ANn));for(e=Iq(n);0!=tW(e.a).i;){if(frn(t=Yx(hyn(e,0,CO(r=Yx(c1(tW(e.a),0),87).c,88)?Yx(r,26):(xjn(),Oat)),26)))return Yx(i=i1(t).Nh().Jh(t),49).th(n),i;e=Iq(t)}return"java.util.Map$Entry"==(null!=n.D?n.D:n.B)?new rR(n):new SD(n)},Fjn.Kh=function(n,t){return fjn(this,n,t)},Fjn._g=function(n,t,e){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),this.Ab;case 1:return this.a}return RY(this,n-vF((xjn(),Mat)),CZ(Yx(H3(this,16),26)||Mat,n),t,e)},Fjn.hh=function(n,t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),wnn(this.Ab,n,e);case 1:return this.a&&(e=Yx(this.a,49).ih(this,4,cct,e)),T8(this,Yx(n,235),e)}return Yx(CZ(Yx(H3(this,16),26)||(xjn(),Mat),t),66).Nj().Qj(this,dtn(this),t-vF((xjn(),Mat)),n,e)},Fjn.jh=function(n,t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Ten(this.Ab,n,e);case 1:return T8(this,null,e)}return Yx(CZ(Yx(H3(this,16),26)||(xjn(),Mat),t),66).Nj().Rj(this,dtn(this),t-vF((xjn(),Mat)),n,e)},Fjn.lh=function(n){switch(n){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return!!this.a}return xX(this,n-vF((xjn(),Mat)),CZ(Yx(H3(this,16),26)||Mat,n))},Fjn.sh=function(n,t){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Hmn(this.Ab),!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void jF(this.Ab,Yx(t,14));case 1:return void Uun(this,Yx(t,235))}E7(this,n-vF((xjn(),Mat)),CZ(Yx(H3(this,16),26)||Mat,n),t)},Fjn.zh=function(){return xjn(),Mat},Fjn.Bh=function(n){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void Hmn(this.Ab);case 1:return void Uun(this,null)}r9(this,n-vF((xjn(),Mat)),CZ(Yx(H3(this,16),26)||Mat,n))},EF(PNn,"EFactoryImpl",704),Wfn(DNn,704,{105:1,2014:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1},ao),Fjn.Ih=function(n,t){switch(n.yj()){case 12:return Yx(t,146).tg();case 13:return I7(t);default:throw hp(new Qm(ONn+n.ne()+ANn))}},Fjn.Jh=function(n){var t;switch(-1==n.G&&(n.G=(t=i1(n))?Ren(t.Mh(),n):-1),n.G){case 4:return new uo;case 6:return new xv;case 7:return new Dv;case 8:return new io;case 9:return new ro;case 10:return new co;case 11:return new so;default:throw hp(new Qm(NNn+n.zb+ANn))}},Fjn.Kh=function(n,t){switch(n.yj()){case 13:case 12:return null;default:throw hp(new Qm(ONn+n.ne()+ANn))}},EF(INn,"ElkGraphFactoryImpl",DNn),Wfn(438,150,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1}),Fjn.Wg=function(){var n;return null==(n=Wq(svn(Yx(H3(this,16),26)||this.zh())))?(kT(),kT(),Vat):new B$(this,n)},Fjn._g=function(n,t,e){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),this.Ab;case 1:return this.ne()}return RY(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n),t,e)},Fjn.lh=function(n){switch(n){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb}return xX(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n))},Fjn.sh=function(n,t){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Hmn(this.Ab),!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void jF(this.Ab,Yx(t,14));case 1:return void this.Lh(lL(t))}E7(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n),t)},Fjn.zh=function(){return xjn(),Cat},Fjn.Bh=function(n){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void Hmn(this.Ab);case 1:return void this.Lh(null)}r9(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n))},Fjn.ne=function(){return this.zb},Fjn.Lh=function(n){E2(this,n)},Fjn.Ib=function(){return B8(this)},Fjn.zb=null,EF(PNn,"ENamedElementImpl",438),Wfn(179,438,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1},Sq),Fjn.Qg=function(n){return ecn(this,n)},Fjn._g=function(n,t,e){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new d_(this,iat,this)),this.rb;case 6:return!this.vb&&(this.vb=new EN(cct,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?Yx(this.Cb,235):null:SG(this)}return RY(this,n-vF((xjn(),Lat)),CZ(Yx(H3(this,16),26)||Lat,n),t,e)},Fjn.hh=function(n,t,e){var i;switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),wnn(this.Ab,n,e);case 4:return this.sb&&(e=Yx(this.sb,49).ih(this,1,ict,e)),H8(this,Yx(n,471),e);case 5:return!this.rb&&(this.rb=new d_(this,iat,this)),wnn(this.rb,n,e);case 6:return!this.vb&&(this.vb=new EN(cct,this,6,7)),wnn(this.vb,n,e);case 7:return this.Cb&&(e=(i=this.Db>>16)>=0?ecn(this,e):this.Cb.ih(this,-1-i,null,e)),opn(this,n,7,e)}return Yx(CZ(Yx(H3(this,16),26)||(xjn(),Lat),t),66).Nj().Qj(this,dtn(this),t-vF((xjn(),Lat)),n,e)},Fjn.jh=function(n,t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Ten(this.Ab,n,e);case 4:return H8(this,null,e);case 5:return!this.rb&&(this.rb=new d_(this,iat,this)),Ten(this.rb,n,e);case 6:return!this.vb&&(this.vb=new EN(cct,this,6,7)),Ten(this.vb,n,e);case 7:return opn(this,null,7,e)}return Yx(CZ(Yx(H3(this,16),26)||(xjn(),Lat),t),66).Nj().Rj(this,dtn(this),t-vF((xjn(),Lat)),n,e)},Fjn.lh=function(n){switch(n){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.yb;case 3:return null!=this.xb;case 4:return!!this.sb;case 5:return!!this.rb&&0!=this.rb.i;case 6:return!!this.vb&&0!=this.vb.i;case 7:return!!SG(this)}return xX(this,n-vF((xjn(),Lat)),CZ(Yx(H3(this,16),26)||Lat,n))},Fjn.oh=function(n){return function(n,t){var e,i,r,c,a,u;if(!n.tb){for(!n.rb&&(n.rb=new d_(n,iat,n)),u=new kE((c=n.rb).i),r=new UO(c);r.e!=r.i.gc();)i=Yx(hen(r),138),(e=Yx(null==(a=i.ne())?Ysn(u.f,null,i):r7(u.g,a,i),138))&&(null==a?Ysn(u.f,null,e):r7(u.g,a,e));n.tb=u}return Yx(aG(n.tb,t),138)}(this,n)||jkn(this,n)},Fjn.sh=function(n,t){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Hmn(this.Ab),!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void jF(this.Ab,Yx(t,14));case 1:return void E2(this,lL(t));case 2:return void M2(this,lL(t));case 3:return void T2(this,lL(t));case 4:return void lon(this,Yx(t,471));case 5:return!this.rb&&(this.rb=new d_(this,iat,this)),Hmn(this.rb),!this.rb&&(this.rb=new d_(this,iat,this)),void jF(this.rb,Yx(t,14));case 6:return!this.vb&&(this.vb=new EN(cct,this,6,7)),Hmn(this.vb),!this.vb&&(this.vb=new EN(cct,this,6,7)),void jF(this.vb,Yx(t,14))}E7(this,n-vF((xjn(),Lat)),CZ(Yx(H3(this,16),26)||Lat,n),t)},Fjn.vh=function(n){var t,e;if(n&&this.rb)for(e=new UO(this.rb);e.e!=e.i.gc();)CO(t=hen(e),351)&&(Yx(t,351).w=null);wtn(this,64,n)},Fjn.zh=function(){return xjn(),Lat},Fjn.Bh=function(n){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void Hmn(this.Ab);case 1:return void E2(this,null);case 2:return void M2(this,null);case 3:return void T2(this,null);case 4:return void lon(this,null);case 5:return!this.rb&&(this.rb=new d_(this,iat,this)),void Hmn(this.rb);case 6:return!this.vb&&(this.vb=new EN(cct,this,6,7)),void Hmn(this.vb)}r9(this,n-vF((xjn(),Lat)),CZ(Yx(H3(this,16),26)||Lat,n))},Fjn.Gh=function(){Srn(this)},Fjn.Mh=function(){return!this.rb&&(this.rb=new d_(this,iat,this)),this.rb},Fjn.Nh=function(){return this.sb},Fjn.Oh=function(){return this.ub},Fjn.Ph=function(){return this.xb},Fjn.Qh=function(){return this.yb},Fjn.Rh=function(n){this.ub=n},Fjn.Ib=function(){var n;return 0!=(64&this.Db)?B8(this):((n=new MA(B8(this))).a+=" (nsURI: ",pI(n,this.yb),n.a+=", nsPrefix: ",pI(n,this.xb),n.a+=")",n.a)},Fjn.xb=null,Fjn.yb=null,EF(PNn,"EPackageImpl",179),Wfn(555,179,{105:1,2016:1,555:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1},Gfn),Fjn.q=!1,Fjn.r=!1;var sct=!1;EF(INn,"ElkGraphPackageImpl",555),Wfn(354,724,{105:1,413:1,160:1,137:1,470:1,354:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},uo),Fjn.Qg=function(n){return Jrn(this,n)},Fjn._g=function(n,t,e){switch(n){case 7:return PG(this);case 8:return this.a}return S7(this,n,t,e)},Fjn.hh=function(n,t,e){var i;return 7===t?(this.Cb&&(e=(i=this.Db>>16)>=0?Jrn(this,e):this.Cb.ih(this,-1-i,null,e)),kK(this,Yx(n,160),e)):sun(this,n,t,e)},Fjn.jh=function(n,t,e){return 7==t?kK(this,null,e):d4(this,n,t,e)},Fjn.lh=function(n){switch(n){case 7:return!!PG(this);case 8:return!_N("",this.a)}return z7(this,n)},Fjn.sh=function(n,t){switch(n){case 7:return void Xbn(this,Yx(t,160));case 8:return void x0(this,lL(t))}Qcn(this,n,t)},Fjn.zh=function(){return ajn(),Rrt},Fjn.Bh=function(n){switch(n){case 7:return void Xbn(this,null);case 8:return void x0(this,"")}rnn(this,n)},Fjn.Ib=function(){return Qon(this)},Fjn.a="",EF(INn,"ElkLabelImpl",354),Wfn(239,725,{105:1,413:1,82:1,160:1,33:1,470:1,239:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},xv),Fjn.Qg=function(n){return ocn(this,n)},Fjn._g=function(n,t,e){switch(n){case 9:return!this.c&&(this.c=new m_(oct,this,9,9)),this.c;case 10:return!this.a&&(this.a=new m_(uct,this,10,11)),this.a;case 11:return IG(this);case 12:return!this.b&&(this.b=new m_(nct,this,12,3)),this.b;case 13:return TA(),!this.a&&(this.a=new m_(uct,this,10,11)),this.a.i>0}return bin(this,n,t,e)},Fjn.hh=function(n,t,e){var i;switch(t){case 9:return!this.c&&(this.c=new m_(oct,this,9,9)),wnn(this.c,n,e);case 10:return!this.a&&(this.a=new m_(uct,this,10,11)),wnn(this.a,n,e);case 11:return this.Cb&&(e=(i=this.Db>>16)>=0?ocn(this,e):this.Cb.ih(this,-1-i,null,e)),vN(this,Yx(n,33),e);case 12:return!this.b&&(this.b=new m_(nct,this,12,3)),wnn(this.b,n,e)}return Lcn(this,n,t,e)},Fjn.jh=function(n,t,e){switch(t){case 9:return!this.c&&(this.c=new m_(oct,this,9,9)),Ten(this.c,n,e);case 10:return!this.a&&(this.a=new m_(uct,this,10,11)),Ten(this.a,n,e);case 11:return vN(this,null,e);case 12:return!this.b&&(this.b=new m_(nct,this,12,3)),Ten(this.b,n,e)}return Ncn(this,n,t,e)},Fjn.lh=function(n){switch(n){case 9:return!!this.c&&0!=this.c.i;case 10:return!!this.a&&0!=this.a.i;case 11:return!!IG(this);case 12:return!!this.b&&0!=this.b.i;case 13:return!this.a&&(this.a=new m_(uct,this,10,11)),this.a.i>0}return B5(this,n)},Fjn.sh=function(n,t){switch(n){case 9:return!this.c&&(this.c=new m_(oct,this,9,9)),Hmn(this.c),!this.c&&(this.c=new m_(oct,this,9,9)),void jF(this.c,Yx(t,14));case 10:return!this.a&&(this.a=new m_(uct,this,10,11)),Hmn(this.a),!this.a&&(this.a=new m_(uct,this,10,11)),void jF(this.a,Yx(t,14));case 11:return void Dbn(this,Yx(t,33));case 12:return!this.b&&(this.b=new m_(nct,this,12,3)),Hmn(this.b),!this.b&&(this.b=new m_(nct,this,12,3)),void jF(this.b,Yx(t,14))}oln(this,n,t)},Fjn.zh=function(){return ajn(),Krt},Fjn.Bh=function(n){switch(n){case 9:return!this.c&&(this.c=new m_(oct,this,9,9)),void Hmn(this.c);case 10:return!this.a&&(this.a=new m_(uct,this,10,11)),void Hmn(this.a);case 11:return void Dbn(this,null);case 12:return!this.b&&(this.b=new m_(nct,this,12,3)),void Hmn(this.b)}yen(this,n)},Fjn.Ib=function(){return ugn(this)},EF(INn,"ElkNodeImpl",239),Wfn(186,725,{105:1,413:1,82:1,160:1,118:1,470:1,186:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},Dv),Fjn.Qg=function(n){return Zrn(this,n)},Fjn._g=function(n,t,e){return 9==n?TG(this):bin(this,n,t,e)},Fjn.hh=function(n,t,e){var i;return 9===t?(this.Cb&&(e=(i=this.Db>>16)>=0?Zrn(this,e):this.Cb.ih(this,-1-i,null,e)),LL(this,Yx(n,33),e)):Lcn(this,n,t,e)},Fjn.jh=function(n,t,e){return 9==t?LL(this,null,e):Ncn(this,n,t,e)},Fjn.lh=function(n){return 9==n?!!TG(this):B5(this,n)},Fjn.sh=function(n,t){9!==n?oln(this,n,t):Mbn(this,Yx(t,33))},Fjn.zh=function(){return ajn(),_rt},Fjn.Bh=function(n){9!==n?yen(this,n):Mbn(this,null)},Fjn.Ib=function(){return ogn(this)},EF(INn,"ElkPortImpl",186);var hct=aR(exn,"BasicEMap/Entry");Wfn(1092,115,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1,114:1,115:1},so),Fjn.Fb=function(n){return this===n},Fjn.cd=function(){return this.b},Fjn.Hb=function(){return _A(this)},Fjn.Uh=function(n){D0(this,Yx(n,146))},Fjn._g=function(n,t,e){switch(n){case 0:return this.b;case 1:return this.c}return $en(this,n,t,e)},Fjn.lh=function(n){switch(n){case 0:return!!this.b;case 1:return null!=this.c}return uen(this,n)},Fjn.sh=function(n,t){switch(n){case 0:return void D0(this,Yx(t,146));case 1:return void _0(this,t)}Vsn(this,n,t)},Fjn.zh=function(){return ajn(),Frt},Fjn.Bh=function(n){switch(n){case 0:return void D0(this,null);case 1:return void _0(this,null)}usn(this,n)},Fjn.Sh=function(){var n;return-1==this.a&&(n=this.b,this.a=n?W5(n):0),this.a},Fjn.dd=function(){return this.c},Fjn.Th=function(n){this.a=n},Fjn.ed=function(n){var t;return t=this.c,_0(this,n),t},Fjn.Ib=function(){var n;return 0!=(64&this.Db)?Kln(this):(yI(yI(yI(n=new Ay,this.b?this.b.tg():aEn),pIn),xA(this.c)),n.a)},Fjn.a=-1,Fjn.c=null;var fct,lct,bct,wct,dct,gct,pct,vct,mct=EF(INn,"ElkPropertyToValueMapEntryImpl",1092);Wfn(984,1,{},lo),EF(cxn,"JsonAdapter",984),Wfn(210,60,eTn,hy),EF(cxn,"JsonImportException",210),Wfn(857,1,{},icn),EF(cxn,"JsonImporter",857),Wfn(891,1,{},kP),EF(cxn,"JsonImporter/lambda$0$Type",891),Wfn(892,1,{},jP),EF(cxn,"JsonImporter/lambda$1$Type",892),Wfn(900,1,{},tg),EF(cxn,"JsonImporter/lambda$10$Type",900),Wfn(902,1,{},EP),EF(cxn,"JsonImporter/lambda$11$Type",902),Wfn(903,1,{},TP),EF(cxn,"JsonImporter/lambda$12$Type",903),Wfn(909,1,{},$H),EF(cxn,"JsonImporter/lambda$13$Type",909),Wfn(908,1,{},AH),EF(cxn,"JsonImporter/lambda$14$Type",908),Wfn(904,1,{},MP),EF(cxn,"JsonImporter/lambda$15$Type",904),Wfn(905,1,{},SP),EF(cxn,"JsonImporter/lambda$16$Type",905),Wfn(906,1,{},PP),EF(cxn,"JsonImporter/lambda$17$Type",906),Wfn(907,1,{},IP),EF(cxn,"JsonImporter/lambda$18$Type",907),Wfn(912,1,{},eg),EF(cxn,"JsonImporter/lambda$19$Type",912),Wfn(893,1,{},ig),EF(cxn,"JsonImporter/lambda$2$Type",893),Wfn(910,1,{},rg),EF(cxn,"JsonImporter/lambda$20$Type",910),Wfn(911,1,{},cg),EF(cxn,"JsonImporter/lambda$21$Type",911),Wfn(915,1,{},ag),EF(cxn,"JsonImporter/lambda$22$Type",915),Wfn(913,1,{},ug),EF(cxn,"JsonImporter/lambda$23$Type",913),Wfn(914,1,{},og),EF(cxn,"JsonImporter/lambda$24$Type",914),Wfn(917,1,{},sg),EF(cxn,"JsonImporter/lambda$25$Type",917),Wfn(916,1,{},hg),EF(cxn,"JsonImporter/lambda$26$Type",916),Wfn(918,1,PEn,CP),Fjn.td=function(n){!function(n,t,e){var i,r;r=null,(i=jG(n,e))&&(r=osn(i)),Ftn(t,e,r)}(this.b,this.a,lL(n))},EF(cxn,"JsonImporter/lambda$27$Type",918),Wfn(919,1,PEn,OP),Fjn.td=function(n){!function(n,t,e){var i,r;r=null,(i=jG(n,e))&&(r=osn(i)),Ftn(t,e,r)}(this.b,this.a,lL(n))},EF(cxn,"JsonImporter/lambda$28$Type",919),Wfn(920,1,{},AP),EF(cxn,"JsonImporter/lambda$29$Type",920),Wfn(896,1,{},fg),EF(cxn,"JsonImporter/lambda$3$Type",896),Wfn(921,1,{},$P),EF(cxn,"JsonImporter/lambda$30$Type",921),Wfn(922,1,{},lg),EF(cxn,"JsonImporter/lambda$31$Type",922),Wfn(923,1,{},bg),EF(cxn,"JsonImporter/lambda$32$Type",923),Wfn(924,1,{},wg),EF(cxn,"JsonImporter/lambda$33$Type",924),Wfn(925,1,{},dg),EF(cxn,"JsonImporter/lambda$34$Type",925),Wfn(859,1,{},gg),EF(cxn,"JsonImporter/lambda$35$Type",859),Wfn(929,1,{},Rx),EF(cxn,"JsonImporter/lambda$36$Type",929),Wfn(926,1,PEn,pg),Fjn.td=function(n){!function(n,t){var e;nq(e=new Om,"x",t.a),nq(e,"y",t.b),nB(n,e)}(this.a,Yx(n,469))},EF(cxn,"JsonImporter/lambda$37$Type",926),Wfn(927,1,PEn,FP),Fjn.td=function(n){!function(n,t,e){Ucn(t,ksn(n,e))}(this.a,this.b,Yx(n,202))},EF(cxn,"JsonImporter/lambda$38$Type",927),Wfn(928,1,PEn,BP),Fjn.td=function(n){!function(n,t,e){Ucn(t,ksn(n,e))}(this.a,this.b,Yx(n,202))},EF(cxn,"JsonImporter/lambda$39$Type",928),Wfn(894,1,{},vg),EF(cxn,"JsonImporter/lambda$4$Type",894),Wfn(930,1,PEn,mg),Fjn.td=function(n){!function(n,t){var e;nq(e=new Om,"x",t.a),nq(e,"y",t.b),nB(n,e)}(this.a,Yx(n,8))},EF(cxn,"JsonImporter/lambda$40$Type",930),Wfn(895,1,{},yg),EF(cxn,"JsonImporter/lambda$5$Type",895),Wfn(899,1,{},kg),EF(cxn,"JsonImporter/lambda$6$Type",899),Wfn(897,1,{},jg),EF(cxn,"JsonImporter/lambda$7$Type",897),Wfn(898,1,{},Eg),EF(cxn,"JsonImporter/lambda$8$Type",898),Wfn(901,1,{},Tg),EF(cxn,"JsonImporter/lambda$9$Type",901),Wfn(948,1,PEn,Mg),Fjn.td=function(n){nB(this.a,new zF(lL(n)))},EF(cxn,"JsonMetaDataConverter/lambda$0$Type",948),Wfn(949,1,PEn,Sg),Fjn.td=function(n){!function(n,t){nB(n,new zF(null!=t.f?t.f:""+t.g))}(this.a,Yx(n,237))},EF(cxn,"JsonMetaDataConverter/lambda$1$Type",949),Wfn(950,1,PEn,Pg),Fjn.td=function(n){!function(n,t){null!=t.c&&nB(n,new zF(t.c))}(this.a,Yx(n,149))},EF(cxn,"JsonMetaDataConverter/lambda$2$Type",950),Wfn(951,1,PEn,Ig),Fjn.td=function(n){!function(n,t){nB(n,new zF(null!=t.f?t.f:""+t.g))}(this.a,Yx(n,175))},EF(cxn,"JsonMetaDataConverter/lambda$3$Type",951),Wfn(237,22,{3:1,35:1,22:1,237:1},_P);var yct,kct=X1(GSn,"GraphFeature",237,u_n,(function(){return zfn(),x4(Gy(kct,1),XEn,237,0,[vct,dct,gct,wct,pct,lct,fct,bct])}),(function(n){return zfn(),rZ((m3(),yct),n)}));Wfn(13,1,{35:1,146:1},Og,_L,FI,DC),Fjn.wd=function(n){return function(n,t){return FV(n.b,t.tg())}(this,Yx(n,146))},Fjn.Fb=function(n){return Oq(this,n)},Fjn.wg=function(){return oen(this)},Fjn.tg=function(){return this.b},Fjn.Hb=function(){return Xen(this.b)},Fjn.Ib=function(){return this.b},EF(GSn,"Property",13),Wfn(818,1,FMn,Cg),Fjn.ue=function(n,t){return function(n,t,e){var i,r;return i=Yx(t.We(n.a),35),r=Yx(e.We(n.a),35),null!=i&&null!=r?u3(i,r):null!=i?-1:null!=r?1:0}(this,Yx(n,94),Yx(t,94))},Fjn.Fb=function(n){return this===n},Fjn.ve=function(){return new Eb(this)},EF(GSn,"PropertyHolderComparator",818),Wfn(695,1,fEn,$g),Fjn.Nb=function(n){I_(this,n)},Fjn.Pb=function(){return function(n){var t;if(!n.a)throw hp(new WB);return t=n.a,n.a=IG(n.a),t}(this)},Fjn.Qb=function(){Bk()},Fjn.Ob=function(){return!!this.a},EF(yxn,"ElkGraphUtil/AncestorIterator",695);var jct=aR(exn,"EList");Wfn(67,52,{20:1,28:1,52:1,14:1,15:1,67:1,58:1}),Fjn.Vc=function(n,t){y9(this,n,t)},Fjn.Fc=function(n){return fY(this,n)},Fjn.Wc=function(n,t){return f5(this,n,t)},Fjn.Gc=function(n){return jF(this,n)},Fjn.Zh=function(){return new u$(this)},Fjn.$h=function(){return new o$(this)},Fjn._h=function(n){return b0(this,n)},Fjn.ai=function(){return!0},Fjn.bi=function(n,t){},Fjn.ci=function(){},Fjn.di=function(n,t){XQ(this,n,t)},Fjn.ei=function(n,t,e){},Fjn.fi=function(n,t){},Fjn.gi=function(n,t,e){},Fjn.Fb=function(n){return Pdn(this,n)},Fjn.Hb=function(){return L4(this)},Fjn.hi=function(){return!1},Fjn.Kc=function(){return new UO(this)},Fjn.Yc=function(){return new a$(this)},Fjn.Zc=function(n){var t;if(t=this.gc(),n<0||n>t)throw hp(new jN(n,t));return new Z_(this,n)},Fjn.ji=function(n,t){this.ii(n,this.Xc(t))},Fjn.Mc=function(n){return qJ(this,n)},Fjn.li=function(n,t){return t},Fjn._c=function(n,t){return Ken(this,n,t)},Fjn.Ib=function(){return D7(this)},Fjn.ni=function(){return!0},Fjn.oi=function(n,t){return k6(this,t)},EF(exn,"AbstractEList",67),Wfn(63,67,Mxn,go,FZ,t3),Fjn.Vh=function(n,t){return hun(this,n,t)},Fjn.Wh=function(n){return $in(this,n)},Fjn.Xh=function(n,t){X8(this,n,t)},Fjn.Yh=function(n){NV(this,n)},Fjn.pi=function(n){return AY(this,n)},Fjn.$b=function(){xV(this)},Fjn.Hc=function(n){return Fcn(this,n)},Fjn.Xb=function(n){return c1(this,n)},Fjn.qi=function(n){var t,e,i;++this.j,n>(e=null==this.g?0:this.g.length)&&(i=this.g,(t=e+(e/2|0)+4)=0&&(this.$c(t),!0)},Fjn.mi=function(n,t){return this.Ui(n,this.oi(n,t))},Fjn.gc=function(){return this.Vi()},Fjn.Pc=function(){return this.Wi()},Fjn.Qc=function(n){return this.Xi(n)},Fjn.Ib=function(){return this.Yi()},EF(exn,"DelegatingEList",1995),Wfn(1996,1995,dDn),Fjn.Vh=function(n,t){return Dpn(this,n,t)},Fjn.Wh=function(n){return this.Vh(this.Vi(),n)},Fjn.Xh=function(n,t){_fn(this,n,t)},Fjn.Yh=function(n){yfn(this,n)},Fjn.ai=function(){return!this.bj()},Fjn.$b=function(){Wmn(this)},Fjn.Zi=function(n,t,e,i,r){return new _q(this,n,t,e,i,r)},Fjn.$i=function(n){K3(this.Ai(),n)},Fjn._i=function(){return null},Fjn.aj=function(){return-1},Fjn.Ai=function(){return null},Fjn.bj=function(){return!1},Fjn.cj=function(n,t){return t},Fjn.dj=function(n,t){return t},Fjn.ej=function(){return!1},Fjn.fj=function(){return!this.Ri()},Fjn.ii=function(n,t){var e,i;return this.ej()?(i=this.fj(),e=Hun(this,n,t),this.$i(this.Zi(7,d9(t),e,n,i)),e):Hun(this,n,t)},Fjn.$c=function(n){var t,e,i,r;return this.ej()?(e=null,i=this.fj(),t=this.Zi(4,r=uR(this,n),null,n,i),this.bj()&&r?(e=this.dj(r,e))?(e.Ei(t),e.Fi()):this.$i(t):e?(e.Ei(t),e.Fi()):this.$i(t),r):(r=uR(this,n),this.bj()&&r&&(e=this.dj(r,null))&&e.Fi(),r)},Fjn.mi=function(n,t){return Rpn(this,n,t)},EF(vNn,"DelegatingNotifyingListImpl",1996),Wfn(143,1,gDn),Fjn.Ei=function(n){return Pan(this,n)},Fjn.Fi=function(){vJ(this)},Fjn.xi=function(){return this.d},Fjn._i=function(){return null},Fjn.gj=function(){return null},Fjn.yi=function(n){return-1},Fjn.zi=function(){return Rwn(this)},Fjn.Ai=function(){return null},Fjn.Bi=function(){return Kwn(this)},Fjn.Ci=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},Fjn.hj=function(){return!1},Fjn.Di=function(n){var t,e,i,r,c,a,u,o;switch(this.d){case 1:case 2:switch(n.xi()){case 1:case 2:if(iI(n.Ai())===iI(this.Ai())&&this.yi(null)==n.yi(null))return this.g=n.zi(),1==n.xi()&&(this.d=1),!0}case 4:if(4===n.xi()&&iI(n.Ai())===iI(this.Ai())&&this.yi(null)==n.yi(null))return a=syn(this),c=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,i=n.Ci(),this.d=6,o=new FZ(2),c<=i?(fY(o,this.n),fY(o,n.Bi()),this.g=x4(Gy(Wot,1),MTn,25,15,[this.o=c,i+1])):(fY(o,n.Bi()),fY(o,this.n),this.g=x4(Gy(Wot,1),MTn,25,15,[this.o=i,c])),this.n=o,a||(this.o=-2-this.o-1),!0;break;case 6:if(4===n.xi()&&iI(n.Ai())===iI(this.Ai())&&this.yi(null)==n.yi(null)){for(a=syn(this),i=n.Ci(),u=Yx(this.g,48),e=VQ(Wot,MTn,25,u.length+1,15,1),t=0;t>>0).toString(16))).a+=" (eventType: ",this.d){case 1:e.a+="SET";break;case 2:e.a+="UNSET";break;case 3:e.a+="ADD";break;case 5:e.a+="ADD_MANY";break;case 4:e.a+="REMOVE";break;case 6:e.a+="REMOVE_MANY";break;case 7:e.a+="MOVE";break;case 8:e.a+="REMOVING_ADAPTER";break;case 9:e.a+="RESOLVE";break;default:Zk(e,this.d)}if(Tgn(this)&&(e.a+=", touch: true"),e.a+=", position: ",Zk(e,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),e.a+=", notifier: ",gI(e,this.Ai()),e.a+=", feature: ",gI(e,this._i()),e.a+=", oldValue: ",gI(e,Kwn(this)),e.a+=", newValue: ",6==this.d&&CO(this.g,48)){for(t=Yx(this.g,48),e.a+="[",n=0;n10?(this.b&&this.c.j==this.a||(this.b=new kR(this),this.a=this.j),gE(this.b,n)):Fcn(this,n)},Fjn.ni=function(){return!0},Fjn.a=0,EF(exn,"AbstractEList/1",953),Wfn(295,73,VTn,jN),EF(exn,"AbstractEList/BasicIndexOutOfBoundsException",295),Wfn(40,1,fEn,UO),Fjn.Nb=function(n){I_(this,n)},Fjn.mj=function(){if(this.i.j!=this.f)throw hp(new Dp)},Fjn.nj=function(){return hen(this)},Fjn.Ob=function(){return this.e!=this.i.gc()},Fjn.Pb=function(){return this.nj()},Fjn.Qb=function(){tan(this)},Fjn.e=0,Fjn.f=0,Fjn.g=-1,EF(exn,"AbstractEList/EIterator",40),Wfn(278,40,yEn,a$,Z_),Fjn.Qb=function(){tan(this)},Fjn.Rb=function(n){Enn(this,n)},Fjn.oj=function(){var n;try{return n=this.d.Xb(--this.e),this.mj(),this.g=this.e,n}catch(n){throw CO(n=j4(n),73)?(this.mj(),hp(new Kp)):hp(n)}},Fjn.pj=function(n){Rin(this,n)},Fjn.Sb=function(){return 0!=this.e},Fjn.Tb=function(){return this.e},Fjn.Ub=function(){return this.oj()},Fjn.Vb=function(){return this.e-1},Fjn.Wb=function(n){this.pj(n)},EF(exn,"AbstractEList/EListIterator",278),Wfn(341,40,fEn,u$),Fjn.nj=function(){return fen(this)},Fjn.Qb=function(){throw hp(new xp)},EF(exn,"AbstractEList/NonResolvingEIterator",341),Wfn(385,278,yEn,o$,WN),Fjn.Rb=function(n){throw hp(new xp)},Fjn.nj=function(){var n;try{return n=this.c.ki(this.e),this.mj(),this.g=this.e++,n}catch(n){throw CO(n=j4(n),73)?(this.mj(),hp(new Kp)):hp(n)}},Fjn.oj=function(){var n;try{return n=this.c.ki(--this.e),this.mj(),this.g=this.e,n}catch(n){throw CO(n=j4(n),73)?(this.mj(),hp(new Kp)):hp(n)}},Fjn.Qb=function(){throw hp(new xp)},Fjn.Wb=function(n){throw hp(new xp)},EF(exn,"AbstractEList/NonResolvingEListIterator",385),Wfn(1982,67,mDn),Fjn.Vh=function(n,t){var e,i,r,c,a,u,o,s,h;if(0!=(i=t.gc())){for(e=d6(this,(s=null==(o=Yx(H3(this.a,4),126))?0:o.length)+i),(h=s-n)>0&&smn(o,n,e,n+i,h),u=t.Kc(),c=0;ce)throw hp(new jN(n,e));return new PB(this,n)},Fjn.$b=function(){var n,t;++this.j,t=null==(n=Yx(H3(this.a,4),126))?0:n.length,xtn(this,null),XQ(this,t,n)},Fjn.Hc=function(n){var t,e,i,r;if(null!=(t=Yx(H3(this.a,4),126)))if(null!=n){for(i=0,r=(e=t).length;i=(e=null==(t=Yx(H3(this.a,4),126))?0:t.length))throw hp(new jN(n,e));return t[n]},Fjn.Xc=function(n){var t,e,i;if(null!=(t=Yx(H3(this.a,4),126)))if(null!=n){for(e=0,i=t.length;ee)throw hp(new jN(n,e));return new SB(this,n)},Fjn.ii=function(n,t){var e,i,r;if(n>=(r=null==(e=Hnn(this))?0:e.length))throw hp(new Hm(jxn+n+Exn+r));if(t>=r)throw hp(new Hm(Txn+t+Exn+r));return i=e[t],n!=t&&(n=(a=null==(e=Yx(H3(n.a,4),126))?0:e.length))throw hp(new jN(t,a));return r=e[t],1==a?i=null:(smn(e,0,i=VQ(Oct,vDn,415,a-1,0,1),0,t),(c=a-t-1)>0&&smn(e,t+1,i,t,c)),xtn(n,i),_sn(n,t,r),r}(this,n)},Fjn.mi=function(n,t){var e,i;return i=(e=Hnn(this))[n],FC(e,n,k6(this,t)),xtn(this,e),i},Fjn.gc=function(){var n;return null==(n=Yx(H3(this.a,4),126))?0:n.length},Fjn.Pc=function(){var n,t,e;return e=null==(n=Yx(H3(this.a,4),126))?0:n.length,t=VQ(Oct,vDn,415,e,0,1),e>0&&smn(n,0,t,0,e),t},Fjn.Qc=function(n){var t,e;return(e=null==(t=Yx(H3(this.a,4),126))?0:t.length)>0&&(n.lengthe&&DF(n,e,null),n},EF(exn,"ArrayDelegatingEList",1982),Wfn(1038,40,fEn,fV),Fjn.mj=function(){if(this.b.j!=this.f||iI(Yx(H3(this.b.a,4),126))!==iI(this.a))throw hp(new Dp)},Fjn.Qb=function(){tan(this),this.a=Yx(H3(this.b.a,4),126)},EF(exn,"ArrayDelegatingEList/EIterator",1038),Wfn(706,278,yEn,b_,SB),Fjn.mj=function(){if(this.b.j!=this.f||iI(Yx(H3(this.b.a,4),126))!==iI(this.a))throw hp(new Dp)},Fjn.pj=function(n){Rin(this,n),this.a=Yx(H3(this.b.a,4),126)},Fjn.Qb=function(){tan(this),this.a=Yx(H3(this.b.a,4),126)},EF(exn,"ArrayDelegatingEList/EListIterator",706),Wfn(1039,341,fEn,lV),Fjn.mj=function(){if(this.b.j!=this.f||iI(Yx(H3(this.b.a,4),126))!==iI(this.a))throw hp(new Dp)},EF(exn,"ArrayDelegatingEList/NonResolvingEIterator",1039),Wfn(707,385,yEn,w_,PB),Fjn.mj=function(){if(this.b.j!=this.f||iI(Yx(H3(this.b.a,4),126))!==iI(this.a))throw hp(new Dp)},EF(exn,"ArrayDelegatingEList/NonResolvingEListIterator",707),Wfn(606,295,VTn,BI),EF(exn,"BasicEList/BasicIndexOutOfBoundsException",606),Wfn(696,63,Mxn,QP),Fjn.Vc=function(n,t){throw hp(new xp)},Fjn.Fc=function(n){throw hp(new xp)},Fjn.Wc=function(n,t){throw hp(new xp)},Fjn.Gc=function(n){throw hp(new xp)},Fjn.$b=function(){throw hp(new xp)},Fjn.qi=function(n){throw hp(new xp)},Fjn.Kc=function(){return this.Zh()},Fjn.Yc=function(){return this.$h()},Fjn.Zc=function(n){return this._h(n)},Fjn.ii=function(n,t){throw hp(new xp)},Fjn.ji=function(n,t){throw hp(new xp)},Fjn.$c=function(n){throw hp(new xp)},Fjn.Mc=function(n){throw hp(new xp)},Fjn._c=function(n,t){throw hp(new xp)},EF(exn,"BasicEList/UnmodifiableEList",696),Wfn(705,1,{3:1,20:1,14:1,15:1,58:1,589:1}),Fjn.Vc=function(n,t){!function(n,t,e){n.c.Vc(t,Yx(e,133))}(this,n,Yx(t,42))},Fjn.Fc=function(n){return function(n,t){return n.c.Fc(Yx(t,133))}(this,Yx(n,42))},Fjn.Jc=function(n){XW(this,n)},Fjn.Xb=function(n){return Yx(c1(this.c,n),133)},Fjn.ii=function(n,t){return Yx(this.c.ii(n,t),42)},Fjn.ji=function(n,t){!function(n,t,e){n.c.ji(t,Yx(e,133))}(this,n,Yx(t,42))},Fjn.Lc=function(){return new SR(null,new Nz(this,16))},Fjn.$c=function(n){return Yx(this.c.$c(n),42)},Fjn._c=function(n,t){return function(n,t,e){return Yx(n.c._c(t,Yx(e,133)),42)}(this,n,Yx(t,42))},Fjn.ad=function(n){I2(this,n)},Fjn.Nc=function(){return new Nz(this,16)},Fjn.Oc=function(){return new SR(null,new Nz(this,16))},Fjn.Wc=function(n,t){return this.c.Wc(n,t)},Fjn.Gc=function(n){return this.c.Gc(n)},Fjn.$b=function(){this.c.$b()},Fjn.Hc=function(n){return this.c.Hc(n)},Fjn.Ic=function(n){return m4(this.c,n)},Fjn.qj=function(){var n,t;if(null==this.d){for(this.d=VQ(Ect,yDn,63,2*this.f+1,0,1),t=this.e,this.f=0,n=this.c.Kc();n.e!=n.i.gc();)tin(this,Yx(n.nj(),133));this.e=t}},Fjn.Fb=function(n){return UN(this,n)},Fjn.Hb=function(){return L4(this.c)},Fjn.Xc=function(n){return this.c.Xc(n)},Fjn.rj=function(){this.c=new Lg(this)},Fjn.dc=function(){return 0==this.f},Fjn.Kc=function(){return this.c.Kc()},Fjn.Yc=function(){return this.c.Yc()},Fjn.Zc=function(n){return this.c.Zc(n)},Fjn.sj=function(){return UQ(this)},Fjn.tj=function(n,t,e){return new Kx(n,t,e)},Fjn.uj=function(){return new vo},Fjn.Mc=function(n){return w0(this,n)},Fjn.gc=function(){return this.f},Fjn.bd=function(n,t){return new Oz(this.c,n,t)},Fjn.Pc=function(){return this.c.Pc()},Fjn.Qc=function(n){return this.c.Qc(n)},Fjn.Ib=function(){return D7(this.c)},Fjn.e=0,Fjn.f=0,EF(exn,"BasicEMap",705),Wfn(1033,63,Mxn,Lg),Fjn.bi=function(n,t){!function(n,t){tin(n.a,t)}(this,Yx(t,133))},Fjn.ei=function(n,t,e){++(this,Yx(t,133),this).a.e},Fjn.fi=function(n,t){!function(n,t){N9(n.a,t)}(this,Yx(t,133))},Fjn.gi=function(n,t,e){!function(n,t,e){N9(n.a,e),tin(n.a,t)}(this,Yx(t,133),Yx(e,133))},Fjn.di=function(n,t){A3(this.a)},EF(exn,"BasicEMap/1",1033),Wfn(1034,63,Mxn,vo),Fjn.ri=function(n){return VQ(Lct,kDn,612,n,0,1)},EF(exn,"BasicEMap/2",1034),Wfn(1035,dEn,gEn,Ng),Fjn.$b=function(){this.a.c.$b()},Fjn.Hc=function(n){return mnn(this.a,n)},Fjn.Kc=function(){return 0==this.a.f?(iL(),$ct.a):new Tk(this.a)},Fjn.Mc=function(n){var t;return t=this.a.f,ttn(this.a,n),this.a.f!=t},Fjn.gc=function(){return this.a.f},EF(exn,"BasicEMap/3",1035),Wfn(1036,28,wEn,xg),Fjn.$b=function(){this.a.c.$b()},Fjn.Hc=function(n){return Idn(this.a,n)},Fjn.Kc=function(){return 0==this.a.f?(iL(),$ct.a):new Mk(this.a)},Fjn.gc=function(){return this.a.f},EF(exn,"BasicEMap/4",1036),Wfn(1037,dEn,gEn,Dg),Fjn.$b=function(){this.a.c.$b()},Fjn.Hc=function(n){var t,e,i,r,c,a,u,o,s;if(this.a.f>0&&CO(n,42)&&(this.a.qj(),r=null==(u=(o=Yx(n,42)).cd())?0:W5(u),c=KL(this.a,r),t=this.a.d[c]))for(e=Yx(t.g,367),s=t.i,a=0;a"+this.c},Fjn.a=0;var $ct,Lct=EF(exn,"BasicEMap/EntryImpl",612);Wfn(536,1,{},oo),EF(exn,"BasicEMap/View",536),Wfn(768,1,{}),Fjn.Fb=function(n){return sln((XH(),TFn),n)},Fjn.Hb=function(){return K5((XH(),TFn))},Fjn.Ib=function(){return Gun((XH(),TFn))},EF(exn,"ECollections/BasicEmptyUnmodifiableEList",768),Wfn(1312,1,yEn,mo),Fjn.Nb=function(n){I_(this,n)},Fjn.Rb=function(n){throw hp(new xp)},Fjn.Ob=function(){return!1},Fjn.Sb=function(){return!1},Fjn.Pb=function(){throw hp(new Kp)},Fjn.Tb=function(){return 0},Fjn.Ub=function(){throw hp(new Kp)},Fjn.Vb=function(){return-1},Fjn.Qb=function(){throw hp(new xp)},Fjn.Wb=function(n){throw hp(new xp)},EF(exn,"ECollections/BasicEmptyUnmodifiableEList/1",1312),Wfn(1310,768,{20:1,14:1,15:1,58:1},Rv),Fjn.Vc=function(n,t){wj()},Fjn.Fc=function(n){return dj()},Fjn.Wc=function(n,t){return gj()},Fjn.Gc=function(n){return pj()},Fjn.$b=function(){vj()},Fjn.Hc=function(n){return!1},Fjn.Ic=function(n){return!1},Fjn.Jc=function(n){XW(this,n)},Fjn.Xb=function(n){return CI((XH(),n)),null},Fjn.Xc=function(n){return-1},Fjn.dc=function(){return!0},Fjn.Kc=function(){return this.a},Fjn.Yc=function(){return this.a},Fjn.Zc=function(n){return this.a},Fjn.ii=function(n,t){return mj()},Fjn.ji=function(n,t){yj()},Fjn.Lc=function(){return new SR(null,new Nz(this,16))},Fjn.$c=function(n){return kj()},Fjn.Mc=function(n){return jj()},Fjn._c=function(n,t){return Ej()},Fjn.gc=function(){return 0},Fjn.ad=function(n){I2(this,n)},Fjn.Nc=function(){return new Nz(this,16)},Fjn.Oc=function(){return new SR(null,new Nz(this,16))},Fjn.bd=function(n,t){return XH(),new Oz(TFn,n,t)},Fjn.Pc=function(){return CK((XH(),TFn))},Fjn.Qc=function(n){return XH(),_in(TFn,n)},EF(exn,"ECollections/EmptyUnmodifiableEList",1310),Wfn(1311,768,{20:1,14:1,15:1,58:1,589:1},Kv),Fjn.Vc=function(n,t){wj()},Fjn.Fc=function(n){return dj()},Fjn.Wc=function(n,t){return gj()},Fjn.Gc=function(n){return pj()},Fjn.$b=function(){vj()},Fjn.Hc=function(n){return!1},Fjn.Ic=function(n){return!1},Fjn.Jc=function(n){XW(this,n)},Fjn.Xb=function(n){return CI((XH(),n)),null},Fjn.Xc=function(n){return-1},Fjn.dc=function(){return!0},Fjn.Kc=function(){return this.a},Fjn.Yc=function(){return this.a},Fjn.Zc=function(n){return this.a},Fjn.ii=function(n,t){return mj()},Fjn.ji=function(n,t){yj()},Fjn.Lc=function(){return new SR(null,new Nz(this,16))},Fjn.$c=function(n){return kj()},Fjn.Mc=function(n){return jj()},Fjn._c=function(n,t){return Ej()},Fjn.gc=function(){return 0},Fjn.ad=function(n){I2(this,n)},Fjn.Nc=function(){return new Nz(this,16)},Fjn.Oc=function(){return new SR(null,new Nz(this,16))},Fjn.bd=function(n,t){return XH(),new Oz(TFn,n,t)},Fjn.Pc=function(){return CK((XH(),TFn))},Fjn.Qc=function(n){return XH(),_in(TFn,n)},Fjn.sj=function(){return XH(),XH(),MFn},EF(exn,"ECollections/EmptyUnmodifiableEMap",1311);var Nct,xct=aR(exn,"Enumerator");Wfn(281,1,{281:1},xdn),Fjn.Fb=function(n){var t;return this===n||!!CO(n,281)&&(t=Yx(n,281),this.f==t.f&&function(n,t){return null==n?null==t:vtn(n,t)}(this.i,t.i)&&QR(this.a,0!=(256&this.f)?0!=(256&t.f)?t.a:null:0!=(256&t.f)?null:t.a)&&QR(this.d,t.d)&&QR(this.g,t.g)&&QR(this.e,t.e)&&function(n,t){var e,i;if(n.j.length!=t.j.length)return!1;for(e=0,i=n.j.length;e=0?n.Bh(e):Ehn(n,t)},EF(PNn,"BasicEObjectImpl/4",1027),Wfn(1983,1,{108:1}),Fjn.bk=function(n){this.e=0==n?Fat:VQ(UKn,iEn,1,n,5,1)},Fjn.Ch=function(n){return this.e[n]},Fjn.Dh=function(n,t){this.e[n]=t},Fjn.Eh=function(n){this.e[n]=null},Fjn.ck=function(){return this.c},Fjn.dk=function(){throw hp(new xp)},Fjn.ek=function(){throw hp(new xp)},Fjn.fk=function(){return this.d},Fjn.gk=function(){return null!=this.e},Fjn.hk=function(n){this.c=n},Fjn.ik=function(n){throw hp(new xp)},Fjn.jk=function(n){throw hp(new xp)},Fjn.kk=function(n){this.d=n},EF(PNn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",1983),Wfn(185,1983,{108:1},Df),Fjn.dk=function(){return this.a},Fjn.ek=function(){return this.b},Fjn.ik=function(n){this.a=n},Fjn.jk=function(n){this.b=n},EF(PNn,"BasicEObjectImpl/EPropertiesHolderImpl",185),Wfn(506,97,SNn,yo),Fjn.Kg=function(){return this.f},Fjn.Pg=function(){return this.k},Fjn.Rg=function(n,t){this.g=n,this.i=t},Fjn.Tg=function(){return 0==(2&this.j)?this.zh():this.ph().ck()},Fjn.Vg=function(){return this.i},Fjn.Mg=function(){return 0!=(1&this.j)},Fjn.eh=function(){return this.g},Fjn.kh=function(){return 0!=(4&this.j)},Fjn.ph=function(){return!this.k&&(this.k=new Df),this.k},Fjn.th=function(n){this.ph().hk(n),n?this.j|=2:this.j&=-3},Fjn.vh=function(n){this.ph().jk(n),n?this.j|=4:this.j&=-5},Fjn.zh=function(){return(YF(),gat).S},Fjn.i=0,Fjn.j=1,EF(PNn,"EObjectImpl",506),Wfn(780,506,{105:1,92:1,90:1,56:1,108:1,49:1,97:1},SD),Fjn.Ch=function(n){return this.e[n]},Fjn.Dh=function(n,t){this.e[n]=t},Fjn.Eh=function(n){this.e[n]=null},Fjn.Tg=function(){return this.d},Fjn.Yg=function(n){return tnn(this.d,n)},Fjn.$g=function(){return this.d},Fjn.dh=function(){return null!=this.e},Fjn.ph=function(){return!this.k&&(this.k=new ko),this.k},Fjn.th=function(n){this.d=n},Fjn.yh=function(){var n;return null==this.e&&(n=vF(this.d),this.e=0==n?Bat:VQ(UKn,iEn,1,n,5,1)),this},Fjn.Ah=function(){return 0},EF(PNn,"DynamicEObjectImpl",780),Wfn(1376,780,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1},rR),Fjn.Fb=function(n){return this===n},Fjn.Hb=function(){return _A(this)},Fjn.th=function(n){this.d=n,this.b=Ybn(n,"key"),this.c=Ybn(n,KNn)},Fjn.Sh=function(){var n;return-1==this.a&&(n=KJ(this,this.b),this.a=null==n?0:W5(n)),this.a},Fjn.cd=function(){return KJ(this,this.b)},Fjn.dd=function(){return KJ(this,this.c)},Fjn.Th=function(n){this.a=n},Fjn.Uh=function(n){bG(this,this.b,n)},Fjn.ed=function(n){var t;return t=KJ(this,this.c),bG(this,this.c,n),t},Fjn.a=0,EF(PNn,"DynamicEObjectImpl/BasicEMapEntry",1376),Wfn(1377,1,{108:1},ko),Fjn.bk=function(n){throw hp(new xp)},Fjn.Ch=function(n){throw hp(new xp)},Fjn.Dh=function(n,t){throw hp(new xp)},Fjn.Eh=function(n){throw hp(new xp)},Fjn.ck=function(){throw hp(new xp)},Fjn.dk=function(){return this.a},Fjn.ek=function(){return this.b},Fjn.fk=function(){return this.c},Fjn.gk=function(){throw hp(new xp)},Fjn.hk=function(n){throw hp(new xp)},Fjn.ik=function(n){this.a=n},Fjn.jk=function(n){this.b=n},Fjn.kk=function(n){this.c=n},EF(PNn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1377),Wfn(510,150,{105:1,92:1,90:1,590:1,147:1,56:1,108:1,49:1,97:1,510:1,150:1,114:1,115:1},jo),Fjn.Qg=function(n){return tcn(this,n)},Fjn._g=function(n,t,e){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),this.Ab;case 1:return this.d;case 2:return e?(!this.b&&(this.b=new z$((xjn(),Dat),out,this)),this.b):(!this.b&&(this.b=new z$((xjn(),Dat),out,this)),UQ(this.b));case 3:return FG(this);case 4:return!this.a&&(this.a=new XO(Wrt,this,4)),this.a;case 5:return!this.c&&(this.c=new JO(Wrt,this,5)),this.c}return RY(this,n-vF((xjn(),pat)),CZ(Yx(H3(this,16),26)||pat,n),t,e)},Fjn.hh=function(n,t,e){var i;switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),wnn(this.Ab,n,e);case 3:return this.Cb&&(e=(i=this.Db>>16)>=0?tcn(this,e):this.Cb.ih(this,-1-i,null,e)),jK(this,Yx(n,147),e)}return Yx(CZ(Yx(H3(this,16),26)||(xjn(),pat),t),66).Nj().Qj(this,dtn(this),t-vF((xjn(),pat)),n,e)},Fjn.jh=function(n,t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Ten(this.Ab,n,e);case 2:return!this.b&&(this.b=new z$((xjn(),Dat),out,this)),YN(this.b,n,e);case 3:return jK(this,null,e);case 4:return!this.a&&(this.a=new XO(Wrt,this,4)),Ten(this.a,n,e)}return Yx(CZ(Yx(H3(this,16),26)||(xjn(),pat),t),66).Nj().Rj(this,dtn(this),t-vF((xjn(),pat)),n,e)},Fjn.lh=function(n){switch(n){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.d;case 2:return!!this.b&&0!=this.b.f;case 3:return!!FG(this);case 4:return!!this.a&&0!=this.a.i;case 5:return!!this.c&&0!=this.c.i}return xX(this,n-vF((xjn(),pat)),CZ(Yx(H3(this,16),26)||pat,n))},Fjn.sh=function(n,t){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Hmn(this.Ab),!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void jF(this.Ab,Yx(t,14));case 1:return void function(n,t){B0(n,null==t?null:(vB(t),t))}(this,lL(t));case 2:return!this.b&&(this.b=new z$((xjn(),Dat),out,this)),void P3(this.b,t);case 3:return void Wbn(this,Yx(t,147));case 4:return!this.a&&(this.a=new XO(Wrt,this,4)),Hmn(this.a),!this.a&&(this.a=new XO(Wrt,this,4)),void jF(this.a,Yx(t,14));case 5:return!this.c&&(this.c=new JO(Wrt,this,5)),Hmn(this.c),!this.c&&(this.c=new JO(Wrt,this,5)),void jF(this.c,Yx(t,14))}E7(this,n-vF((xjn(),pat)),CZ(Yx(H3(this,16),26)||pat,n),t)},Fjn.zh=function(){return xjn(),pat},Fjn.Bh=function(n){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void Hmn(this.Ab);case 1:return void B0(this,null);case 2:return!this.b&&(this.b=new z$((xjn(),Dat),out,this)),void this.b.c.$b();case 3:return void Wbn(this,null);case 4:return!this.a&&(this.a=new XO(Wrt,this,4)),void Hmn(this.a);case 5:return!this.c&&(this.c=new JO(Wrt,this,5)),void Hmn(this.c)}r9(this,n-vF((xjn(),pat)),CZ(Yx(H3(this,16),26)||pat,n))},Fjn.Ib=function(){return o9(this)},Fjn.d=null,EF(PNn,"EAnnotationImpl",510),Wfn(151,705,RDn,yY),Fjn.Xh=function(n,t){!function(n,t,e){Yx(n.c,69).Xh(t,e)}(this,n,Yx(t,42))},Fjn.lk=function(n,t){return function(n,t,e){return Yx(n.c,69).lk(t,e)}(this,Yx(n,42),t)},Fjn.pi=function(n){return Yx(Yx(this.c,69).pi(n),133)},Fjn.Zh=function(){return Yx(this.c,69).Zh()},Fjn.$h=function(){return Yx(this.c,69).$h()},Fjn._h=function(n){return Yx(this.c,69)._h(n)},Fjn.mk=function(n,t){return YN(this,n,t)},Fjn.Wj=function(n){return Yx(this.c,76).Wj(n)},Fjn.rj=function(){},Fjn.fj=function(){return Yx(this.c,76).fj()},Fjn.tj=function(n,t,e){var i;return(i=Yx(i1(this.b).Nh().Jh(this.b),133)).Th(n),i.Uh(t),i.ed(e),i},Fjn.uj=function(){return new Jg(this)},Fjn.Wb=function(n){P3(this,n)},Fjn.Xj=function(){Yx(this.c,76).Xj()},EF(xDn,"EcoreEMap",151),Wfn(158,151,RDn,z$),Fjn.qj=function(){var n,t,e,i,r;if(null==this.d){for(r=VQ(Ect,yDn,63,2*this.f+1,0,1),e=this.c.Kc();e.e!=e.i.gc();)!(n=r[i=((t=Yx(e.nj(),133)).Sh()&Yjn)%r.length])&&(n=r[i]=new Jg(this)),n.Fc(t);this.d=r}},EF(PNn,"EAnnotationImpl/1",158),Wfn(284,438,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,472:1,49:1,97:1,150:1,284:1,114:1,115:1}),Fjn._g=function(n,t,e){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),this.Ab;case 1:return this.zb;case 2:return TA(),0!=(256&this.Bb);case 3:return TA(),0!=(512&this.Bb);case 4:return d9(this.s);case 5:return d9(this.t);case 6:return TA(),!!this.$j();case 7:return TA(),this.s>=1;case 8:return t?fcn(this):this.r;case 9:return this.q}return RY(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n),t,e)},Fjn.jh=function(n,t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Ten(this.Ab,n,e);case 9:return kF(this,e)}return Yx(CZ(Yx(H3(this,16),26)||this.zh(),t),66).Nj().Rj(this,dtn(this),t-vF(this.zh()),n,e)},Fjn.lh=function(n){switch(n){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return this.$j();case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==pB(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==pB(this.q).i)}return xX(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n))},Fjn.sh=function(n,t){var e;switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Hmn(this.Ab),!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void jF(this.Ab,Yx(t,14));case 1:return void this.Lh(lL(t));case 2:return void s9(this,ny(hL(t)));case 3:return void l9(this,ny(hL(t)));case 4:return void _1(this,Yx(t,19).a);case 5:return void this.ok(Yx(t,19).a);case 8:return void a8(this,Yx(t,138));case 9:return void((e=fun(this,Yx(t,87),null))&&e.Fi())}E7(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n),t)},Fjn.zh=function(){return xjn(),Kat},Fjn.Bh=function(n){var t;switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void Hmn(this.Ab);case 1:return void this.Lh(null);case 2:return void s9(this,!0);case 3:return void l9(this,!0);case 4:return void _1(this,0);case 5:return void this.ok(1);case 8:return void a8(this,null);case 9:return void((t=fun(this,null,null))&&t.Fi())}r9(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n))},Fjn.Gh=function(){fcn(this),this.Bb|=1},Fjn.Yj=function(){return fcn(this)},Fjn.Zj=function(){return this.t},Fjn.$j=function(){var n;return(n=this.t)>1||-1==n},Fjn.hi=function(){return 0!=(512&this.Bb)},Fjn.nk=function(n,t){return z8(this,n,t)},Fjn.ok=function(n){F1(this,n)},Fjn.Ib=function(){return Sfn(this)},Fjn.s=0,Fjn.t=1,EF(PNn,"ETypedElementImpl",284),Wfn(449,284,{105:1,92:1,90:1,147:1,191:1,56:1,170:1,66:1,108:1,472:1,49:1,97:1,150:1,449:1,284:1,114:1,115:1,677:1}),Fjn.Qg=function(n){return Arn(this,n)},Fjn._g=function(n,t,e){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),this.Ab;case 1:return this.zb;case 2:return TA(),0!=(256&this.Bb);case 3:return TA(),0!=(512&this.Bb);case 4:return d9(this.s);case 5:return d9(this.t);case 6:return TA(),!!this.$j();case 7:return TA(),this.s>=1;case 8:return t?fcn(this):this.r;case 9:return this.q;case 10:return TA(),0!=(this.Bb&DNn);case 11:return TA(),0!=(this.Bb&FDn);case 12:return TA(),0!=(this.Bb&nMn);case 13:return this.j;case 14:return Pbn(this);case 15:return TA(),0!=(this.Bb&_Dn);case 16:return TA(),0!=(this.Bb&MEn);case 17:return HG(this)}return RY(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n),t,e)},Fjn.hh=function(n,t,e){var i;switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),wnn(this.Ab,n,e);case 17:return this.Cb&&(e=(i=this.Db>>16)>=0?Arn(this,e):this.Cb.ih(this,-1-i,null,e)),opn(this,n,17,e)}return Yx(CZ(Yx(H3(this,16),26)||this.zh(),t),66).Nj().Qj(this,dtn(this),t-vF(this.zh()),n,e)},Fjn.jh=function(n,t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Ten(this.Ab,n,e);case 9:return kF(this,e);case 17:return opn(this,null,17,e)}return Yx(CZ(Yx(H3(this,16),26)||this.zh(),t),66).Nj().Rj(this,dtn(this),t-vF(this.zh()),n,e)},Fjn.lh=function(n){switch(n){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return this.$j();case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==pB(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==pB(this.q).i);case 10:return 0==(this.Bb&DNn);case 11:return 0!=(this.Bb&FDn);case 12:return 0!=(this.Bb&nMn);case 13:return null!=this.j;case 14:return null!=Pbn(this);case 15:return 0!=(this.Bb&_Dn);case 16:return 0!=(this.Bb&MEn);case 17:return!!HG(this)}return xX(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n))},Fjn.sh=function(n,t){var e;switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Hmn(this.Ab),!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void jF(this.Ab,Yx(t,14));case 1:return void yz(this,lL(t));case 2:return void s9(this,ny(hL(t)));case 3:return void l9(this,ny(hL(t)));case 4:return void _1(this,Yx(t,19).a);case 5:return void this.ok(Yx(t,19).a);case 8:return void a8(this,Yx(t,138));case 9:return void((e=fun(this,Yx(t,87),null))&&e.Fi());case 10:return void x9(this,ny(hL(t)));case 11:return void K9(this,ny(hL(t)));case 12:return void D9(this,ny(hL(t)));case 13:return void ZP(this,lL(t));case 15:return void R9(this,ny(hL(t)));case 16:return void H9(this,ny(hL(t)))}E7(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n),t)},Fjn.zh=function(){return xjn(),Rat},Fjn.Bh=function(n){var t;switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void Hmn(this.Ab);case 1:return CO(this.Cb,88)&&rhn(bV(Yx(this.Cb,88)),4),void E2(this,null);case 2:return void s9(this,!0);case 3:return void l9(this,!0);case 4:return void _1(this,0);case 5:return void this.ok(1);case 8:return void a8(this,null);case 9:return void((t=fun(this,null,null))&&t.Fi());case 10:return void x9(this,!0);case 11:return void K9(this,!1);case 12:return void D9(this,!1);case 13:return this.i=null,void J0(this,null);case 15:return void R9(this,!1);case 16:return void H9(this,!1)}r9(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n))},Fjn.Gh=function(){nH(PJ((wsn(),wut),this)),fcn(this),this.Bb|=1},Fjn.Gj=function(){return this.f},Fjn.zj=function(){return Pbn(this)},Fjn.Hj=function(){return HG(this)},Fjn.Lj=function(){return null},Fjn.pk=function(){return this.k},Fjn.aj=function(){return this.n},Fjn.Mj=function(){return fan(this)},Fjn.Nj=function(){var n,t,e,i,r,c,a,u,o;return this.p||((null==(e=HG(this)).i&&svn(e),e.i).length,(i=this.Lj())&&vF(HG(i)),n=(a=(r=fcn(this)).Bj())?0!=(1&a.i)?a==Vot?D_n:a==Wot?U_n:a==Zot?q_n:a==Jot?H_n:a==Qot?J_n:a==nst?nFn:a==Yot?__n:B_n:a:null,t=Pbn(this),u=r.zj(),s7(this),0!=(this.Bb&MEn)&&((c=Dcn((wsn(),wut),e))&&c!=this||(c=Bz(PJ(wut,this))))?this.p=new zP(this,c):this.$j()?this.rk()?i?0!=(this.Bb&_Dn)?n?this.sk()?this.p=new LH(47,n,this,i):this.p=new LH(5,n,this,i):this.sk()?this.p=new sW(46,this,i):this.p=new sW(4,this,i):n?this.sk()?this.p=new LH(49,n,this,i):this.p=new LH(7,n,this,i):this.sk()?this.p=new sW(48,this,i):this.p=new sW(6,this,i):0!=(this.Bb&_Dn)?n?n==i_n?this.p=new _x(50,hct,this):this.sk()?this.p=new _x(43,n,this):this.p=new _x(1,n,this):this.sk()?this.p=new Hq(42,this):this.p=new Hq(0,this):n?n==i_n?this.p=new _x(41,hct,this):this.sk()?this.p=new _x(45,n,this):this.p=new _x(3,n,this):this.sk()?this.p=new Hq(44,this):this.p=new Hq(2,this):CO(r,148)?n==Xat?this.p=new Hq(40,this):0!=(512&this.Bb)?0!=(this.Bb&_Dn)?this.p=n?new _x(9,n,this):new Hq(8,this):this.p=n?new _x(11,n,this):new Hq(10,this):0!=(this.Bb&_Dn)?this.p=n?new _x(13,n,this):new Hq(12,this):this.p=n?new _x(15,n,this):new Hq(14,this):i?(o=i.t)>1||-1==o?this.sk()?0!=(this.Bb&_Dn)?this.p=n?new LH(25,n,this,i):new sW(24,this,i):this.p=n?new LH(27,n,this,i):new sW(26,this,i):0!=(this.Bb&_Dn)?this.p=n?new LH(29,n,this,i):new sW(28,this,i):this.p=n?new LH(31,n,this,i):new sW(30,this,i):this.sk()?0!=(this.Bb&_Dn)?this.p=n?new LH(33,n,this,i):new sW(32,this,i):this.p=n?new LH(35,n,this,i):new sW(34,this,i):0!=(this.Bb&_Dn)?this.p=n?new LH(37,n,this,i):new sW(36,this,i):this.p=n?new LH(39,n,this,i):new sW(38,this,i):this.sk()?0!=(this.Bb&_Dn)?this.p=n?new _x(17,n,this):new Hq(16,this):this.p=n?new _x(19,n,this):new Hq(18,this):0!=(this.Bb&_Dn)?this.p=n?new _x(21,n,this):new Hq(20,this):this.p=n?new _x(23,n,this):new Hq(22,this):this.qk()?this.sk()?this.p=new Fx(Yx(r,26),this,i):this.p=new tG(Yx(r,26),this,i):CO(r,148)?n==Xat?this.p=new Hq(40,this):0!=(this.Bb&_Dn)?this.p=n?new SK(t,u,this,(onn(),a==Wot?rut:a==Vot?Zat:a==Qot?cut:a==Zot?iut:a==Jot?eut:a==nst?uut:a==Yot?nut:a==Xot?tut:aut)):new DH(Yx(r,148),t,u,this):this.p=n?new MK(t,u,this,(onn(),a==Wot?rut:a==Vot?Zat:a==Qot?cut:a==Zot?iut:a==Jot?eut:a==nst?uut:a==Yot?nut:a==Xot?tut:aut)):new xH(Yx(r,148),t,u,this):this.rk()?i?0!=(this.Bb&_Dn)?this.sk()?this.p=new Ux(Yx(r,26),this,i):this.p=new zx(Yx(r,26),this,i):this.sk()?this.p=new Gx(Yx(r,26),this,i):this.p=new Bx(Yx(r,26),this,i):0!=(this.Bb&_Dn)?this.sk()?this.p=new V$(Yx(r,26),this):this.p=new W$(Yx(r,26),this):this.sk()?this.p=new X$(Yx(r,26),this):this.p=new U$(Yx(r,26),this):this.sk()?i?0!=(this.Bb&_Dn)?this.p=new Xx(Yx(r,26),this,i):this.p=new Hx(Yx(r,26),this,i):0!=(this.Bb&_Dn)?this.p=new Y$(Yx(r,26),this):this.p=new Q$(Yx(r,26),this):i?0!=(this.Bb&_Dn)?this.p=new Wx(Yx(r,26),this,i):this.p=new qx(Yx(r,26),this,i):0!=(this.Bb&_Dn)?this.p=new J$(Yx(r,26),this):this.p=new KR(Yx(r,26),this)),this.p},Fjn.Ij=function(){return 0!=(this.Bb&DNn)},Fjn.qk=function(){return!1},Fjn.rk=function(){return!1},Fjn.Jj=function(){return 0!=(this.Bb&MEn)},Fjn.Oj=function(){return GJ(this)},Fjn.sk=function(){return!1},Fjn.Kj=function(){return 0!=(this.Bb&_Dn)},Fjn.tk=function(n){this.k=n},Fjn.Lh=function(n){yz(this,n)},Fjn.Ib=function(){return Qdn(this)},Fjn.e=!1,Fjn.n=0,EF(PNn,"EStructuralFeatureImpl",449),Wfn(322,449,{105:1,92:1,90:1,34:1,147:1,191:1,56:1,170:1,66:1,108:1,472:1,49:1,97:1,322:1,150:1,449:1,284:1,114:1,115:1,677:1},qv),Fjn._g=function(n,t,e){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),this.Ab;case 1:return this.zb;case 2:return TA(),0!=(256&this.Bb);case 3:return TA(),0!=(512&this.Bb);case 4:return d9(this.s);case 5:return d9(this.t);case 6:return TA(),!!Bhn(this);case 7:return TA(),this.s>=1;case 8:return t?fcn(this):this.r;case 9:return this.q;case 10:return TA(),0!=(this.Bb&DNn);case 11:return TA(),0!=(this.Bb&FDn);case 12:return TA(),0!=(this.Bb&nMn);case 13:return this.j;case 14:return Pbn(this);case 15:return TA(),0!=(this.Bb&_Dn);case 16:return TA(),0!=(this.Bb&MEn);case 17:return HG(this);case 18:return TA(),0!=(this.Bb&MNn);case 19:return t?v4(this):uQ(this)}return RY(this,n-vF((xjn(),vat)),CZ(Yx(H3(this,16),26)||vat,n),t,e)},Fjn.lh=function(n){switch(n){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return Bhn(this);case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==pB(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==pB(this.q).i);case 10:return 0==(this.Bb&DNn);case 11:return 0!=(this.Bb&FDn);case 12:return 0!=(this.Bb&nMn);case 13:return null!=this.j;case 14:return null!=Pbn(this);case 15:return 0!=(this.Bb&_Dn);case 16:return 0!=(this.Bb&MEn);case 17:return!!HG(this);case 18:return 0!=(this.Bb&MNn);case 19:return!!uQ(this)}return xX(this,n-vF((xjn(),vat)),CZ(Yx(H3(this,16),26)||vat,n))},Fjn.sh=function(n,t){var e;switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Hmn(this.Ab),!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void jF(this.Ab,Yx(t,14));case 1:return void yz(this,lL(t));case 2:return void s9(this,ny(hL(t)));case 3:return void l9(this,ny(hL(t)));case 4:return void _1(this,Yx(t,19).a);case 5:return void Ck(this,Yx(t,19).a);case 8:return void a8(this,Yx(t,138));case 9:return void((e=fun(this,Yx(t,87),null))&&e.Fi());case 10:return void x9(this,ny(hL(t)));case 11:return void K9(this,ny(hL(t)));case 12:return void D9(this,ny(hL(t)));case 13:return void ZP(this,lL(t));case 15:return void R9(this,ny(hL(t)));case 16:return void H9(this,ny(hL(t)));case 18:return void q9(this,ny(hL(t)))}E7(this,n-vF((xjn(),vat)),CZ(Yx(H3(this,16),26)||vat,n),t)},Fjn.zh=function(){return xjn(),vat},Fjn.Bh=function(n){var t;switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void Hmn(this.Ab);case 1:return CO(this.Cb,88)&&rhn(bV(Yx(this.Cb,88)),4),void E2(this,null);case 2:return void s9(this,!0);case 3:return void l9(this,!0);case 4:return void _1(this,0);case 5:return this.b=0,void F1(this,1);case 8:return void a8(this,null);case 9:return void((t=fun(this,null,null))&&t.Fi());case 10:return void x9(this,!0);case 11:return void K9(this,!1);case 12:return void D9(this,!1);case 13:return this.i=null,void J0(this,null);case 15:return void R9(this,!1);case 16:return void H9(this,!1);case 18:return void q9(this,!1)}r9(this,n-vF((xjn(),vat)),CZ(Yx(H3(this,16),26)||vat,n))},Fjn.Gh=function(){v4(this),nH(PJ((wsn(),wut),this)),fcn(this),this.Bb|=1},Fjn.$j=function(){return Bhn(this)},Fjn.nk=function(n,t){return this.b=0,this.a=null,z8(this,n,t)},Fjn.ok=function(n){Ck(this,n)},Fjn.Ib=function(){var n;return 0!=(64&this.Db)?Qdn(this):((n=new MA(Qdn(this))).a+=" (iD: ",nj(n,0!=(this.Bb&MNn)),n.a+=")",n.a)},Fjn.b=0,EF(PNn,"EAttributeImpl",322),Wfn(351,438,{105:1,92:1,90:1,138:1,147:1,191:1,56:1,108:1,49:1,97:1,351:1,150:1,114:1,115:1,676:1}),Fjn.uk=function(n){return n.Tg()==this},Fjn.Qg=function(n){return prn(this,n)},Fjn.Rg=function(n,t){this.w=null,this.Db=t<<16|255&this.Db,this.Cb=n},Fjn._g=function(n,t,e){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return frn(this);case 4:return this.zj();case 5:return this.F;case 6:return t?i1(this):BG(this);case 7:return!this.A&&(this.A=new VO(zat,this,7)),this.A}return RY(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n),t,e)},Fjn.hh=function(n,t,e){var i;switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),wnn(this.Ab,n,e);case 6:return this.Cb&&(e=(i=this.Db>>16)>=0?prn(this,e):this.Cb.ih(this,-1-i,null,e)),opn(this,n,6,e)}return Yx(CZ(Yx(H3(this,16),26)||this.zh(),t),66).Nj().Qj(this,dtn(this),t-vF(this.zh()),n,e)},Fjn.jh=function(n,t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Ten(this.Ab,n,e);case 6:return opn(this,null,6,e);case 7:return!this.A&&(this.A=new VO(zat,this,7)),Ten(this.A,n,e)}return Yx(CZ(Yx(H3(this,16),26)||this.zh(),t),66).Nj().Rj(this,dtn(this),t-vF(this.zh()),n,e)},Fjn.lh=function(n){switch(n){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!frn(this);case 4:return null!=this.zj();case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!BG(this);case 7:return!!this.A&&0!=this.A.i}return xX(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n))},Fjn.sh=function(n,t){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Hmn(this.Ab),!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void jF(this.Ab,Yx(t,14));case 1:return void kz(this,lL(t));case 2:return void MC(this,lL(t));case 5:return void uyn(this,lL(t));case 7:return!this.A&&(this.A=new VO(zat,this,7)),Hmn(this.A),!this.A&&(this.A=new VO(zat,this,7)),void jF(this.A,Yx(t,14))}E7(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n),t)},Fjn.zh=function(){return xjn(),yat},Fjn.Bh=function(n){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void Hmn(this.Ab);case 1:return CO(this.Cb,179)&&(Yx(this.Cb,179).tb=null),void E2(this,null);case 2:return j6(this,null),void B1(this,this.D);case 5:return void uyn(this,null);case 7:return!this.A&&(this.A=new VO(zat,this,7)),void Hmn(this.A)}r9(this,n-vF(this.zh()),CZ(Yx(H3(this,16),26)||this.zh(),n))},Fjn.yj=function(){var n;return-1==this.G&&(this.G=(n=i1(this))?Ren(n.Mh(),this):-1),this.G},Fjn.zj=function(){return null},Fjn.Aj=function(){return i1(this)},Fjn.vk=function(){return this.v},Fjn.Bj=function(){return frn(this)},Fjn.Cj=function(){return null!=this.D?this.D:this.B},Fjn.Dj=function(){return this.F},Fjn.wj=function(n){return Ypn(this,n)},Fjn.wk=function(n){this.v=n},Fjn.xk=function(n){N2(this,n)},Fjn.yk=function(n){this.C=n},Fjn.Lh=function(n){kz(this,n)},Fjn.Ib=function(){return nnn(this)},Fjn.C=null,Fjn.D=null,Fjn.G=-1,EF(PNn,"EClassifierImpl",351),Wfn(88,351,{105:1,92:1,90:1,26:1,138:1,147:1,191:1,56:1,108:1,49:1,97:1,88:1,351:1,150:1,473:1,114:1,115:1,676:1},Rf),Fjn.uk=function(n){return function(n,t){return t==n||Fcn(mbn(t),n)}(this,n.Tg())},Fjn._g=function(n,t,e){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return frn(this);case 4:return null;case 5:return this.F;case 6:return t?i1(this):BG(this);case 7:return!this.A&&(this.A=new VO(zat,this,7)),this.A;case 8:return TA(),0!=(256&this.Bb);case 9:return TA(),0!=(512&this.Bb);case 10:return Iq(this);case 11:return!this.q&&(this.q=new m_(fat,this,11,10)),this.q;case 12:return emn(this);case 13:return Uvn(this);case 14:return Uvn(this),this.r;case 15:return emn(this),this.k;case 16:return $sn(this);case 17:return Avn(this);case 18:return svn(this);case 19:return mbn(this);case 20:return emn(this),this.o;case 21:return!this.s&&(this.s=new m_(tat,this,21,17)),this.s;case 22:return tW(this);case 23:return Edn(this)}return RY(this,n-vF((xjn(),mat)),CZ(Yx(H3(this,16),26)||mat,n),t,e)},Fjn.hh=function(n,t,e){var i;switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),wnn(this.Ab,n,e);case 6:return this.Cb&&(e=(i=this.Db>>16)>=0?prn(this,e):this.Cb.ih(this,-1-i,null,e)),opn(this,n,6,e);case 11:return!this.q&&(this.q=new m_(fat,this,11,10)),wnn(this.q,n,e);case 21:return!this.s&&(this.s=new m_(tat,this,21,17)),wnn(this.s,n,e)}return Yx(CZ(Yx(H3(this,16),26)||(xjn(),mat),t),66).Nj().Qj(this,dtn(this),t-vF((xjn(),mat)),n,e)},Fjn.jh=function(n,t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Ten(this.Ab,n,e);case 6:return opn(this,null,6,e);case 7:return!this.A&&(this.A=new VO(zat,this,7)),Ten(this.A,n,e);case 11:return!this.q&&(this.q=new m_(fat,this,11,10)),Ten(this.q,n,e);case 21:return!this.s&&(this.s=new m_(tat,this,21,17)),Ten(this.s,n,e);case 22:return Ten(tW(this),n,e)}return Yx(CZ(Yx(H3(this,16),26)||(xjn(),mat),t),66).Nj().Rj(this,dtn(this),t-vF((xjn(),mat)),n,e)},Fjn.lh=function(n){switch(n){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!frn(this);case 4:return!1;case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!BG(this);case 7:return!!this.A&&0!=this.A.i;case 8:return 0!=(256&this.Bb);case 9:return 0!=(512&this.Bb);case 10:return!(!this.u||0==tW(this.u.a).i||this.n&&sin(this.n));case 11:return!!this.q&&0!=this.q.i;case 12:return 0!=emn(this).i;case 13:return 0!=Uvn(this).i;case 14:return Uvn(this),0!=this.r.i;case 15:return emn(this),0!=this.k.i;case 16:return 0!=$sn(this).i;case 17:return 0!=Avn(this).i;case 18:return 0!=svn(this).i;case 19:return 0!=mbn(this).i;case 20:return emn(this),!!this.o;case 21:return!!this.s&&0!=this.s.i;case 22:return!!this.n&&sin(this.n);case 23:return 0!=Edn(this).i}return xX(this,n-vF((xjn(),mat)),CZ(Yx(H3(this,16),26)||mat,n))},Fjn.oh=function(n){return(null==this.i||this.q&&0!=this.q.i?null:Ybn(this,n))||jkn(this,n)},Fjn.sh=function(n,t){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Hmn(this.Ab),!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void jF(this.Ab,Yx(t,14));case 1:return void kz(this,lL(t));case 2:return void MC(this,lL(t));case 5:return void uyn(this,lL(t));case 7:return!this.A&&(this.A=new VO(zat,this,7)),Hmn(this.A),!this.A&&(this.A=new VO(zat,this,7)),void jF(this.A,Yx(t,14));case 8:return void h9(this,ny(hL(t)));case 9:return void b9(this,ny(hL(t)));case 10:return Wmn(Iq(this)),void jF(Iq(this),Yx(t,14));case 11:return!this.q&&(this.q=new m_(fat,this,11,10)),Hmn(this.q),!this.q&&(this.q=new m_(fat,this,11,10)),void jF(this.q,Yx(t,14));case 21:return!this.s&&(this.s=new m_(tat,this,21,17)),Hmn(this.s),!this.s&&(this.s=new m_(tat,this,21,17)),void jF(this.s,Yx(t,14));case 22:return Hmn(tW(this)),void jF(tW(this),Yx(t,14))}E7(this,n-vF((xjn(),mat)),CZ(Yx(H3(this,16),26)||mat,n),t)},Fjn.zh=function(){return xjn(),mat},Fjn.Bh=function(n){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void Hmn(this.Ab);case 1:return CO(this.Cb,179)&&(Yx(this.Cb,179).tb=null),void E2(this,null);case 2:return j6(this,null),void B1(this,this.D);case 5:return void uyn(this,null);case 7:return!this.A&&(this.A=new VO(zat,this,7)),void Hmn(this.A);case 8:return void h9(this,!1);case 9:return void b9(this,!1);case 10:return void(this.u&&Wmn(this.u));case 11:return!this.q&&(this.q=new m_(fat,this,11,10)),void Hmn(this.q);case 21:return!this.s&&(this.s=new m_(tat,this,21,17)),void Hmn(this.s);case 22:return void(this.n&&Hmn(this.n))}r9(this,n-vF((xjn(),mat)),CZ(Yx(H3(this,16),26)||mat,n))},Fjn.Gh=function(){var n,t;if(emn(this),Uvn(this),$sn(this),Avn(this),svn(this),mbn(this),Edn(this),xV(function(n){return!n.c&&(n.c=new Bo),n.c}(bV(this))),this.s)for(n=0,t=this.s.i;n=0;--t)c1(this,t);return bnn(this,n)},Fjn.Xj=function(){Hmn(this)},Fjn.oi=function(n,t){return z1(this,0,t)},EF(xDn,"EcoreEList",622),Wfn(496,622,JDn,TD),Fjn.ai=function(){return!1},Fjn.aj=function(){return this.c},Fjn.bj=function(){return!1},Fjn.Fk=function(){return!0},Fjn.hi=function(){return!0},Fjn.li=function(n,t){return t},Fjn.ni=function(){return!1},Fjn.c=0,EF(xDn,"EObjectEList",496),Wfn(85,496,JDn,XO),Fjn.bj=function(){return!0},Fjn.Dk=function(){return!1},Fjn.rk=function(){return!0},EF(xDn,"EObjectContainmentEList",85),Wfn(545,85,JDn,WO),Fjn.ci=function(){this.b=!0},Fjn.fj=function(){return this.b},Fjn.Xj=function(){var n;Hmn(this),gC(this.e)?(n=this.b,this.b=!1,K3(this.e,new OV(this.e,2,this.c,n,!1))):this.b=!1},Fjn.b=!1,EF(xDn,"EObjectContainmentEList/Unsettable",545),Wfn(1140,545,JDn,EK),Fjn.ii=function(n,t){var e,i;return e=Yx(L9(this,n,t),87),gC(this.e)&&Xp(this,new jY(this.a,7,(xjn(),kat),d9(t),CO(i=e.c,88)?Yx(i,26):Oat,n)),e},Fjn.jj=function(n,t){return function(n,t,e){var i,r;return i=new yJ(n.e,3,10,null,CO(r=t.c,88)?Yx(r,26):(xjn(),Oat),Ren(n,t),!1),e?e.Ei(i):e=i,e}(this,Yx(n,87),t)},Fjn.kj=function(n,t){return function(n,t,e){var i,r;return i=new yJ(n.e,4,10,CO(r=t.c,88)?Yx(r,26):(xjn(),Oat),null,Ren(n,t),!1),e?e.Ei(i):e=i,e}(this,Yx(n,87),t)},Fjn.lj=function(n,t,e){return function(n,t,e,i){var r,c,a;return r=new yJ(n.e,1,10,CO(a=t.c,88)?Yx(a,26):(xjn(),Oat),CO(c=e.c,88)?Yx(c,26):(xjn(),Oat),Ren(n,t),!1),i?i.Ei(r):i=r,i}(this,Yx(n,87),Yx(t,87),e)},Fjn.Zi=function(n,t,e,i,r){switch(n){case 3:return zG(this,n,t,e,i,this.i>1);case 5:return zG(this,n,t,e,i,this.i-Yx(e,15).gc()>0);default:return new yJ(this.e,n,this.c,t,e,i,!0)}},Fjn.ij=function(){return!0},Fjn.fj=function(){return sin(this)},Fjn.Xj=function(){Hmn(this)},EF(PNn,"EClassImpl/1",1140),Wfn(1154,1153,wDn),Fjn.ui=function(n){var t,e,i,r,c,a,u;if(8!=(e=n.xi())){if(0==(i=function(n){switch(n.yi(null)){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}(n)))switch(e){case 1:case 9:null!=(u=n.Bi())&&(!(t=bV(Yx(u,473))).c&&(t.c=new Bo),qJ(t.c,n.Ai())),null!=(a=n.zi())&&0==(1&(r=Yx(a,473)).Bb)&&(!(t=bV(r)).c&&(t.c=new Bo),fY(t.c,Yx(n.Ai(),26)));break;case 3:null!=(a=n.zi())&&0==(1&(r=Yx(a,473)).Bb)&&(!(t=bV(r)).c&&(t.c=new Bo),fY(t.c,Yx(n.Ai(),26)));break;case 5:if(null!=(a=n.zi()))for(c=Yx(a,14).Kc();c.Ob();)0==(1&(r=Yx(c.Pb(),473)).Bb)&&(!(t=bV(r)).c&&(t.c=new Bo),fY(t.c,Yx(n.Ai(),26)));break;case 4:null!=(u=n.Bi())&&0==(1&(r=Yx(u,473)).Bb)&&(!(t=bV(r)).c&&(t.c=new Bo),qJ(t.c,n.Ai()));break;case 6:if(null!=(u=n.Bi()))for(c=Yx(u,14).Kc();c.Ob();)0==(1&(r=Yx(c.Pb(),473)).Bb)&&(!(t=bV(r)).c&&(t.c=new Bo),qJ(t.c,n.Ai()))}this.Hk(i)}},Fjn.Hk=function(n){Gdn(this,n)},Fjn.b=63,EF(PNn,"ESuperAdapter",1154),Wfn(1155,1154,wDn,Kg),Fjn.Hk=function(n){rhn(this,n)},EF(PNn,"EClassImpl/10",1155),Wfn(1144,696,JDn),Fjn.Vh=function(n,t){return hun(this,n,t)},Fjn.Wh=function(n){return $in(this,n)},Fjn.Xh=function(n,t){X8(this,n,t)},Fjn.Yh=function(n){NV(this,n)},Fjn.pi=function(n){return AY(this,n)},Fjn.mi=function(n,t){return HJ(this,n,t)},Fjn.lk=function(n,t){throw hp(new xp)},Fjn.Zh=function(){return new u$(this)},Fjn.$h=function(){return new o$(this)},Fjn._h=function(n){return b0(this,n)},Fjn.mk=function(n,t){throw hp(new xp)},Fjn.Wj=function(n){return this},Fjn.fj=function(){return 0!=this.i},Fjn.Wb=function(n){throw hp(new xp)},Fjn.Xj=function(){throw hp(new xp)},EF(xDn,"EcoreEList/UnmodifiableEList",1144),Wfn(319,1144,JDn,HI),Fjn.ni=function(){return!1},EF(xDn,"EcoreEList/UnmodifiableEList/FastCompare",319),Wfn(1147,319,JDn,p5),Fjn.Xc=function(n){var t,e;if(CO(n,170)&&-1!=(t=Yx(n,170).aj()))for(e=this.i;t4){if(!this.wj(n))return!1;if(this.rk()){if(a=(t=(e=Yx(n,49)).Ug())==this.b&&(this.Dk()?e.Og(e.Vg(),Yx(CZ(Cq(this.b),this.aj()).Yj(),26).Bj())==nin(Yx(CZ(Cq(this.b),this.aj()),18)).n:-1-e.Vg()==this.aj()),this.Ek()&&!a&&!t&&e.Zg())for(i=0;i1||-1==e)},Fjn.Dk=function(){var n;return!!CO(n=CZ(Cq(this.b),this.aj()),99)&&!!nin(Yx(n,18))},Fjn.Ek=function(){var n;return!!CO(n=CZ(Cq(this.b),this.aj()),99)&&0!=(Yx(n,18).Bb&eMn)},Fjn.Xc=function(n){var t,e,i;if((e=this.Qi(n))>=0)return e;if(this.Fk())for(t=0,i=this.Vi();t=0;--n)hyn(this,n,this.Oi(n));return this.Wi()},Fjn.Qc=function(n){var t;if(this.Ek())for(t=this.Vi()-1;t>=0;--t)hyn(this,t,this.Oi(t));return this.Xi(n)},Fjn.Xj=function(){Wmn(this)},Fjn.oi=function(n,t){return $Y(this,0,t)},EF(xDn,"DelegatingEcoreEList",742),Wfn(1150,742,iRn,qL),Fjn.Hi=function(n,t){!function(n,t,e){y9(tW(n.a),t,Ez(e))}(this,n,Yx(t,26))},Fjn.Ii=function(n){!function(n,t){fY(tW(n.a),Ez(t))}(this,Yx(n,26))},Fjn.Oi=function(n){var t;return CO(t=Yx(c1(tW(this.a),n),87).c,88)?Yx(t,26):(xjn(),Oat)},Fjn.Ti=function(n){var t;return CO(t=Yx(tdn(tW(this.a),n),87).c,88)?Yx(t,26):(xjn(),Oat)},Fjn.Ui=function(n,t){return function(n,t,e){var i,r,c;return(0!=(64&(c=CO(r=(i=Yx(c1(tW(n.a),t),87)).c,88)?Yx(r,26):(xjn(),Oat)).Db)?P8(n.b,c):c)==e?Bpn(i):b1(i,e),c}(this,n,Yx(t,26))},Fjn.ai=function(){return!1},Fjn.Zi=function(n,t,e,i,r){return null},Fjn.Ji=function(){return new Fg(this)},Fjn.Ki=function(){Hmn(tW(this.a))},Fjn.Li=function(n){return a9(this,n)},Fjn.Mi=function(n){var t;for(t=n.Kc();t.Ob();)if(!a9(this,t.Pb()))return!1;return!0},Fjn.Ni=function(n){var t,e,i;if(CO(n,15)&&(i=Yx(n,15)).gc()==tW(this.a).i){for(t=i.Kc(),e=new UO(this);t.Ob();)if(iI(t.Pb())!==iI(hen(e)))return!1;return!0}return!1},Fjn.Pi=function(){var n,t,e,i;for(t=1,n=new UO(tW(this.a));n.e!=n.i.gc();)t=31*t+((e=CO(i=Yx(hen(n),87).c,88)?Yx(i,26):(xjn(),Oat))?_A(e):0);return t},Fjn.Qi=function(n){var t,e,i,r;for(i=0,e=new UO(tW(this.a));e.e!=e.i.gc();){if(t=Yx(hen(e),87),iI(n)===iI(CO(r=t.c,88)?Yx(r,26):(xjn(),Oat)))return i;++i}return-1},Fjn.Ri=function(){return 0==tW(this.a).i},Fjn.Si=function(){return null},Fjn.Vi=function(){return tW(this.a).i},Fjn.Wi=function(){var n,t,e,i,r,c;for(c=tW(this.a).i,r=VQ(UKn,iEn,1,c,5,1),e=0,t=new UO(tW(this.a));t.e!=t.i.gc();)n=Yx(hen(t),87),r[e++]=CO(i=n.c,88)?Yx(i,26):(xjn(),Oat);return r},Fjn.Xi=function(n){var t,e,i,r;for(r=tW(this.a).i,n.lengthr&&DF(n,r,null),e=0,t=new UO(tW(this.a));t.e!=t.i.gc();)DF(n,e++,CO(i=Yx(hen(t),87).c,88)?Yx(i,26):(xjn(),Oat));return n},Fjn.Yi=function(){var n,t,e,i,r;for((r=new Cy).a+="[",n=tW(this.a),t=0,i=tW(this.a).i;t>16)>=0?prn(this,e):this.Cb.ih(this,-1-i,null,e)),opn(this,n,6,e);case 9:return!this.a&&(this.a=new m_(sat,this,9,5)),wnn(this.a,n,e)}return Yx(CZ(Yx(H3(this,16),26)||(xjn(),Eat),t),66).Nj().Qj(this,dtn(this),t-vF((xjn(),Eat)),n,e)},Fjn.jh=function(n,t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Ten(this.Ab,n,e);case 6:return opn(this,null,6,e);case 7:return!this.A&&(this.A=new VO(zat,this,7)),Ten(this.A,n,e);case 9:return!this.a&&(this.a=new m_(sat,this,9,5)),Ten(this.a,n,e)}return Yx(CZ(Yx(H3(this,16),26)||(xjn(),Eat),t),66).Nj().Rj(this,dtn(this),t-vF((xjn(),Eat)),n,e)},Fjn.lh=function(n){switch(n){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!frn(this);case 4:return!!x6(this);case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!BG(this);case 7:return!!this.A&&0!=this.A.i;case 8:return 0==(256&this.Bb);case 9:return!!this.a&&0!=this.a.i}return xX(this,n-vF((xjn(),Eat)),CZ(Yx(H3(this,16),26)||Eat,n))},Fjn.sh=function(n,t){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Hmn(this.Ab),!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void jF(this.Ab,Yx(t,14));case 1:return void kz(this,lL(t));case 2:return void MC(this,lL(t));case 5:return void uyn(this,lL(t));case 7:return!this.A&&(this.A=new VO(zat,this,7)),Hmn(this.A),!this.A&&(this.A=new VO(zat,this,7)),void jF(this.A,Yx(t,14));case 8:return void f9(this,ny(hL(t)));case 9:return!this.a&&(this.a=new m_(sat,this,9,5)),Hmn(this.a),!this.a&&(this.a=new m_(sat,this,9,5)),void jF(this.a,Yx(t,14))}E7(this,n-vF((xjn(),Eat)),CZ(Yx(H3(this,16),26)||Eat,n),t)},Fjn.zh=function(){return xjn(),Eat},Fjn.Bh=function(n){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void Hmn(this.Ab);case 1:return CO(this.Cb,179)&&(Yx(this.Cb,179).tb=null),void E2(this,null);case 2:return j6(this,null),void B1(this,this.D);case 5:return void uyn(this,null);case 7:return!this.A&&(this.A=new VO(zat,this,7)),void Hmn(this.A);case 8:return void f9(this,!0);case 9:return!this.a&&(this.a=new m_(sat,this,9,5)),void Hmn(this.a)}r9(this,n-vF((xjn(),Eat)),CZ(Yx(H3(this,16),26)||Eat,n))},Fjn.Gh=function(){var n,t;if(this.a)for(n=0,t=this.a.i;n>16==5?Yx(this.Cb,671):null}return RY(this,n-vF((xjn(),Tat)),CZ(Yx(H3(this,16),26)||Tat,n),t,e)},Fjn.hh=function(n,t,e){var i;switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),wnn(this.Ab,n,e);case 5:return this.Cb&&(e=(i=this.Db>>16)>=0?ncn(this,e):this.Cb.ih(this,-1-i,null,e)),opn(this,n,5,e)}return Yx(CZ(Yx(H3(this,16),26)||(xjn(),Tat),t),66).Nj().Qj(this,dtn(this),t-vF((xjn(),Tat)),n,e)},Fjn.jh=function(n,t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Ten(this.Ab,n,e);case 5:return opn(this,null,5,e)}return Yx(CZ(Yx(H3(this,16),26)||(xjn(),Tat),t),66).Nj().Rj(this,dtn(this),t-vF((xjn(),Tat)),n,e)},Fjn.lh=function(n){switch(n){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0!=this.d;case 3:return!!this.b;case 4:return null!=this.c;case 5:return!(this.Db>>16!=5||!Yx(this.Cb,671))}return xX(this,n-vF((xjn(),Tat)),CZ(Yx(H3(this,16),26)||Tat,n))},Fjn.sh=function(n,t){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Hmn(this.Ab),!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void jF(this.Ab,Yx(t,14));case 1:return void E2(this,lL(t));case 2:return void K1(this,Yx(t,19).a);case 3:return void hfn(this,Yx(t,1940));case 4:return void F0(this,lL(t))}E7(this,n-vF((xjn(),Tat)),CZ(Yx(H3(this,16),26)||Tat,n),t)},Fjn.zh=function(){return xjn(),Tat},Fjn.Bh=function(n){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void Hmn(this.Ab);case 1:return void E2(this,null);case 2:return void K1(this,0);case 3:return void hfn(this,null);case 4:return void F0(this,null)}r9(this,n-vF((xjn(),Tat)),CZ(Yx(H3(this,16),26)||Tat,n))},Fjn.Ib=function(){var n;return null==(n=this.c)?this.zb:n},Fjn.b=null,Fjn.c=null,Fjn.d=0,EF(PNn,"EEnumLiteralImpl",573);var Wat,Vat,Qat,Yat=aR(PNn,"EFactoryImpl/InternalEDateTimeFormat");Wfn(489,1,{2015:1},Bg),EF(PNn,"EFactoryImpl/1ClientInternalEDateTimeFormat",489),Wfn(241,115,{105:1,92:1,90:1,87:1,56:1,108:1,49:1,97:1,241:1,114:1,115:1},up),Fjn.Sg=function(n,t,e){var i;return e=opn(this,n,t,e),this.e&&CO(n,170)&&(i=dbn(this,this.e))!=this.c&&(e=zyn(this,i,e)),e},Fjn._g=function(n,t,e){switch(n){case 0:return this.f;case 1:return!this.d&&(this.d=new XO(hat,this,1)),this.d;case 2:return t?Bpn(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?win(this):this.a}return RY(this,n-vF((xjn(),Sat)),CZ(Yx(H3(this,16),26)||Sat,n),t,e)},Fjn.jh=function(n,t,e){switch(t){case 0:return S8(this,null,e);case 1:return!this.d&&(this.d=new XO(hat,this,1)),Ten(this.d,n,e);case 3:return M8(this,null,e)}return Yx(CZ(Yx(H3(this,16),26)||(xjn(),Sat),t),66).Nj().Rj(this,dtn(this),t-vF((xjn(),Sat)),n,e)},Fjn.lh=function(n){switch(n){case 0:return!!this.f;case 1:return!!this.d&&0!=this.d.i;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return xX(this,n-vF((xjn(),Sat)),CZ(Yx(H3(this,16),26)||Sat,n))},Fjn.sh=function(n,t){switch(n){case 0:return void man(this,Yx(t,87));case 1:return!this.d&&(this.d=new XO(hat,this,1)),Hmn(this.d),!this.d&&(this.d=new XO(hat,this,1)),void jF(this.d,Yx(t,14));case 3:return void van(this,Yx(t,87));case 4:return void Xun(this,Yx(t,836));case 5:return void b1(this,Yx(t,138))}E7(this,n-vF((xjn(),Sat)),CZ(Yx(H3(this,16),26)||Sat,n),t)},Fjn.zh=function(){return xjn(),Sat},Fjn.Bh=function(n){switch(n){case 0:return void man(this,null);case 1:return!this.d&&(this.d=new XO(hat,this,1)),void Hmn(this.d);case 3:return void van(this,null);case 4:return void Xun(this,null);case 5:return void b1(this,null)}r9(this,n-vF((xjn(),Sat)),CZ(Yx(H3(this,16),26)||Sat,n))},Fjn.Ib=function(){var n;return(n=new SA(Kln(this))).a+=" (expression: ",wmn(this,n),n.a+=")",n.a},EF(PNn,"EGenericTypeImpl",241),Wfn(1969,1964,rRn),Fjn.Xh=function(n,t){DL(this,n,t)},Fjn.lk=function(n,t){return DL(this,this.gc(),n),t},Fjn.pi=function(n){return ken(this.Gi(),n)},Fjn.Zh=function(){return this.$h()},Fjn.Gi=function(){return new Qg(this)},Fjn.$h=function(){return this._h(0)},Fjn._h=function(n){return this.Gi().Zc(n)},Fjn.mk=function(n,t){return V7(this,n,!0),t},Fjn.ii=function(n,t){var e;return e=Urn(this,t),this.Zc(n).Rb(e),e},Fjn.ji=function(n,t){V7(this,t,!0),this.Zc(n).Rb(t)},EF(xDn,"AbstractSequentialInternalEList",1969),Wfn(486,1969,rRn,n$),Fjn.pi=function(n){return ken(this.Gi(),n)},Fjn.Zh=function(){return null==this.b?(jT(),jT(),Qat):this.Jk()},Fjn.Gi=function(){return new GI(this.a,this.b)},Fjn.$h=function(){return null==this.b?(jT(),jT(),Qat):this.Jk()},Fjn._h=function(n){var t,e;if(null==this.b){if(n<0||n>1)throw hp(new Hm(pDn+n+", size=0"));return jT(),jT(),Qat}for(e=this.Jk(),t=0;t0;)if(t=this.c[--this.d],(!this.e||t.Gj()!=Vrt||0!=t.aj())&&(!this.Mk()||this.b.mh(t)))if(c=this.b.bh(t,this.Lk()),this.f=(TT(),Yx(t,66).Oj()),this.f||t.$j()){if(this.Lk()?(i=Yx(c,15),this.k=i):(i=Yx(c,69),this.k=this.j=i),CO(this.k,54)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j._h(this.k.gc()):this.k.Zc(this.k.gc()),this.p?hsn(this,this.p):zsn(this))return r=this.p?this.p.Ub():this.j?this.j.pi(--this.n):this.k.Xb(--this.n),this.f?((n=Yx(r,72)).ak(),e=n.dd(),this.i=e):(e=r,this.i=e),this.g=-3,!0}else if(null!=c)return this.k=null,this.p=null,e=c,this.i=e,this.g=-2,!0;return this.k=null,this.p=null,this.g=-1,!1}},Fjn.Pb=function(){return X3(this)},Fjn.Tb=function(){return this.a},Fjn.Ub=function(){var n;if(this.g<-1||this.Sb())return--this.a,this.g=0,n=this.i,this.Sb(),n;throw hp(new Kp)},Fjn.Vb=function(){return this.a-1},Fjn.Qb=function(){throw hp(new xp)},Fjn.Lk=function(){return!1},Fjn.Wb=function(n){throw hp(new xp)},Fjn.Mk=function(){return!0},Fjn.a=0,Fjn.d=0,Fjn.f=!1,Fjn.g=0,Fjn.n=0,Fjn.o=0,EF(xDn,"EContentsEList/FeatureIteratorImpl",279),Wfn(697,279,cRn,H$),Fjn.Lk=function(){return!0},EF(xDn,"EContentsEList/ResolvingFeatureIteratorImpl",697),Wfn(1157,697,cRn,G$),Fjn.Mk=function(){return!1},EF(PNn,"ENamedElementImpl/1/1",1157),Wfn(1158,279,cRn,q$),Fjn.Mk=function(){return!1},EF(PNn,"ENamedElementImpl/1/2",1158),Wfn(36,143,gDn,aW,uW,p_,kY,yJ,OV,W1,aU,V1,uU,PV,oU,J1,sU,IV,hU,Q1,fU,v_,jY,tq,Y1,lU,CV,bU),Fjn._i=function(){return hY(this)},Fjn.gj=function(){var n;return(n=hY(this))?n.zj():null},Fjn.yi=function(n){return-1==this.b&&this.a&&(this.b=this.c.Xg(this.a.aj(),this.a.Gj())),this.c.Og(this.b,n)},Fjn.Ai=function(){return this.c},Fjn.hj=function(){var n;return!!(n=hY(this))&&n.Kj()},Fjn.b=-1,EF(PNn,"ENotificationImpl",36),Wfn(399,284,{105:1,92:1,90:1,147:1,191:1,56:1,59:1,108:1,472:1,49:1,97:1,150:1,399:1,284:1,114:1,115:1},zv),Fjn.Qg=function(n){return scn(this,n)},Fjn._g=function(n,t,e){var i;switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),this.Ab;case 1:return this.zb;case 2:return TA(),0!=(256&this.Bb);case 3:return TA(),0!=(512&this.Bb);case 4:return d9(this.s);case 5:return d9(this.t);case 6:return TA(),(i=this.t)>1||-1==i;case 7:return TA(),this.s>=1;case 8:return t?fcn(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?Yx(this.Cb,26):null;case 11:return!this.d&&(this.d=new VO(zat,this,11)),this.d;case 12:return!this.c&&(this.c=new m_(lat,this,12,10)),this.c;case 13:return!this.a&&(this.a=new GL(this,this)),this.a;case 14:return IJ(this)}return RY(this,n-vF((xjn(),Aat)),CZ(Yx(H3(this,16),26)||Aat,n),t,e)},Fjn.hh=function(n,t,e){var i;switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),wnn(this.Ab,n,e);case 10:return this.Cb&&(e=(i=this.Db>>16)>=0?scn(this,e):this.Cb.ih(this,-1-i,null,e)),opn(this,n,10,e);case 12:return!this.c&&(this.c=new m_(lat,this,12,10)),wnn(this.c,n,e)}return Yx(CZ(Yx(H3(this,16),26)||(xjn(),Aat),t),66).Nj().Qj(this,dtn(this),t-vF((xjn(),Aat)),n,e)},Fjn.jh=function(n,t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Ten(this.Ab,n,e);case 9:return kF(this,e);case 10:return opn(this,null,10,e);case 11:return!this.d&&(this.d=new VO(zat,this,11)),Ten(this.d,n,e);case 12:return!this.c&&(this.c=new m_(lat,this,12,10)),Ten(this.c,n,e);case 14:return Ten(IJ(this),n,e)}return Yx(CZ(Yx(H3(this,16),26)||(xjn(),Aat),t),66).Nj().Rj(this,dtn(this),t-vF((xjn(),Aat)),n,e)},Fjn.lh=function(n){var t;switch(n){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(t=this.t)>1||-1==t;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==pB(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==pB(this.q).i);case 10:return!(this.Db>>16!=10||!Yx(this.Cb,26));case 11:return!!this.d&&0!=this.d.i;case 12:return!!this.c&&0!=this.c.i;case 13:return!(!this.a||0==IJ(this.a.a).i||this.b&&hin(this.b));case 14:return!!this.b&&hin(this.b)}return xX(this,n-vF((xjn(),Aat)),CZ(Yx(H3(this,16),26)||Aat,n))},Fjn.sh=function(n,t){var e;switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Hmn(this.Ab),!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void jF(this.Ab,Yx(t,14));case 1:return void E2(this,lL(t));case 2:return void s9(this,ny(hL(t)));case 3:return void l9(this,ny(hL(t)));case 4:return void _1(this,Yx(t,19).a);case 5:return void F1(this,Yx(t,19).a);case 8:return void a8(this,Yx(t,138));case 9:return void((e=fun(this,Yx(t,87),null))&&e.Fi());case 11:return!this.d&&(this.d=new VO(zat,this,11)),Hmn(this.d),!this.d&&(this.d=new VO(zat,this,11)),void jF(this.d,Yx(t,14));case 12:return!this.c&&(this.c=new m_(lat,this,12,10)),Hmn(this.c),!this.c&&(this.c=new m_(lat,this,12,10)),void jF(this.c,Yx(t,14));case 13:return!this.a&&(this.a=new GL(this,this)),Wmn(this.a),!this.a&&(this.a=new GL(this,this)),void jF(this.a,Yx(t,14));case 14:return Hmn(IJ(this)),void jF(IJ(this),Yx(t,14))}E7(this,n-vF((xjn(),Aat)),CZ(Yx(H3(this,16),26)||Aat,n),t)},Fjn.zh=function(){return xjn(),Aat},Fjn.Bh=function(n){var t;switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void Hmn(this.Ab);case 1:return void E2(this,null);case 2:return void s9(this,!0);case 3:return void l9(this,!0);case 4:return void _1(this,0);case 5:return void F1(this,1);case 8:return void a8(this,null);case 9:return void((t=fun(this,null,null))&&t.Fi());case 11:return!this.d&&(this.d=new VO(zat,this,11)),void Hmn(this.d);case 12:return!this.c&&(this.c=new m_(lat,this,12,10)),void Hmn(this.c);case 13:return void(this.a&&Wmn(this.a));case 14:return void(this.b&&Hmn(this.b))}r9(this,n-vF((xjn(),Aat)),CZ(Yx(H3(this,16),26)||Aat,n))},Fjn.Gh=function(){var n,t;if(this.c)for(n=0,t=this.c.i;ni&&DF(n,i,null),e=0,t=new UO(IJ(this.a));t.e!=t.i.gc();)DF(n,e++,Yx(hen(t),87).c||(xjn(),Pat));return n},Fjn.Yi=function(){var n,t,e,i;for((i=new Cy).a+="[",n=IJ(this.a),t=0,e=IJ(this.a).i;t1);case 5:return zG(this,n,t,e,i,this.i-Yx(e,15).gc()>0);default:return new yJ(this.e,n,this.c,t,e,i,!0)}},Fjn.ij=function(){return!0},Fjn.fj=function(){return hin(this)},Fjn.Xj=function(){Hmn(this)},EF(PNn,"EOperationImpl/2",1341),Wfn(498,1,{1938:1,498:1},GP),EF(PNn,"EPackageImpl/1",498),Wfn(16,85,JDn,m_),Fjn.zk=function(){return this.d},Fjn.Ak=function(){return this.b},Fjn.Dk=function(){return!0},Fjn.b=0,EF(xDn,"EObjectContainmentWithInverseEList",16),Wfn(353,16,JDn,EN),Fjn.Ek=function(){return!0},Fjn.li=function(n,t){return $fn(this,n,Yx(t,56))},EF(xDn,"EObjectContainmentWithInverseEList/Resolving",353),Wfn(298,353,JDn,d_),Fjn.ci=function(){this.a.tb=null},EF(PNn,"EPackageImpl/2",298),Wfn(1228,1,{},Oo),EF(PNn,"EPackageImpl/3",1228),Wfn(718,43,gMn,Xv),Fjn._b=function(n){return aI(n)?hq(this,n):!!Dq(this.f,n)},EF(PNn,"EPackageRegistryImpl",718),Wfn(509,284,{105:1,92:1,90:1,147:1,191:1,56:1,2017:1,108:1,472:1,49:1,97:1,150:1,509:1,284:1,114:1,115:1},Uv),Fjn.Qg=function(n){return hcn(this,n)},Fjn._g=function(n,t,e){var i;switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),this.Ab;case 1:return this.zb;case 2:return TA(),0!=(256&this.Bb);case 3:return TA(),0!=(512&this.Bb);case 4:return d9(this.s);case 5:return d9(this.t);case 6:return TA(),(i=this.t)>1||-1==i;case 7:return TA(),this.s>=1;case 8:return t?fcn(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?Yx(this.Cb,59):null}return RY(this,n-vF((xjn(),Nat)),CZ(Yx(H3(this,16),26)||Nat,n),t,e)},Fjn.hh=function(n,t,e){var i;switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),wnn(this.Ab,n,e);case 10:return this.Cb&&(e=(i=this.Db>>16)>=0?hcn(this,e):this.Cb.ih(this,-1-i,null,e)),opn(this,n,10,e)}return Yx(CZ(Yx(H3(this,16),26)||(xjn(),Nat),t),66).Nj().Qj(this,dtn(this),t-vF((xjn(),Nat)),n,e)},Fjn.jh=function(n,t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Ten(this.Ab,n,e);case 9:return kF(this,e);case 10:return opn(this,null,10,e)}return Yx(CZ(Yx(H3(this,16),26)||(xjn(),Nat),t),66).Nj().Rj(this,dtn(this),t-vF((xjn(),Nat)),n,e)},Fjn.lh=function(n){var t;switch(n){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(t=this.t)>1||-1==t;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==pB(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==pB(this.q).i);case 10:return!(this.Db>>16!=10||!Yx(this.Cb,59))}return xX(this,n-vF((xjn(),Nat)),CZ(Yx(H3(this,16),26)||Nat,n))},Fjn.zh=function(){return xjn(),Nat},EF(PNn,"EParameterImpl",509),Wfn(99,449,{105:1,92:1,90:1,147:1,191:1,56:1,18:1,170:1,66:1,108:1,472:1,49:1,97:1,150:1,99:1,449:1,284:1,114:1,115:1,677:1},cL),Fjn._g=function(n,t,e){var i,r;switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),this.Ab;case 1:return this.zb;case 2:return TA(),0!=(256&this.Bb);case 3:return TA(),0!=(512&this.Bb);case 4:return d9(this.s);case 5:return d9(this.t);case 6:return TA(),(r=this.t)>1||-1==r;case 7:return TA(),this.s>=1;case 8:return t?fcn(this):this.r;case 9:return this.q;case 10:return TA(),0!=(this.Bb&DNn);case 11:return TA(),0!=(this.Bb&FDn);case 12:return TA(),0!=(this.Bb&nMn);case 13:return this.j;case 14:return Pbn(this);case 15:return TA(),0!=(this.Bb&_Dn);case 16:return TA(),0!=(this.Bb&MEn);case 17:return HG(this);case 18:return TA(),0!=(this.Bb&MNn);case 19:return TA(),!(!(i=nin(this))||0==(i.Bb&MNn));case 20:return TA(),0!=(this.Bb&eMn);case 21:return t?nin(this):this.b;case 22:return t?O5(this):dV(this);case 23:return!this.a&&(this.a=new JO(eat,this,23)),this.a}return RY(this,n-vF((xjn(),xat)),CZ(Yx(H3(this,16),26)||xat,n),t,e)},Fjn.lh=function(n){var t,e;switch(n){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0==(256&this.Bb);case 3:return 0==(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(e=this.t)>1||-1==e;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==pB(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==pB(this.q).i);case 10:return 0==(this.Bb&DNn);case 11:return 0!=(this.Bb&FDn);case 12:return 0!=(this.Bb&nMn);case 13:return null!=this.j;case 14:return null!=Pbn(this);case 15:return 0!=(this.Bb&_Dn);case 16:return 0!=(this.Bb&MEn);case 17:return!!HG(this);case 18:return 0!=(this.Bb&MNn);case 19:return!!(t=nin(this))&&0!=(t.Bb&MNn);case 20:return 0==(this.Bb&eMn);case 21:return!!this.b;case 22:return!!dV(this);case 23:return!!this.a&&0!=this.a.i}return xX(this,n-vF((xjn(),xat)),CZ(Yx(H3(this,16),26)||xat,n))},Fjn.sh=function(n,t){var e;switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Hmn(this.Ab),!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void jF(this.Ab,Yx(t,14));case 1:return void yz(this,lL(t));case 2:return void s9(this,ny(hL(t)));case 3:return void l9(this,ny(hL(t)));case 4:return void _1(this,Yx(t,19).a);case 5:return void F1(this,Yx(t,19).a);case 8:return void a8(this,Yx(t,138));case 9:return void((e=fun(this,Yx(t,87),null))&&e.Fi());case 10:return void x9(this,ny(hL(t)));case 11:return void K9(this,ny(hL(t)));case 12:return void D9(this,ny(hL(t)));case 13:return void ZP(this,lL(t));case 15:return void R9(this,ny(hL(t)));case 16:return void H9(this,ny(hL(t)));case 18:return void function(n,t){G9(n,t),CO(n.Cb,88)&&rhn(bV(Yx(n.Cb,88)),2)}(this,ny(hL(t)));case 20:return void z9(this,ny(hL(t)));case 21:return void Q0(this,Yx(t,18));case 23:return!this.a&&(this.a=new JO(eat,this,23)),Hmn(this.a),!this.a&&(this.a=new JO(eat,this,23)),void jF(this.a,Yx(t,14))}E7(this,n-vF((xjn(),xat)),CZ(Yx(H3(this,16),26)||xat,n),t)},Fjn.zh=function(){return xjn(),xat},Fjn.Bh=function(n){var t;switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void Hmn(this.Ab);case 1:return CO(this.Cb,88)&&rhn(bV(Yx(this.Cb,88)),4),void E2(this,null);case 2:return void s9(this,!0);case 3:return void l9(this,!0);case 4:return void _1(this,0);case 5:return void F1(this,1);case 8:return void a8(this,null);case 9:return void((t=fun(this,null,null))&&t.Fi());case 10:return void x9(this,!0);case 11:return void K9(this,!1);case 12:return void D9(this,!1);case 13:return this.i=null,void J0(this,null);case 15:return void R9(this,!1);case 16:return void H9(this,!1);case 18:return G9(this,!1),void(CO(this.Cb,88)&&rhn(bV(Yx(this.Cb,88)),2));case 20:return void z9(this,!0);case 21:return void Q0(this,null);case 23:return!this.a&&(this.a=new JO(eat,this,23)),void Hmn(this.a)}r9(this,n-vF((xjn(),xat)),CZ(Yx(H3(this,16),26)||xat,n))},Fjn.Gh=function(){O5(this),nH(PJ((wsn(),wut),this)),fcn(this),this.Bb|=1},Fjn.Lj=function(){return nin(this)},Fjn.qk=function(){var n;return!!(n=nin(this))&&0!=(n.Bb&MNn)},Fjn.rk=function(){return 0!=(this.Bb&MNn)},Fjn.sk=function(){return 0!=(this.Bb&eMn)},Fjn.nk=function(n,t){return this.c=null,z8(this,n,t)},Fjn.Ib=function(){var n;return 0!=(64&this.Db)?Qdn(this):((n=new MA(Qdn(this))).a+=" (containment: ",nj(n,0!=(this.Bb&MNn)),n.a+=", resolveProxies: ",nj(n,0!=(this.Bb&eMn)),n.a+=")",n.a)},EF(PNn,"EReferenceImpl",99),Wfn(548,115,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1,548:1,114:1,115:1},Ao),Fjn.Fb=function(n){return this===n},Fjn.cd=function(){return this.b},Fjn.dd=function(){return this.c},Fjn.Hb=function(){return _A(this)},Fjn.Uh=function(n){!function(n,t){R0(n,null==t?null:(vB(t),t))}(this,lL(n))},Fjn.ed=function(n){return function(n,t){var e;return e=n.c,K0(n,t),e}(this,lL(n))},Fjn._g=function(n,t,e){switch(n){case 0:return this.b;case 1:return this.c}return RY(this,n-vF((xjn(),Dat)),CZ(Yx(H3(this,16),26)||Dat,n),t,e)},Fjn.lh=function(n){switch(n){case 0:return null!=this.b;case 1:return null!=this.c}return xX(this,n-vF((xjn(),Dat)),CZ(Yx(H3(this,16),26)||Dat,n))},Fjn.sh=function(n,t){switch(n){case 0:return void function(n,t){R0(n,null==t?null:(vB(t),t))}(this,lL(t));case 1:return void K0(this,lL(t))}E7(this,n-vF((xjn(),Dat)),CZ(Yx(H3(this,16),26)||Dat,n),t)},Fjn.zh=function(){return xjn(),Dat},Fjn.Bh=function(n){switch(n){case 0:return void R0(this,null);case 1:return void K0(this,null)}r9(this,n-vF((xjn(),Dat)),CZ(Yx(H3(this,16),26)||Dat,n))},Fjn.Sh=function(){var n;return-1==this.a&&(n=this.b,this.a=null==n?0:Xen(n)),this.a},Fjn.Th=function(n){this.a=n},Fjn.Ib=function(){var n;return 0!=(64&this.Db)?Kln(this):((n=new MA(Kln(this))).a+=" (key: ",pI(n,this.b),n.a+=", value: ",pI(n,this.c),n.a+=")",n.a)},Fjn.a=-1,Fjn.b=null,Fjn.c=null;var Jat,Zat,nut,tut,eut,iut,rut,cut,aut,uut,out=EF(PNn,"EStringToStringMapEntryImpl",548),sut=aR(xDn,"FeatureMap/Entry/Internal");Wfn(565,1,aRn),Fjn.Ok=function(n){return this.Pk(Yx(n,49))},Fjn.Pk=function(n){return this.Ok(n)},Fjn.Fb=function(n){var t,e;return this===n||!!CO(n,72)&&(t=Yx(n,72)).ak()==this.c&&(null==(e=this.dd())?null==t.dd():Q8(e,t.dd()))},Fjn.ak=function(){return this.c},Fjn.Hb=function(){var n;return n=this.dd(),W5(this.c)^(null==n?0:W5(n))},Fjn.Ib=function(){var n,t;return t=i1((n=this.c).Hj()).Ph(),n.ne(),(null!=t&&0!=t.length?t+":"+n.ne():n.ne())+"="+this.dd()},EF(PNn,"EStructuralFeatureImpl/BasicFeatureMapEntry",565),Wfn(776,565,aRn,FL),Fjn.Pk=function(n){return new FL(this.c,n)},Fjn.dd=function(){return this.a},Fjn.Qk=function(n,t,e){return function(n,t,e,i,r){var c;return e&&(c=tnn(t.Tg(),n.c),r=e.gh(t,-1-(-1==c?i:c),null,r)),r}(this,n,this.a,t,e)},Fjn.Rk=function(n,t,e){return function(n,t,e,i,r){var c;return e&&(c=tnn(t.Tg(),n.c),r=e.ih(t,-1-(-1==c?i:c),null,r)),r}(this,n,this.a,t,e)},EF(PNn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",776),Wfn(1314,1,{},zP),Fjn.Pj=function(n,t,e,i,r){return Yx(TY(n,this.b),215).nl(this.a).Wj(i)},Fjn.Qj=function(n,t,e,i,r){return Yx(TY(n,this.b),215).el(this.a,i,r)},Fjn.Rj=function(n,t,e,i,r){return Yx(TY(n,this.b),215).fl(this.a,i,r)},Fjn.Sj=function(n,t,e){return Yx(TY(n,this.b),215).nl(this.a).fj()},Fjn.Tj=function(n,t,e,i){Yx(TY(n,this.b),215).nl(this.a).Wb(i)},Fjn.Uj=function(n,t,e){return Yx(TY(n,this.b),215).nl(this.a)},Fjn.Vj=function(n,t,e){Yx(TY(n,this.b),215).nl(this.a).Xj()},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1314),Wfn(89,1,{},_x,LH,Hq,sW),Fjn.Pj=function(n,t,e,i,r){var c;if(null==(c=t.Ch(e))&&t.Dh(e,c=Mjn(this,n)),!r)switch(this.e){case 50:case 41:return Yx(c,589).sj();case 40:return Yx(c,215).kl()}return c},Fjn.Qj=function(n,t,e,i,r){var c;return null==(c=t.Ch(e))&&t.Dh(e,c=Mjn(this,n)),Yx(c,69).lk(i,r)},Fjn.Rj=function(n,t,e,i,r){var c;return null!=(c=t.Ch(e))&&(r=Yx(c,69).mk(i,r)),r},Fjn.Sj=function(n,t,e){var i;return null!=(i=t.Ch(e))&&Yx(i,76).fj()},Fjn.Tj=function(n,t,e,i){var r;!(r=Yx(t.Ch(e),76))&&t.Dh(e,r=Mjn(this,n)),r.Wb(i)},Fjn.Uj=function(n,t,e){var i;return null==(i=t.Ch(e))&&t.Dh(e,i=Mjn(this,n)),CO(i,76)?Yx(i,76):new Ug(Yx(t.Ch(e),15))},Fjn.Vj=function(n,t,e){var i;!(i=Yx(t.Ch(e),76))&&t.Dh(e,i=Mjn(this,n)),i.Xj()},Fjn.b=0,Fjn.e=0,EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateMany",89),Wfn(504,1,{}),Fjn.Qj=function(n,t,e,i,r){throw hp(new xp)},Fjn.Rj=function(n,t,e,i,r){throw hp(new xp)},Fjn.Uj=function(n,t,e){return new NH(this,n,t,e)},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",504),Wfn(1331,1,DDn,NH),Fjn.Wj=function(n){return this.a.Pj(this.c,this.d,this.b,n,!0)},Fjn.fj=function(){return this.a.Sj(this.c,this.d,this.b)},Fjn.Wb=function(n){this.a.Tj(this.c,this.d,this.b,n)},Fjn.Xj=function(){this.a.Vj(this.c,this.d,this.b)},Fjn.b=0,EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1331),Wfn(769,504,{},tG),Fjn.Pj=function(n,t,e,i,r){return Ign(n,n.eh(),n.Vg())==this.b?this.sk()&&i?Bfn(n):n.eh():null},Fjn.Qj=function(n,t,e,i,r){var c,a;return n.eh()&&(r=(c=n.Vg())>=0?n.Qg(r):n.eh().ih(n,-1-c,null,r)),a=tnn(n.Tg(),this.e),n.Sg(i,a,r)},Fjn.Rj=function(n,t,e,i,r){var c;return c=tnn(n.Tg(),this.e),n.Sg(null,c,r)},Fjn.Sj=function(n,t,e){var i;return i=tnn(n.Tg(),this.e),!!n.eh()&&n.Vg()==i},Fjn.Tj=function(n,t,e,i){var r,c,a,u,o;if(null!=i&&!Ypn(this.a,i))throw hp(new Vm(uRn+(CO(i,56)?gan(Yx(i,56).Tg()):LZ(V5(i)))+oRn+this.a+"'"));if(r=n.eh(),a=tnn(n.Tg(),this.e),iI(i)!==iI(r)||n.Vg()!=a&&null!=i){if(ccn(n,Yx(i,56)))throw hp(new Qm(CNn+n.Ib()));o=null,r&&(o=(c=n.Vg())>=0?n.Qg(o):n.eh().ih(n,-1-c,null,o)),(u=Yx(i,49))&&(o=u.gh(n,tnn(u.Tg(),this.b),null,o)),(o=n.Sg(u,a,o))&&o.Fi()}else n.Lg()&&n.Mg()&&K3(n,new p_(n,1,a,i,i))},Fjn.Vj=function(n,t,e){var i,r,c;n.eh()?(c=(i=n.Vg())>=0?n.Qg(null):n.eh().ih(n,-1-i,null,null),r=tnn(n.Tg(),this.e),(c=n.Sg(null,r,c))&&c.Fi()):n.Lg()&&n.Mg()&&K3(n,new v_(n,1,this.e,null,null))},Fjn.sk=function(){return!1},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",769),Wfn(1315,769,{},Fx),Fjn.sk=function(){return!0},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1315),Wfn(563,504,{}),Fjn.Pj=function(n,t,e,i,r){var c;return null==(c=t.Ch(e))?this.b:iI(c)===iI(Jat)?null:c},Fjn.Sj=function(n,t,e){var i;return null!=(i=t.Ch(e))&&(iI(i)===iI(Jat)||!Q8(i,this.b))},Fjn.Tj=function(n,t,e,i){var r,c;n.Lg()&&n.Mg()?(r=null==(c=t.Ch(e))?this.b:iI(c)===iI(Jat)?null:c,null==i?null!=this.c?(t.Dh(e,null),i=this.b):null!=this.b?t.Dh(e,Jat):t.Dh(e,null):(this.Sk(i),t.Dh(e,i)),K3(n,this.d.Tk(n,1,this.e,r,i))):null==i?null!=this.c?t.Dh(e,null):null!=this.b?t.Dh(e,Jat):t.Dh(e,null):(this.Sk(i),t.Dh(e,i))},Fjn.Vj=function(n,t,e){var i,r;n.Lg()&&n.Mg()?(i=null==(r=t.Ch(e))?this.b:iI(r)===iI(Jat)?null:r,t.Eh(e),K3(n,this.d.Tk(n,1,this.e,i,this.b))):t.Eh(e)},Fjn.Sk=function(n){throw hp(new Ap)},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",563),Wfn(sRn,1,{},$o),Fjn.Tk=function(n,t,e,i,r){return new v_(n,t,e,i,r)},Fjn.Uk=function(n,t,e,i,r,c){return new tq(n,t,e,i,r,c)},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",sRn),Wfn(1332,sRn,{},Lo),Fjn.Tk=function(n,t,e,i,r){return new CV(n,t,e,ny(hL(i)),ny(hL(r)))},Fjn.Uk=function(n,t,e,i,r,c){return new bU(n,t,e,ny(hL(i)),ny(hL(r)),c)},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1332),Wfn(1333,sRn,{},No),Fjn.Tk=function(n,t,e,i,r){return new W1(n,t,e,Yx(i,217).a,Yx(r,217).a)},Fjn.Uk=function(n,t,e,i,r,c){return new aU(n,t,e,Yx(i,217).a,Yx(r,217).a,c)},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1333),Wfn(1334,sRn,{},xo),Fjn.Tk=function(n,t,e,i,r){return new V1(n,t,e,Yx(i,172).a,Yx(r,172).a)},Fjn.Uk=function(n,t,e,i,r,c){return new uU(n,t,e,Yx(i,172).a,Yx(r,172).a,c)},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1334),Wfn(1335,sRn,{},Do),Fjn.Tk=function(n,t,e,i,r){return new PV(n,t,e,ty(fL(i)),ty(fL(r)))},Fjn.Uk=function(n,t,e,i,r,c){return new oU(n,t,e,ty(fL(i)),ty(fL(r)),c)},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1335),Wfn(1336,sRn,{},Ro),Fjn.Tk=function(n,t,e,i,r){return new J1(n,t,e,Yx(i,155).a,Yx(r,155).a)},Fjn.Uk=function(n,t,e,i,r,c){return new sU(n,t,e,Yx(i,155).a,Yx(r,155).a,c)},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1336),Wfn(1337,sRn,{},Ko),Fjn.Tk=function(n,t,e,i,r){return new IV(n,t,e,Yx(i,19).a,Yx(r,19).a)},Fjn.Uk=function(n,t,e,i,r,c){return new hU(n,t,e,Yx(i,19).a,Yx(r,19).a,c)},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1337),Wfn(1338,sRn,{},_o),Fjn.Tk=function(n,t,e,i,r){return new Q1(n,t,e,Yx(i,162).a,Yx(r,162).a)},Fjn.Uk=function(n,t,e,i,r,c){return new fU(n,t,e,Yx(i,162).a,Yx(r,162).a,c)},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1338),Wfn(1339,sRn,{},Fo),Fjn.Tk=function(n,t,e,i,r){return new Y1(n,t,e,Yx(i,184).a,Yx(r,184).a)},Fjn.Uk=function(n,t,e,i,r,c){return new lU(n,t,e,Yx(i,184).a,Yx(r,184).a,c)},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1339),Wfn(1317,563,{},xH),Fjn.Sk=function(n){if(!this.a.wj(n))throw hp(new Vm(uRn+V5(n)+oRn+this.a+"'"))},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1317),Wfn(1318,563,{},MK),Fjn.Sk=function(n){},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1318),Wfn(770,563,{}),Fjn.Sj=function(n,t,e){return null!=t.Ch(e)},Fjn.Tj=function(n,t,e,i){var r,c;n.Lg()&&n.Mg()?(r=!0,null==(c=t.Ch(e))?(r=!1,c=this.b):iI(c)===iI(Jat)&&(c=null),null==i?null!=this.c?(t.Dh(e,null),i=this.b):t.Dh(e,Jat):(this.Sk(i),t.Dh(e,i)),K3(n,this.d.Uk(n,1,this.e,c,i,!r))):null==i?null!=this.c?t.Dh(e,null):t.Dh(e,Jat):(this.Sk(i),t.Dh(e,i))},Fjn.Vj=function(n,t,e){var i,r;n.Lg()&&n.Mg()?(i=!0,null==(r=t.Ch(e))?(i=!1,r=this.b):iI(r)===iI(Jat)&&(r=null),t.Eh(e),K3(n,this.d.Uk(n,2,this.e,r,this.b,i))):t.Eh(e)},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",770),Wfn(1319,770,{},DH),Fjn.Sk=function(n){if(!this.a.wj(n))throw hp(new Vm(uRn+V5(n)+oRn+this.a+"'"))},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1319),Wfn(1320,770,{},SK),Fjn.Sk=function(n){},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1320),Wfn(398,504,{},KR),Fjn.Pj=function(n,t,e,i,r){var c,a,u,o,s;if(s=t.Ch(e),this.Kj()&&iI(s)===iI(Jat))return null;if(this.sk()&&i&&null!=s){if((u=Yx(s,49)).kh()&&u!=(o=P8(n,u))){if(!Ypn(this.a,o))throw hp(new Vm(uRn+V5(o)+oRn+this.a+"'"));t.Dh(e,s=o),this.rk()&&(c=Yx(o,49),a=u.ih(n,this.b?tnn(u.Tg(),this.b):-1-tnn(n.Tg(),this.e),null,null),!c.eh()&&(a=c.gh(n,this.b?tnn(c.Tg(),this.b):-1-tnn(n.Tg(),this.e),null,a)),a&&a.Fi()),n.Lg()&&n.Mg()&&K3(n,new v_(n,9,this.e,u,o))}return s}return s},Fjn.Qj=function(n,t,e,i,r){var c,a;return iI(a=t.Ch(e))===iI(Jat)&&(a=null),t.Dh(e,i),this.bj()?iI(a)!==iI(i)&&null!=a&&(r=(c=Yx(a,49)).ih(n,tnn(c.Tg(),this.b),null,r)):this.rk()&&null!=a&&(r=Yx(a,49).ih(n,-1-tnn(n.Tg(),this.e),null,r)),n.Lg()&&n.Mg()&&(!r&&(r=new Ek(4)),r.Ei(new v_(n,1,this.e,a,i))),r},Fjn.Rj=function(n,t,e,i,r){var c;return iI(c=t.Ch(e))===iI(Jat)&&(c=null),t.Eh(e),n.Lg()&&n.Mg()&&(!r&&(r=new Ek(4)),this.Kj()?r.Ei(new v_(n,2,this.e,c,null)):r.Ei(new v_(n,1,this.e,c,null))),r},Fjn.Sj=function(n,t,e){return null!=t.Ch(e)},Fjn.Tj=function(n,t,e,i){var r,c,a,u,o;if(null!=i&&!Ypn(this.a,i))throw hp(new Vm(uRn+(CO(i,56)?gan(Yx(i,56).Tg()):LZ(V5(i)))+oRn+this.a+"'"));u=null!=(o=t.Ch(e)),this.Kj()&&iI(o)===iI(Jat)&&(o=null),a=null,this.bj()?iI(o)!==iI(i)&&(null!=o&&(a=(r=Yx(o,49)).ih(n,tnn(r.Tg(),this.b),null,a)),null!=i&&(a=(r=Yx(i,49)).gh(n,tnn(r.Tg(),this.b),null,a))):this.rk()&&iI(o)!==iI(i)&&(null!=o&&(a=Yx(o,49).ih(n,-1-tnn(n.Tg(),this.e),null,a)),null!=i&&(a=Yx(i,49).gh(n,-1-tnn(n.Tg(),this.e),null,a))),null==i&&this.Kj()?t.Dh(e,Jat):t.Dh(e,i),n.Lg()&&n.Mg()?(c=new tq(n,1,this.e,o,i,this.Kj()&&!u),a?(a.Ei(c),a.Fi()):K3(n,c)):a&&a.Fi()},Fjn.Vj=function(n,t,e){var i,r,c,a,u;a=null!=(u=t.Ch(e)),this.Kj()&&iI(u)===iI(Jat)&&(u=null),c=null,null!=u&&(this.bj()?c=(i=Yx(u,49)).ih(n,tnn(i.Tg(),this.b),null,c):this.rk()&&(c=Yx(u,49).ih(n,-1-tnn(n.Tg(),this.e),null,c))),t.Eh(e),n.Lg()&&n.Mg()?(r=new tq(n,this.Kj()?2:1,this.e,u,null,a),c?(c.Ei(r),c.Fi()):K3(n,r)):c&&c.Fi()},Fjn.bj=function(){return!1},Fjn.rk=function(){return!1},Fjn.sk=function(){return!1},Fjn.Kj=function(){return!1},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",398),Wfn(564,398,{},U$),Fjn.rk=function(){return!0},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",564),Wfn(1323,564,{},X$),Fjn.sk=function(){return!0},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1323),Wfn(772,564,{},W$),Fjn.Kj=function(){return!0},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",772),Wfn(1325,772,{},V$),Fjn.sk=function(){return!0},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1325),Wfn(640,564,{},Bx),Fjn.bj=function(){return!0},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",640),Wfn(1324,640,{},Gx),Fjn.sk=function(){return!0},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1324),Wfn(773,640,{},zx),Fjn.Kj=function(){return!0},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",773),Wfn(1326,773,{},Ux),Fjn.sk=function(){return!0},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1326),Wfn(641,398,{},Q$),Fjn.sk=function(){return!0},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",641),Wfn(1327,641,{},Y$),Fjn.Kj=function(){return!0},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1327),Wfn(774,641,{},Hx),Fjn.bj=function(){return!0},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",774),Wfn(1328,774,{},Xx),Fjn.Kj=function(){return!0},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1328),Wfn(1321,398,{},J$),Fjn.Kj=function(){return!0},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1321),Wfn(771,398,{},qx),Fjn.bj=function(){return!0},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",771),Wfn(1322,771,{},Wx),Fjn.Kj=function(){return!0},EF(PNn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1322),Wfn(775,565,aRn,cB),Fjn.Pk=function(n){return new cB(this.a,this.c,n)},Fjn.dd=function(){return this.b},Fjn.Qk=function(n,t,e){return function(n,t,e,i){return e&&(i=e.gh(t,tnn(e.Tg(),n.c.Lj()),null,i)),i}(this,n,this.b,e)},Fjn.Rk=function(n,t,e){return function(n,t,e,i){return e&&(i=e.ih(t,tnn(e.Tg(),n.c.Lj()),null,i)),i}(this,n,this.b,e)},EF(PNn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",775),Wfn(1329,1,DDn,Ug),Fjn.Wj=function(n){return this.a},Fjn.fj=function(){return CO(this.a,95)?Yx(this.a,95).fj():!this.a.dc()},Fjn.Wb=function(n){this.a.$b(),this.a.Gc(Yx(n,15))},Fjn.Xj=function(){CO(this.a,95)?Yx(this.a,95).Xj():this.a.$b()},EF(PNn,"EStructuralFeatureImpl/SettingMany",1329),Wfn(1330,565,aRn,fW),Fjn.Ok=function(n){return new BL((ayn(),tot),this.b.Ih(this.a,n))},Fjn.dd=function(){return null},Fjn.Qk=function(n,t,e){return e},Fjn.Rk=function(n,t,e){return e},EF(PNn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1330),Wfn(642,565,aRn,BL),Fjn.Ok=function(n){return new BL(this.c,n)},Fjn.dd=function(){return this.a},Fjn.Qk=function(n,t,e){return e},Fjn.Rk=function(n,t,e){return e},EF(PNn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",642),Wfn(391,497,Mxn,Bo),Fjn.ri=function(n){return VQ(rat,iEn,26,n,0,1)},Fjn.ni=function(){return!1},EF(PNn,"ESuperAdapter/1",391),Wfn(444,438,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,836:1,49:1,97:1,150:1,444:1,114:1,115:1},Ho),Fjn._g=function(n,t,e){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new _R(this,hat,this)),this.a}return RY(this,n-vF((xjn(),_at)),CZ(Yx(H3(this,16),26)||_at,n),t,e)},Fjn.jh=function(n,t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Ten(this.Ab,n,e);case 2:return!this.a&&(this.a=new _R(this,hat,this)),Ten(this.a,n,e)}return Yx(CZ(Yx(H3(this,16),26)||(xjn(),_at),t),66).Nj().Rj(this,dtn(this),t-vF((xjn(),_at)),n,e)},Fjn.lh=function(n){switch(n){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!!this.a&&0!=this.a.i}return xX(this,n-vF((xjn(),_at)),CZ(Yx(H3(this,16),26)||_at,n))},Fjn.sh=function(n,t){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),Hmn(this.Ab),!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void jF(this.Ab,Yx(t,14));case 1:return void E2(this,lL(t));case 2:return!this.a&&(this.a=new _R(this,hat,this)),Hmn(this.a),!this.a&&(this.a=new _R(this,hat,this)),void jF(this.a,Yx(t,14))}E7(this,n-vF((xjn(),_at)),CZ(Yx(H3(this,16),26)||_at,n),t)},Fjn.zh=function(){return xjn(),_at},Fjn.Bh=function(n){switch(n){case 0:return!this.Ab&&(this.Ab=new m_(Zct,this,0,3)),void Hmn(this.Ab);case 1:return void E2(this,null);case 2:return!this.a&&(this.a=new _R(this,hat,this)),void Hmn(this.a)}r9(this,n-vF((xjn(),_at)),CZ(Yx(H3(this,16),26)||_at,n))},EF(PNn,"ETypeParameterImpl",444),Wfn(445,85,JDn,_R),Fjn.cj=function(n,t){return function(n,t,e){var i,r;for(e=men(t,n.e,-1-n.c,e),r=new Wg(new t6(new Ql(EB(n.a).a).a));r.a.b;)e=zyn(i=Yx(s1(r.a).cd(),87),dbn(i,n.a),e);return e}(this,Yx(n,87),t)},Fjn.dj=function(n,t){return function(n,t,e){var i,r;for(e=Uq(t,n.e,-1-n.c,e),r=new Wg(new t6(new Ql(EB(n.a).a).a));r.a.b;)e=zyn(i=Yx(s1(r.a).cd(),87),dbn(i,n.a),e);return e}(this,Yx(n,87),t)},EF(PNn,"ETypeParameterImpl/1",445),Wfn(634,43,gMn,Wv),Fjn.ec=function(){return new Xg(this)},EF(PNn,"ETypeParameterImpl/2",634),Wfn(556,dEn,gEn,Xg),Fjn.Fc=function(n){return kN(this,Yx(n,87))},Fjn.Gc=function(n){var t,e,i;for(i=!1,e=n.Kc();e.Ob();)t=Yx(e.Pb(),87),null==xB(this.a,t,"")&&(i=!0);return i},Fjn.$b=function(){U_(this.a)},Fjn.Hc=function(n){return P_(this.a,n)},Fjn.Kc=function(){return new Wg(new t6(new Ql(this.a).a))},Fjn.Mc=function(n){return hQ(this,n)},Fjn.gc=function(){return hE(this.a)},EF(PNn,"ETypeParameterImpl/2/1",556),Wfn(557,1,fEn,Wg),Fjn.Nb=function(n){I_(this,n)},Fjn.Pb=function(){return Yx(s1(this.a).cd(),87)},Fjn.Ob=function(){return this.a.b},Fjn.Qb=function(){oY(this.a)},EF(PNn,"ETypeParameterImpl/2/1/1",557),Wfn(1276,43,gMn,Vv),Fjn._b=function(n){return aI(n)?hq(this,n):!!Dq(this.f,n)},Fjn.xc=function(n){var t;return CO(t=aI(n)?aG(this,n):eI(Dq(this.f,n)),837)?(t=Yx(t,837)._j(),xB(this,Yx(n,235),t),t):null!=t?t:null==n?(ET(),mut):null},EF(PNn,"EValidatorRegistryImpl",1276),Wfn(1313,704,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,1941:1,49:1,97:1,150:1,114:1,115:1},qo),Fjn.Ih=function(n,t){switch(n.yj()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return null==t?null:I7(t);case 25:return r1(t);case 27:case 28:return function(n){return CO(n,172)?""+Yx(n,172).a:null==n?null:I7(n)}(t);case 29:return null==t?null:gO(Grt[0],Yx(t,199));case 41:return null==t?"":Nk(Yx(t,290));case 42:return I7(t);case 50:return lL(t);default:throw hp(new Qm(ONn+n.ne()+ANn))}},Fjn.Jh=function(n){var t;switch(-1==n.G&&(n.G=(t=i1(n))?Ren(t.Mh(),n):-1),n.G){case 0:return new qv;case 1:return new jo;case 2:return new Rf;case 4:return new Bp;case 5:return new Gv;case 6:return new Fp;case 7:return new xf;case 10:return new yo;case 11:return new zv;case 12:return new Sq;case 13:return new Uv;case 14:return new cL;case 17:return new Ao;case 18:return new up;case 19:return new Ho;default:throw hp(new Qm(NNn+n.zb+ANn))}},Fjn.Kh=function(n,t){switch(n.yj()){case 20:return null==t?null:new Wk(t);case 21:return null==t?null:new IC(t);case 23:case 22:return null==t?null:function(n){if(vtn(kLn,n))return TA(),L_n;if(vtn(jLn,n))return TA(),$_n;throw hp(new Qm("Expecting true or false"))}(t);case 26:case 24:return null==t?null:iZ(ipn(t,-128,127)<<24>>24);case 25:return function(n){var t,e,i,r,c,a,u;if(null==n)return null;for(u=n.length,a=VQ(Yot,LNn,25,r=(u+1)/2|0,15,1),u%2!=0&&(a[--r]=Odn((Lz(u-1,n.length),n.charCodeAt(u-1)))),e=0,i=0;e>24;return a}(t);case 27:return function(n){var t;if(null==n)return null;t=0;try{t=ipn(n,nTn,Yjn)&fTn}catch(e){if(!CO(e=j4(e),127))throw hp(e);t=xJ(n)[0]}return k4(t)}(t);case 28:return function(n){var t;if(null==n)return null;t=0;try{t=ipn(n,nTn,Yjn)&fTn}catch(e){if(!CO(e=j4(e),127))throw hp(e);t=xJ(n)[0]}return k4(t)}(t);case 29:return function(n){var t,e;if(null==n)return null;for(t=null,e=0;e>16);case 50:return t;default:throw hp(new Qm(ONn+n.ne()+ANn))}},EF(PNn,"EcoreFactoryImpl",1313),Wfn(547,179,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,1939:1,49:1,97:1,150:1,179:1,547:1,114:1,115:1,675:1},$B),Fjn.gb=!1,Fjn.hb=!1;var hut,fut=!1;EF(PNn,"EcorePackageImpl",547),Wfn(1184,1,{837:1},Go),Fjn._j=function(){return EA(),yut},EF(PNn,"EcorePackageImpl/1",1184),Wfn(1193,1,TRn,zo),Fjn.wj=function(n){return CO(n,147)},Fjn.xj=function(n){return VQ(ect,iEn,147,n,0,1)},EF(PNn,"EcorePackageImpl/10",1193),Wfn(1194,1,TRn,Uo),Fjn.wj=function(n){return CO(n,191)},Fjn.xj=function(n){return VQ(rct,iEn,191,n,0,1)},EF(PNn,"EcorePackageImpl/11",1194),Wfn(1195,1,TRn,Xo),Fjn.wj=function(n){return CO(n,56)},Fjn.xj=function(n){return VQ(Wrt,iEn,56,n,0,1)},EF(PNn,"EcorePackageImpl/12",1195),Wfn(1196,1,TRn,Wo),Fjn.wj=function(n){return CO(n,399)},Fjn.xj=function(n){return VQ(fat,QDn,59,n,0,1)},EF(PNn,"EcorePackageImpl/13",1196),Wfn(1197,1,TRn,Vo),Fjn.wj=function(n){return CO(n,235)},Fjn.xj=function(n){return VQ(cct,iEn,235,n,0,1)},EF(PNn,"EcorePackageImpl/14",1197),Wfn(1198,1,TRn,Qo),Fjn.wj=function(n){return CO(n,509)},Fjn.xj=function(n){return VQ(lat,iEn,2017,n,0,1)},EF(PNn,"EcorePackageImpl/15",1198),Wfn(1199,1,TRn,Yo),Fjn.wj=function(n){return CO(n,99)},Fjn.xj=function(n){return VQ(bat,VDn,18,n,0,1)},EF(PNn,"EcorePackageImpl/16",1199),Wfn(1200,1,TRn,Jo),Fjn.wj=function(n){return CO(n,170)},Fjn.xj=function(n){return VQ(tat,VDn,170,n,0,1)},EF(PNn,"EcorePackageImpl/17",1200),Wfn(1201,1,TRn,Zo),Fjn.wj=function(n){return CO(n,472)},Fjn.xj=function(n){return VQ(nat,iEn,472,n,0,1)},EF(PNn,"EcorePackageImpl/18",1201),Wfn(1202,1,TRn,ns),Fjn.wj=function(n){return CO(n,548)},Fjn.xj=function(n){return VQ(out,kDn,548,n,0,1)},EF(PNn,"EcorePackageImpl/19",1202),Wfn(1185,1,TRn,ts),Fjn.wj=function(n){return CO(n,322)},Fjn.xj=function(n){return VQ(eat,VDn,34,n,0,1)},EF(PNn,"EcorePackageImpl/2",1185),Wfn(1203,1,TRn,es),Fjn.wj=function(n){return CO(n,241)},Fjn.xj=function(n){return VQ(hat,eRn,87,n,0,1)},EF(PNn,"EcorePackageImpl/20",1203),Wfn(1204,1,TRn,is),Fjn.wj=function(n){return CO(n,444)},Fjn.xj=function(n){return VQ(zat,iEn,836,n,0,1)},EF(PNn,"EcorePackageImpl/21",1204),Wfn(1205,1,TRn,rs),Fjn.wj=function(n){return rI(n)},Fjn.xj=function(n){return VQ(D_n,TEn,476,n,8,1)},EF(PNn,"EcorePackageImpl/22",1205),Wfn(1206,1,TRn,cs),Fjn.wj=function(n){return CO(n,190)},Fjn.xj=function(n){return VQ(Yot,TEn,190,n,0,2)},EF(PNn,"EcorePackageImpl/23",1206),Wfn(1207,1,TRn,as),Fjn.wj=function(n){return CO(n,217)},Fjn.xj=function(n){return VQ(__n,TEn,217,n,0,1)},EF(PNn,"EcorePackageImpl/24",1207),Wfn(1208,1,TRn,us),Fjn.wj=function(n){return CO(n,172)},Fjn.xj=function(n){return VQ(B_n,TEn,172,n,0,1)},EF(PNn,"EcorePackageImpl/25",1208),Wfn(1209,1,TRn,os),Fjn.wj=function(n){return CO(n,199)},Fjn.xj=function(n){return VQ(N_n,TEn,199,n,0,1)},EF(PNn,"EcorePackageImpl/26",1209),Wfn(1210,1,TRn,ss),Fjn.wj=function(n){return!1},Fjn.xj=function(n){return VQ(est,iEn,2110,n,0,1)},EF(PNn,"EcorePackageImpl/27",1210),Wfn(1211,1,TRn,hs),Fjn.wj=function(n){return cI(n)},Fjn.xj=function(n){return VQ(H_n,TEn,333,n,7,1)},EF(PNn,"EcorePackageImpl/28",1211),Wfn(1212,1,TRn,fs),Fjn.wj=function(n){return CO(n,58)},Fjn.xj=function(n){return VQ(jct,dPn,58,n,0,1)},EF(PNn,"EcorePackageImpl/29",1212),Wfn(1186,1,TRn,ls),Fjn.wj=function(n){return CO(n,510)},Fjn.xj=function(n){return VQ(Zct,{3:1,4:1,5:1,1934:1},590,n,0,1)},EF(PNn,"EcorePackageImpl/3",1186),Wfn(1213,1,TRn,bs),Fjn.wj=function(n){return CO(n,573)},Fjn.xj=function(n){return VQ(xct,iEn,1940,n,0,1)},EF(PNn,"EcorePackageImpl/30",1213),Wfn(1214,1,TRn,ws),Fjn.wj=function(n){return CO(n,153)},Fjn.xj=function(n){return VQ(Eut,dPn,153,n,0,1)},EF(PNn,"EcorePackageImpl/31",1214),Wfn(1215,1,TRn,ds),Fjn.wj=function(n){return CO(n,72)},Fjn.xj=function(n){return VQ(Xat,MRn,72,n,0,1)},EF(PNn,"EcorePackageImpl/32",1215),Wfn(1216,1,TRn,gs),Fjn.wj=function(n){return CO(n,155)},Fjn.xj=function(n){return VQ(q_n,TEn,155,n,0,1)},EF(PNn,"EcorePackageImpl/33",1216),Wfn(1217,1,TRn,ps),Fjn.wj=function(n){return CO(n,19)},Fjn.xj=function(n){return VQ(U_n,TEn,19,n,0,1)},EF(PNn,"EcorePackageImpl/34",1217),Wfn(1218,1,TRn,vs),Fjn.wj=function(n){return CO(n,290)},Fjn.xj=function(n){return VQ(XKn,iEn,290,n,0,1)},EF(PNn,"EcorePackageImpl/35",1218),Wfn(1219,1,TRn,ms),Fjn.wj=function(n){return CO(n,162)},Fjn.xj=function(n){return VQ(J_n,TEn,162,n,0,1)},EF(PNn,"EcorePackageImpl/36",1219),Wfn(1220,1,TRn,ys),Fjn.wj=function(n){return CO(n,83)},Fjn.xj=function(n){return VQ(VKn,iEn,83,n,0,1)},EF(PNn,"EcorePackageImpl/37",1220),Wfn(1221,1,TRn,ks),Fjn.wj=function(n){return CO(n,591)},Fjn.xj=function(n){return VQ(vut,iEn,591,n,0,1)},EF(PNn,"EcorePackageImpl/38",1221),Wfn(1222,1,TRn,js),Fjn.wj=function(n){return!1},Fjn.xj=function(n){return VQ(ist,iEn,2111,n,0,1)},EF(PNn,"EcorePackageImpl/39",1222),Wfn(1187,1,TRn,Es),Fjn.wj=function(n){return CO(n,88)},Fjn.xj=function(n){return VQ(rat,iEn,26,n,0,1)},EF(PNn,"EcorePackageImpl/4",1187),Wfn(1223,1,TRn,Ts),Fjn.wj=function(n){return CO(n,184)},Fjn.xj=function(n){return VQ(nFn,TEn,184,n,0,1)},EF(PNn,"EcorePackageImpl/40",1223),Wfn(1224,1,TRn,Ms),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(PNn,"EcorePackageImpl/41",1224),Wfn(1225,1,TRn,Ss),Fjn.wj=function(n){return CO(n,588)},Fjn.xj=function(n){return VQ(Tct,iEn,588,n,0,1)},EF(PNn,"EcorePackageImpl/42",1225),Wfn(1226,1,TRn,Ps),Fjn.wj=function(n){return!1},Fjn.xj=function(n){return VQ(rst,TEn,2112,n,0,1)},EF(PNn,"EcorePackageImpl/43",1226),Wfn(1227,1,TRn,Is),Fjn.wj=function(n){return CO(n,42)},Fjn.xj=function(n){return VQ(i_n,DEn,42,n,0,1)},EF(PNn,"EcorePackageImpl/44",1227),Wfn(1188,1,TRn,Cs),Fjn.wj=function(n){return CO(n,138)},Fjn.xj=function(n){return VQ(iat,iEn,138,n,0,1)},EF(PNn,"EcorePackageImpl/5",1188),Wfn(1189,1,TRn,Os),Fjn.wj=function(n){return CO(n,148)},Fjn.xj=function(n){return VQ(cat,iEn,148,n,0,1)},EF(PNn,"EcorePackageImpl/6",1189),Wfn(1190,1,TRn,As),Fjn.wj=function(n){return CO(n,457)},Fjn.xj=function(n){return VQ(oat,iEn,671,n,0,1)},EF(PNn,"EcorePackageImpl/7",1190),Wfn(1191,1,TRn,$s),Fjn.wj=function(n){return CO(n,573)},Fjn.xj=function(n){return VQ(sat,iEn,678,n,0,1)},EF(PNn,"EcorePackageImpl/8",1191),Wfn(1192,1,TRn,Ls),Fjn.wj=function(n){return CO(n,471)},Fjn.xj=function(n){return VQ(ict,iEn,471,n,0,1)},EF(PNn,"EcorePackageImpl/9",1192),Wfn(1025,1982,mDn,Um),Fjn.bi=function(n,t){!function(n,t){var e,i,r;if(t.vi(n.a),null!=(r=Yx(H3(n.a,8),1936)))for(e=0,i=r.length;e0){if(Lz(0,n.length),47==n.charCodeAt(0)){for(c=new pQ(4),r=1,t=1;t0&&(n=n.substr(0,e))}return function(n,t){var e,i,r,c,a,u;for(c=null,r=new k_((!n.a&&(n.a=new Vg(n)),n.a));ufn(r);)if(emn(a=(e=Yx(abn(r),56)).Tg()),null!=(i=(u=a.o)&&e.mh(u)?RN(v4(u),e.ah(u)):null)&&_N(i,t)){c=e;break}return c}(this,n)},Fjn.Xk=function(){return this.c},Fjn.Ib=function(){return Nk(this.gm)+"@"+(W5(this)>>>0).toString(16)+" uri='"+this.d+"'"},Fjn.b=!1,EF(IRn,"ResourceImpl",781),Wfn(1379,781,PRn,Yg),EF(IRn,"BinaryResourceImpl",1379),Wfn(1169,694,Sxn),Fjn.si=function(n){return CO(n,56)?function(n,t){return n.a?t.Wg().Kc():Yx(t.Wg(),69).Zh()}(this,Yx(n,56)):CO(n,591)?new UO(Yx(n,591).Vk()):iI(n)===iI(this.f)?Yx(n,14).Kc():(iL(),$ct.a)},Fjn.Ob=function(){return ufn(this)},Fjn.a=!1,EF(xDn,"EcoreUtil/ContentTreeIterator",1169),Wfn(1380,1169,Sxn,k_),Fjn.si=function(n){return iI(n)===iI(this.f)?Yx(n,15).Kc():new hX(Yx(n,56))},EF(IRn,"ResourceImpl/5",1380),Wfn(648,1994,YDn,Vg),Fjn.Hc=function(n){return this.i<=4?Fcn(this,n):CO(n,49)&&Yx(n,49).Zg()==this.a},Fjn.bi=function(n,t){n==this.i-1&&(this.a.b||(this.a.b=!0))},Fjn.di=function(n,t){0==n?this.a.b||(this.a.b=!0):XQ(this,n,t)},Fjn.fi=function(n,t){},Fjn.gi=function(n,t,e){},Fjn.aj=function(){return 2},Fjn.Ai=function(){return this.a},Fjn.bj=function(){return!0},Fjn.cj=function(n,t){return Yx(n,49).wh(this.a,t)},Fjn.dj=function(n,t){return Yx(n,49).wh(null,t)},Fjn.ej=function(){return!1},Fjn.hi=function(){return!0},Fjn.ri=function(n){return VQ(Wrt,iEn,56,n,0,1)},Fjn.ni=function(){return!1},EF(IRn,"ResourceImpl/ContentsEList",648),Wfn(957,1964,WEn,Qg),Fjn.Zc=function(n){return this.a._h(n)},Fjn.gc=function(){return this.a.gc()},EF(xDn,"AbstractSequentialInternalEList/1",957),Wfn(624,1,{},OD),EF(xDn,"BasicExtendedMetaData",624),Wfn(1160,1,{},UP),Fjn.$k=function(){return null},Fjn._k=function(){return-2==this.a&&(n=this,t=function(n,t){var e,i,r;if((e=t.Hh(n.a))&&null!=(r=ynn((!e.b&&(e.b=new z$((xjn(),Dat),out,e)),e.b),tRn)))for(i=1;i<(wsn(),lut).length;++i)if(_N(lut[i],r))return i;return 0}(this.d,this.b),n.a=t),this.a;var n,t},Fjn.al=function(){return null},Fjn.bl=function(){return XH(),XH(),TFn},Fjn.ne=function(){return this.c==qRn&&(n=this,t=ktn(this.d,this.b),n.c=t),this.c;var n,t},Fjn.cl=function(){return 0},Fjn.a=-2,Fjn.c=qRn,EF(xDn,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1160),Wfn(1161,1,{},mU),Fjn.$k=function(){return this.a==(wV(),gut)&&function(n,t){n.a=t}(this,(n=this.f,t=this.b,(i=t.Hh(n.a))&&(!i.b&&(i.b=new z$((xjn(),Dat),out,i)),null!=(e=lL(ynn(i.b,bRn)))&&CO(c=-1==(r=e.lastIndexOf("#"))?Z$(n,t.Aj(),e):0==r?EY(n,null,e.substr(1)):EY(n,e.substr(0,r),e.substr(r+1)),148))?Yx(c,148):null)),this.a;var n,t,e,i,r,c},Fjn._k=function(){return 0},Fjn.al=function(){return this.c==(wV(),gut)&&function(n,t){n.c=t}(this,(n=this.f,t=this.b,(e=t.Hh(n.a))&&(!e.b&&(e.b=new z$((xjn(),Dat),out,e)),null!=(r=lL(ynn(e.b,DRn)))&&CO(c=-1==(i=r.lastIndexOf("#"))?Z$(n,t.Aj(),r):0==i?EY(n,null,r.substr(1)):EY(n,r.substr(0,i),r.substr(i+1)),148))?Yx(c,148):null)),this.c;var n,t,e,i,r,c},Fjn.bl=function(){return!this.d&&(n=this,t=function(n,t){var e,i,r,c,a,u,o,s,h;if((e=t.Hh(n.a))&&null!=(o=lL(ynn((!e.b&&(e.b=new z$((xjn(),Dat),out,e)),e.b),"memberTypes")))){for(s=new ip,a=0,u=(c=Ogn(o,"\\w")).length;ae?t:e;s<=f;++s)s==e?u=i++:(c=r[s],h=w.rl(c.ak()),s==t&&(o=s!=f||h?i:i-1),h&&++i);return l=Yx(L9(n,t,e),72),u!=o&&Xp(n,new jY(n.e,7,a,d9(u),b.dd(),o)),l}return Yx(L9(n,t,e),72)}(this,n,t)},Fjn.li=function(n,t){return function(n,t,e){var i,r,c,a,u,o,s,h,f,l,b,w,d,g;if(CO(a=e.ak(),99)&&0!=(Yx(a,18).Bb&eMn)&&(l=Yx(e.dd(),49),(d=P8(n.e,l))!=l)){if(_O(n,t,zan(n,0,h=VX(a,d))),f=null,gC(n.e)&&(i=iyn((wsn(),wut),n.e.Tg(),a))!=CZ(n.e.Tg(),n.c)){for(g=dwn(n.e.Tg(),a),u=0,c=Yx(n.g,119),o=0;o=0;)if(t=n[this.c],this.k.rl(t.ak()))return this.j=this.f?t:t.dd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},EF(xDn,"BasicFeatureMap/FeatureEIterator",410),Wfn(662,410,yEn,qI),Fjn.Lk=function(){return!0},EF(xDn,"BasicFeatureMap/ResolvingFeatureEIterator",662),Wfn(955,486,rRn,vO),Fjn.Gi=function(){return this},EF(xDn,"EContentsEList/1",955),Wfn(956,486,rRn,GI),Fjn.Lk=function(){return!1},EF(xDn,"EContentsEList/2",956),Wfn(954,279,cRn,mO),Fjn.Nk=function(n){},Fjn.Ob=function(){return!1},Fjn.Sb=function(){return!1},EF(xDn,"EContentsEList/FeatureIteratorImpl/1",954),Wfn(825,585,JDn,ZO),Fjn.ci=function(){this.a=!0},Fjn.fj=function(){return this.a},Fjn.Xj=function(){var n;Hmn(this),gC(this.e)?(n=this.a,this.a=!1,K3(this.e,new OV(this.e,2,this.c,n,!1))):this.a=!1},Fjn.a=!1,EF(xDn,"EDataTypeEList/Unsettable",825),Wfn(1849,585,JDn,nA),Fjn.hi=function(){return!0},EF(xDn,"EDataTypeUniqueEList",1849),Wfn(1850,825,JDn,tA),Fjn.hi=function(){return!0},EF(xDn,"EDataTypeUniqueEList/Unsettable",1850),Wfn(139,85,JDn,VO),Fjn.Ek=function(){return!0},Fjn.li=function(n,t){return $fn(this,n,Yx(t,56))},EF(xDn,"EObjectContainmentEList/Resolving",139),Wfn(1163,545,JDn,QO),Fjn.Ek=function(){return!0},Fjn.li=function(n,t){return $fn(this,n,Yx(t,56))},EF(xDn,"EObjectContainmentEList/Unsettable/Resolving",1163),Wfn(748,16,JDn,TN),Fjn.ci=function(){this.a=!0},Fjn.fj=function(){return this.a},Fjn.Xj=function(){var n;Hmn(this),gC(this.e)?(n=this.a,this.a=!1,K3(this.e,new OV(this.e,2,this.c,n,!1))):this.a=!1},Fjn.a=!1,EF(xDn,"EObjectContainmentWithInverseEList/Unsettable",748),Wfn(1173,748,JDn,MN),Fjn.Ek=function(){return!0},Fjn.li=function(n,t){return $fn(this,n,Yx(t,56))},EF(xDn,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1173),Wfn(743,496,JDn,YO),Fjn.ci=function(){this.a=!0},Fjn.fj=function(){return this.a},Fjn.Xj=function(){var n;Hmn(this),gC(this.e)?(n=this.a,this.a=!1,K3(this.e,new OV(this.e,2,this.c,n,!1))):this.a=!1},Fjn.a=!1,EF(xDn,"EObjectEList/Unsettable",743),Wfn(328,496,JDn,JO),Fjn.Ek=function(){return!0},Fjn.li=function(n,t){return $fn(this,n,Yx(t,56))},EF(xDn,"EObjectResolvingEList",328),Wfn(1641,743,JDn,eA),Fjn.Ek=function(){return!0},Fjn.li=function(n,t){return $fn(this,n,Yx(t,56))},EF(xDn,"EObjectResolvingEList/Unsettable",1641),Wfn(1381,1,{},Ns),EF(xDn,"EObjectValidator",1381),Wfn(546,496,JDn,y_),Fjn.zk=function(){return this.d},Fjn.Ak=function(){return this.b},Fjn.bj=function(){return!0},Fjn.Dk=function(){return!0},Fjn.b=0,EF(xDn,"EObjectWithInverseEList",546),Wfn(1176,546,JDn,SN),Fjn.Ck=function(){return!0},EF(xDn,"EObjectWithInverseEList/ManyInverse",1176),Wfn(625,546,JDn,PN),Fjn.ci=function(){this.a=!0},Fjn.fj=function(){return this.a},Fjn.Xj=function(){var n;Hmn(this),gC(this.e)?(n=this.a,this.a=!1,K3(this.e,new OV(this.e,2,this.c,n,!1))):this.a=!1},Fjn.a=!1,EF(xDn,"EObjectWithInverseEList/Unsettable",625),Wfn(1175,625,JDn,CN),Fjn.Ck=function(){return!0},EF(xDn,"EObjectWithInverseEList/Unsettable/ManyInverse",1175),Wfn(749,546,JDn,IN),Fjn.Ek=function(){return!0},Fjn.li=function(n,t){return $fn(this,n,Yx(t,56))},EF(xDn,"EObjectWithInverseResolvingEList",749),Wfn(31,749,JDn,AN),Fjn.Ck=function(){return!0},EF(xDn,"EObjectWithInverseResolvingEList/ManyInverse",31),Wfn(750,625,JDn,ON),Fjn.Ek=function(){return!0},Fjn.li=function(n,t){return $fn(this,n,Yx(t,56))},EF(xDn,"EObjectWithInverseResolvingEList/Unsettable",750),Wfn(1174,750,JDn,$N),Fjn.Ck=function(){return!0},EF(xDn,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1174),Wfn(1164,622,JDn),Fjn.ai=function(){return 0==(1792&this.b)},Fjn.ci=function(){this.b|=1},Fjn.Bk=function(){return 0!=(4&this.b)},Fjn.bj=function(){return 0!=(40&this.b)},Fjn.Ck=function(){return 0!=(16&this.b)},Fjn.Dk=function(){return 0!=(8&this.b)},Fjn.Ek=function(){return 0!=(this.b&FDn)},Fjn.rk=function(){return 0!=(32&this.b)},Fjn.Fk=function(){return 0!=(this.b&DNn)},Fjn.wj=function(n){return this.d?_X(this.d,n):this.ak().Yj().wj(n)},Fjn.fj=function(){return 0!=(2&this.b)?0!=(1&this.b):0!=this.i},Fjn.hi=function(){return 0!=(128&this.b)},Fjn.Xj=function(){var n;Hmn(this),0!=(2&this.b)&&(gC(this.e)?(n=0!=(1&this.b),this.b&=-2,Xp(this,new OV(this.e,2,tnn(this.e.Tg(),this.ak()),n,!1))):this.b&=-2)},Fjn.ni=function(){return 0==(1536&this.b)},Fjn.b=0,EF(xDn,"EcoreEList/Generic",1164),Wfn(1165,1164,JDn,eq),Fjn.ak=function(){return this.a},EF(xDn,"EcoreEList/Dynamic",1165),Wfn(747,63,Mxn,Jg),Fjn.ri=function(n){return H1(this.a.a,n)},EF(xDn,"EcoreEMap/1",747),Wfn(746,85,JDn,g_),Fjn.bi=function(n,t){tin(this.b,Yx(t,133))},Fjn.di=function(n,t){A3(this.b)},Fjn.ei=function(n,t,e){var i;++(i=this.b,Yx(t,133),i).e},Fjn.fi=function(n,t){N9(this.b,Yx(t,133))},Fjn.gi=function(n,t,e){N9(this.b,Yx(e,133)),iI(e)===iI(t)&&Yx(e,133).Th(function(n){return null==n?0:W5(n)}(Yx(t,133).cd())),tin(this.b,Yx(t,133))},EF(xDn,"EcoreEMap/DelegateEObjectContainmentEList",746),Wfn(1171,151,RDn,j0),EF(xDn,"EcoreEMap/Unsettable",1171),Wfn(1172,746,JDn,LN),Fjn.ci=function(){this.a=!0},Fjn.fj=function(){return this.a},Fjn.Xj=function(){var n;Hmn(this),gC(this.e)?(n=this.a,this.a=!1,K3(this.e,new OV(this.e,2,this.c,n,!1))):this.a=!1},Fjn.a=!1,EF(xDn,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1172),Wfn(1168,228,gMn,pF),Fjn.a=!1,Fjn.b=!1,EF(xDn,"EcoreUtil/Copier",1168),Wfn(745,1,fEn,hX),Fjn.Nb=function(n){I_(this,n)},Fjn.Ob=function(){return jnn(this)},Fjn.Pb=function(){var n;return jnn(this),n=this.b,this.b=null,n},Fjn.Qb=function(){this.a.Qb()},EF(xDn,"EcoreUtil/ProperContentIterator",745),Wfn(1382,1381,{},Kf),EF(xDn,"EcoreValidator",1382),aR(xDn,"FeatureMapUtil/Validator"),Wfn(1260,1,{1942:1},xs),Fjn.rl=function(n){return!0},EF(xDn,"FeatureMapUtil/1",1260),Wfn(757,1,{1942:1},ykn),Fjn.rl=function(n){var t;return this.c==n||(null==(t=hL(BF(this.a,n)))?function(n,t){var e;return n.f==jut?(e=TB(PJ((wsn(),wut),t)),n.e?4==e&&t!=(dfn(),Put)&&t!=(dfn(),Tut)&&t!=(dfn(),Mut)&&t!=(dfn(),Sut):2==e):!(!n.d||!(n.d.Hc(t)||n.d.Hc(Bz(PJ((wsn(),wut),t)))||n.d.Hc(iyn((wsn(),wut),n.b,t))))||!(!n.f||!Kbn((wsn(),n.f),tH(PJ(wut,t))))&&(e=TB(PJ(wut,t)),n.e?4==e:2==e)}(this,n)?(LV(this.a,n,(TA(),L_n)),!0):(LV(this.a,n,(TA(),$_n)),!1):t==(TA(),L_n))},Fjn.e=!1,EF(xDn,"FeatureMapUtil/BasicValidator",757),Wfn(758,43,gMn,yO),EF(xDn,"FeatureMapUtil/BasicValidator/Cache",758),Wfn(501,52,{20:1,28:1,52:1,14:1,15:1,58:1,76:1,69:1,95:1},VP),Fjn.Vc=function(n,t){$wn(this.c,this.b,n,t)},Fjn.Fc=function(n){return Rgn(this.c,this.b,n)},Fjn.Wc=function(n,t){return function(n,t,e,i){var r,c,a,u,o,s,h,f;if(0==i.gc())return!1;if(TT(),a=(o=Yx(t,66).Oj())?i:new FZ(i.gc()),Lwn(n.e,t)){if(t.hi())for(h=i.Kc();h.Ob();)fvn(n,t,s=h.Pb(),CO(t,99)&&0!=(Yx(t,18).Bb&eMn))||(c=VX(t,s),a.Fc(c));else if(!o)for(h=i.Kc();h.Ob();)c=VX(t,s=h.Pb()),a.Fc(c)}else{for(f=dwn(n.e.Tg(),t),r=Yx(n.g,119),u=0;u1)throw hp(new Qm(GRn));o||(c=VX(t,i.Kc().Pb()),a.Fc(c))}return f5(n,fsn(n,t,e),a)}(this.c,this.b,n,t)},Fjn.Gc=function(n){return TO(this,n)},Fjn.Xh=function(n,t){!function(n,t,e,i){n.j=-1,Afn(n,fsn(n,t,e),(TT(),Yx(t,66).Mj().Ok(i)))}(this.c,this.b,n,t)},Fjn.lk=function(n,t){return Ydn(this.c,this.b,n,t)},Fjn.pi=function(n){return amn(this.c,this.b,n,!1)},Fjn.Zh=function(){return mC(this.c,this.b)},Fjn.$h=function(){return n=this.c,new Y3(this.b,n);var n},Fjn._h=function(n){return function(n,t,e){var i,r;for(r=new Y3(t,n),i=0;i0)if((i-=r.length-t)>=0){for(c.a+="0.";i>rFn.length;i-=rFn.length)ER(c,rFn);QL(c,rFn,oG(i)),yI(c,r.substr(t))}else yI(c,l$(r,t,oG(i=t-i))),c.a+=".",yI(c,lI(r,oG(i)));else{for(yI(c,r.substr(t));i<-rFn.length;i+=rFn.length)ER(c,rFn);QL(c,rFn,oG(-i))}return c.a}(Yx(t,240));case 15:case 14:return null==t?null:function(n){return n==JTn?QRn:n==ZTn?"-INF":""+n}(ty(fL(t)));case 17:return yan((ayn(),t));case 18:return yan(t);case 21:case 20:return null==t?null:function(n){return n==JTn?QRn:n==ZTn?"-INF":""+n}(Yx(t,155).a);case 27:return oL(Yx(t,190));case 30:return Yin((ayn(),Yx(t,15)));case 31:return Yin(Yx(t,15));case 40:case 59:case 48:return function(n){return null==n?null:I7(n)}((ayn(),t));case 42:return kan((ayn(),t));case 43:return kan(t);default:throw hp(new Qm(ONn+n.ne()+ANn))}},Fjn.Jh=function(n){var t;switch(-1==n.G&&(n.G=(t=i1(n))?Ren(t.Mh(),n):-1),n.G){case 0:return new Qv;case 1:return new Rs;case 2:return new Jv;case 3:return new Yv;default:throw hp(new Qm(NNn+n.zb+ANn))}},Fjn.Kh=function(n,t){var e,i,r,c,a,u,o,s,h,f,l,b,w,d,g,p;switch(n.yj()){case 5:case 52:case 4:return t;case 6:return sen(t);case 8:case 7:return null==t?null:function(n){if(n=Vvn(n,!0),_N(kLn,n)||_N("1",n))return TA(),L_n;if(_N(jLn,n)||_N("0",n))return TA(),$_n;throw hp(new fy("Invalid boolean value: '"+n+"'"))}(t);case 9:return null==t?null:iZ(ipn((i=Vvn(t,!0)).length>0&&(Lz(0,i.length),43==i.charCodeAt(0))?i.substr(1):i,-128,127)<<24>>24);case 10:return null==t?null:iZ(ipn((r=Vvn(t,!0)).length>0&&(Lz(0,r.length),43==r.charCodeAt(0))?r.substr(1):r,-128,127)<<24>>24);case 11:return lL(fjn(this,(ayn(),Dut),t));case 12:return lL(fjn(this,(ayn(),Rut),t));case 13:return null==t?null:new Wk(Vvn(t,!0));case 15:case 14:return function(n){var t,e,i,r;if(null==n)return null;if(i=Vvn(n,!0),r=QRn.length,_N(i.substr(i.length-r,r),QRn))if(4==(e=i.length)){if(Lz(0,i.length),43==(t=i.charCodeAt(0)))return iot;if(45==t)return eot}else if(3==e)return iot;return gon(i)}(t);case 16:return lL(fjn(this,(ayn(),Kut),t));case 17:return Qnn((ayn(),t));case 18:return Qnn(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Vvn(t,!0);case 21:case 20:return function(n){var t,e,i,r;if(null==n)return null;if(i=Vvn(n,!0),r=QRn.length,_N(i.substr(i.length-r,r),QRn))if(4==(e=i.length)){if(Lz(0,i.length),43==(t=i.charCodeAt(0)))return cot;if(45==t)return rot}else if(3==e)return cot;return new Vp(i)}(t);case 22:return lL(fjn(this,(ayn(),_ut),t));case 23:return lL(fjn(this,(ayn(),Fut),t));case 24:return lL(fjn(this,(ayn(),But),t));case 25:return lL(fjn(this,(ayn(),Hut),t));case 26:return lL(fjn(this,(ayn(),qut),t));case 27:return ztn(t);case 30:return Ynn((ayn(),t));case 31:return Ynn(t);case 32:return null==t?null:d9(ipn((h=Vvn(t,!0)).length>0&&(Lz(0,h.length),43==h.charCodeAt(0))?h.substr(1):h,nTn,Yjn));case 33:return null==t?null:new IC((f=Vvn(t,!0)).length>0&&(Lz(0,f.length),43==f.charCodeAt(0))?f.substr(1):f);case 34:return null==t?null:d9(ipn((l=Vvn(t,!0)).length>0&&(Lz(0,l.length),43==l.charCodeAt(0))?l.substr(1):l,nTn,Yjn));case 36:return null==t?null:ytn(mkn((b=Vvn(t,!0)).length>0&&(Lz(0,b.length),43==b.charCodeAt(0))?b.substr(1):b));case 37:return null==t?null:ytn(mkn((w=Vvn(t,!0)).length>0&&(Lz(0,w.length),43==w.charCodeAt(0))?w.substr(1):w));case 40:case 59:case 48:return function(n){var t;return null==n?null:new IC((t=Vvn(n,!0)).length>0&&(Lz(0,t.length),43==t.charCodeAt(0))?t.substr(1):t)}((ayn(),t));case 42:return Jnn((ayn(),t));case 43:return Jnn(t);case 44:return null==t?null:new IC((d=Vvn(t,!0)).length>0&&(Lz(0,d.length),43==d.charCodeAt(0))?d.substr(1):d);case 45:return null==t?null:new IC((g=Vvn(t,!0)).length>0&&(Lz(0,g.length),43==g.charCodeAt(0))?g.substr(1):g);case 46:return Vvn(t,!1);case 47:return lL(fjn(this,(ayn(),Gut),t));case 49:return lL(fjn(this,(ayn(),Uut),t));case 50:return null==t?null:g9(ipn((p=Vvn(t,!0)).length>0&&(Lz(0,p.length),43==p.charCodeAt(0))?p.substr(1):p,fRn,32767)<<16>>16);case 51:return null==t?null:g9(ipn((c=Vvn(t,!0)).length>0&&(Lz(0,c.length),43==c.charCodeAt(0))?c.substr(1):c,fRn,32767)<<16>>16);case 53:return lL(fjn(this,(ayn(),Vut),t));case 55:return null==t?null:g9(ipn((a=Vvn(t,!0)).length>0&&(Lz(0,a.length),43==a.charCodeAt(0))?a.substr(1):a,fRn,32767)<<16>>16);case 56:return null==t?null:g9(ipn((u=Vvn(t,!0)).length>0&&(Lz(0,u.length),43==u.charCodeAt(0))?u.substr(1):u,fRn,32767)<<16>>16);case 57:return null==t?null:ytn(mkn((o=Vvn(t,!0)).length>0&&(Lz(0,o.length),43==o.charCodeAt(0))?o.substr(1):o));case 58:return null==t?null:ytn(mkn((s=Vvn(t,!0)).length>0&&(Lz(0,s.length),43==s.charCodeAt(0))?s.substr(1):s));case 60:return null==t?null:d9(ipn((e=Vvn(t,!0)).length>0&&(Lz(0,e.length),43==e.charCodeAt(0))?e.substr(1):e,nTn,Yjn));case 61:return null==t?null:d9(ipn(Vvn(t,!0),nTn,Yjn));default:throw hp(new Qm(ONn+n.ne()+ANn))}},EF(VRn,"XMLTypeFactoryImpl",1919),Wfn(586,179,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1,1945:1,586:1},AB),Fjn.N=!1,Fjn.O=!1;var sot,hot,fot,lot,bot,wot=!1;EF(VRn,"XMLTypePackageImpl",586),Wfn(1852,1,{837:1},Ks),Fjn._j=function(){return Fpn(),_ot},EF(VRn,"XMLTypePackageImpl/1",1852),Wfn(1861,1,TRn,_s),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/10",1861),Wfn(1862,1,TRn,Fs),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/11",1862),Wfn(1863,1,TRn,Bs),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/12",1863),Wfn(1864,1,TRn,Hs),Fjn.wj=function(n){return cI(n)},Fjn.xj=function(n){return VQ(H_n,TEn,333,n,7,1)},EF(VRn,"XMLTypePackageImpl/13",1864),Wfn(1865,1,TRn,qs),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/14",1865),Wfn(1866,1,TRn,Gs),Fjn.wj=function(n){return CO(n,15)},Fjn.xj=function(n){return VQ(JKn,dPn,15,n,0,1)},EF(VRn,"XMLTypePackageImpl/15",1866),Wfn(1867,1,TRn,zs),Fjn.wj=function(n){return CO(n,15)},Fjn.xj=function(n){return VQ(JKn,dPn,15,n,0,1)},EF(VRn,"XMLTypePackageImpl/16",1867),Wfn(1868,1,TRn,Us),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/17",1868),Wfn(1869,1,TRn,Xs),Fjn.wj=function(n){return CO(n,155)},Fjn.xj=function(n){return VQ(q_n,TEn,155,n,0,1)},EF(VRn,"XMLTypePackageImpl/18",1869),Wfn(1870,1,TRn,Ws),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/19",1870),Wfn(1853,1,TRn,Vs),Fjn.wj=function(n){return CO(n,843)},Fjn.xj=function(n){return VQ(Cut,iEn,843,n,0,1)},EF(VRn,"XMLTypePackageImpl/2",1853),Wfn(1871,1,TRn,Qs),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/20",1871),Wfn(1872,1,TRn,Ys),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/21",1872),Wfn(1873,1,TRn,Js),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/22",1873),Wfn(1874,1,TRn,Zs),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/23",1874),Wfn(1875,1,TRn,nh),Fjn.wj=function(n){return CO(n,190)},Fjn.xj=function(n){return VQ(Yot,TEn,190,n,0,2)},EF(VRn,"XMLTypePackageImpl/24",1875),Wfn(1876,1,TRn,th),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/25",1876),Wfn(1877,1,TRn,eh),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/26",1877),Wfn(1878,1,TRn,ih),Fjn.wj=function(n){return CO(n,15)},Fjn.xj=function(n){return VQ(JKn,dPn,15,n,0,1)},EF(VRn,"XMLTypePackageImpl/27",1878),Wfn(1879,1,TRn,rh),Fjn.wj=function(n){return CO(n,15)},Fjn.xj=function(n){return VQ(JKn,dPn,15,n,0,1)},EF(VRn,"XMLTypePackageImpl/28",1879),Wfn(1880,1,TRn,ch),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/29",1880),Wfn(1854,1,TRn,ah),Fjn.wj=function(n){return CO(n,667)},Fjn.xj=function(n){return VQ(aot,iEn,2021,n,0,1)},EF(VRn,"XMLTypePackageImpl/3",1854),Wfn(1881,1,TRn,uh),Fjn.wj=function(n){return CO(n,19)},Fjn.xj=function(n){return VQ(U_n,TEn,19,n,0,1)},EF(VRn,"XMLTypePackageImpl/30",1881),Wfn(1882,1,TRn,oh),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/31",1882),Wfn(1883,1,TRn,sh),Fjn.wj=function(n){return CO(n,162)},Fjn.xj=function(n){return VQ(J_n,TEn,162,n,0,1)},EF(VRn,"XMLTypePackageImpl/32",1883),Wfn(1884,1,TRn,hh),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/33",1884),Wfn(1885,1,TRn,fh),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/34",1885),Wfn(1886,1,TRn,lh),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/35",1886),Wfn(1887,1,TRn,bh),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/36",1887),Wfn(1888,1,TRn,wh),Fjn.wj=function(n){return CO(n,15)},Fjn.xj=function(n){return VQ(JKn,dPn,15,n,0,1)},EF(VRn,"XMLTypePackageImpl/37",1888),Wfn(1889,1,TRn,dh),Fjn.wj=function(n){return CO(n,15)},Fjn.xj=function(n){return VQ(JKn,dPn,15,n,0,1)},EF(VRn,"XMLTypePackageImpl/38",1889),Wfn(1890,1,TRn,gh),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/39",1890),Wfn(1855,1,TRn,ph),Fjn.wj=function(n){return CO(n,668)},Fjn.xj=function(n){return VQ(uot,iEn,2022,n,0,1)},EF(VRn,"XMLTypePackageImpl/4",1855),Wfn(1891,1,TRn,vh),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/40",1891),Wfn(1892,1,TRn,mh),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/41",1892),Wfn(1893,1,TRn,yh),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/42",1893),Wfn(1894,1,TRn,kh),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/43",1894),Wfn(1895,1,TRn,jh),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/44",1895),Wfn(1896,1,TRn,Eh),Fjn.wj=function(n){return CO(n,184)},Fjn.xj=function(n){return VQ(nFn,TEn,184,n,0,1)},EF(VRn,"XMLTypePackageImpl/45",1896),Wfn(1897,1,TRn,Th),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/46",1897),Wfn(1898,1,TRn,Mh),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/47",1898),Wfn(1899,1,TRn,Sh),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/48",1899),Wfn(TTn,1,TRn,Ph),Fjn.wj=function(n){return CO(n,184)},Fjn.xj=function(n){return VQ(nFn,TEn,184,n,0,1)},EF(VRn,"XMLTypePackageImpl/49",TTn),Wfn(1856,1,TRn,Ih),Fjn.wj=function(n){return CO(n,669)},Fjn.xj=function(n){return VQ(oot,iEn,2023,n,0,1)},EF(VRn,"XMLTypePackageImpl/5",1856),Wfn(1901,1,TRn,Ch),Fjn.wj=function(n){return CO(n,162)},Fjn.xj=function(n){return VQ(J_n,TEn,162,n,0,1)},EF(VRn,"XMLTypePackageImpl/50",1901),Wfn(1902,1,TRn,Oh),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/51",1902),Wfn(1903,1,TRn,Ah),Fjn.wj=function(n){return CO(n,19)},Fjn.xj=function(n){return VQ(U_n,TEn,19,n,0,1)},EF(VRn,"XMLTypePackageImpl/52",1903),Wfn(1857,1,TRn,$h),Fjn.wj=function(n){return aI(n)},Fjn.xj=function(n){return VQ(fFn,TEn,2,n,6,1)},EF(VRn,"XMLTypePackageImpl/6",1857),Wfn(1858,1,TRn,Lh),Fjn.wj=function(n){return CO(n,190)},Fjn.xj=function(n){return VQ(Yot,TEn,190,n,0,2)},EF(VRn,"XMLTypePackageImpl/7",1858),Wfn(1859,1,TRn,Nh),Fjn.wj=function(n){return rI(n)},Fjn.xj=function(n){return VQ(D_n,TEn,476,n,8,1)},EF(VRn,"XMLTypePackageImpl/8",1859),Wfn(1860,1,TRn,xh),Fjn.wj=function(n){return CO(n,217)},Fjn.xj=function(n){return VQ(__n,TEn,217,n,0,1)},EF(VRn,"XMLTypePackageImpl/9",1860),Wfn(50,60,eTn,wy),EF(kKn,"RegEx/ParseException",50),Wfn(820,1,{},Dh),Fjn.sl=function(n){return n16*e)throw hp(new wy(Kjn((GC(),iDn))));e=16*e+r}if(125!=this.a)throw hp(new wy(Kjn((GC(),rDn))));if(e>jKn)throw hp(new wy(Kjn((GC(),cDn))));n=e}else{if(r=0,0!=this.c||(r=din(this.a))<0)throw hp(new wy(Kjn((GC(),eDn))));if(e=r,kjn(this),0!=this.c||(r=din(this.a))<0)throw hp(new wy(Kjn((GC(),eDn))));n=e=16*e+r}break;case 117:if(i=0,kjn(this),0!=this.c||(i=din(this.a))<0)throw hp(new wy(Kjn((GC(),eDn))));if(t=i,kjn(this),0!=this.c||(i=din(this.a))<0)throw hp(new wy(Kjn((GC(),eDn))));if(t=16*t+i,kjn(this),0!=this.c||(i=din(this.a))<0)throw hp(new wy(Kjn((GC(),eDn))));if(t=16*t+i,kjn(this),0!=this.c||(i=din(this.a))<0)throw hp(new wy(Kjn((GC(),eDn))));n=t=16*t+i;break;case 118:if(kjn(this),0!=this.c||(i=din(this.a))<0)throw hp(new wy(Kjn((GC(),eDn))));if(t=i,kjn(this),0!=this.c||(i=din(this.a))<0)throw hp(new wy(Kjn((GC(),eDn))));if(t=16*t+i,kjn(this),0!=this.c||(i=din(this.a))<0)throw hp(new wy(Kjn((GC(),eDn))));if(t=16*t+i,kjn(this),0!=this.c||(i=din(this.a))<0)throw hp(new wy(Kjn((GC(),eDn))));if(t=16*t+i,kjn(this),0!=this.c||(i=din(this.a))<0)throw hp(new wy(Kjn((GC(),eDn))));if(t=16*t+i,kjn(this),0!=this.c||(i=din(this.a))<0)throw hp(new wy(Kjn((GC(),eDn))));if((t=16*t+i)>jKn)throw hp(new wy(Kjn((GC(),"parser.descappe.4"))));n=t;break;case 65:case 90:case 122:throw hp(new wy(Kjn((GC(),aDn))))}return n},Fjn.ul=function(n){var t;switch(n){case 100:t=32==(32&this.e)?Gkn("Nd",!0):(Ljn(),jot);break;case 68:t=32==(32&this.e)?Gkn("Nd",!1):(Ljn(),Pot);break;case 119:t=32==(32&this.e)?Gkn("IsWord",!0):(Ljn(),Dot);break;case 87:t=32==(32&this.e)?Gkn("IsWord",!1):(Ljn(),Cot);break;case 115:t=32==(32&this.e)?Gkn("IsSpace",!0):(Ljn(),Aot);break;case 83:t=32==(32&this.e)?Gkn("IsSpace",!1):(Ljn(),Iot);break;default:throw hp(new Im(EKn+n.toString(16)))}return t},Fjn.vl=function(n){var t,e,i,r,c,a,u,o,s,h,f;for(this.b=1,kjn(this),t=null,0==this.c&&94==this.a?(kjn(this),n?(Ljn(),Ljn(),s=new cU(5)):(Ljn(),Ljn(),zwn(t=new cU(4),0,jKn),s=new cU(4))):(Ljn(),Ljn(),s=new cU(4)),r=!0;1!=(f=this.c)&&(0!=f||93!=this.a||r);){if(r=!1,e=this.a,i=!1,10==f)switch(e){case 100:case 68:case 119:case 87:case 115:case 83:fmn(s,this.ul(e)),i=!0;break;case 105:case 73:case 99:case 67:(e=this.Ll(s,e))<0&&(i=!0);break;case 112:case 80:if(!(h=Hhn(this,e)))throw hp(new wy(Kjn((GC(),zxn))));fmn(s,h),i=!0;break;default:e=this.tl()}else if(20==f){if((c=b$(this.i,58,this.d))<0)throw hp(new wy(Kjn((GC(),Uxn))));if(a=!0,94==XB(this.i,this.d)&&(++this.d,a=!1),!(u=bY(l$(this.i,this.d,c),a,512==(512&this.e))))throw hp(new wy(Kjn((GC(),Wxn))));if(fmn(s,u),i=!0,c+1>=this.j||93!=XB(this.i,c+1))throw hp(new wy(Kjn((GC(),Uxn))));this.d=c+2}if(kjn(this),!i)if(0!=this.c||45!=this.a)zwn(s,e,e);else{if(kjn(this),1==(f=this.c))throw hp(new wy(Kjn((GC(),Xxn))));0==f&&93==this.a?(zwn(s,e,e),zwn(s,45,45)):(o=this.a,10==f&&(o=this.tl()),kjn(this),zwn(s,e,o))}(this.e&DNn)==DNn&&0==this.c&&44==this.a&&kjn(this)}if(1==this.c)throw hp(new wy(Kjn((GC(),Xxn))));return t&&(_yn(t,s),s=t),xln(s),Lmn(s),this.b=0,kjn(this),s},Fjn.wl=function(){var n,t,e,i;for(e=this.vl(!1);7!=(i=this.c);){if(n=this.a,(0!=i||45!=n&&38!=n)&&4!=i)throw hp(new wy(Kjn((GC(),nDn))));if(kjn(this),9!=this.c)throw hp(new wy(Kjn((GC(),Zxn))));if(t=this.vl(!1),4==i)fmn(e,t);else if(45==n)_yn(e,t);else{if(38!=n)throw hp(new Im("ASSERT"));Eyn(e,t)}}return kjn(this),e},Fjn.xl=function(){var n,t;return n=this.a-48,Ljn(),Ljn(),t=new nG(12,null,n),!this.g&&(this.g=new Jp),Up(this.g,new Zg(n)),kjn(this),t},Fjn.yl=function(){return kjn(this),Ljn(),$ot},Fjn.zl=function(){return kjn(this),Ljn(),Oot},Fjn.Al=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.Bl=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.Cl=function(){return kjn(this),r6()},Fjn.Dl=function(){return kjn(this),Ljn(),Not},Fjn.El=function(){return kjn(this),Ljn(),Rot},Fjn.Fl=function(){var n;if(this.d>=this.j||64!=(65504&(n=XB(this.i,this.d++))))throw hp(new wy(Kjn((GC(),Bxn))));return kjn(this),Ljn(),Ljn(),new BR(0,n-64)},Fjn.Gl=function(){return kjn(this),function(){var n,t,e,i,r,c;if(Ljn(),qot)return qot;for(fmn(n=new cU(4),Gkn($Kn,!0)),_yn(n,Gkn("M",!0)),_yn(n,Gkn("C",!0)),c=new cU(4),i=0;i<11;i++)zwn(c,i,i);return fmn(t=new cU(4),Gkn("M",!0)),zwn(t,4448,4607),zwn(t,65438,65439),Rmn(r=new HC(2),n),Rmn(r,Tot),(e=new HC(2)).$l(VR(c,Gkn("L",!0))),e.$l(t),e=new tF(r,e=new cW(3,e)),qot=e}()},Fjn.Hl=function(){return kjn(this),Ljn(),Kot},Fjn.Il=function(){var n;return Ljn(),Ljn(),n=new BR(0,105),kjn(this),n},Fjn.Jl=function(){return kjn(this),Ljn(),xot},Fjn.Kl=function(){return kjn(this),Ljn(),Lot},Fjn.Ll=function(n,t){return this.tl()},Fjn.Ml=function(){return kjn(this),Ljn(),Mot},Fjn.Nl=function(){var n,t,e,i,r;if(this.d+1>=this.j)throw hp(new wy(Kjn((GC(),Kxn))));if(i=-1,t=null,49<=(n=XB(this.i,this.d))&&n<=57){if(i=n-48,!this.g&&(this.g=new Jp),Up(this.g,new Zg(i)),++this.d,41!=XB(this.i,this.d))throw hp(new wy(Kjn((GC(),xxn))));++this.d}else switch(63==n&&--this.d,kjn(this),(t=ujn(this)).e){case 20:case 21:case 22:case 23:break;case 8:if(7!=this.c)throw hp(new wy(Kjn((GC(),xxn))));break;default:throw hp(new wy(Kjn((GC(),_xn))))}if(kjn(this),e=null,2==(r=etn(this)).e){if(2!=r.em())throw hp(new wy(Kjn((GC(),Fxn))));e=r.am(1),r=r.am(0)}if(7!=this.c)throw hp(new wy(Kjn((GC(),xxn))));return kjn(this),Ljn(),Ljn(),new nZ(i,t,r,e)},Fjn.Ol=function(){return kjn(this),Ljn(),Sot},Fjn.Pl=function(){var n;if(kjn(this),n=T_(24,etn(this)),7!=this.c)throw hp(new wy(Kjn((GC(),xxn))));return kjn(this),n},Fjn.Ql=function(){var n;if(kjn(this),n=T_(20,etn(this)),7!=this.c)throw hp(new wy(Kjn((GC(),xxn))));return kjn(this),n},Fjn.Rl=function(){var n;if(kjn(this),n=T_(22,etn(this)),7!=this.c)throw hp(new wy(Kjn((GC(),xxn))));return kjn(this),n},Fjn.Sl=function(){var n,t,e,i,r;for(n=0,e=0,t=-1;this.d=this.j)throw hp(new wy(Kjn((GC(),Dxn))));if(45==t){for(++this.d;this.d=this.j)throw hp(new wy(Kjn((GC(),Dxn))))}if(58==t){if(++this.d,kjn(this),i=xF(etn(this),n,e),7!=this.c)throw hp(new wy(Kjn((GC(),xxn))));kjn(this)}else{if(41!=t)throw hp(new wy(Kjn((GC(),Rxn))));++this.d,kjn(this),i=xF(etn(this),n,e)}return i},Fjn.Tl=function(){var n;if(kjn(this),n=T_(21,etn(this)),7!=this.c)throw hp(new wy(Kjn((GC(),xxn))));return kjn(this),n},Fjn.Ul=function(){var n;if(kjn(this),n=T_(23,etn(this)),7!=this.c)throw hp(new wy(Kjn((GC(),xxn))));return kjn(this),n},Fjn.Vl=function(){var n,t;if(kjn(this),n=this.f++,t=M_(etn(this),n),7!=this.c)throw hp(new wy(Kjn((GC(),xxn))));return kjn(this),t},Fjn.Wl=function(){var n;if(kjn(this),n=M_(etn(this),0),7!=this.c)throw hp(new wy(Kjn((GC(),xxn))));return kjn(this),n},Fjn.Xl=function(n){return kjn(this),5==this.c?(kjn(this),VR(n,(Ljn(),Ljn(),new cW(9,n)))):VR(n,(Ljn(),Ljn(),new cW(3,n)))},Fjn.Yl=function(n){var t;return kjn(this),Ljn(),Ljn(),t=new HC(2),5==this.c?(kjn(this),Rmn(t,Tot),Rmn(t,n)):(Rmn(t,n),Rmn(t,Tot)),t},Fjn.Zl=function(n){return kjn(this),5==this.c?(kjn(this),Ljn(),Ljn(),new cW(9,n)):(Ljn(),Ljn(),new cW(3,n))},Fjn.a=0,Fjn.b=0,Fjn.c=0,Fjn.d=0,Fjn.e=0,Fjn.f=1,Fjn.g=null,Fjn.j=0,EF(kKn,"RegEx/RegexParser",820),Wfn(1824,820,{},Zv),Fjn.sl=function(n){return!1},Fjn.tl=function(){return Tdn(this)},Fjn.ul=function(n){return rpn(n)},Fjn.vl=function(n){return Ejn(this)},Fjn.wl=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.xl=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.yl=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.zl=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.Al=function(){return kjn(this),rpn(67)},Fjn.Bl=function(){return kjn(this),rpn(73)},Fjn.Cl=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.Dl=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.El=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.Fl=function(){return kjn(this),rpn(99)},Fjn.Gl=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.Hl=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.Il=function(){return kjn(this),rpn(105)},Fjn.Jl=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.Kl=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.Ll=function(n,t){return fmn(n,rpn(t)),-1},Fjn.Ml=function(){return kjn(this),Ljn(),Ljn(),new BR(0,94)},Fjn.Nl=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.Ol=function(){return kjn(this),Ljn(),Ljn(),new BR(0,36)},Fjn.Pl=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.Ql=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.Rl=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.Sl=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.Tl=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.Ul=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.Vl=function(){var n;if(kjn(this),n=M_(etn(this),0),7!=this.c)throw hp(new wy(Kjn((GC(),xxn))));return kjn(this),n},Fjn.Wl=function(){throw hp(new wy(Kjn((GC(),uDn))))},Fjn.Xl=function(n){return kjn(this),VR(n,(Ljn(),Ljn(),new cW(3,n)))},Fjn.Yl=function(n){var t;return kjn(this),Ljn(),Ljn(),Rmn(t=new HC(2),n),Rmn(t,Tot),t},Fjn.Zl=function(n){return kjn(this),Ljn(),Ljn(),new cW(3,n)};var dot=null,got=null;EF(kKn,"RegEx/ParserForXMLSchema",1824),Wfn(117,1,xKn,np),Fjn.$l=function(n){throw hp(new Im("Not supported."))},Fjn._l=function(){return-1},Fjn.am=function(n){return null},Fjn.bm=function(){return null},Fjn.cm=function(n){},Fjn.dm=function(n){},Fjn.em=function(){return 0},Fjn.Ib=function(){return this.fm(0)},Fjn.fm=function(n){return 11==this.e?".":""},Fjn.e=0;var pot,vot,mot,yot,kot,jot,Eot,Tot,Mot,Sot,Pot,Iot,Cot,Oot,Aot,$ot,Lot,Not,xot,Dot,Rot,Kot,_ot,Fot,Bot=null,Hot=null,qot=null,Got=EF(kKn,"RegEx/Token",117);Wfn(136,117,{3:1,136:1,117:1},cU),Fjn.fm=function(n){var t,e,i;if(4==this.e)if(this==Eot)e=".";else if(this==jot)e="\\d";else if(this==Dot)e="\\w";else if(this==Aot)e="\\s";else{for((i=new Cy).a+="[",t=0;t0&&(i.a+=","),this.b[t]===this.b[t+1]?pI(i,jvn(this.b[t])):(pI(i,jvn(this.b[t])),i.a+="-",pI(i,jvn(this.b[t+1])));i.a+="]",e=i.a}else if(this==Pot)e="\\D";else if(this==Cot)e="\\W";else if(this==Iot)e="\\S";else{for((i=new Cy).a+="[^",t=0;t0&&(i.a+=","),this.b[t]===this.b[t+1]?pI(i,jvn(this.b[t])):(pI(i,jvn(this.b[t])),i.a+="-",pI(i,jvn(this.b[t+1])));i.a+="]",e=i.a}return e},Fjn.a=!1,Fjn.c=!1,EF(kKn,"RegEx/RangeToken",136),Wfn(584,1,{584:1},Zg),Fjn.a=0,EF(kKn,"RegEx/RegexParser/ReferencePosition",584),Wfn(583,1,{3:1,583:1},Mj),Fjn.Fb=function(n){var t;return null!=n&&!!CO(n,583)&&(t=Yx(n,583),_N(this.b,t.b)&&this.a==t.a)},Fjn.Hb=function(){return Xen(this.b+"/"+fwn(this.a))},Fjn.Ib=function(){return this.c.fm(this.a)},Fjn.a=0,EF(kKn,"RegEx/RegularExpression",583),Wfn(223,117,xKn,BR),Fjn._l=function(){return this.a},Fjn.fm=function(n){var t,e;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:e="\\"+iN(this.a&fTn);break;case 12:e="\\f";break;case 10:e="\\n";break;case 13:e="\\r";break;case 9:e="\\t";break;case 27:e="\\e";break;default:e=this.a>=eMn?"\\v"+l$(t="0"+(this.a>>>0).toString(16),t.length-6,t.length):""+iN(this.a&fTn)}break;case 8:e=this==Mot||this==Sot?""+iN(this.a&fTn):"\\"+iN(this.a&fTn);break;default:e=null}return e},Fjn.a=0,EF(kKn,"RegEx/Token/CharToken",223),Wfn(309,117,xKn,cW),Fjn.am=function(n){return this.a},Fjn.cm=function(n){this.b=n},Fjn.dm=function(n){this.c=n},Fjn.em=function(){return 1},Fjn.fm=function(n){var t;if(3==this.e)if(this.c<0&&this.b<0)t=this.a.fm(n)+"*";else if(this.c==this.b)t=this.a.fm(n)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)t=this.a.fm(n)+"{"+this.c+","+this.b+"}";else{if(!(this.c>=0&&this.b<0))throw hp(new Im("Token#toString(): CLOSURE "+this.c+tEn+this.b));t=this.a.fm(n)+"{"+this.c+",}"}else if(this.c<0&&this.b<0)t=this.a.fm(n)+"*?";else if(this.c==this.b)t=this.a.fm(n)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)t=this.a.fm(n)+"{"+this.c+","+this.b+"}?";else{if(!(this.c>=0&&this.b<0))throw hp(new Im("Token#toString(): NONGREEDYCLOSURE "+this.c+tEn+this.b));t=this.a.fm(n)+"{"+this.c+",}?"}return t},Fjn.b=0,Fjn.c=0,EF(kKn,"RegEx/Token/ClosureToken",309),Wfn(821,117,xKn,tF),Fjn.am=function(n){return 0==n?this.a:this.b},Fjn.em=function(){return 2},Fjn.fm=function(n){return 3==this.b.e&&this.b.am(0)==this.a?this.a.fm(n)+"+":9==this.b.e&&this.b.am(0)==this.a?this.a.fm(n)+"+?":this.a.fm(n)+""+this.b.fm(n)},EF(kKn,"RegEx/Token/ConcatToken",821),Wfn(1822,117,xKn,nZ),Fjn.am=function(n){if(0==n)return this.d;if(1==n)return this.b;throw hp(new Im("Internal Error: "+n))},Fjn.em=function(){return this.b?2:1},Fjn.fm=function(n){var t;return t=this.c>0?"(?("+this.c+")":8==this.a.e?"(?("+this.a+")":"(?"+this.a,this.b?t+=this.d+"|"+this.b+")":t+=this.d+")",t},Fjn.c=0,EF(kKn,"RegEx/Token/ConditionToken",1822),Wfn(1823,117,xKn,rU),Fjn.am=function(n){return this.b},Fjn.em=function(){return 1},Fjn.fm=function(n){return"(?"+(0==this.a?"":fwn(this.a))+(0==this.c?"":fwn(this.c))+":"+this.b.fm(n)+")"},Fjn.a=0,Fjn.c=0,EF(kKn,"RegEx/Token/ModifierToken",1823),Wfn(822,117,xKn,rB),Fjn.am=function(n){return this.a},Fjn.em=function(){return 1},Fjn.fm=function(n){var t;switch(t=null,this.e){case 6:t=0==this.b?"(?:"+this.a.fm(n)+")":"("+this.a.fm(n)+")";break;case 20:t="(?="+this.a.fm(n)+")";break;case 21:t="(?!"+this.a.fm(n)+")";break;case 22:t="(?<="+this.a.fm(n)+")";break;case 23:t="(?"+this.a.fm(n)+")"}return t},Fjn.b=0,EF(kKn,"RegEx/Token/ParenToken",822),Wfn(521,117,{3:1,117:1,521:1},nG),Fjn.bm=function(){return this.b},Fjn.fm=function(n){return 12==this.e?"\\"+this.a:function(n){var t,e,i,r;for(r=n.length,t=null,i=0;i=0?(t||(t=new Oy,i>0&&pI(t,n.substr(0,i))),t.a+="\\",KF(t,e&fTn)):t&&KF(t,e&fTn);return t?t.a:n}(this.b)},Fjn.a=0,EF(kKn,"RegEx/Token/StringToken",521),Wfn(465,117,xKn,HC),Fjn.$l=function(n){Rmn(this,n)},Fjn.am=function(n){return Yx(lB(this.a,n),117)},Fjn.em=function(){return this.a?this.a.a.c.length:0},Fjn.fm=function(n){var t,e,i,r,c;if(1==this.e){if(2==this.a.a.c.length)t=Yx(lB(this.a,0),117),r=3==(e=Yx(lB(this.a,1),117)).e&&e.am(0)==t?t.fm(n)+"+":9==e.e&&e.am(0)==t?t.fm(n)+"+?":t.fm(n)+""+e.fm(n);else{for(c=new Cy,i=0;i=n.c.b:n.a<=n.c.b))throw hp(new Kp);return t=n.a,n.a+=n.c.c,++n.b,d9(t)}(this)},Fjn.Ub=function(){return function(n){if(n.b<=0)throw hp(new Kp);return--n.b,n.a-=n.c.c,d9(n.a)}(this)},Fjn.Wb=function(n){Yx(n,19),function(){throw hp(new sy(FKn))}()},Fjn.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},Fjn.Sb=function(){return this.b>0},Fjn.Tb=function(){return this.b},Fjn.Vb=function(){return this.b-1},Fjn.Qb=function(){throw hp(new sy(BKn))},Fjn.a=0,Fjn.b=0,EF(KKn,"ExclusiveRange/RangeIterator",254);var zot,Uot,Xot=MB(HDn,"C"),Wot=MB(zDn,"I"),Vot=MB(Xjn,"Z"),Qot=MB(UDn,"J"),Yot=MB(BDn,"B"),Jot=MB(qDn,"D"),Zot=MB(GDn,"F"),nst=MB(XDn,"S"),tst=aR("org.eclipse.elk.core.labels","ILabelManager"),est=aR(exn,"DiagnosticChain"),ist=aR(SRn,"ResourceSet"),rst=EF(exn,"InvocationTargetException",null),cst=(_y(),function(n){return _y(),function(){return sX(n,this,arguments)}}),ast=ast=function(n,t,e,i){Cj();var r=Hjn;function c(){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=Object.assign({},t),r=!1;try{n.resolve("web-worker"),r=!0}catch(n){}if(t.workerUrl)if(r){var c=n("web-worker");i.workerFactory=function(n){return new c(n)}}else console.warn("Web worker requested but 'web-worker' package not installed. \nConsider installing the package or pass your own 'workerFactory' to ELK's constructor.\n... Falling back to non-web worker version.");if(!i.workerFactory){var a=n("./elk-worker.min.js").Worker;i.workerFactory=function(n){return new a(n)}}return function(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i))}return function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}(e,t),e}(n("./elk-api.js").default);Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports=i,i.default=i},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(n,t,e){t.exports=Worker},{}]},{},[3])(3)},25034:(n,t,e)=>{"use strict";e.d(t,{diagram:()=>v});var i=e(77187),r=e(74309),c=e(18999),a=e(31460),u=e(17295);e(93628),e(17967),e(27856);const o=new u;let s={};const h={};let f={};const l=(n,t,e)=>{const i={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return i.TD=i.TB,a.l.info("abc88",e,t,n),i[e][t][n]},b=(n,t,e)=>{if(a.l.info("getNextPort abc88",{node:n,edgeDirection:t,graphDirection:e}),!s[n])switch(e){case"TB":case"TD":s[n]={inPosition:"north",outPosition:"south"};break;case"BT":s[n]={inPosition:"south",outPosition:"north"};break;case"RL":s[n]={inPosition:"east",outPosition:"west"};break;case"LR":s[n]={inPosition:"west",outPosition:"east"}}const i="in"===t?s[n].inPosition:s[n].outPosition;return"in"===t?s[n].inPosition=l(s[n].inPosition,t,e):s[n].outPosition=l(s[n].outPosition,t,e),i},w=function(n,t,e,i,c){const a=function(n,t,e){const i=((n,t,e)=>{const{parentById:i}=e,r=new Set;let c=n;for(;c;){if(r.add(c),c===t)return c;c=i[c]}for(c=t;c;){if(r.has(c))return c;c=i[c]}return"root"})(n,t,e);if(void 0===i||"root"===i)return{x:0,y:0};const r=f[i].offset;return{x:r.posX,y:r.posY}}(t.sourceId,t.targetId,c),u=t.sections[0].startPoint,o=t.sections[0].endPoint,s=(t.sections[0].bendPoints?t.sections[0].bendPoints:[]).map((n=>[n.x+a.x,n.y+a.y])),h=[[u.x+a.x,u.y+a.y],...s,[o.x+a.x,o.y+a.y]],l=(0,r.jvg)().curve(r.c_6),b=n.insert("path").attr("d",l(h)).attr("class","path").attr("fill","none"),w=n.insert("g").attr("class","edgeLabel"),d=(0,r.Ys)(w.node().appendChild(t.labelEl)),g=d.node().firstChild.getBoundingClientRect();d.attr("width",g.width),d.attr("height",g.height),w.attr("transform",`translate(${t.labels[0].x+a.x}, ${t.labels[0].y+a.y})`),function(n,t,e,i){let r="";switch(i&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.arrowTypeStart){case"arrow_cross":n.attr("marker-start","url("+r+"#"+e+"-crossStart)");break;case"arrow_point":n.attr("marker-start","url("+r+"#"+e+"-pointStart)");break;case"arrow_barb":n.attr("marker-start","url("+r+"#"+e+"-barbStart)");break;case"arrow_circle":n.attr("marker-start","url("+r+"#"+e+"-circleStart)");break;case"aggregation":n.attr("marker-start","url("+r+"#"+e+"-aggregationStart)");break;case"extension":n.attr("marker-start","url("+r+"#"+e+"-extensionStart)");break;case"composition":n.attr("marker-start","url("+r+"#"+e+"-compositionStart)");break;case"dependency":n.attr("marker-start","url("+r+"#"+e+"-dependencyStart)");break;case"lollipop":n.attr("marker-start","url("+r+"#"+e+"-lollipopStart)")}switch(t.arrowTypeEnd){case"arrow_cross":n.attr("marker-end","url("+r+"#"+e+"-crossEnd)");break;case"arrow_point":n.attr("marker-end","url("+r+"#"+e+"-pointEnd)");break;case"arrow_barb":n.attr("marker-end","url("+r+"#"+e+"-barbEnd)");break;case"arrow_circle":n.attr("marker-end","url("+r+"#"+e+"-circleEnd)");break;case"aggregation":n.attr("marker-end","url("+r+"#"+e+"-aggregationEnd)");break;case"extension":n.attr("marker-end","url("+r+"#"+e+"-extensionEnd)");break;case"composition":n.attr("marker-end","url("+r+"#"+e+"-compositionEnd)");break;case"dependency":n.attr("marker-end","url("+r+"#"+e+"-dependencyEnd)");break;case"lollipop":n.attr("marker-end","url("+r+"#"+e+"-lollipopEnd)")}}(b,e,i.type,i.arrowMarkerAbsolute)},d=(n,t)=>{n.forEach((n=>{n.children||(n.children=[]);const e=t.childrenById[n.id];e&&e.forEach((t=>{n.children.push(f[t])})),d(n.children,t)}))},g=(n,t,e,i,r,c,u)=>{e.forEach((function(e){if(e)if(f[e.id].offset={posX:e.x+n,posY:e.y+t,x:n,y:t,depth:u,width:e.width,height:e.height},"group"===e.type){const i=r.insert("g").attr("class","subgraph");i.insert("rect").attr("class","subgraph subgraph-lvl-"+u%5+" node").attr("x",e.x+n).attr("y",e.y+t).attr("width",e.width).attr("height",e.height);const c=i.insert("g").attr("class","label"),o=(0,a.c)().flowchart.htmlLabels?e.labelData.width/2:0;c.attr("transform",`translate(${e.labels[0].x+n+e.x+o}, ${e.labels[0].y+t+e.y+3})`),c.node().appendChild(e.labelData.labelNode),a.l.info("Id (UGH)= ",e.type,e.labels)}else a.l.info("Id (UGH)= ",e.id),e.el.attr("transform",`translate(${e.x+n+e.width/2}, ${e.y+t+e.height/2})`)})),e.forEach((function(e){e&&"group"===e.type&&g(n+e.x,t+e.y,e.children,i,r,c,u+1)}))},p={getClasses:function(n,t){a.l.info("Extracting classes"),t.db.clear("ver-2");try{return t.parse(n),t.db.getClasses()}catch(n){return{}}},draw:async function(n,t,e,i){var u;i.db.clear(),f={},s={},i.db.setGen("gen-2"),i.parser.parse(n);const l=(0,r.Ys)("body").append("div").attr("style","height:400px").attr("id","cy");let p={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(a.l.info("Drawing flowchart using v3 renderer",o),i.db.getDirection()){case"BT":p.layoutOptions["elk.direction"]="UP";break;case"TB":p.layoutOptions["elk.direction"]="DOWN";break;case"LR":p.layoutOptions["elk.direction"]="RIGHT";break;case"RL":p.layoutOptions["elk.direction"]="LEFT"}const{securityLevel:v,flowchart:m}=(0,a.c)();let y;"sandbox"===v&&(y=(0,r.Ys)("#i"+t));const k="sandbox"===v?(0,r.Ys)(y.nodes()[0].contentDocument.body):(0,r.Ys)("body"),j="sandbox"===v?y.nodes()[0].contentDocument:document,E=k.select(`[id="${t}"]`);(0,c.a)(E,["point","circle","cross"],i.type,i.arrowMarkerAbsolute);const T=i.db.getVertices();let M;const S=i.db.getSubGraphs();a.l.info("Subgraphs - ",S);for(let n=S.length-1;n>=0;n--)M=S[n],i.db.addVertex(M.id,{text:M.title,type:M.labelType},"group",void 0,M.classes,M.dir);const P=E.insert("g").attr("class","subgraphs"),I=function(n){const t={parentById:{},childrenById:{}},e=n.getSubGraphs();return a.l.info("Subgraphs - ",e),e.forEach((function(n){n.nodes.forEach((function(e){t.parentById[e]=n.id,void 0===t.childrenById[n.id]&&(t.childrenById[n.id]=[]),t.childrenById[n.id].push(e)}))})),e.forEach((function(n){n.id,void 0!==t.parentById[n.id]&&t.parentById[n.id]})),t}(i.db);p=await async function(n,t,e,i,r,u,o){const s=e.select(`[id="${t}"]`).insert("g").attr("class","nodes"),h=Object.keys(n);return await Promise.all(h.map((async function(t){const e=n[t];let o="default";e.classes.length>0&&(o=e.classes.join(" ")),o+=" flowchart-label";const h=(0,a.k)(e.styles);let l=void 0!==e.text?e.text:e.id;const b={width:0,height:0},w=[{id:e.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:e.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:e.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:e.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let d=0,g="",p={};switch(e.type){case"round":d=5,g="rect";break;case"square":case"group":default:g="rect";break;case"diamond":g="question",p={portConstraints:"FIXED_SIDE"};break;case"hexagon":g="hexagon";break;case"odd":case"odd_right":g="rect_left_inv_arrow";break;case"lean_right":g="lean_right";break;case"lean_left":g="lean_left";break;case"trapezoid":g="trapezoid";break;case"inv_trapezoid":g="inv_trapezoid";break;case"circle":g="circle";break;case"ellipse":g="ellipse";break;case"stadium":g="stadium";break;case"subroutine":g="subroutine";break;case"cylinder":g="cylinder";break;case"doublecircle":g="doublecircle"}const v={labelStyle:h.labelStyle,shape:g,labelText:l,labelType:e.labelType,rx:d,ry:d,class:o,style:h.style,id:e.id,link:e.link,linkTarget:e.linkTarget,tooltip:r.db.getTooltip(e.id)||"",domId:r.db.lookUpDomId(e.id),haveCallback:e.haveCallback,width:"group"===e.type?500:void 0,dir:e.dir,type:e.type,props:e.props,padding:(0,a.c)().flowchart.padding};let m,y;if("group"!==v.type)y=await(0,c.e)(s,v,e.dir),m=y.node().getBBox();else{i.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:n,bbox:t}=await(0,c.l)(s,v,void 0,!0);b.width=t.width,b.wrappingWidth=(0,a.c)().flowchart.wrappingWidth,b.height=t.height,b.labelNode=n.node(),v.labelData=b}const k={id:e.id,ports:"diamond"===e.type?w:[],layoutOptions:p,labelText:l,labelData:b,domId:r.db.lookUpDomId(e.id),width:null==m?void 0:m.width,height:null==m?void 0:m.height,type:e.type,el:y,parent:u.parentById[e.id]};f[v.id]=k}))),o}(T,t,k,j,i,I,p);const C=E.insert("g").attr("class","edges edgePath"),O=i.db.getEdges();p=function(n,t,e,i){a.l.info("abc78 edges = ",n);const u=i.insert("g").attr("class","edgeLabels");let o,s,l={},w=t.db.getDirection();if(void 0!==n.defaultStyle){const t=(0,a.k)(n.defaultStyle);o=t.style,s=t.labelStyle}return n.forEach((function(t){const i="L-"+t.start+"-"+t.end;void 0===l[i]?(l[i]=0,a.l.info("abc78 new entry",i,l[i])):(l[i]++,a.l.info("abc78 new entry",i,l[i]));let d=i+"-"+l[i];a.l.info("abc78 new link id to be used is",i,d,l[i]);const g="LS-"+t.start,p="LE-"+t.end,v={style:"",labelStyle:""};switch(v.minlen=t.length||1,"arrow_open"===t.type?v.arrowhead="none":v.arrowhead="normal",v.arrowTypeStart="arrow_open",v.arrowTypeEnd="arrow_open",t.type){case"double_arrow_cross":v.arrowTypeStart="arrow_cross";case"arrow_cross":v.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":v.arrowTypeStart="arrow_point";case"arrow_point":v.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":v.arrowTypeStart="arrow_circle";case"arrow_circle":v.arrowTypeEnd="arrow_circle"}let m="",y="";switch(t.stroke){case"normal":m="fill:none;",void 0!==o&&(m=o),void 0!==s&&(y=s),v.thickness="normal",v.pattern="solid";break;case"dotted":v.thickness="normal",v.pattern="dotted",v.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":v.thickness="thick",v.pattern="solid",v.style="stroke-width: 3.5px;fill:none;"}if(void 0!==t.style){const n=(0,a.k)(t.style);m=n.style,y=n.labelStyle}v.style=v.style+=m,v.labelStyle=v.labelStyle+=y,void 0!==t.interpolate?v.curve=(0,a.o)(t.interpolate,r.c_6):void 0!==n.defaultInterpolate?v.curve=(0,a.o)(n.defaultInterpolate,r.c_6):v.curve=(0,a.o)(h.curve,r.c_6),void 0===t.text?void 0!==t.style&&(v.arrowheadStyle="fill: #333"):(v.arrowheadStyle="fill: #333",v.labelpos="c"),v.labelType=t.labelType,v.label=t.text.replace(a.e.lineBreakRegex,"\n"),void 0===t.style&&(v.style=v.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),v.labelStyle=v.labelStyle.replace("color:","fill:"),v.id=d,v.classes="flowchart-link "+g+" "+p;const k=(0,c.f)(u,v),{source:j,target:E,sourceId:T,targetId:M}=((n,t)=>{let e=n.start,i=n.end;const r=e,c=i,a=f[e],u=f[i];return a&&u?("diamond"===a.type&&(e=`${e}-${b(e,"out",t)}`),"diamond"===u.type&&(i=`${i}-${b(i,"in",t)}`),{source:e,target:i,sourceId:r,targetId:c}):{source:e,target:i}})(t,w);a.l.debug("abc78 source and target",j,E),e.edges.push({id:"e"+t.start+t.end,sources:[j],targets:[E],sourceId:T,targetId:M,labelEl:k,labels:[{width:v.width,height:v.height,orgWidth:v.width,orgHeight:v.height,text:v.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:v})})),e}(O,i,p,E),Object.keys(f).forEach((n=>{const t=f[n];t.parent||p.children.push(t),void 0!==I.childrenById[n]&&(t.labels=[{text:t.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:t.labelData.width,height:t.labelData.height}],delete t.x,delete t.y,delete t.width,delete t.height)})),d(p.children,I),a.l.info("after layout",JSON.stringify(p,null,2));const A=await o.layout(p);g(0,0,A.children,E,P,i,0),a.l.info("after layout",A),null==(u=A.edges)||u.map((n=>{w(C,n,n.edgeData,i,I)})),(0,a.p)({},E,m.diagramPadding,m.useMaxWidth),l.remove()}},v={db:i.d,renderer:p,parser:i.p,styles:n=>`.label {\n font-family: ${n.fontFamily};\n color: ${n.nodeTextColor||n.textColor};\n }\n .cluster-label text {\n fill: ${n.titleColor};\n }\n .cluster-label span {\n color: ${n.titleColor};\n }\n\n .label text,span {\n fill: ${n.nodeTextColor||n.textColor};\n color: ${n.nodeTextColor||n.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${n.mainBkg};\n stroke: ${n.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${n.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${n.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${n.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${n.edgeLabelBackground};\n rect {\n opacity: 0.85;\n background-color: ${n.edgeLabelBackground};\n fill: ${n.edgeLabelBackground};\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${n.clusterBkg};\n stroke: ${n.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${n.titleColor};\n }\n\n .cluster span {\n color: ${n.titleColor};\n }\n /* .cluster div {\n color: ${n.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${n.fontFamily};\n font-size: 12px;\n background: ${n.tertiaryColor};\n border: 1px solid ${n.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${n.textColor};\n }\n .subgraph {\n stroke-width:2;\n rx:3;\n }\n // .subgraph-lvl-1 {\n // fill:#ccc;\n // // stroke:black;\n // }\n\n .flowchart-label text {\n text-anchor: middle;\n }\n\n ${(n=>{let t="";for(let e=0;e<5;e++)t+=`\n .subgraph-lvl-${e} {\n fill: ${n[`surface${e}`]};\n stroke: ${n[`surfacePeer${e}`]};\n }\n `;return t})(n)}\n`}}}]); \ No newline at end of file diff --git a/static/js/354501bac435c3264834.woff b/static/js/354501bac435c3264834.woff deleted file mode 100644 index e7730f662..000000000 Binary files a/static/js/354501bac435c3264834.woff and /dev/null differ diff --git a/static/js/37.js b/static/js/37.js deleted file mode 100644 index 974c58d19..000000000 --- a/static/js/37.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[37],{43349:(e,t,n)=>{n.d(t,{a:()=>l});var r=n(96225);function l(e,t){var n=e.append("foreignObject").attr("width","100000"),l=n.append("xhtml:div");l.attr("xmlns","http://www.w3.org/1999/xhtml");var o=t.label;switch(typeof o){case"function":l.insert(o);break;case"object":l.insert((function(){return o}));break;default:l.html(o)}r.bg(l,t.labelStyle),l.style("display","inline-block"),l.style("white-space","nowrap");var a=l.node().getBoundingClientRect();return n.attr("width",a.width).attr("height",a.height),n}},96225:(e,t,n)=>{n.d(t,{$p:()=>d,O1:()=>a,WR:()=>p,bF:()=>o,bg:()=>c});var r=n(37514),l=n(73234);function o(e,t){return!!e.children(t).length}function a(e){return i(e.v)+":"+i(e.w)+":"+i(e.name)}var s=/:/g;function i(e){return e?String(e).replace(s,"\\:"):""}function c(e,t){t&&e.attr("style",t)}function d(e,t,n){t&&e.attr("class",t).attr("class",n+" "+e.attr("class"))}function p(e,t){var n=t.graph();if(r.Z(n)){var o=n.transition;if(l.Z(o))return o(e)}return e}},86037:(e,t,n)=>{n.d(t,{diagram:()=>s});var r=n(77187),l=(n(45625),n(74309));n(31460),n(43402),n(3688),n(70870),n(29451),n(96225),n(43349),n(66749),n(96446),n(73032),l.c_6;var o=n(96534);n(93628),n(17967),n(27856),n(69368);const a={},s={parser:r.p,db:r.f,renderer:o.f,styles:o.a,init:e=>{e.flowchart||(e.flowchart={}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,function(e){const t=Object.keys(e);for(const n of t)a[n]=e[n]}(e.flowchart),r.f.clear(),r.f.setGen("gen-1")}}},96534:(e,t,n)=>{n.d(t,{a:()=>g,f:()=>h});var r=n(45625),l=n(74309),o=n(77187),a=n(31460),s=n(62335),i=n(43349),c=n(75971),d=n(91767);const p=(e,t)=>c.Z.lang.round(d.Z.parse(e)[t]);var b=n(51117);const f={},w=function(e,t,n,r,l,o){const s=r.select(`[id="${n}"]`);Object.keys(e).forEach((function(n){const r=e[n];let c="default";r.classes.length>0&&(c=r.classes.join(" ")),c+=" flowchart-label";const d=(0,a.k)(r.styles);let p,b=void 0!==r.text?r.text:r.id;if(a.l.info("vertex",r,r.labelType),"markdown"===r.labelType)a.l.info("vertex",r,r.labelType);else if((0,a.n)((0,a.c)().flowchart.htmlLabels)){const e={label:b.replace(/fa[blrs]?:fa-[\w-]+/g,(e=>``))};p=(0,i.a)(s,e).node(),p.parentNode.removeChild(p)}else{const e=l.createElementNS("http://www.w3.org/2000/svg","text");e.setAttribute("style",d.labelStyle.replace("color:","fill:"));const t=b.split(a.e.lineBreakRegex);for(const n of t){const t=l.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.setAttribute("dy","1em"),t.setAttribute("x","1"),t.textContent=n,e.appendChild(t)}p=e}let f=0,w="";switch(r.type){case"round":f=5,w="rect";break;case"square":case"group":default:w="rect";break;case"diamond":w="question";break;case"hexagon":w="hexagon";break;case"odd":case"odd_right":w="rect_left_inv_arrow";break;case"lean_right":w="lean_right";break;case"lean_left":w="lean_left";break;case"trapezoid":w="trapezoid";break;case"inv_trapezoid":w="inv_trapezoid";break;case"circle":w="circle";break;case"ellipse":w="ellipse";break;case"stadium":w="stadium";break;case"subroutine":w="subroutine";break;case"cylinder":w="cylinder";break;case"doublecircle":w="doublecircle"}t.setNode(r.id,{labelStyle:d.labelStyle,shape:w,labelText:b,labelType:r.labelType,rx:f,ry:f,class:c,style:d.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:o.db.getTooltip(r.id)||"",domId:o.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:"group"===r.type?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:(0,a.c)().flowchart.padding}),a.l.info("setNode",{labelStyle:d.labelStyle,labelType:r.labelType,shape:w,labelText:b,rx:f,ry:f,class:c,style:d.style,id:r.id,domId:o.db.lookUpDomId(r.id),width:"group"===r.type?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:(0,a.c)().flowchart.padding})}))},u=function(e,t,n){a.l.info("abc78 edges = ",e);let r,o,s=0,i={};if(void 0!==e.defaultStyle){const t=(0,a.k)(e.defaultStyle);r=t.style,o=t.labelStyle}e.forEach((function(n){s++;const c="L-"+n.start+"-"+n.end;void 0===i[c]?(i[c]=0,a.l.info("abc78 new entry",c,i[c])):(i[c]++,a.l.info("abc78 new entry",c,i[c]));let d=c+"-"+i[c];a.l.info("abc78 new link id to be used is",c,d,i[c]);const p="LS-"+n.start,b="LE-"+n.end,w={style:"",labelStyle:""};switch(w.minlen=n.length||1,"arrow_open"===n.type?w.arrowhead="none":w.arrowhead="normal",w.arrowTypeStart="arrow_open",w.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":w.arrowTypeStart="arrow_cross";case"arrow_cross":w.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":w.arrowTypeStart="arrow_point";case"arrow_point":w.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":w.arrowTypeStart="arrow_circle";case"arrow_circle":w.arrowTypeEnd="arrow_circle"}let u="",h="";switch(n.stroke){case"normal":u="fill:none;",void 0!==r&&(u=r),void 0!==o&&(h=o),w.thickness="normal",w.pattern="solid";break;case"dotted":w.thickness="normal",w.pattern="dotted",w.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":w.thickness="thick",w.pattern="solid",w.style="stroke-width: 3.5px;fill:none;";break;case"invisible":w.thickness="invisible",w.pattern="solid",w.style="stroke-width: 0;fill:none;"}if(void 0!==n.style){const e=(0,a.k)(n.style);u=e.style,h=e.labelStyle}w.style=w.style+=u,w.labelStyle=w.labelStyle+=h,void 0!==n.interpolate?w.curve=(0,a.o)(n.interpolate,l.c_6):void 0!==e.defaultInterpolate?w.curve=(0,a.o)(e.defaultInterpolate,l.c_6):w.curve=(0,a.o)(f.curve,l.c_6),void 0===n.text?void 0!==n.style&&(w.arrowheadStyle="fill: #333"):(w.arrowheadStyle="fill: #333",w.labelpos="c"),w.labelType=n.labelType,w.label=n.text.replace(a.e.lineBreakRegex,"\n"),void 0===n.style&&(w.style=w.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),w.labelStyle=w.labelStyle.replace("color:","fill:"),w.id=d,w.classes="flowchart-link "+p+" "+b,t.setEdge(n.start,n.end,w,s)}))},h={setConf:function(e){const t=Object.keys(e);for(const n of t)f[n]=e[n]},addVertices:w,addEdges:u,getClasses:function(e,t){a.l.info("Extracting classes"),t.db.clear();try{return t.parse(e),t.db.getClasses()}catch(e){return}},draw:async function(e,t,n,i){a.l.info("Drawing flowchart"),i.db.clear(),o.f.setGen("gen-2"),i.parser.parse(e);let c=i.db.getDirection();void 0===c&&(c="TD");const{securityLevel:d,flowchart:p}=(0,a.c)(),b=p.nodeSpacing||50,f=p.rankSpacing||50;let h;"sandbox"===d&&(h=(0,l.Ys)("#i"+t));const g="sandbox"===d?(0,l.Ys)(h.nodes()[0].contentDocument.body):(0,l.Ys)("body"),y="sandbox"===d?h.nodes()[0].contentDocument:document,k=new r.k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:b,ranksep:f,marginx:0,marginy:0}).setDefaultEdgeLabel((function(){return{}}));let x;const v=i.db.getSubGraphs();a.l.info("Subgraphs - ",v);for(let e=v.length-1;e>=0;e--)x=v[e],a.l.info("Subgraph - ",x),i.db.addVertex(x.id,{text:x.title,type:x.labelType},"group",void 0,x.classes,x.dir);const m=i.db.getVertices(),S=i.db.getEdges();a.l.info("Edges",S);let T=0;for(T=v.length-1;T>=0;T--){x=v[T],(0,l.td_)("cluster").append("text");for(let e=0;e`.label {\n font-family: ${e.fontFamily};\n color: ${e.nodeTextColor||e.textColor};\n }\n .cluster-label text {\n fill: ${e.titleColor};\n }\n .cluster-label span,p {\n color: ${e.titleColor};\n }\n\n .label text,span,p {\n fill: ${e.nodeTextColor||e.textColor};\n color: ${e.nodeTextColor||e.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${e.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${e.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${e.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${e.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${((e,t)=>{const n=p,r=n(e,"r"),l=n(e,"g"),o=n(e,"b");return b.Z(r,l,o,.5)})(e.edgeLabelBackground)};\n // background-color: \n }\n\n .cluster rect {\n fill: ${e.clusterBkg};\n stroke: ${e.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n .cluster span,p {\n color: ${e.titleColor};\n }\n /* .cluster div {\n color: ${e.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${e.fontFamily};\n font-size: 12px;\n background: ${e.tertiaryColor};\n border: 1px solid ${e.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n }\n`}}]); \ No newline at end of file diff --git a/static/js/372.js b/static/js/372.js deleted file mode 100644 index 9c3442659..000000000 --- a/static/js/372.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[372],{40372:(t,e,i)=>{i.d(e,{diagram:()=>p});var n=i(31460),s=i(74309),r=(i(93628),i(17967),i(27856),function(){var t=function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},e=[1,4],i=[1,5],n=[1,6],s=[1,7],r=[1,9],c=[1,11,13,15,17,19,20,26,27,28,29],a=[2,5],l=[1,6,11,13,15,17,19,20,26,27,28,29],o=[26,27,28],h=[2,8],u=[1,18],p=[1,19],y=[1,20],d=[1,21],g=[1,22],_=[1,23],f=[1,28],m=[6,26,27,28,29],v={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement: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,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(t,e,i,n,s,r,c){var a=r.length-1;switch(s){case 4:n.setShowData(!0);break;case 7:this.$=r[a-1];break;case 9:n.addSection(r[a-1],n.cleanupValue(r[a]));break;case 10:this.$=r[a].trim(),n.setDiagramTitle(this.$);break;case 11:this.$=r[a].trim(),n.setAccTitle(this.$);break;case 12:case 13:this.$=r[a].trim(),n.setAccDescription(this.$);break;case 14:n.addSection(r[a].substr(8)),this.$=r[a].substr(8);break;case 21:n.parseDirective("%%{","open_directive");break;case 22:n.parseDirective(r[a],"type_directive");break;case 23:r[a]=r[a].trim().replace(/'/g,'"'),n.parseDirective(r[a],"arg_directive");break;case 24:n.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:e,21:8,26:i,27:n,28:s,29:r},{1:[3]},{3:10,4:2,5:3,6:e,21:8,26:i,27:n,28:s,29:r},{3:11,4:2,5:3,6:e,21:8,26:i,27:n,28:s,29:r},t(c,a,{7:12,8:[1,13]}),t(l,[2,18]),t(l,[2,19]),t(l,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},t(o,h,{21:8,9:16,10:17,5:24,1:[2,3],11:u,13:p,15:y,17:d,19:g,20:_,29:r}),t(c,a,{7:25}),{23:26,24:[1,27],32:f},t([24,32],[2,22]),t(c,[2,6]),{4:29,26:i,27:n,28:s},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},t(o,[2,13]),t(o,[2,14]),t(o,[2,15]),t(o,h,{21:8,9:16,10:17,5:24,1:[2,4],11:u,13:p,15:y,17:d,19:g,20:_,29:r}),t(m,[2,16]),{25:34,31:[1,35]},t(m,[2,24]),t(c,[2,7]),t(o,[2,9]),t(o,[2,10]),t(o,[2,11]),t(o,[2,12]),{23:36,32:f},{32:[2,23]},t(m,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(t,e){if(!e.recoverable){var i=new Error(t);throw i.hash=e,i}this.trace(t)},parse:function(t){var e=[0],i=[],n=[null],s=[],r=this.table,c="",a=0,l=0,o=s.slice.call(arguments,1),h=Object.create(this.lexer),u={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(u.yy[p]=this.yy[p]);h.setInput(t,u.yy),u.yy.lexer=h,u.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var y=h.yylloc;s.push(y);var d=h.options&&h.options.ranges;"function"==typeof u.yy.parseError?this.parseError=u.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var g,_,f,m,v,b,k,x,S,w={};;){if(_=e[e.length-1],this.defaultActions[_]?f=this.defaultActions[_]:(null==g&&(S=void 0,"number"!=typeof(S=i.pop()||h.lex()||1)&&(S instanceof Array&&(S=(i=S).pop()),S=this.symbols_[S]||S),g=S),f=r[_]&&r[_][g]),void 0===f||!f.length||!f[0]){var E;for(v in x=[],r[_])this.terminals_[v]&&v>2&&x.push("'"+this.terminals_[v]+"'");E=h.showPosition?"Parse error on line "+(a+1)+":\n"+h.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(a+1)+": Unexpected "+(1==g?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(E,{text:h.match,token:this.terminals_[g]||g,line:h.yylineno,loc:y,expected:x})}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+g);switch(f[0]){case 1:e.push(g),n.push(h.yytext),s.push(h.yylloc),e.push(f[1]),g=null,l=h.yyleng,c=h.yytext,a=h.yylineno,y=h.yylloc;break;case 2:if(b=this.productions_[f[1]][1],w.$=n[n.length-b],w._$={first_line:s[s.length-(b||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(b||1)].first_column,last_column:s[s.length-1].last_column},d&&(w._$.range=[s[s.length-(b||1)].range[0],s[s.length-1].range[1]]),void 0!==(m=this.performAction.apply(w,[c,l,a,u.yy,f[1],n,s].concat(o))))return m;b&&(e=e.slice(0,-1*b*2),n=n.slice(0,-1*b),s=s.slice(0,-1*b)),e.push(this.productions_[f[1]][0]),n.push(w.$),s.push(w._$),k=r[e[e.length-2]][e[e.length-1]],e.push(k);break;case 3:return!0}}return!0}},b={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var i,n,s;if(this.options.backtrack_lexer&&(s={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(s.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var r in s)this[r]=s[r];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),r=0;re[0].length)){if(e=i,n=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,s[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,i,n){switch(i){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:case 6:case 8:case 9:break;case 7:return 26;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:case 20:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};function k(){this.yy={}}return v.lexer=b,k.prototype=v,v.Parser=k,new k}());r.parser=r;const c=r;let a={},l=!1;const o={parseDirective:function(t,e,i){n.m.parseDirective(this,t,e,i)},getConfig:()=>(0,n.c)().pie,addSection:function(t,e){t=n.e.sanitizeText(t,(0,n.c)()),void 0===a[t]&&(a[t]=e,n.l.debug("Added new section :",t))},getSections:()=>a,cleanupValue:function(t){return":"===t.substring(0,1)?(t=t.substring(1).trim(),Number(t.trim())):Number(t.trim())},clear:function(){a={},l=!1,(0,n.v)()},setAccTitle:n.s,getAccTitle:n.g,setDiagramTitle:n.r,getDiagramTitle:n.t,setShowData:function(t){l=t},getShowData:function(){return l},getAccDescription:n.a,setAccDescription:n.b};let h,u=(0,n.c)();const p={parser:c,db:o,renderer:{draw:(t,e,i,r)=>{var c;try{u=(0,n.c)(),n.l.debug("Rendering info diagram\n"+t);const i=(0,n.c)().securityLevel;let b;"sandbox"===i&&(b=(0,s.Ys)("#i"+e));const k="sandbox"===i?(0,s.Ys)(b.nodes()[0].contentDocument.body):(0,s.Ys)("body"),x="sandbox"===i?b.nodes()[0].contentDocument:document;r.db.clear(),r.parser.parse(t),n.l.debug("Parsed info diagram");const S=x.getElementById(e);h=S.parentElement.offsetWidth,void 0===h&&(h=1200),void 0!==u.useWidth&&(h=u.useWidth),void 0!==u.pie.useWidth&&(h=u.pie.useWidth);const w=k.select("#"+e);(0,n.i)(w,450,h,u.pie.useMaxWidth),S.setAttribute("viewBox","0 0 "+h+" 450");var a=Math.min(h,450)/2-40,l=w.append("g").attr("transform","translate("+h/2+",225)"),o=r.db.getSections(),p=0;Object.keys(o).forEach((function(t){p+=o[t]}));const E=u.themeVariables;var y=[E.pie1,E.pie2,E.pie3,E.pie4,E.pie5,E.pie6,E.pie7,E.pie8,E.pie9,E.pie10,E.pie11,E.pie12];const D=(null==(c=u.pie)?void 0:c.textPosition)??.75;let[$]=(0,n.B)(E.pieOuterStrokeWidth);$??($=2);var d=(0,s.PKp)().range(y),g=Object.entries(o).map((function(t,e){return{order:e,name:t[0],value:t[1]}})),_=(0,s.ve8)().value((function(t){return t.value})).sort((function(t,e){return t.order-e.order}))(g),f=(0,s.Nb1)().innerRadius(0).outerRadius(a),m=(0,s.Nb1)().innerRadius(a*D).outerRadius(a*D);l.append("circle").attr("cx",0).attr("cy",0).attr("r",a+$/2).attr("class","pieOuterCircle"),l.selectAll("mySlices").data(_).enter().append("path").attr("d",f).attr("fill",(function(t){return d(t.data.name)})).attr("class","pieCircle"),l.selectAll("mySlices").data(_).enter().append("text").text((function(t){return(t.data.value/p*100).toFixed(0)+"%"})).attr("transform",(function(t){return"translate("+m.centroid(t)+")"})).style("text-anchor","middle").attr("class","slice"),l.append("text").text(r.db.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var v=l.selectAll(".legend").data(d.domain()).enter().append("g").attr("class","legend").attr("transform",(function(t,e){return"translate(216,"+(22*e-22*d.domain().length/2)+")"}));v.append("rect").attr("width",18).attr("height",18).style("fill",d).style("stroke",d),v.data(_).append("text").attr("x",22).attr("y",14).text((function(t){return r.db.getShowData()||u.showData||u.pie.showData?t.data.name+" ["+t.data.value+"]":t.data.name}))}catch(t){n.l.error("Error while rendering info diagram"),n.l.error(t)}}},styles:t=>`\n .pieCircle{\n stroke: ${t.pieStrokeColor};\n stroke-width : ${t.pieStrokeWidth};\n opacity : ${t.pieOpacity};\n }\n .pieOuterCircle{\n stroke: ${t.pieOuterStrokeColor};\n stroke-width: ${t.pieOuterStrokeWidth};\n fill: none;\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ${t.pieTitleTextSize};\n fill: ${t.pieTitleTextColor};\n font-family: ${t.fontFamily};\n }\n .slice {\n font-family: ${t.fontFamily};\n fill: ${t.pieSectionTextColor};\n font-size:${t.pieSectionTextSize};\n // fill: white;\n }\n .legend text {\n fill: ${t.pieLegendTextColor};\n font-family: ${t.fontFamily};\n font-size: ${t.pieLegendTextSize};\n }\n`}}}]); \ No newline at end of file diff --git a/static/js/377.js b/static/js/377.js deleted file mode 100644 index fcef09e67..000000000 --- a/static/js/377.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 377.js.LICENSE.txt */ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[377],{15377:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>gt,DefinitionAdapter:()=>yt,DiagnosticsAdapter:()=>ct,DocumentColorAdapter:()=>Pt,DocumentFormattingEditProvider:()=>Rt,DocumentHighlightAdapter:()=>kt,DocumentLinkAdapter:()=>St,DocumentRangeFormattingEditProvider:()=>Tt,DocumentSymbolAdapter:()=>It,FoldingRangeAdapter:()=>Mt,HoverAdapter:()=>mt,ReferenceAdapter:()=>Ct,RenameAdapter:()=>xt,SelectionRangeAdapter:()=>Ft,WorkerManager:()=>oe,fromPosition:()=>lt,fromRange:()=>ht,setupMode:()=>Ot,setupMode1:()=>jt,toRange:()=>ft,toTextEdit:()=>vt});var r=n(1593),i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of a(t))s.call(e,u)||u===n||i(e,u,{get:()=>t[u],enumerable:!(r=o(t,u))||r.enumerable});return e},c={};u(c,r,"default");var d,g,l,h,f,p,v,m,_,w,k,b,y,E,C,x,I,A,S,R,T,D,P,M,F,L,j,O,N,U,W,V,H,K,z,X,B,$,q,Q,G,J,Y,Z,ee,te,ne,re,ie,oe=class{_defaults;_idleCheckInterval;_lastUsedTime;_configChangeListener;_worker;_client;constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(g=d||(d={})).MIN_VALUE=-2147483648,g.MAX_VALUE=2147483647,(h=l||(l={})).MIN_VALUE=0,h.MAX_VALUE=2147483647,(p=f||(f={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=l.MAX_VALUE),t===Number.MAX_VALUE&&(t=l.MAX_VALUE),{line:e,character:t}},p.is=function(e){var t=e;return ot.objectLiteral(t)&&ot.uinteger(t.line)&&ot.uinteger(t.character)},(m=v||(v={})).create=function(e,t,n,r){if(ot.uinteger(e)&&ot.uinteger(t)&&ot.uinteger(n)&&ot.uinteger(r))return{start:f.create(e,t),end:f.create(n,r)};if(f.is(e)&&f.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},m.is=function(e){var t=e;return ot.objectLiteral(t)&&f.is(t.start)&&f.is(t.end)},(w=_||(_={})).create=function(e,t){return{uri:e,range:t}},w.is=function(e){var t=e;return ot.defined(t)&&v.is(t.range)&&(ot.string(t.uri)||ot.undefined(t.uri))},(b=k||(k={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},b.is=function(e){var t=e;return ot.defined(t)&&v.is(t.targetRange)&&ot.string(t.targetUri)&&(v.is(t.targetSelectionRange)||ot.undefined(t.targetSelectionRange))&&(v.is(t.originSelectionRange)||ot.undefined(t.originSelectionRange))},(E=y||(y={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},E.is=function(e){var t=e;return ot.numberRange(t.red,0,1)&&ot.numberRange(t.green,0,1)&&ot.numberRange(t.blue,0,1)&&ot.numberRange(t.alpha,0,1)},(x=C||(C={})).create=function(e,t){return{range:e,color:t}},x.is=function(e){var t=e;return v.is(t.range)&&y.is(t.color)},(A=I||(I={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},A.is=function(e){var t=e;return ot.string(t.label)&&(ot.undefined(t.textEdit)||K.is(t))&&(ot.undefined(t.additionalTextEdits)||ot.typedArray(t.additionalTextEdits,K.is))},(R=S||(S={})).Comment="comment",R.Imports="imports",R.Region="region",(D=T||(T={})).create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return ot.defined(n)&&(o.startCharacter=n),ot.defined(r)&&(o.endCharacter=r),ot.defined(i)&&(o.kind=i),o},D.is=function(e){var t=e;return ot.uinteger(t.startLine)&&ot.uinteger(t.startLine)&&(ot.undefined(t.startCharacter)||ot.uinteger(t.startCharacter))&&(ot.undefined(t.endCharacter)||ot.uinteger(t.endCharacter))&&(ot.undefined(t.kind)||ot.string(t.kind))},(M=P||(P={})).create=function(e,t){return{location:e,message:t}},M.is=function(e){var t=e;return ot.defined(t)&&_.is(t.location)&&ot.string(t.message)},(L=F||(F={})).Error=1,L.Warning=2,L.Information=3,L.Hint=4,(O=j||(j={})).Unnecessary=1,O.Deprecated=2,(N||(N={})).is=function(e){var t=e;return null!=t&&ot.string(t.href)},(W=U||(U={})).create=function(e,t,n,r,i,o){var a={range:e,message:t};return ot.defined(n)&&(a.severity=n),ot.defined(r)&&(a.code=r),ot.defined(i)&&(a.source=i),ot.defined(o)&&(a.relatedInformation=o),a},W.is=function(e){var t,n=e;return ot.defined(n)&&v.is(n.range)&&ot.string(n.message)&&(ot.number(n.severity)||ot.undefined(n.severity))&&(ot.integer(n.code)||ot.string(n.code)||ot.undefined(n.code))&&(ot.undefined(n.codeDescription)||ot.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(ot.string(n.source)||ot.undefined(n.source))&&(ot.undefined(n.relatedInformation)||ot.typedArray(n.relatedInformation,P.is))},(H=V||(V={})).create=function(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i},H.is=function(e){var t=e;return ot.defined(t)&&ot.string(t.title)&&ot.string(t.command)},(z=K||(K={})).replace=function(e,t){return{range:e,newText:t}},z.insert=function(e,t){return{range:{start:e,end:e},newText:t}},z.del=function(e){return{range:e,newText:""}},z.is=function(e){var t=e;return ot.objectLiteral(t)&&ot.string(t.newText)&&v.is(t.range)},(B=X||(X={})).create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},B.is=function(e){var t=e;return void 0!==t&&ot.objectLiteral(t)&&ot.string(t.label)&&(ot.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(ot.string(t.description)||void 0===t.description)},($||($={})).is=function(e){return"string"==typeof e},(Q=q||(q={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},Q.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},Q.del=function(e,t){return{range:e,newText:"",annotationId:t}},Q.is=function(e){var t=e;return K.is(t)&&(X.is(t.annotationId)||$.is(t.annotationId))},(J=G||(G={})).create=function(e,t){return{textDocument:e,edits:t}},J.is=function(e){var t=e;return ot.defined(t)&&de.is(t.textDocument)&&Array.isArray(t.edits)},(Z=Y||(Y={})).create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},Z.is=function(e){var t=e;return t&&"create"===t.kind&&ot.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||ot.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ot.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||$.is(t.annotationId))},(te=ee||(ee={})).create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},te.is=function(e){var t=e;return t&&"rename"===t.kind&&ot.string(t.oldUri)&&ot.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||ot.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ot.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||$.is(t.annotationId))},(re=ne||(ne={})).create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},re.is=function(e){var t=e;return t&&"delete"===t.kind&&ot.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||ot.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||ot.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||$.is(t.annotationId))},(ie||(ie={})).is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return ot.string(e.kind)?Y.is(e)||ee.is(e)||ne.is(e):G.is(e)})))};var ae,se,ue,ce,de,ge,le,he,fe,pe,ve,me,_e,we,ke,be,ye,Ee,Ce,xe,Ie,Ae,Se,Re,Te,De,Pe,Me,Fe,Le,je,Oe,Ne,Ue,We,Ve,He,Ke,ze,Xe,Be,$e,qe,Qe,Ge,Je,Ye,Ze,et,tt,nt,rt=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=K.insert(e,t):$.is(n)?(i=n,r=q.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=q.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=K.replace(e,t):$.is(n)?(i=n,r=q.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=q.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=K.del(e):$.is(t)?(r=t,n=q.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=q.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),it=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if($.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new it(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(G.is(e)){var n=new rt(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new rt(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(de.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new rt(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new rt(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new it,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(X.is(t)||$.is(t)?r=t:n=t,void 0===r?i=Y.create(e,n):(o=$.is(r)?r:this._changeAnnotations.manage(r),i=Y.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(X.is(n)||$.is(n)?i=n:r=n,void 0===i?o=ee.create(e,t,r):(a=$.is(i)?i:this._changeAnnotations.manage(i),o=ee.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(X.is(t)||$.is(t)?r=t:n=t,void 0===r?i=ne.create(e,n):(o=$.is(r)?r:this._changeAnnotations.manage(r),i=ne.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),(se=ae||(ae={})).create=function(e){return{uri:e}},se.is=function(e){var t=e;return ot.defined(t)&&ot.string(t.uri)},(ce=ue||(ue={})).create=function(e,t){return{uri:e,version:t}},ce.is=function(e){var t=e;return ot.defined(t)&&ot.string(t.uri)&&ot.integer(t.version)},(ge=de||(de={})).create=function(e,t){return{uri:e,version:t}},ge.is=function(e){var t=e;return ot.defined(t)&&ot.string(t.uri)&&(null===t.version||ot.integer(t.version))},(he=le||(le={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},he.is=function(e){var t=e;return ot.defined(t)&&ot.string(t.uri)&&ot.string(t.languageId)&&ot.integer(t.version)&&ot.string(t.text)},(pe=fe||(fe={})).PlainText="plaintext",pe.Markdown="markdown",function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(fe||(fe={})),(ve||(ve={})).is=function(e){var t=e;return ot.objectLiteral(e)&&fe.is(t.kind)&&ot.string(t.value)},(_e=me||(me={})).Text=1,_e.Method=2,_e.Function=3,_e.Constructor=4,_e.Field=5,_e.Variable=6,_e.Class=7,_e.Interface=8,_e.Module=9,_e.Property=10,_e.Unit=11,_e.Value=12,_e.Enum=13,_e.Keyword=14,_e.Snippet=15,_e.Color=16,_e.File=17,_e.Reference=18,_e.Folder=19,_e.EnumMember=20,_e.Constant=21,_e.Struct=22,_e.Event=23,_e.Operator=24,_e.TypeParameter=25,(ke=we||(we={})).PlainText=1,ke.Snippet=2,(be||(be={})).Deprecated=1,(Ee=ye||(ye={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Ee.is=function(e){var t=e;return t&&ot.string(t.newText)&&v.is(t.insert)&&v.is(t.replace)},(xe=Ce||(Ce={})).asIs=1,xe.adjustIndentation=2,(Ie||(Ie={})).create=function(e){return{label:e}},(Ae||(Ae={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Re=Se||(Se={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Re.is=function(e){var t=e;return ot.string(t)||ot.objectLiteral(t)&&ot.string(t.language)&&ot.string(t.value)},(Te||(Te={})).is=function(e){var t=e;return!!t&&ot.objectLiteral(t)&&(ve.is(t.contents)||Se.is(t.contents)||ot.typedArray(t.contents,Se.is))&&(void 0===e.range||v.is(e.range))},(De||(De={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Pe||(Pe={})).create=function(e,t){for(var n=[],r=2;r=0;a--){var s=i[a],u=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");r=r.substring(0,u)+s.newText+r.substring(c,r.length),o=u}return r}}(nt||(nt={}));var ot,at,st,ut=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return f.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return f.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{c.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(i)),this._disposables.push(c.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{c.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),c.editor.getModels().forEach(r)}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"==typeof t.code?String(t.code):t.code;return{severity:dt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=c.editor.getModel(e);i&&i.getLanguageId()===t&&c.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function dt(e){switch(e){case F.Error:return c.MarkerSeverity.Error;case F.Warning:return c.MarkerSeverity.Warning;case F.Information:return c.MarkerSeverity.Info;case F.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}var gt=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),lt(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new c.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:pt(e.kind)};var n,r;return e.textEdit&&(void 0!==(r=e.textEdit).insert&&void 0!==r.replace?t.range={insert:ft(e.textEdit.insert),replace:ft(e.textEdit.replace)}:t.range=ft(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(vt)),e.insertTextFormat===we.Snippet&&(t.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function lt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function ht(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function ft(e){if(e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function pt(e){const t=c.languages.CompletionItemKind;switch(e){case me.Text:return t.Text;case me.Method:return t.Method;case me.Function:return t.Function;case me.Constructor:return t.Constructor;case me.Field:return t.Field;case me.Variable:return t.Variable;case me.Class:return t.Class;case me.Interface:return t.Interface;case me.Module:return t.Module;case me.Property:return t.Property;case me.Unit:return t.Unit;case me.Value:return t.Value;case me.Enum:return t.Enum;case me.Keyword:return t.Keyword;case me.Snippet:return t.Snippet;case me.Color:return t.Color;case me.File:return t.File;case me.Reference:return t.Reference}return t.Property}function vt(e){if(e)return{range:ft(e.range),text:e.newText}}var mt=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),lt(t)))).then((e=>{if(e)return{range:ft(e.range),contents:wt(e.contents)}}))}};function _t(e){return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function wt(e){if(e)return Array.isArray(e)?e.map(_t):[_t(e)]}var kt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),lt(t)))).then((e=>{if(e)return e.map((e=>({range:ft(e.range),kind:bt(e.kind)})))}))}};function bt(e){switch(e){case Me.Read:return c.languages.DocumentHighlightKind.Read;case Me.Write:return c.languages.DocumentHighlightKind.Write;case Me.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var yt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),lt(t)))).then((e=>{if(e)return[Et(e)]}))}};function Et(e){return{uri:c.Uri.parse(e.uri),range:ft(e.range)}}var Ct=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),lt(t)))).then((e=>{if(e)return e.map(Et)}))}},xt=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),lt(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=c.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:ft(i.range),text:i.newText}})}return{edits:t}}(e)))}},It=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>({name:e.name,detail:"",containerName:e.containerName,kind:At(e.kind),range:ft(e.location.range),selectionRange:ft(e.location.range),tags:[]})))}))}};function At(e){let t=c.languages.SymbolKind;switch(e){case je.File:return t.Array;case je.Module:return t.Module;case je.Namespace:return t.Namespace;case je.Package:return t.Package;case je.Class:return t.Class;case je.Method:return t.Method;case je.Property:return t.Property;case je.Field:return t.Field;case je.Constructor:return t.Constructor;case je.Enum:return t.Enum;case je.Interface:return t.Interface;case je.Function:return t.Function;case je.Variable:return t.Variable;case je.Constant:return t.Constant;case je.String:return t.String;case je.Number:return t.Number;case je.Boolean:return t.Boolean;case je.Array:return t.Array}return t.Function}var St=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:ft(e.range),url:e.target})))}}))}},Rt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,Dt(t)).then((e=>{if(e&&0!==e.length)return e.map(vt)}))))}},Tt=class{constructor(e){this._worker=e}canFormatMultipleRanges=!1;provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),ht(t),Dt(n)).then((e=>{if(e&&0!==e.length)return e.map(vt)}))))}};function Dt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Pt=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:ft(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,ht(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=vt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(vt)),t}))}))}},Mt=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case S.Comment:return c.languages.FoldingRangeKind.Comment;case S.Imports:return c.languages.FoldingRangeKind.Imports;case S.Region:return c.languages.FoldingRangeKind.Region}}(e.kind)),t}))}))}},Ft=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(lt)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:ft(e.range)}),e=e.parent;return t}))}))}},Lt=class extends gt{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function jt(e){const t=new oe(e),n=(...e)=>t.getLanguageServiceWorker(...e);let r=e.languageId;c.languages.registerCompletionItemProvider(r,new Lt(n)),c.languages.registerHoverProvider(r,new mt(n)),c.languages.registerDocumentHighlightProvider(r,new kt(n)),c.languages.registerLinkProvider(r,new St(n)),c.languages.registerFoldingRangeProvider(r,new Mt(n)),c.languages.registerDocumentSymbolProvider(r,new It(n)),c.languages.registerSelectionRangeProvider(r,new Ft(n)),c.languages.registerRenameProvider(r,new xt(n)),"html"===r&&(c.languages.registerDocumentFormattingEditProvider(r,new Rt(n)),c.languages.registerDocumentRangeFormattingEditProvider(r,new Tt(n)))}function Ot(e){const t=[],n=[],r=new oe(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);return function(){const{languageId:t,modeConfiguration:r}=e;Ut(n),r.completionItems&&n.push(c.languages.registerCompletionItemProvider(t,new Lt(i))),r.hovers&&n.push(c.languages.registerHoverProvider(t,new mt(i))),r.documentHighlights&&n.push(c.languages.registerDocumentHighlightProvider(t,new kt(i))),r.links&&n.push(c.languages.registerLinkProvider(t,new St(i))),r.documentSymbols&&n.push(c.languages.registerDocumentSymbolProvider(t,new It(i))),r.rename&&n.push(c.languages.registerRenameProvider(t,new xt(i))),r.foldingRanges&&n.push(c.languages.registerFoldingRangeProvider(t,new Mt(i))),r.selectionRanges&&n.push(c.languages.registerSelectionRangeProvider(t,new Ft(i))),r.documentFormattingEdits&&n.push(c.languages.registerDocumentFormattingEditProvider(t,new Rt(i))),r.documentRangeFormattingEdits&&n.push(c.languages.registerDocumentRangeFormattingEditProvider(t,new Tt(i)))}(),t.push(Nt(n)),Nt(t)}function Nt(e){return{dispose:()=>Ut(e)}}function Ut(e){for(;e.length;)e.pop().dispose()}}}]); \ No newline at end of file diff --git a/static/js/377.js.LICENSE.txt b/static/js/377.js.LICENSE.txt deleted file mode 100644 index 8ef59e134..000000000 --- a/static/js/377.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/static/js/386.js b/static/js/386.js deleted file mode 100644 index 0d8ff5b31..000000000 --- a/static/js/386.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[386],{39386:(e,t,l)=>{l.d(t,{diagram:()=>f});var n=l(72970),a=l(74309),o=l(45625),i=l(31460),s=l(62335);l(93628),l(17967),l(27856),l(29451),l(69368);const d=e=>i.e.sanitizeText(e,(0,i.c)());let r={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const c=function(e,t,l,n,a){const o=Object.keys(e);i.l.info("keys:",o),i.l.info(e),o.forEach((function(l){var o,s;const r=e[l];let c="";r.cssClasses.length>0&&(c=c+" "+r.cssClasses.join(" "));const p=r.label??r.id,b={labelStyle:"",shape:"class_box",labelText:d(p),classData:r,rx:0,ry:0,class:c,style:"",id:r.id,domId:r.domId,tooltip:n.db.getTooltip(r.id,a)||"",haveCallback:r.haveCallback,link:r.link,width:"group"===r.type?500:void 0,type:r.type,padding:(null==(o=(0,i.c)().flowchart)?void 0:o.padding)??(null==(s=(0,i.c)().class)?void 0:s.padding)};t.setNode(r.id,b),a&&t.setParent(r.id,a),i.l.info("setNode",b)}))};function p(e){let t;switch(e){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}const b={setConf:function(e){r={...r,...e}},draw:async function(e,t,l,n){i.l.info("Drawing class - ",t);const b=(0,i.c)().flowchart??(0,i.c)().class,f=(0,i.c)().securityLevel;i.l.info("config:",b);const g=(null==b?void 0:b.nodeSpacing)??50,u=(null==b?void 0:b.rankSpacing)??50,y=new o.k({multigraph:!0,compound:!0}).setGraph({rankdir:n.db.getDirection(),nodesep:g,ranksep:u,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),h=n.db.getNamespaces(),v=n.db.getClasses(),w=n.db.getRelations(),k=n.db.getNotes();let x;i.l.info(w),function(e,t,l,n){const a=Object.keys(e);i.l.info("keys:",a),i.l.info(e),a.forEach((function(l){var a,o;const s=e[l],r={shape:"rect",id:s.id,domId:s.domId,labelText:d(s.id),labelStyle:"",style:"fill: none; stroke: black",padding:(null==(a=(0,i.c)().flowchart)?void 0:a.padding)??(null==(o=(0,i.c)().class)?void 0:o.padding)};t.setNode(s.id,r),c(s.classes,t,0,n,s.id),i.l.info("setNode",r)}))}(h,y,0,n),c(v,y,0,n),function(e,t){const l=(0,i.c)().flowchart;let n=0;e.forEach((function(e){var o;n++;const s={classes:"relation",pattern:1==e.relation.lineType?"dashed":"solid",id:"id"+n,arrowhead:"arrow_open"===e.type?"none":"normal",startLabelRight:"none"===e.relationTitle1?"":e.relationTitle1,endLabelLeft:"none"===e.relationTitle2?"":e.relationTitle2,arrowTypeStart:p(e.relation.type1),arrowTypeEnd:p(e.relation.type2),style:"fill:none",labelStyle:"",curve:(0,i.o)(null==l?void 0:l.curve,a.c_6)};if(i.l.info(s,e),void 0!==e.style){const t=(0,i.k)(e.style);s.style=t.style,s.labelStyle=t.labelStyle}e.text=e.title,void 0===e.text?void 0!==e.style&&(s.arrowheadStyle="fill: #333"):(s.arrowheadStyle="fill: #333",s.labelpos="c",(null==(o=(0,i.c)().flowchart)?void 0:o.htmlLabels)??(0,i.c)().htmlLabels?(s.labelType="html",s.label=''+e.text+""):(s.labelType="text",s.label=e.text.replace(i.e.lineBreakRegex,"\n"),void 0===e.style&&(s.style=s.style||"stroke: #333; stroke-width: 1.5px;fill:none"),s.labelStyle=s.labelStyle.replace("color:","fill:"))),t.setEdge(e.id1,e.id2,s,n)}))}(w,y),function(e,t,l,n){i.l.info(e),e.forEach((function(e,o){var s,c;const p=e,b=p.text,f={labelStyle:"",shape:"note",labelText:d(b),noteData:p,rx:0,ry:0,class:"",style:"",id:p.id,domId:p.id,tooltip:"",type:"note",padding:(null==(s=(0,i.c)().flowchart)?void 0:s.padding)??(null==(c=(0,i.c)().class)?void 0:c.padding)};if(t.setNode(p.id,f),i.l.info("setNode",f),!p.class||!(p.class in n))return;const g=l+o,u={id:`edgeNote${g}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:(0,i.o)(r.curve,a.c_6)};t.setEdge(p.id,p.class,u,g)}))}(k,y,w.length+1,v),"sandbox"===f&&(x=(0,a.Ys)("#i"+t));const m="sandbox"===f?(0,a.Ys)(x.nodes()[0].contentDocument.body):(0,a.Ys)("body"),T=m.select(`[id="${t}"]`),S=m.select("#"+t+" g");if(await(0,s.r)(S,y,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",t),i.u.insertTitle(T,"classTitleText",(null==b?void 0:b.titleTopMargin)??5,n.db.getDiagramTitle()),(0,i.p)(y,T,null==b?void 0:b.diagramPadding,null==b?void 0:b.useMaxWidth),!(null==b?void 0:b.htmlLabels)){const e="sandbox"===f?x.nodes()[0].contentDocument:document,l=e.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const t of l){const l=t.getBBox(),n=e.createElementNS("http://www.w3.org/2000/svg","rect");n.setAttribute("rx",0),n.setAttribute("ry",0),n.setAttribute("width",l.width),n.setAttribute("height",l.height),t.insertBefore(n,t.firstChild)}}}},f={parser:n.p,db:n.d,renderer:b,styles:n.s,init:e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,n.d.clear()}}}}]); \ No newline at end of file diff --git a/static/js/3862a5ab4538f364cdd5.woff b/static/js/3862a5ab4538f364cdd5.woff deleted file mode 100644 index 3dcb4ecc7..000000000 Binary files a/static/js/3862a5ab4538f364cdd5.woff and /dev/null differ diff --git a/static/js/39890742bc957b368704.woff2 b/static/js/39890742bc957b368704.woff2 deleted file mode 100644 index ab2ad21da..000000000 Binary files a/static/js/39890742bc957b368704.woff2 and /dev/null differ diff --git a/static/js/3a7a76525d98d25962eb.woff2 b/static/js/3a7a76525d98d25962eb.woff2 deleted file mode 100644 index b0d08940c..000000000 Binary files a/static/js/3a7a76525d98d25962eb.woff2 and /dev/null differ diff --git a/static/js/3a99e70aee4076660d38.woff b/static/js/3a99e70aee4076660d38.woff deleted file mode 100644 index d241d9be2..000000000 Binary files a/static/js/3a99e70aee4076660d38.woff and /dev/null differ diff --git a/static/js/3c63e27405d46e5051e9.woff b/static/js/3c63e27405d46e5051e9.woff deleted file mode 100644 index 4017466b8..000000000 Binary files a/static/js/3c63e27405d46e5051e9.woff and /dev/null differ diff --git a/static/js/3ccf133441ba225afa51.woff b/static/js/3ccf133441ba225afa51.woff deleted file mode 100644 index f71973145..000000000 Binary files a/static/js/3ccf133441ba225afa51.woff and /dev/null differ diff --git a/static/js/3cd8400fefcd41fe460c.woff2 b/static/js/3cd8400fefcd41fe460c.woff2 deleted file mode 100644 index 8ff1de2f4..000000000 Binary files a/static/js/3cd8400fefcd41fe460c.woff2 and /dev/null differ diff --git a/static/js/3f07ed67f06c720120ce.woff b/static/js/3f07ed67f06c720120ce.woff deleted file mode 100644 index 0ae390d74..000000000 Binary files a/static/js/3f07ed67f06c720120ce.woff and /dev/null differ diff --git a/static/js/3f642a92b6e57b3a4b84.woff2 b/static/js/3f642a92b6e57b3a4b84.woff2 deleted file mode 100644 index 5f4ae9236..000000000 Binary files a/static/js/3f642a92b6e57b3a4b84.woff2 and /dev/null differ diff --git a/static/js/415.js b/static/js/415.js deleted file mode 100644 index 3202a9928..000000000 --- a/static/js/415.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[415],{77415:(t,e,i)=>{i.d(e,{D:()=>l,S:()=>c,a:()=>h,b:()=>a,c:()=>o,d:()=>B,p:()=>r,s:()=>F});var s=i(31460),n=function(){var t=function(t,e,i,s){for(i=i||{},s=t.length;s--;i[t[s]]=e);return i},e=[1,2],i=[1,3],s=[1,5],n=[1,7],r=[2,5],o=[1,15],a=[1,17],c=[1,21],l=[1,22],h=[1,23],u=[1,24],d=[1,37],p=[1,25],y=[1,26],f=[1,27],g=[1,28],m=[1,29],_=[1,32],S=[1,33],k=[1,34],T=[1,35],b=[1,36],E=[1,39],v=[1,40],x=[1,41],D=[1,42],C=[1,38],$=[1,45],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],L=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],I=[1,4,5,7,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],O=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],N={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,classDefStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,class:42,CLASSENTITY_IDS:43,STYLECLASS:44,openDirective:45,typeDirective:46,closeDirective:47,":":48,argDirective:49,direction_tb:50,direction_bt:51,direction_rl:52,direction_lr:53,eol:54,";":55,EDGE_STATE:56,STYLE_SEPARATOR:57,left_of:58,right_of:59,open_directive:60,type_directive:61,arg_directive:62,close_directive:63,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"class",43:"CLASSENTITY_IDS",44:"STYLECLASS",48:":",50:"direction_tb",51:"direction_bt",52:"direction_rl",53:"direction_lr",55:";",56:"EDGE_STATE",57:"STYLE_SEPARATOR",58:"left_of",59:"right_of",60:"open_directive",61:"type_directive",62:"arg_directive",63:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[11,3],[11,3],[12,3],[6,3],[6,5],[32,1],[32,1],[32,1],[32,1],[54,1],[54,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1],[45,1],[46,1],[49,1],[47,1]],performAction:function(t,e,i,s,n,r,o){var a=r.length-1;switch(n){case 4:return s.setRootDoc(r[a]),r[a];case 5:this.$=[];break;case 6:"nl"!=r[a]&&(r[a-1].push(r[a]),this.$=r[a-1]);break;case 7:case 8:case 12:this.$=r[a];break;case 9:this.$="nl";break;case 13:const t=r[a-1];t.description=s.trimColon(r[a]),this.$=t;break;case 14:this.$={stmt:"relation",state1:r[a-2],state2:r[a]};break;case 15:const e=s.trimColon(r[a]);this.$={stmt:"relation",state1:r[a-3],state2:r[a-1],description:e};break;case 19:this.$={stmt:"state",id:r[a-3],type:"default",description:"",doc:r[a-1]};break;case 20:var c=r[a],l=r[a-2].trim();if(r[a].match(":")){var h=r[a].split(":");c=h[0],l=[l,h[1]]}this.$={stmt:"state",id:c,type:"default",description:l};break;case 21:this.$={stmt:"state",id:r[a-3],type:"default",description:r[a-5],doc:r[a-1]};break;case 22:this.$={stmt:"state",id:r[a],type:"fork"};break;case 23:this.$={stmt:"state",id:r[a],type:"join"};break;case 24:this.$={stmt:"state",id:r[a],type:"choice"};break;case 25:this.$={stmt:"state",id:s.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[a-1].trim(),note:{position:r[a-2].trim(),text:r[a].trim()}};break;case 30:this.$=r[a].trim(),s.setAccTitle(this.$);break;case 31:case 32:this.$=r[a].trim(),s.setAccDescription(this.$);break;case 33:case 34:this.$={stmt:"classDef",id:r[a-1].trim(),classes:r[a].trim()};break;case 35:this.$={stmt:"applyClass",id:r[a-1].trim(),styleClass:r[a].trim()};break;case 38:s.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:s.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:s.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:s.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[a].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:r[a-2].trim(),classes:[r[a].trim()],type:"default",description:""};break;case 50:s.parseDirective("%%{","open_directive");break;case 51:s.parseDirective(r[a],"type_directive");break;case 52:r[a]=r[a].trim().replace(/'/g,'"'),s.parseDirective(r[a],"arg_directive");break;case 53:s.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:e,5:i,6:4,7:s,45:6,60:n},{1:[3]},{3:8,4:e,5:i,6:4,7:s,45:6,60:n},{3:9,4:e,5:i,6:4,7:s,45:6,60:n},{3:10,4:e,5:i,6:4,7:s,45:6,60:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],r,{8:11}),{46:12,61:[1,13]},{61:[2,50]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:a,6:30,9:14,10:16,11:18,12:19,13:20,16:c,17:l,19:h,22:u,24:d,25:p,26:y,27:f,28:g,29:m,32:31,33:_,35:S,37:k,38:T,42:b,45:6,50:E,51:v,52:x,53:D,56:C,60:n},{47:43,48:[1,44],63:$},t([48,63],[2,51]),t(A,[2,6]),{6:30,10:46,11:18,12:19,13:20,16:c,17:l,19:h,22:u,24:d,25:p,26:y,27:f,28:g,29:m,32:31,33:_,35:S,37:k,38:T,42:b,45:6,50:E,51:v,52:x,53:D,56:C,60:n},t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(A,[2,11]),t(A,[2,12],{14:[1,47],15:[1,48]}),t(A,[2,16]),{18:[1,49]},t(A,[2,18],{20:[1,50]}),{23:[1,51]},t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),{30:52,31:[1,53],58:[1,54],59:[1,55]},t(A,[2,28]),t(A,[2,29]),{34:[1,56]},{36:[1,57]},t(A,[2,32]),{39:[1,58],41:[1,59]},{43:[1,60]},t(L,[2,44],{57:[1,61]}),t(L,[2,45],{57:[1,62]}),t(A,[2,38]),t(A,[2,39]),t(A,[2,40]),t(A,[2,41]),t(I,[2,36]),{49:63,62:[1,64]},t(I,[2,53]),t(A,[2,7]),t(A,[2,13]),{13:65,24:d,56:C},t(A,[2,17]),t(O,r,{8:66}),{24:[1,67]},{24:[1,68]},{23:[1,69]},{24:[2,48]},{24:[2,49]},t(A,[2,30]),t(A,[2,31]),{40:[1,70]},{40:[1,71]},{44:[1,72]},{24:[1,73]},{24:[1,74]},{47:75,63:$},{63:[2,52]},t(A,[2,14],{14:[1,76]}),{4:o,5:a,6:30,9:14,10:16,11:18,12:19,13:20,16:c,17:l,19:h,21:[1,77],22:u,24:d,25:p,26:y,27:f,28:g,29:m,32:31,33:_,35:S,37:k,38:T,42:b,45:6,50:E,51:v,52:x,53:D,56:C,60:n},t(A,[2,20],{20:[1,78]}),{31:[1,79]},{24:[1,80]},t(A,[2,33]),t(A,[2,34]),t(A,[2,35]),t(L,[2,46]),t(L,[2,47]),t(I,[2,37]),t(A,[2,15]),t(A,[2,19]),t(O,r,{8:81}),t(A,[2,26]),t(A,[2,27]),{4:o,5:a,6:30,9:14,10:16,11:18,12:19,13:20,16:c,17:l,19:h,21:[1,82],22:u,24:d,25:p,26:y,27:f,28:g,29:m,32:31,33:_,35:S,37:k,38:T,42:b,45:6,50:E,51:v,52:x,53:D,56:C,60:n},t(A,[2,21])],defaultActions:{7:[2,50],8:[2,1],9:[2,2],10:[2,3],54:[2,48],55:[2,49],64:[2,52]},parseError:function(t,e){if(!e.recoverable){var i=new Error(t);throw i.hash=e,i}this.trace(t)},parse:function(t){var e=[0],i=[],s=[null],n=[],r=this.table,o="",a=0,c=0,l=n.slice.call(arguments,1),h=Object.create(this.lexer),u={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(u.yy[d]=this.yy[d]);h.setInput(t,u.yy),u.yy.lexer=h,u.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var p=h.yylloc;n.push(p);var y=h.options&&h.options.ranges;"function"==typeof u.yy.parseError?this.parseError=u.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var f,g,m,_,S,k,T,b,E,v={};;){if(g=e[e.length-1],this.defaultActions[g]?m=this.defaultActions[g]:(null==f&&(E=void 0,"number"!=typeof(E=i.pop()||h.lex()||1)&&(E instanceof Array&&(E=(i=E).pop()),E=this.symbols_[E]||E),f=E),m=r[g]&&r[g][f]),void 0===m||!m.length||!m[0]){var x;for(S in b=[],r[g])this.terminals_[S]&&S>2&&b.push("'"+this.terminals_[S]+"'");x=h.showPosition?"Parse error on line "+(a+1)+":\n"+h.showPosition()+"\nExpecting "+b.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(a+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(x,{text:h.match,token:this.terminals_[f]||f,line:h.yylineno,loc:p,expected:b})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+f);switch(m[0]){case 1:e.push(f),s.push(h.yytext),n.push(h.yylloc),e.push(m[1]),f=null,c=h.yyleng,o=h.yytext,a=h.yylineno,p=h.yylloc;break;case 2:if(k=this.productions_[m[1]][1],v.$=s[s.length-k],v._$={first_line:n[n.length-(k||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(k||1)].first_column,last_column:n[n.length-1].last_column},y&&(v._$.range=[n[n.length-(k||1)].range[0],n[n.length-1].range[1]]),void 0!==(_=this.performAction.apply(v,[o,c,a,u.yy,m[1],s,n].concat(l))))return _;k&&(e=e.slice(0,-1*k*2),s=s.slice(0,-1*k),n=n.slice(0,-1*k)),e.push(this.productions_[m[1]][0]),s.push(v.$),n.push(v._$),T=r[e[e.length-2]][e[e.length-1]],e.push(T);break;case 3:return!0}}return!0}},R={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.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:i?(i.length===s.length?this.yylloc.first_column:0)+s[s.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var i,s,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var r in n)this[r]=n[r];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,i,s;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;re[0].length)){if(e=i,s=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,n[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,i,s){switch(i){case 0:return 41;case 1:case 44:return 50;case 2:case 45:return 51;case 3:case 46:return 52;case 4:case 47:return 53;case 5:return this.begin("open_directive"),60;case 6:return this.begin("type_directive"),61;case 7:return this.popState(),this.begin("arg_directive"),48;case 8:return this.popState(),this.popState(),63;case 9:return 62;case 10:case 11:case 13:case 14:case 15:case 16:case 56:case 58:case 64:break;case 12:case 79:return 5;case 17:case 34:return this.pushState("SCALE"),17;case 18:case 35:return 18;case 19:case 25:case 36:case 51:case 54:this.popState();break;case 20:return this.begin("acc_title"),33;case 21:return this.popState(),"acc_title_value";case 22:return this.begin("acc_descr"),35;case 23:return this.popState(),"acc_descr_value";case 24:this.begin("acc_descr_multiline");break;case 26:return"acc_descr_multiline_value";case 27:return this.pushState("CLASSDEF"),38;case 28:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 29:return this.popState(),this.pushState("CLASSDEFID"),39;case 30:return this.popState(),40;case 31:return this.pushState("CLASS"),42;case 32:return this.popState(),this.pushState("CLASS_STYLE"),43;case 33:return this.popState(),44;case 37:this.pushState("STATE");break;case 38:case 41:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 39:case 42:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 40:case 43:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 48:this.pushState("STATE_STRING");break;case 49:return this.pushState("STATE_ID"),"AS";case 50:case 66:return this.popState(),"ID";case 52:return"STATE_DESCR";case 53:return 19;case 55:return this.popState(),this.pushState("struct"),20;case 57:return this.popState(),21;case 59:return this.begin("NOTE"),29;case 60:return this.popState(),this.pushState("NOTE_ID"),58;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:this.popState(),this.pushState("FLOATING_NOTE");break;case 63:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 65:return"NOTE_TEXT";case 67:return this.popState(),this.pushState("NOTE_TEXT"),24;case 68:return this.popState(),e.yytext=e.yytext.substr(2).trim(),31;case 69:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),31;case 70:case 71:return 7;case 72:return 16;case 73:return 56;case 74:return 24;case 75:return e.yytext=e.yytext.trim(),14;case 76:return 15;case 77:return 28;case 78:return 57;case 80:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[14,15],inclusive:!1},close_directive:{rules:[14,15],inclusive:!1},arg_directive:{rules:[8,9,14,15],inclusive:!1},type_directive:{rules:[7,8,14,15],inclusive:!1},open_directive:{rules:[6,14,15],inclusive:!1},struct:{rules:[14,15,27,31,37,44,45,46,47,56,57,58,59,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[66],inclusive:!1},FLOATING_NOTE:{rules:[63,64,65],inclusive:!1},NOTE_TEXT:{rules:[68,69],inclusive:!1},NOTE_ID:{rules:[67],inclusive:!1},NOTE:{rules:[60,61,62],inclusive:!1},CLASS_STYLE:{rules:[33],inclusive:!1},CLASS:{rules:[32],inclusive:!1},CLASSDEFID:{rules:[30],inclusive:!1},CLASSDEF:{rules:[28,29],inclusive:!1},acc_descr_multiline:{rules:[25,26],inclusive:!1},acc_descr:{rules:[23],inclusive:!1},acc_title:{rules:[21],inclusive:!1},SCALE:{rules:[18,19,35,36],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[50],inclusive:!1},STATE_STRING:{rules:[51,52],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[14,15,38,39,40,41,42,43,48,49,53,54,55],inclusive:!1},ID:{rules:[14,15],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,10,11,12,13,15,16,17,20,22,24,27,31,34,37,55,59,70,71,72,73,74,75,76,78,79,80],inclusive:!0}}};function w(){this.yy={}}return N.lexer=R,w.prototype=N,N.Parser=w,new w}();n.parser=n;const r=n,o="TB",a="state",c="relation",l="default",h="divider",u="[*]",d="start",p=u,y="color",f="fill";let g="LR",m=[],_={},S={root:{relations:[],states:{},documents:{}}},k=S.root,T=0,b=0;const E=t=>JSON.parse(JSON.stringify(t)),v=(t,e,i)=>{if(e.stmt===c)v(t,e.state1,!0),v(t,e.state2,!1);else if(e.stmt===a&&("[*]"===e.id?(e.id=i?t.id+"_start":t.id+"_end",e.start=i):e.id=e.id.trim()),e.doc){const t=[];let i,n=[];for(i=0;i0&&n.length>0){const i={stmt:a,id:(0,s.F)(),type:"divider",doc:E(n)};t.push(E(i)),e.doc=t}e.doc.forEach((t=>v(e,t,!0)))}},x=function(t,e=l,i=null,n=null,r=null,o=null,a=null,c=null){const h=null==t?void 0:t.trim();void 0===k.states[h]?(s.l.info("Adding state ",h,n),k.states[h]={id:h,descriptions:[],type:e,doc:i,note:r,classes:[],styles:[],textStyles:[]}):(k.states[h].doc||(k.states[h].doc=i),k.states[h].type||(k.states[h].type=e)),n&&(s.l.info("Setting state description",h,n),"string"==typeof n&&I(h,n.trim()),"object"==typeof n&&n.forEach((t=>I(h,t.trim())))),r&&(k.states[h].note=r,k.states[h].note.text=s.e.sanitizeText(k.states[h].note.text,(0,s.c)())),o&&(s.l.info("Setting state classes",h,o),("string"==typeof o?[o]:o).forEach((t=>N(h,t.trim())))),a&&(s.l.info("Setting state styles",h,a),("string"==typeof a?[a]:a).forEach((t=>R(h,t.trim())))),c&&(s.l.info("Setting state styles",h,a),("string"==typeof c?[c]:c).forEach((t=>w(h,t.trim()))))},D=function(t){S={root:{relations:[],states:{},documents:{}}},k=S.root,T=0,_={},t||(0,s.v)()},C=function(t){return k.states[t]};function $(t=""){let e=t;return t===u&&(T++,e=`${d}${T}`),e}function A(t="",e=l){return t===u?d:e}const L=function(t,e,i){if("object"==typeof t)!function(t,e,i){let n=$(t.id.trim()),r=A(t.id.trim(),t.type),o=$(e.id.trim()),a=A(e.id.trim(),e.type);x(n,r,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),x(o,a,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),k.relations.push({id1:n,id2:o,relationTitle:s.e.sanitizeText(i,(0,s.c)())})}(t,e,i);else{const n=$(t.trim()),r=A(t),o=function(t=""){let e=t;return t===p&&(T++,e=`end${T}`),e}(e.trim()),a=function(t="",e=l){return t===p?"end":e}(e);x(n,r),x(o,a),k.relations.push({id1:n,id2:o,title:s.e.sanitizeText(i,(0,s.c)())})}},I=function(t,e){const i=k.states[t],n=e.startsWith(":")?e.replace(":","").trim():e;i.descriptions.push(s.e.sanitizeText(n,(0,s.c)()))},O=function(t,e=""){void 0===_[t]&&(_[t]={id:t,styles:[],textStyles:[]});const i=_[t];null!=e&&e.split(",").forEach((t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(t.match(y)){const t=e.replace(f,"bgFill").replace(y,f);i.textStyles.push(t)}i.styles.push(e)}))},N=function(t,e){t.split(",").forEach((function(t){let i=C(t);if(void 0===i){const e=t.trim();x(e),i=C(e)}i.classes.push(e)}))},R=function(t,e){const i=C(t);void 0!==i&&i.textStyles.push(e)},w=function(t,e){const i=C(t);void 0!==i&&i.textStyles.push(e)},B={parseDirective:function(t,e,i){s.m.parseDirective(this,t,e,i)},getConfig:()=>(0,s.c)().state,addState:x,clear:D,getState:C,getStates:function(){return k.states},getRelations:function(){return k.relations},getClasses:function(){return _},getDirection:()=>g,addRelation:L,getDividerId:()=>(b++,"divider-id-"+b),setDirection:t=>{g=t},cleanupLabel:function(t){return":"===t.substring(0,1)?t.substr(2).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){s.l.info("Documents = ",S)},getRootDoc:()=>m,setRootDoc:t=>{s.l.info("Setting root doc",t),m=t},getRootDocV2:()=>(v({id:"root"},{id:"root",doc:m},!0),{id:"root",doc:m}),extract:t=>{let e;e=t.doc?t.doc:t,s.l.info(e),D(!0),s.l.info("Extract",e),e.forEach((t=>{switch(t.stmt){case a:x(t.id.trim(),t.type,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles);break;case c:L(t.state1,t.state2,t.description);break;case"classDef":O(t.id.trim(),t.classes);break;case"applyClass":N(t.id.trim(),t.styleClass)}}))},trimColon:t=>t&&":"===t[0]?t.substr(1).trim():t.trim(),getAccTitle:s.g,setAccTitle:s.s,getAccDescription:s.a,setAccDescription:s.b,addStyleClass:O,setCssClass:N,addDescription:I,setDiagramTitle:s.r,getDiagramTitle:s.t},F=t=>`\ndefs #statediagram-barbEnd {\n fill: ${t.transitionColor};\n stroke: ${t.transitionColor};\n }\ng.stateGroup text {\n fill: ${t.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${t.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${t.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${t.transitionColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${t.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n\n text {\n fill: ${t.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${t.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel .label text {\n fill: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${t.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${t.innerEndBackground};\n stroke: ${t.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${t.compositeBackground||t.background};\n // stroke: ${t.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${t.stateBkg||t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n.node polygon {\n fill: ${t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};;\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${t.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${t.compositeTitleBackground};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${t.stateLabelColor};\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${t.stateBorder||t.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${t.compositeBackground||t.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${t.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${t.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${t.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${t.lineColor};\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n`}}]); \ No newline at end of file diff --git a/static/js/4163112e566ed7697acf.woff2 b/static/js/4163112e566ed7697acf.woff2 deleted file mode 100644 index df4a627c8..000000000 Binary files a/static/js/4163112e566ed7697acf.woff2 and /dev/null differ diff --git a/static/js/428978dc7837d46de091.woff b/static/js/428978dc7837d46de091.woff deleted file mode 100644 index 67807b0bd..000000000 Binary files a/static/js/428978dc7837d46de091.woff and /dev/null differ diff --git a/static/js/44.js b/static/js/44.js deleted file mode 100644 index 7edc6c766..000000000 --- a/static/js/44.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[44],{22044:(t,e,a)=>{a.d(e,{diagram:()=>gt});var i=a(31460),r=a(74309),n=a(38770),s=a(17967),o=(a(93628),a(27856),function(){var t=function(t,e,a,i){for(a=a||{},i=t.length;i--;a[t[i]]=e);return a},e=[1,2],a=[1,3],i=[1,5],r=[1,7],n=[2,5],s=[1,15],o=[1,17],c=[1,19],l=[1,21],h=[1,22],d=[1,23],p=[1,29],g=[1,30],u=[1,31],x=[1,32],y=[1,33],m=[1,34],b=[1,35],f=[1,36],T=[1,37],E=[1,38],_=[1,39],v=[1,40],w=[1,41],P=[1,43],k=[1,44],L=[1,46],I=[1,47],N=[1,48],M=[1,49],A=[1,50],S=[1,51],O=[1,54],D=[1,4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,52,53,54,55,57,58,63,64,65,66,74,84],R=[4,5,21,55,57],Y=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,55,57,58,63,64,65,66,74,84],$=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,54,55,57,58,63,64,65,66,74,84],C=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,53,55,57,58,63,64,65,66,74,84],B=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,52,55,57,58,63,64,65,66,74,84],V=[72,73,74],F=[1,128],W=[1,4,5,7,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,52,53,54,55,57,58,63,64,65,66,74,84],q={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,box_section:11,box_line:12,participant_statement:13,openDirective:14,typeDirective:15,closeDirective:16,":":17,argDirective:18,box:19,restOfLine:20,end:21,signal:22,autonumber:23,NUM:24,off:25,activate:26,actor:27,deactivate:28,note_statement:29,links_statement:30,link_statement:31,properties_statement:32,details_statement:33,title:34,legacy_title:35,acc_title:36,acc_title_value:37,acc_descr:38,acc_descr_value:39,acc_descr_multiline_value:40,loop:41,rect:42,opt:43,alt:44,else_sections:45,par:46,par_sections:47,par_over:48,critical:49,option_sections:50,break:51,option:52,and:53,else:54,participant:55,AS:56,participant_actor:57,note:58,placement:59,text2:60,over:61,actor_pair:62,links:63,link:64,properties:65,details:66,spaceList:67,",":68,left_of:69,right_of:70,signaltype:71,"+":72,"-":73,ACTOR:74,SOLID_OPEN_ARROW:75,DOTTED_OPEN_ARROW:76,SOLID_ARROW:77,DOTTED_ARROW:78,SOLID_CROSS:79,DOTTED_CROSS:80,SOLID_POINT:81,DOTTED_POINT:82,TXT:83,open_directive:84,type_directive:85,arg_directive:86,close_directive:87,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",17:":",19:"box",20:"restOfLine",21:"end",23:"autonumber",24:"NUM",25:"off",26:"activate",28:"deactivate",34:"title",35:"legacy_title",36:"acc_title",37:"acc_title_value",38:"acc_descr",39:"acc_descr_value",40:"acc_descr_multiline_value",41:"loop",42:"rect",43:"opt",44:"alt",46:"par",48:"par_over",49:"critical",51:"break",52:"option",53:"and",54:"else",55:"participant",56:"AS",57:"participant_actor",58:"note",61:"over",63:"links",64:"link",65:"properties",66:"details",68:",",69:"left_of",70:"right_of",72:"+",73:"-",74:"ACTOR",75:"SOLID_OPEN_ARROW",76:"DOTTED_OPEN_ARROW",77:"SOLID_ARROW",78:"DOTTED_ARROW",79:"SOLID_CROSS",80:"DOTTED_CROSS",81:"SOLID_POINT",82:"DOTTED_POINT",83:"TXT",84:"open_directive",85:"type_directive",86:"arg_directive",87:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[11,0],[11,2],[12,2],[12,1],[12,1],[6,4],[6,6],[10,1],[10,4],[10,2],[10,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[50,1],[50,4],[47,1],[47,4],[45,1],[45,4],[13,5],[13,3],[13,5],[13,3],[29,4],[29,4],[30,3],[31,3],[32,3],[33,3],[67,2],[67,1],[62,3],[62,1],[59,1],[59,1],[22,5],[22,5],[22,4],[27,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[60,1],[14,1],[15,1],[18,1],[16,1]],performAction:function(t,e,a,i,r,n,s){var o=n.length-1;switch(r){case 4:return i.apply(n[o]),n[o];case 5:case 10:case 9:case 14:this.$=[];break;case 6:case 11:n[o-1].push(n[o]),this.$=n[o-1];break;case 7:case 8:case 12:case 13:case 64:this.$=n[o];break;case 18:n[o-1].unshift({type:"boxStart",boxData:i.parseBoxData(n[o-2])}),n[o-1].push({type:"boxEnd",boxText:n[o-2]}),this.$=n[o-1];break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(n[o-2]),sequenceIndexStep:Number(n[o-1]),sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceIndex:Number(n[o-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:i.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 24:this.$={type:"activeStart",signalType:i.LINETYPE.ACTIVE_START,actor:n[o-1]};break;case 25:this.$={type:"activeEnd",signalType:i.LINETYPE.ACTIVE_END,actor:n[o-1]};break;case 31:i.setDiagramTitle(n[o].substring(6)),this.$=n[o].substring(6);break;case 32:i.setDiagramTitle(n[o].substring(7)),this.$=n[o].substring(7);break;case 33:this.$=n[o].trim(),i.setAccTitle(this.$);break;case 34:case 35:this.$=n[o].trim(),i.setAccDescription(this.$);break;case 36:n[o-1].unshift({type:"loopStart",loopText:i.parseMessage(n[o-2]),signalType:i.LINETYPE.LOOP_START}),n[o-1].push({type:"loopEnd",loopText:n[o-2],signalType:i.LINETYPE.LOOP_END}),this.$=n[o-1];break;case 37:n[o-1].unshift({type:"rectStart",color:i.parseMessage(n[o-2]),signalType:i.LINETYPE.RECT_START}),n[o-1].push({type:"rectEnd",color:i.parseMessage(n[o-2]),signalType:i.LINETYPE.RECT_END}),this.$=n[o-1];break;case 38:n[o-1].unshift({type:"optStart",optText:i.parseMessage(n[o-2]),signalType:i.LINETYPE.OPT_START}),n[o-1].push({type:"optEnd",optText:i.parseMessage(n[o-2]),signalType:i.LINETYPE.OPT_END}),this.$=n[o-1];break;case 39:n[o-1].unshift({type:"altStart",altText:i.parseMessage(n[o-2]),signalType:i.LINETYPE.ALT_START}),n[o-1].push({type:"altEnd",signalType:i.LINETYPE.ALT_END}),this.$=n[o-1];break;case 40:n[o-1].unshift({type:"parStart",parText:i.parseMessage(n[o-2]),signalType:i.LINETYPE.PAR_START}),n[o-1].push({type:"parEnd",signalType:i.LINETYPE.PAR_END}),this.$=n[o-1];break;case 41:n[o-1].unshift({type:"parStart",parText:i.parseMessage(n[o-2]),signalType:i.LINETYPE.PAR_OVER_START}),n[o-1].push({type:"parEnd",signalType:i.LINETYPE.PAR_END}),this.$=n[o-1];break;case 42:n[o-1].unshift({type:"criticalStart",criticalText:i.parseMessage(n[o-2]),signalType:i.LINETYPE.CRITICAL_START}),n[o-1].push({type:"criticalEnd",signalType:i.LINETYPE.CRITICAL_END}),this.$=n[o-1];break;case 43:n[o-1].unshift({type:"breakStart",breakText:i.parseMessage(n[o-2]),signalType:i.LINETYPE.BREAK_START}),n[o-1].push({type:"breakEnd",optText:i.parseMessage(n[o-2]),signalType:i.LINETYPE.BREAK_END}),this.$=n[o-1];break;case 46:this.$=n[o-3].concat([{type:"option",optionText:i.parseMessage(n[o-1]),signalType:i.LINETYPE.CRITICAL_OPTION},n[o]]);break;case 48:this.$=n[o-3].concat([{type:"and",parText:i.parseMessage(n[o-1]),signalType:i.LINETYPE.PAR_AND},n[o]]);break;case 50:this.$=n[o-3].concat([{type:"else",altText:i.parseMessage(n[o-1]),signalType:i.LINETYPE.ALT_ELSE},n[o]]);break;case 51:n[o-3].type="addParticipant",n[o-3].description=i.parseMessage(n[o-1]),this.$=n[o-3];break;case 52:n[o-1].type="addParticipant",this.$=n[o-1];break;case 53:n[o-3].type="addActor",n[o-3].description=i.parseMessage(n[o-1]),this.$=n[o-3];break;case 54:n[o-1].type="addActor",this.$=n[o-1];break;case 55:this.$=[n[o-1],{type:"addNote",placement:n[o-2],actor:n[o-1].actor,text:n[o]}];break;case 56:n[o-2]=[].concat(n[o-1],n[o-1]).slice(0,2),n[o-2][0]=n[o-2][0].actor,n[o-2][1]=n[o-2][1].actor,this.$=[n[o-1],{type:"addNote",placement:i.PLACEMENT.OVER,actor:n[o-2].slice(0,2),text:n[o]}];break;case 57:this.$=[n[o-1],{type:"addLinks",actor:n[o-1].actor,text:n[o]}];break;case 58:this.$=[n[o-1],{type:"addALink",actor:n[o-1].actor,text:n[o]}];break;case 59:this.$=[n[o-1],{type:"addProperties",actor:n[o-1].actor,text:n[o]}];break;case 60:this.$=[n[o-1],{type:"addDetails",actor:n[o-1].actor,text:n[o]}];break;case 63:this.$=[n[o-2],n[o]];break;case 65:this.$=i.PLACEMENT.LEFTOF;break;case 66:this.$=i.PLACEMENT.RIGHTOF;break;case 67:this.$=[n[o-4],n[o-1],{type:"addMessage",from:n[o-4].actor,to:n[o-1].actor,signalType:n[o-3],msg:n[o]},{type:"activeStart",signalType:i.LINETYPE.ACTIVE_START,actor:n[o-1]}];break;case 68:this.$=[n[o-4],n[o-1],{type:"addMessage",from:n[o-4].actor,to:n[o-1].actor,signalType:n[o-3],msg:n[o]},{type:"activeEnd",signalType:i.LINETYPE.ACTIVE_END,actor:n[o-4]}];break;case 69:this.$=[n[o-3],n[o-1],{type:"addMessage",from:n[o-3].actor,to:n[o-1].actor,signalType:n[o-2],msg:n[o]}];break;case 70:this.$={type:"addParticipant",actor:n[o]};break;case 71:this.$=i.LINETYPE.SOLID_OPEN;break;case 72:this.$=i.LINETYPE.DOTTED_OPEN;break;case 73:this.$=i.LINETYPE.SOLID;break;case 74:this.$=i.LINETYPE.DOTTED;break;case 75:this.$=i.LINETYPE.SOLID_CROSS;break;case 76:this.$=i.LINETYPE.DOTTED_CROSS;break;case 77:this.$=i.LINETYPE.SOLID_POINT;break;case 78:this.$=i.LINETYPE.DOTTED_POINT;break;case 79:this.$=i.parseMessage(n[o].trim().substring(1));break;case 80:i.parseDirective("%%{","open_directive");break;case 81:i.parseDirective(n[o],"type_directive");break;case 82:n[o]=n[o].trim().replace(/'/g,'"'),i.parseDirective(n[o],"arg_directive");break;case 83:i.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:e,5:a,6:4,7:i,14:6,84:r},{1:[3]},{3:8,4:e,5:a,6:4,7:i,14:6,84:r},{3:9,4:e,5:a,6:4,7:i,14:6,84:r},{3:10,4:e,5:a,6:4,7:i,14:6,84:r},t([1,4,5,19,23,26,28,34,35,36,38,40,41,42,43,44,46,48,49,51,55,57,58,63,64,65,66,74,84],n,{8:11}),{15:12,85:[1,13]},{85:[2,80]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:s,5:o,6:42,9:14,10:16,13:18,14:6,19:c,22:20,23:l,26:h,27:45,28:d,29:24,30:25,31:26,32:27,33:28,34:p,35:g,36:u,38:x,40:y,41:m,42:b,43:f,44:T,46:E,48:_,49:v,51:w,55:P,57:k,58:L,63:I,64:N,65:M,66:A,74:S,84:r},{16:52,17:[1,53],87:O},t([17,87],[2,81]),t(D,[2,6]),{6:42,10:55,13:18,14:6,19:c,22:20,23:l,26:h,27:45,28:d,29:24,30:25,31:26,32:27,33:28,34:p,35:g,36:u,38:x,40:y,41:m,42:b,43:f,44:T,46:E,48:_,49:v,51:w,55:P,57:k,58:L,63:I,64:N,65:M,66:A,74:S,84:r},t(D,[2,8]),t(D,[2,9]),t(D,[2,17]),{20:[1,56]},{5:[1,57]},{5:[1,60],24:[1,58],25:[1,59]},{27:61,74:S},{27:62,74:S},{5:[1,63]},{5:[1,64]},{5:[1,65]},{5:[1,66]},{5:[1,67]},t(D,[2,31]),t(D,[2,32]),{37:[1,68]},{39:[1,69]},t(D,[2,35]),{20:[1,70]},{20:[1,71]},{20:[1,72]},{20:[1,73]},{20:[1,74]},{20:[1,75]},{20:[1,76]},{20:[1,77]},t(D,[2,44]),{27:78,74:S},{27:79,74:S},{71:80,75:[1,81],76:[1,82],77:[1,83],78:[1,84],79:[1,85],80:[1,86],81:[1,87],82:[1,88]},{59:89,61:[1,90],69:[1,91],70:[1,92]},{27:93,74:S},{27:94,74:S},{27:95,74:S},{27:96,74:S},t([5,56,68,75,76,77,78,79,80,81,82,83],[2,70]),{5:[1,97]},{18:98,86:[1,99]},{5:[2,83]},t(D,[2,7]),t(R,[2,10],{11:100}),t(D,[2,19]),{5:[1,102],24:[1,101]},{5:[1,103]},t(D,[2,23]),{5:[1,104]},{5:[1,105]},t(D,[2,26]),t(D,[2,27]),t(D,[2,28]),t(D,[2,29]),t(D,[2,30]),t(D,[2,33]),t(D,[2,34]),t(Y,n,{8:106}),t(Y,n,{8:107}),t(Y,n,{8:108}),t($,n,{45:109,8:110}),t(C,n,{47:111,8:112}),t(C,n,{8:112,47:113}),t(B,n,{50:114,8:115}),t(Y,n,{8:116}),{5:[1,118],56:[1,117]},{5:[1,120],56:[1,119]},{27:123,72:[1,121],73:[1,122],74:S},t(V,[2,71]),t(V,[2,72]),t(V,[2,73]),t(V,[2,74]),t(V,[2,75]),t(V,[2,76]),t(V,[2,77]),t(V,[2,78]),{27:124,74:S},{27:126,62:125,74:S},{74:[2,65]},{74:[2,66]},{60:127,83:F},{60:129,83:F},{60:130,83:F},{60:131,83:F},t(W,[2,15]),{16:132,87:O},{87:[2,82]},{4:[1,135],5:[1,137],12:134,13:136,21:[1,133],55:P,57:k},{5:[1,138]},t(D,[2,21]),t(D,[2,22]),t(D,[2,24]),t(D,[2,25]),{4:s,5:o,6:42,9:14,10:16,13:18,14:6,19:c,21:[1,139],22:20,23:l,26:h,27:45,28:d,29:24,30:25,31:26,32:27,33:28,34:p,35:g,36:u,38:x,40:y,41:m,42:b,43:f,44:T,46:E,48:_,49:v,51:w,55:P,57:k,58:L,63:I,64:N,65:M,66:A,74:S,84:r},{4:s,5:o,6:42,9:14,10:16,13:18,14:6,19:c,21:[1,140],22:20,23:l,26:h,27:45,28:d,29:24,30:25,31:26,32:27,33:28,34:p,35:g,36:u,38:x,40:y,41:m,42:b,43:f,44:T,46:E,48:_,49:v,51:w,55:P,57:k,58:L,63:I,64:N,65:M,66:A,74:S,84:r},{4:s,5:o,6:42,9:14,10:16,13:18,14:6,19:c,21:[1,141],22:20,23:l,26:h,27:45,28:d,29:24,30:25,31:26,32:27,33:28,34:p,35:g,36:u,38:x,40:y,41:m,42:b,43:f,44:T,46:E,48:_,49:v,51:w,55:P,57:k,58:L,63:I,64:N,65:M,66:A,74:S,84:r},{21:[1,142]},{4:s,5:o,6:42,9:14,10:16,13:18,14:6,19:c,21:[2,49],22:20,23:l,26:h,27:45,28:d,29:24,30:25,31:26,32:27,33:28,34:p,35:g,36:u,38:x,40:y,41:m,42:b,43:f,44:T,46:E,48:_,49:v,51:w,54:[1,143],55:P,57:k,58:L,63:I,64:N,65:M,66:A,74:S,84:r},{21:[1,144]},{4:s,5:o,6:42,9:14,10:16,13:18,14:6,19:c,21:[2,47],22:20,23:l,26:h,27:45,28:d,29:24,30:25,31:26,32:27,33:28,34:p,35:g,36:u,38:x,40:y,41:m,42:b,43:f,44:T,46:E,48:_,49:v,51:w,53:[1,145],55:P,57:k,58:L,63:I,64:N,65:M,66:A,74:S,84:r},{21:[1,146]},{21:[1,147]},{4:s,5:o,6:42,9:14,10:16,13:18,14:6,19:c,21:[2,45],22:20,23:l,26:h,27:45,28:d,29:24,30:25,31:26,32:27,33:28,34:p,35:g,36:u,38:x,40:y,41:m,42:b,43:f,44:T,46:E,48:_,49:v,51:w,52:[1,148],55:P,57:k,58:L,63:I,64:N,65:M,66:A,74:S,84:r},{4:s,5:o,6:42,9:14,10:16,13:18,14:6,19:c,21:[1,149],22:20,23:l,26:h,27:45,28:d,29:24,30:25,31:26,32:27,33:28,34:p,35:g,36:u,38:x,40:y,41:m,42:b,43:f,44:T,46:E,48:_,49:v,51:w,55:P,57:k,58:L,63:I,64:N,65:M,66:A,74:S,84:r},{20:[1,150]},t(D,[2,52]),{20:[1,151]},t(D,[2,54]),{27:152,74:S},{27:153,74:S},{60:154,83:F},{60:155,83:F},{60:156,83:F},{68:[1,157],83:[2,64]},{5:[2,57]},{5:[2,79]},{5:[2,58]},{5:[2,59]},{5:[2,60]},{5:[1,158]},t(D,[2,18]),t(R,[2,11]),{13:159,55:P,57:k},t(R,[2,13]),t(R,[2,14]),t(D,[2,20]),t(D,[2,36]),t(D,[2,37]),t(D,[2,38]),t(D,[2,39]),{20:[1,160]},t(D,[2,40]),{20:[1,161]},t(D,[2,41]),t(D,[2,42]),{20:[1,162]},t(D,[2,43]),{5:[1,163]},{5:[1,164]},{60:165,83:F},{60:166,83:F},{5:[2,69]},{5:[2,55]},{5:[2,56]},{27:167,74:S},t(W,[2,16]),t(R,[2,12]),t($,n,{8:110,45:168}),t(C,n,{8:112,47:169}),t(B,n,{8:115,50:170}),t(D,[2,51]),t(D,[2,53]),{5:[2,67]},{5:[2,68]},{83:[2,63]},{21:[2,50]},{21:[2,48]},{21:[2,46]}],defaultActions:{7:[2,80],8:[2,1],9:[2,2],10:[2,3],54:[2,83],91:[2,65],92:[2,66],99:[2,82],127:[2,57],128:[2,79],129:[2,58],130:[2,59],131:[2,60],154:[2,69],155:[2,55],156:[2,56],165:[2,67],166:[2,68],167:[2,63],168:[2,50],169:[2,48],170:[2,46]},parseError:function(t,e){if(!e.recoverable){var a=new Error(t);throw a.hash=e,a}this.trace(t)},parse:function(t){var e=[0],a=[],i=[null],r=[],n=this.table,s="",o=0,c=0,l=r.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);h.setInput(t,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var g=h.yylloc;r.push(g);var u=h.options&&h.options.ranges;"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var x,y,m,b,f,T,E,_,v,w={};;){if(y=e[e.length-1],this.defaultActions[y]?m=this.defaultActions[y]:(null==x&&(v=void 0,"number"!=typeof(v=a.pop()||h.lex()||1)&&(v instanceof Array&&(v=(a=v).pop()),v=this.symbols_[v]||v),x=v),m=n[y]&&n[y][x]),void 0===m||!m.length||!m[0]){var P;for(f in _=[],n[y])this.terminals_[f]&&f>2&&_.push("'"+this.terminals_[f]+"'");P=h.showPosition?"Parse error on line "+(o+1)+":\n"+h.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(P,{text:h.match,token:this.terminals_[x]||x,line:h.yylineno,loc:g,expected:_})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+x);switch(m[0]){case 1:e.push(x),i.push(h.yytext),r.push(h.yylloc),e.push(m[1]),x=null,c=h.yyleng,s=h.yytext,o=h.yylineno,g=h.yylloc;break;case 2:if(T=this.productions_[m[1]][1],w.$=i[i.length-T],w._$={first_line:r[r.length-(T||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(T||1)].first_column,last_column:r[r.length-1].last_column},u&&(w._$.range=[r[r.length-(T||1)].range[0],r[r.length-1].range[1]]),void 0!==(b=this.performAction.apply(w,[s,c,o,d.yy,m[1],i,r].concat(l))))return b;T&&(e=e.slice(0,-1*T*2),i=i.slice(0,-1*T),r=r.slice(0,-1*T)),e.push(this.productions_[m[1]][0]),i.push(w.$),r.push(w._$),E=n[e[e.length-2]][e[e.length-1]],e.push(E);break;case 3:return!0}}return!0}},z={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,a=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===i.length?this.yylloc.first_column:0)+i[i.length-a.length].length-a[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var a,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],a=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var n in r)this[n]=r[n];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,a,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),n=0;ne[0].length)){if(e=a,i=n,this.options.backtrack_lexer){if(!1!==(t=this.test_match(a,r[n])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,a,i){switch(a){case 0:return this.begin("open_directive"),84;case 1:return this.begin("type_directive"),85;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),87;case 4:return 86;case 5:case 54:case 67:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return 24;case 12:return this.begin("LINE"),19;case 13:return this.begin("ID"),55;case 14:return this.begin("ID"),57;case 15:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),74;case 16:return this.popState(),this.popState(),this.begin("LINE"),56;case 17:return this.popState(),this.popState(),5;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),44;case 22:return this.begin("LINE"),54;case 23:return this.begin("LINE"),46;case 24:return this.begin("LINE"),48;case 25:return this.begin("LINE"),53;case 26:return this.begin("LINE"),49;case 27:return this.begin("LINE"),52;case 28:return this.begin("LINE"),51;case 29:return this.popState(),20;case 30:return 21;case 31:return 69;case 32:return 70;case 33:return 63;case 34:return 64;case 35:return 65;case 36:return 66;case 37:return 61;case 38:return 58;case 39:return this.begin("ID"),26;case 40:return this.begin("ID"),28;case 41:return 34;case 42:return 35;case 43:return this.begin("acc_title"),36;case 44:return this.popState(),"acc_title_value";case 45:return this.begin("acc_descr"),38;case 46:return this.popState(),"acc_descr_value";case 47:this.begin("acc_descr_multiline");break;case 48:this.popState();break;case 49:return"acc_descr_multiline_value";case 50:return 7;case 51:return 23;case 52:return 25;case 53:return 68;case 55:return e.yytext=e.yytext.trim(),74;case 56:return 77;case 57:return 78;case 58:return 75;case 59:return 76;case 60:return 79;case 61:return 80;case 62:return 81;case 63:return 82;case 64:return 83;case 65:return 72;case 66:return 73;case 68:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[48,49],inclusive:!1},acc_descr:{rules:[46],inclusive:!1},acc_title:{rules:[44],inclusive:!1},open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,15],inclusive:!1},ALIAS:{rules:[7,8,16,17],inclusive:!1},LINE:{rules:[7,8,29],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,14,18,19,20,21,22,23,24,25,26,27,28,30,31,32,33,34,35,36,37,38,39,40,41,42,43,45,47,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68],inclusive:!0}}};function H(){this.yy={}}return q.lexer=z,H.prototype=q,q.Parser=H,new H}());o.parser=o;const c=o;let l,h,d,p={},g=[],u=[],x=!1;const y=function(t,e,a,i){let r=d;const n=p[t];if(n){if(d&&n.box&&d!==n.box)throw new Error("A same participant should only be defined in one Box: "+n.name+" can't be in '"+n.box.name+"' and in '"+d.name+"' at the same time.");if(r=n.box?n.box:d,n.box=r,n&&e===n.name&&null==a)return}null!=a&&null!=a.text||(a={text:e,wrap:null,type:i}),null!=i&&null!=a.text||(a={text:e,wrap:null,type:i}),p[t]={box:r,name:e,description:a.text,wrap:void 0===a.wrap&&f()||!!a.wrap,prevActor:l,links:{},properties:{},actorCnt:null,rectData:null,type:i||"participant"},l&&p[l]&&(p[l].nextActor=t),d&&d.actorKeys.push(t),l=t},m=function(t,e,a={text:void 0,wrap:void 0},i){if(i===T.ACTIVE_END&&(t=>{let e,a=0;for(e=0;e>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},e}return u.push({from:t,to:e,message:a.text,wrap:void 0===a.wrap&&f()||!!a.wrap,type:i}),!0},b=function(t){return p[t]},f=()=>void 0!==h?h:(0,i.c)().sequence.wrap,T={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32},E=function(t,e,a){a.text,void 0===a.wrap&&f()||a.wrap;const i=[].concat(t,t);u.push({from:i[0],to:i[1],message:a.text,wrap:void 0===a.wrap&&f()||!!a.wrap,type:T.NOTE,placement:e})},_=function(t,e){const a=b(t);try{let t=(0,i.d)(e.text,(0,i.c)());t=t.replace(/&/g,"&"),t=t.replace(/=/g,"="),v(a,JSON.parse(t))}catch(t){i.l.error("error while parsing actor link text",t)}};function v(t,e){if(null==t.links)t.links=e;else for(let a in e)t.links[a]=e[a]}const w=function(t,e){const a=b(t);try{let t=(0,i.d)(e.text,(0,i.c)());P(a,JSON.parse(t))}catch(t){i.l.error("error while parsing actor properties text",t)}};function P(t,e){if(null==t.properties)t.properties=e;else for(let a in e)t.properties[a]=e[a]}const k=function(t,e){const a=b(t),r=document.getElementById(e.text);try{const t=r.innerHTML,e=JSON.parse(t);e.properties&&P(a,e.properties),e.links&&v(a,e.links)}catch(t){i.l.error("error while parsing actor details text",t)}},L=function(t){if(Array.isArray(t))t.forEach((function(t){L(t)}));else switch(t.type){case"sequenceIndex":u.push({from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":y(t.actor,t.actor,t.description,"participant");break;case"addActor":y(t.actor,t.actor,t.description,"actor");break;case"activeStart":case"activeEnd":m(t.actor,void 0,void 0,t.signalType);break;case"addNote":E(t.actor,t.placement,t.text);break;case"addLinks":_(t.actor,t.text);break;case"addALink":!function(t,e){const a=b(t);try{const t={};let o=(0,i.d)(e.text,(0,i.c)());var r=o.indexOf("@");o=o.replace(/&/g,"&"),o=o.replace(/=/g,"=");var n=o.slice(0,r-1).trim(),s=o.slice(r+1).trim();t[n]=s,v(a,t)}catch(t){i.l.error("error while parsing actor link text",t)}}(t.actor,t.text);break;case"addProperties":w(t.actor,t.text);break;case"addDetails":k(t.actor,t.text);break;case"addMessage":m(t.from,t.to,t.msg,t.signalType);break;case"boxStart":e=t.boxData,g.push({name:e.text,wrap:void 0===e.wrap&&f()||!!e.wrap,fill:e.color,actorKeys:[]}),d=g.slice(-1)[0];break;case"boxEnd":d=void 0;break;case"loopStart":m(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":m(void 0,void 0,void 0,t.signalType);break;case"rectStart":m(void 0,void 0,t.color,t.signalType);break;case"optStart":m(void 0,void 0,t.optText,t.signalType);break;case"altStart":case"else":m(void 0,void 0,t.altText,t.signalType);break;case"setAccTitle":(0,i.s)(t.text);break;case"parStart":case"and":m(void 0,void 0,t.parText,t.signalType);break;case"criticalStart":m(void 0,void 0,t.criticalText,t.signalType);break;case"option":m(void 0,void 0,t.optionText,t.signalType);break;case"breakStart":m(void 0,void 0,t.breakText,t.signalType)}var e},I={addActor:y,addMessage:function(t,e,a,i){u.push({from:t,to:e,message:a.text,wrap:void 0===a.wrap&&f()||!!a.wrap,answer:i})},addSignal:m,addLinks:_,addDetails:k,addProperties:w,autoWrap:f,setWrap:function(t){h=t},enableSequenceNumbers:function(){x=!0},disableSequenceNumbers:function(){x=!1},showSequenceNumbers:()=>x,getMessages:function(){return u},getActors:function(){return p},getActor:b,getActorKeys:function(){return Object.keys(p)},getActorProperty:function(t,e){if(void 0!==t&&void 0!==t.properties)return t.properties[e]},getAccTitle:i.g,getBoxes:function(){return g},getDiagramTitle:i.t,setDiagramTitle:i.r,parseDirective:function(t,e,a){i.m.parseDirective(this,t,e,a)},getConfig:()=>(0,i.c)().sequence,clear:function(){p={},g=[],u=[],x=!1,(0,i.v)()},parseMessage:function(t){const e=t.trim(),a={text:e.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:null!==e.match(/^:?wrap:/)||null===e.match(/^:?nowrap:/)&&void 0};return i.l.debug("parseMessage:",a),a},parseBoxData:function(t){const e=t.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);let a=null!=e&&e[1]?e[1].trim():"transparent",r=null!=e&&e[2]?e[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",a)||(a="transparent",r=t.trim());else{const e=(new Option).style;e.color=a,e.color!==a&&(a="transparent",r=t.trim())}return{color:a,text:void 0!==r?(0,i.d)(r.replace(/^:?(?:no)?wrap:/,""),(0,i.c)()):void 0,wrap:void 0!==r?null!==r.match(/^:?wrap:/)||null===r.match(/^:?nowrap:/)&&void 0:void 0}},LINETYPE:T,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:E,setAccTitle:i.s,apply:L,setAccDescription:i.b,getAccDescription:i.a,hasAtLeastOneBox:function(){return g.length>0},hasAtLeastOneBoxWithTitle:function(){return g.some((t=>t.name))}},N=function(t,e){return(0,n.d)(t,e)},M=(t,e)=>{(0,i.E)((()=>{const a=document.querySelectorAll(t);0!==a.length&&(a[0].addEventListener("mouseover",(function(){A("actor"+e+"_popup")})),a[0].addEventListener("mouseout",(function(){S("actor"+e+"_popup")})))}))},A=function(t){var e=document.getElementById(t);null!=e&&(e.style.display="block")},S=function(t){var e=document.getElementById(t);null!=e&&(e.style.display="none")},O=function(t,e){let a=0,r=0;const n=e.text.split(i.e.lineBreakRegex),[s,o]=(0,i.B)(e.fontSize);let c=[],l=0,h=()=>e.y;if(void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0)switch(e.valign){case"top":case"start":h=()=>Math.round(e.y+e.textMargin);break;case"middle":case"center":h=()=>Math.round(e.y+(a+r+e.textMargin)/2);break;case"bottom":case"end":h=()=>Math.round(e.y+(a+r+2*e.textMargin)-e.textMargin)}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle"}for(let[i,d]of n.entries()){void 0!==e.textMargin&&0===e.textMargin&&void 0!==s&&(l=i*s);const n=t.append("text");if(n.attr("x",e.x),n.attr("y",h()),void 0!==e.anchor&&n.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),void 0!==e.fontFamily&&n.style("font-family",e.fontFamily),void 0!==o&&n.style("font-size",o),void 0!==e.fontWeight&&n.style("font-weight",e.fontWeight),void 0!==e.fill&&n.attr("fill",e.fill),void 0!==e.class&&n.attr("class",e.class),void 0!==e.dy?n.attr("dy",e.dy):0!==l&&n.attr("dy",l),e.tspan){const t=n.append("tspan");t.attr("x",e.x),void 0!==e.fill&&t.attr("fill",e.fill),t.text(d)}else n.text(d);void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0&&(r+=(n._groups||n)[0][0].getBBox().height,a=r),c.push(n)}return c},D=function(t,e){const a=t.append("polygon");var i,r,n,s;return a.attr("points",(i=e.x)+","+(r=e.y)+" "+(i+(n=e.width))+","+r+" "+(i+n)+","+(r+(s=e.height)-7)+" "+(i+n-8.4)+","+(r+s)+" "+i+","+(r+s)),a.attr("class","labelBox"),e.y=e.y+e.height/2,O(t,e),a};let R=-1;const Y=(t,e)=>{t.selectAll&&t.selectAll(".actor-line").attr("class","200").attr("y2",e-55)},$=function(t,e){(0,n.a)(t,e)},C=function(){function t(t,e,a,i,n,s,o){r(e.append("text").attr("x",a+n/2).attr("y",i+s/2+5).style("text-anchor","middle").text(t),o)}function e(t,e,a,n,s,o,c,l){const{actorFontSize:h,actorFontFamily:d,actorFontWeight:p}=l,[g,u]=(0,i.B)(h),x=t.split(i.e.lineBreakRegex);for(let t=0;ta?c.width:a;const g=h.append("rect");if(g.attr("class","actorPopupMenuPanel"+d),g.attr("x",c.x),g.attr("y",c.height),g.attr("fill",c.fill),g.attr("stroke",c.stroke),g.attr("width",p),g.attr("height",c.height),g.attr("rx",c.rx),g.attr("ry",c.ry),null!=n){var u=20;for(let t in n){var x=h.append("a"),y=(0,s.N)(n[t]);x.attr("xlink:href",y),x.attr("target","_blank"),B(i)(t,x,c.x+10,c.height+u,p,20,{class:"actor"},i),u+=30}}return g.attr("height",u),{height:c.height+u,width:p}},z=function(t){return t.append("g")},H=function(t,e,a,i,r){const s=(0,n.g)(),o=e.anchored;s.x=e.startx,s.y=e.starty,s.class="activation"+r%3,s.width=e.stopx-e.startx,s.height=a-e.starty,N(o,s)},U=function(t,e,a,i){const{boxMargin:r,boxTextMargin:s,labelBoxHeight:o,labelBoxWidth:c,messageFontFamily:l,messageFontSize:h,messageFontWeight:d}=i,p=t.append("g"),g=function(t,e,a,i){return p.append("line").attr("x1",t).attr("y1",e).attr("x2",a).attr("y2",i).attr("class","loopLine")};g(e.startx,e.starty,e.stopx,e.starty),g(e.stopx,e.starty,e.stopx,e.stopy),g(e.startx,e.stopy,e.stopx,e.stopy),g(e.startx,e.starty,e.startx,e.stopy),void 0!==e.sections&&e.sections.forEach((function(t){g(e.startx,t.y,e.stopx,t.y).style("stroke-dasharray","3, 3")}));let u=(0,n.e)();u.text=a,u.x=e.startx,u.y=e.starty,u.fontFamily=l,u.fontSize=h,u.fontWeight=d,u.anchor="middle",u.valign="middle",u.tspan=!1,u.width=c||50,u.height=o||20,u.textMargin=s,u.class="labelText",D(p,u),u={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0},u.text=e.title,u.x=e.startx+c/2+(e.stopx-e.startx)/2,u.y=e.starty+r+s,u.anchor="middle",u.valign="middle",u.textMargin=s,u.class="loopText",u.fontFamily=l,u.fontSize=h,u.fontWeight=d,u.wrap=!0;let x=O(p,u);return void 0!==e.sectionTitles&&e.sectionTitles.forEach((function(t,a){if(t.message){u.text=t.message,u.x=e.startx+(e.stopx-e.startx)/2,u.y=e.sections[a].y+r+s,u.class="loopText",u.anchor="middle",u.valign="middle",u.tspan=!1,u.fontFamily=l,u.fontSize=h,u.fontWeight=d,u.wrap=e.wrap,x=O(p,u);let i=Math.round(x.map((t=>(t._groups||t)[0][0].getBBox().height)).reduce(((t,e)=>t+e)));e.sections[a].height+=i-(r+s)}})),e.height=Math.round(e.stopy-e.starty),p},j=$,K=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},X=function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},G=function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},J=function(t){t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},Q=function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},Z=function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},tt=function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")};s.N;let et={};const at={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map((t=>t.height||0)))+(0===this.loops.length?0:this.loops.map((t=>t.height||0)).reduce(((t,e)=>t+e)))+(0===this.messages.length?0:this.messages.map((t=>t.height||0)).reduce(((t,e)=>t+e)))+(0===this.notes.length?0:this.notes.map((t=>t.height||0)).reduce(((t,e)=>t+e)))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(t){this.boxes.push(t)},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],boxes:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,ct((0,i.c)())},updateVal:function(t,e,a,i){void 0===t[e]?t[e]=a:t[e]=i(a,t[e])},updateBounds:function(t,e,a,i){const r=this;let n=0;function s(s){return function(o){n++;const c=r.sequenceItems.length-n+1;r.updateVal(o,"starty",e-c*et.boxMargin,Math.min),r.updateVal(o,"stopy",i+c*et.boxMargin,Math.max),r.updateVal(at.data,"startx",t-c*et.boxMargin,Math.min),r.updateVal(at.data,"stopx",a+c*et.boxMargin,Math.max),"activation"!==s&&(r.updateVal(o,"startx",t-c*et.boxMargin,Math.min),r.updateVal(o,"stopx",a+c*et.boxMargin,Math.max),r.updateVal(at.data,"starty",e-c*et.boxMargin,Math.min),r.updateVal(at.data,"stopy",i+c*et.boxMargin,Math.max))}}this.sequenceItems.forEach(s()),this.activations.forEach(s("activation"))},insert:function(t,e,a,r){const n=i.e.getMin(t,a),s=i.e.getMax(t,a),o=i.e.getMin(e,r),c=i.e.getMax(e,r);this.updateVal(at.data,"startx",n,Math.min),this.updateVal(at.data,"starty",o,Math.min),this.updateVal(at.data,"stopx",s,Math.max),this.updateVal(at.data,"stopy",c,Math.max),this.updateBounds(n,o,s,c)},newActivation:function(t,e,a){const i=a[t.from.actor],r=lt(t.from.actor).length||0,n=i.x+i.width/2+(r-1)*et.activationWidth/2;this.activations.push({startx:n,starty:this.verticalPos+2,stopx:n+et.activationWidth,stopy:void 0,actor:t.from.actor,anchored:z(e)})},endActivation:function(t){const e=this.activations.map((function(t){return t.actor})).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},isLoopOverlap:function(){return!!this.sequenceItems.length&&this.sequenceItems[this.sequenceItems.length-1].overlap},addSectionToLoop:function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:at.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},saveVerticalPos:function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},resetVerticalPos:function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=i.e.getMax(this.data.stopy,this.verticalPos)},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},it=t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),rt=t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),nt=t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}),st=function(t,e,a,r,n,s,o){if(!0===n.hideUnusedParticipants){const t=new Set;s.forEach((e=>{t.add(e.from),t.add(e.to)})),a=a.filter((e=>t.has(e)))}let c,l=0,h=0,d=0;for(const n of a){const a=e[n],s=a.box;c&&c!=s&&(o||at.models.addBox(c),h+=et.boxMargin+c.margin),s&&s!=c&&(o||(s.x=l+h,s.y=r),h+=s.margin),a.width=a.width||et.width,a.height=i.e.getMax(a.height||et.height,et.height),a.margin=a.margin||et.actorMargin,a.x=l+h,a.y=at.getVerticalPos();const p=F(t,a,et,o);d=i.e.getMax(d,p),at.insert(a.x,r,a.x+a.width,a.height),l+=a.width+h,a.box&&(a.box.width=l+s.margin-a.box.x),h=a.margin,c=a.box,at.models.addActor(a)}c&&!o&&at.models.addBox(c),at.bumpVerticalPos(d)},ot=function(t,e,a,i){let r=0,n=0;for(const s of a){const a=e[s],o=pt(a),c=q(t,a,o,et,et.forceMenus,i);c.height>r&&(r=c.height),c.width+a.x>n&&(n=c.width+a.x)}return{maxHeight:r,maxWidth:n}},ct=function(t){(0,i.f)(et,t),t.fontFamily&&(et.actorFontFamily=et.noteFontFamily=et.messageFontFamily=t.fontFamily),t.fontSize&&(et.actorFontSize=et.noteFontSize=et.messageFontSize=t.fontSize),t.fontWeight&&(et.actorFontWeight=et.noteFontWeight=et.messageFontWeight=t.fontWeight)},lt=function(t){return at.activations.filter((function(e){return e.actor===t}))},ht=function(t,e){const a=e[t],r=lt(t);return[r.reduce((function(t,e){return i.e.getMin(t,e.startx)}),a.x+a.width/2),r.reduce((function(t,e){return i.e.getMax(t,e.stopx)}),a.x+a.width/2)]};function dt(t,e,a,r,n){at.bumpVerticalPos(a);let s=r;if(e.id&&e.message&&t[e.id]){const a=t[e.id].width,n=it(et);e.message=i.u.wrapLabel(`[${e.message}]`,a-2*et.wrapPadding,n),e.width=a,e.wrap=!0;const o=i.u.calculateTextDimensions(e.message,n),c=i.e.getMax(o.height,et.labelBoxHeight);s=r+c,i.l.debug(`${c} - ${e.message}`)}n(e),at.bumpVerticalPos(s)}const pt=function(t){let e=0;const a=nt(et);for(const r in t.links){const t=i.u.calculateTextDimensions(r,a).width+2*et.wrapPadding+2*et.boxMargin;e{const a=t[e];a.wrap&&(a.description=i.u.wrapLabel(a.description,et.width-2*et.wrapPadding,nt(et)));const n=i.u.calculateTextDimensions(a.description,nt(et));a.width=a.wrap?et.width:i.e.getMax(et.width,n.width+2*et.wrapPadding),a.height=a.wrap?i.e.getMax(n.height,et.height):et.height,r=i.e.getMax(r,a.height)}));for(const a in e){const r=t[a];if(!r)continue;const n=t[r.nextActor];if(!n){const t=e[a]+et.actorMargin-r.width/2;r.margin=i.e.getMax(t,et.actorMargin);continue}const s=e[a]+et.actorMargin-r.width/2-n.width/2;r.margin=i.e.getMax(s,et.actorMargin)}let n=0;return a.forEach((e=>{const a=it(et);let r=e.actorKeys.reduce(((e,a)=>e+(t[a].width+(t[a].margin||0))),0);r-=2*et.boxTextMargin,e.wrap&&(e.name=i.u.wrapLabel(e.name,r-2*et.wrapPadding,a));const s=i.u.calculateTextDimensions(e.name,a);n=i.e.getMax(s.height,n);const o=i.e.getMax(r,s.width+2*et.wrapPadding);if(e.margin=et.boxTextMargin,rt.textMaxHeight=n)),i.e.getMax(r,et.height)}(g,T,u),Z(p),Q(p),tt(p),b&&(at.bumpVerticalPos(et.boxMargin),f&&at.bumpVerticalPos(u[0].textMaxHeight)),st(p,g,x,0,et,y,!1);const E=function(t,e,a,r){const n={},s=[];let o,c,l;return t.forEach((function(t){switch(t.id=i.u.random({length:10}),t.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:s.push({id:t.id,msg:t.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:t.message&&(o=s.pop(),n[o.id]=o,n[t.id]=o,s.push(o));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:o=s.pop(),n[o.id]=o;break;case r.db.LINETYPE.ACTIVE_START:{const a=e[t.from?t.from.actor:t.to.actor],i=lt(t.from?t.from.actor:t.to.actor).length,r=a.x+a.width/2+(i-1)*et.activationWidth/2,n={startx:r,stopx:r+et.activationWidth,actor:t.from.actor,enabled:!0};at.activations.push(n)}break;case r.db.LINETYPE.ACTIVE_END:{const e=at.activations.map((t=>t.actor)).lastIndexOf(t.from.actor);delete at.activations.splice(e,1)[0]}}void 0!==t.placement?(c=function(t,e,a){const r=e[t.from].x,n=e[t.to].x,s=t.wrap&&t.message;let o=i.u.calculateTextDimensions(s?i.u.wrapLabel(t.message,et.width,rt(et)):t.message,rt(et));const c={width:s?et.width:i.e.getMax(et.width,o.width+2*et.noteMargin),height:0,startx:e[t.from].x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===a.db.PLACEMENT.RIGHTOF?(c.width=s?i.e.getMax(et.width,o.width):i.e.getMax(e[t.from].width/2+e[t.to].width/2,o.width+2*et.noteMargin),c.startx=r+(e[t.from].width+et.actorMargin)/2):t.placement===a.db.PLACEMENT.LEFTOF?(c.width=s?i.e.getMax(et.width,o.width+2*et.noteMargin):i.e.getMax(e[t.from].width/2+e[t.to].width/2,o.width+2*et.noteMargin),c.startx=r-c.width+(e[t.from].width-et.actorMargin)/2):t.to===t.from?(o=i.u.calculateTextDimensions(s?i.u.wrapLabel(t.message,i.e.getMax(et.width,e[t.from].width),rt(et)):t.message,rt(et)),c.width=s?i.e.getMax(et.width,e[t.from].width):i.e.getMax(e[t.from].width,et.width,o.width+2*et.noteMargin),c.startx=r+(e[t.from].width-c.width)/2):(c.width=Math.abs(r+e[t.from].width/2-(n+e[t.to].width/2))+et.actorMargin,c.startx=r{o=t,o.from=i.e.getMin(o.from,c.startx),o.to=i.e.getMax(o.to,c.startx+c.width),o.width=i.e.getMax(o.width,Math.abs(o.from-o.to))-et.labelBoxWidth}))):(l=function(t,e,a){let r=!1;if([a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.DOTTED,a.db.LINETYPE.SOLID_CROSS,a.db.LINETYPE.DOTTED_CROSS,a.db.LINETYPE.SOLID_POINT,a.db.LINETYPE.DOTTED_POINT].includes(t.type)&&(r=!0),!r)return{};const n=ht(t.from,e),s=ht(t.to,e),o=n[0]<=s[0]?1:0,c=n[0]0&&s.forEach((a=>{if(o=a,l.startx===l.stopx){const a=e[t.from],r=e[t.to];o.from=i.e.getMin(a.x-l.width/2,a.x-a.width/2,o.from),o.to=i.e.getMax(r.x+l.width/2,r.x+a.width/2,o.to),o.width=i.e.getMax(o.width,Math.abs(o.to-o.from))-et.labelBoxWidth}else o.from=i.e.getMin(l.startx,o.from),o.to=i.e.getMax(l.stopx,o.to),o.width=i.e.getMax(o.width,l.width)-et.labelBoxWidth})))})),at.activations=[],i.l.debug("Loop type widths:",n),n}(y,g,0,s);K(p),J(p),X(p),G(p);let _=1,v=1;const w=[];y.forEach((function(t){let e,a,r;switch(t.type){case s.db.LINETYPE.NOTE:at.resetVerticalPos(),a=t.noteModel,function(t,e){at.bumpVerticalPos(et.boxMargin),e.height=et.boxMargin,e.starty=at.getVerticalPos();const a=(0,n.g)();a.x=e.startx,a.y=e.starty,a.width=e.width||et.width,a.class="note";const i=t.append("g"),r=V(i,a),s=(0,n.e)();s.x=e.startx,s.y=e.starty,s.width=a.width,s.dy="1em",s.text=e.message,s.class="noteText",s.fontFamily=et.noteFontFamily,s.fontSize=et.noteFontSize,s.fontWeight=et.noteFontWeight,s.anchor=et.noteAlign,s.textMargin=et.noteMargin,s.valign="center";const o=O(i,s),c=Math.round(o.map((t=>(t._groups||t)[0][0].getBBox().height)).reduce(((t,e)=>t+e)));r.attr("height",c+2*et.noteMargin),e.height+=c+2*et.noteMargin,at.bumpVerticalPos(c+2*et.noteMargin),e.stopy=e.starty+c+2*et.noteMargin,e.stopx=e.startx+a.width,at.insert(e.startx,e.starty,e.stopx,e.stopy),at.models.addNote(e)}(p,a);break;case s.db.LINETYPE.ACTIVE_START:at.newActivation(t,p,g);break;case s.db.LINETYPE.ACTIVE_END:!function(t,e){const a=at.endActivation(t);a.starty+18>e&&(a.starty=e-6,e+=12),H(p,a,e,et,lt(t.from.actor).length),at.insert(a.startx,e-10,a.stopx,e)}(t,at.getVerticalPos());break;case s.db.LINETYPE.LOOP_START:dt(E,t,et.boxMargin,et.boxMargin+et.boxTextMargin,(t=>at.newLoop(t)));break;case s.db.LINETYPE.LOOP_END:e=at.endLoop(),U(p,e,"loop",et),at.bumpVerticalPos(e.stopy-at.getVerticalPos()),at.models.addLoop(e);break;case s.db.LINETYPE.RECT_START:dt(E,t,et.boxMargin,et.boxMargin,(t=>at.newLoop(void 0,t.message)));break;case s.db.LINETYPE.RECT_END:e=at.endLoop(),j(p,e),at.models.addLoop(e),at.bumpVerticalPos(e.stopy-at.getVerticalPos());break;case s.db.LINETYPE.OPT_START:dt(E,t,et.boxMargin,et.boxMargin+et.boxTextMargin,(t=>at.newLoop(t)));break;case s.db.LINETYPE.OPT_END:e=at.endLoop(),U(p,e,"opt",et),at.bumpVerticalPos(e.stopy-at.getVerticalPos()),at.models.addLoop(e);break;case s.db.LINETYPE.ALT_START:dt(E,t,et.boxMargin,et.boxMargin+et.boxTextMargin,(t=>at.newLoop(t)));break;case s.db.LINETYPE.ALT_ELSE:dt(E,t,et.boxMargin+et.boxTextMargin,et.boxMargin,(t=>at.addSectionToLoop(t)));break;case s.db.LINETYPE.ALT_END:e=at.endLoop(),U(p,e,"alt",et),at.bumpVerticalPos(e.stopy-at.getVerticalPos()),at.models.addLoop(e);break;case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:dt(E,t,et.boxMargin,et.boxMargin+et.boxTextMargin,(t=>at.newLoop(t))),at.saveVerticalPos();break;case s.db.LINETYPE.PAR_AND:dt(E,t,et.boxMargin+et.boxTextMargin,et.boxMargin,(t=>at.addSectionToLoop(t)));break;case s.db.LINETYPE.PAR_END:e=at.endLoop(),U(p,e,"par",et),at.bumpVerticalPos(e.stopy-at.getVerticalPos()),at.models.addLoop(e);break;case s.db.LINETYPE.AUTONUMBER:_=t.message.start||_,v=t.message.step||v,t.message.visible?s.db.enableSequenceNumbers():s.db.disableSequenceNumbers();break;case s.db.LINETYPE.CRITICAL_START:dt(E,t,et.boxMargin,et.boxMargin+et.boxTextMargin,(t=>at.newLoop(t)));break;case s.db.LINETYPE.CRITICAL_OPTION:dt(E,t,et.boxMargin+et.boxTextMargin,et.boxMargin,(t=>at.addSectionToLoop(t)));break;case s.db.LINETYPE.CRITICAL_END:e=at.endLoop(),U(p,e,"critical",et),at.bumpVerticalPos(e.stopy-at.getVerticalPos()),at.models.addLoop(e);break;case s.db.LINETYPE.BREAK_START:dt(E,t,et.boxMargin,et.boxMargin+et.boxTextMargin,(t=>at.newLoop(t)));break;case s.db.LINETYPE.BREAK_END:e=at.endLoop(),U(p,e,"break",et),at.bumpVerticalPos(e.stopy-at.getVerticalPos()),at.models.addLoop(e);break;default:try{at.resetVerticalPos(),r=t.msgModel,r.starty=at.getVerticalPos(),r.sequenceIndex=_,r.sequenceVisible=s.db.showSequenceNumbers();const e=function(t,e){at.bumpVerticalPos(10);const{startx:a,stopx:r,message:n}=e,s=i.e.splitBreaks(n).length,o=i.u.calculateTextDimensions(n,it(et)),c=o.height/s;let l;e.height+=c,at.bumpVerticalPos(c);let h=o.height-10;const d=o.width;if(a===r){l=at.getVerticalPos()+h,et.rightAngles||(h+=et.boxMargin,l=at.getVerticalPos()+h),h+=30;const t=i.e.getMax(d/2,et.width/2);at.insert(a-t,at.getVerticalPos()-10+h,r+t,at.getVerticalPos()+30+h)}else h+=et.boxMargin,l=at.getVerticalPos()+h,at.insert(a,l-10,r,l);return at.bumpVerticalPos(h),e.height+=h,e.stopy=e.starty+e.height,at.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),l}(0,r);w.push({messageModel:r,lineStartY:e}),at.models.addMessage(r)}catch(t){i.l.error("error while drawing message",t)}}[s.db.LINETYPE.SOLID_OPEN,s.db.LINETYPE.DOTTED_OPEN,s.db.LINETYPE.SOLID,s.db.LINETYPE.DOTTED,s.db.LINETYPE.SOLID_CROSS,s.db.LINETYPE.DOTTED_CROSS,s.db.LINETYPE.SOLID_POINT,s.db.LINETYPE.DOTTED_POINT].includes(t.type)&&(_+=v)})),w.forEach((t=>function(t,e,a,r){const{startx:s,stopx:o,starty:c,message:l,type:h,sequenceIndex:d,sequenceVisible:p}=e,g=i.u.calculateTextDimensions(l,it(et)),u=(0,n.e)();u.x=s,u.y=c+10,u.width=o-s,u.class="messageText",u.dy="1em",u.text=l,u.fontFamily=et.messageFontFamily,u.fontSize=et.messageFontSize,u.fontWeight=et.messageFontWeight,u.anchor=et.messageAlign,u.valign="center",u.textMargin=et.wrapPadding,u.tspan=!1,O(t,u);const x=g.width;let y;s===o?y=et.rightAngles?t.append("path").attr("d",`M ${s},${a} H ${s+i.e.getMax(et.width/2,x/2)} V ${a+25} H ${s}`):t.append("path").attr("d","M "+s+","+a+" C "+(s+60)+","+(a-10)+" "+(s+60)+","+(a+30)+" "+s+","+(a+20)):(y=t.append("line"),y.attr("x1",s),y.attr("y1",a),y.attr("x2",o),y.attr("y2",a)),h===r.db.LINETYPE.DOTTED||h===r.db.LINETYPE.DOTTED_CROSS||h===r.db.LINETYPE.DOTTED_POINT||h===r.db.LINETYPE.DOTTED_OPEN?(y.style("stroke-dasharray","3, 3"),y.attr("class","messageLine1")):y.attr("class","messageLine0");let m="";et.arrowMarkerAbsolute&&(m=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,m=m.replace(/\(/g,"\\("),m=m.replace(/\)/g,"\\)")),y.attr("stroke-width",2),y.attr("stroke","none"),y.style("fill","none"),h!==r.db.LINETYPE.SOLID&&h!==r.db.LINETYPE.DOTTED||y.attr("marker-end","url("+m+"#arrowhead)"),h!==r.db.LINETYPE.SOLID_POINT&&h!==r.db.LINETYPE.DOTTED_POINT||y.attr("marker-end","url("+m+"#filled-head)"),h!==r.db.LINETYPE.SOLID_CROSS&&h!==r.db.LINETYPE.DOTTED_CROSS||y.attr("marker-end","url("+m+"#crosshead)"),(p||et.showSequenceNumbers)&&(y.attr("marker-start","url("+m+"#sequencenumber)"),t.append("text").attr("x",s).attr("y",a+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(d))}(p,t.messageModel,t.lineStartY,s))),et.mirrorActors&&(at.bumpVerticalPos(2*et.boxMargin),st(p,g,x,at.getVerticalPos(),et,y,!0),at.bumpVerticalPos(et.boxMargin),Y(p,at.getVerticalPos())),at.models.boxes.forEach((function(t){t.height=at.getVerticalPos()-t.y,at.insert(t.x,t.y,t.x+t.width,t.height),t.startx=t.x,t.starty=t.y,t.stopx=t.startx+t.width,t.stopy=t.starty+t.height,t.stroke="rgb(0,0,0, 0.5)",W(p,t,et)})),b&&at.bumpVerticalPos(et.boxMargin);const P=ot(p,g,x,d),{bounds:k}=at.getBounds();i.l.debug("For line height fix Querying: #"+e+" .actor-line"),(0,r.td_)("#"+e+" .actor-line").attr("y2",k.stopy);let L=k.stopy-k.starty;L`.actor {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n }\n\n text.actor > tspan {\n fill: ${t.actorTextColor};\n stroke: none;\n }\n\n .actor-line {\n stroke: ${t.actorLineColor};\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ${t.signalColor};\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ${t.signalColor};\n }\n\n #arrowhead path {\n fill: ${t.signalColor};\n stroke: ${t.signalColor};\n }\n\n .sequenceNumber {\n fill: ${t.sequenceNumberColor};\n }\n\n #sequencenumber {\n fill: ${t.signalColor};\n }\n\n #crosshead path {\n fill: ${t.signalColor};\n stroke: ${t.signalColor};\n }\n\n .messageText {\n fill: ${t.signalTextColor};\n stroke: none;\n }\n\n .labelBox {\n stroke: ${t.labelBoxBorderColor};\n fill: ${t.labelBoxBkgColor};\n }\n\n .labelText, .labelText > tspan {\n fill: ${t.labelTextColor};\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ${t.loopTextColor};\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ${t.labelBoxBorderColor};\n fill: ${t.labelBoxBorderColor};\n }\n\n .note {\n //stroke: #decc93;\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n }\n\n .noteText, .noteText > tspan {\n fill: ${t.noteTextColor};\n stroke: none;\n }\n\n .activation0 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .activation1 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .activation2 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .actorPopupMenu {\n position: absolute;\n }\n\n .actorPopupMenuPanel {\n position: absolute;\n fill: ${t.actorBkg};\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));\n}\n .actor-man line {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n }\n .actor-man circle, line {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n stroke-width: 2px;\n }\n`}},38770:(t,e,a)=>{a.d(e,{a:()=>n,b:()=>c,c:()=>o,d:()=>r,e:()=>h,f:()=>s,g:()=>l});var i=a(17967);const r=function(t,e){const a=t.append("rect");if(a.attr("x",e.x),a.attr("y",e.y),a.attr("fill",e.fill),a.attr("stroke",e.stroke),a.attr("width",e.width),a.attr("height",e.height),a.attr("rx",e.rx),a.attr("ry",e.ry),"undefined"!==e.attrs&&null!==e.attrs)for(let t in e.attrs)a.attr(t,e.attrs[t]);return"undefined"!==e.class&&a.attr("class",e.class),a},n=function(t,e){r(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},s=function(t,e){const a=e.text.replace(//gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);const r=i.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(a),i},o=function(t,e,a,r){const n=t.append("image");n.attr("x",e),n.attr("y",a);var s=(0,i.N)(r);n.attr("xlink:href",s)},c=function(t,e,a,r){const n=t.append("use");n.attr("x",e),n.attr("y",a);const s=(0,i.N)(r);n.attr("xlink:href","#"+s)},l=function(){return{x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}},h=function(){return{x:0,y:0,width:100,height:100,fill:void 0,anchor:void 0,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}}}}]); \ No newline at end of file diff --git a/static/js/4403838c26aa2155eb84.woff2 b/static/js/4403838c26aa2155eb84.woff2 deleted file mode 100644 index 5c9863829..000000000 Binary files a/static/js/4403838c26aa2155eb84.woff2 and /dev/null differ diff --git a/static/js/446.js b/static/js/446.js deleted file mode 100644 index 86f80f4ef..000000000 --- a/static/js/446.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[446],{5446:(t,e,i)=>{i.d(e,{diagram:()=>O});var r=i(31460),c=i(74309),n=(i(93628),i(17967),i(27856),function(){var t=function(t,e,i,r){for(i=i||{},r=t.length;r--;i[t[r]]=e);return i},e=[1,4],i=[1,7],r=[1,5],c=[1,9],n=[1,6],s=[2,6],a=[1,16],o=[6,8,14,20,22,24,25,27,29,32,37,40,50,55],l=[8,14,20,22,24,25,27,29,32,37,40],h=[8,13,14,20,22,24,25,27,29,32,37,40],m=[1,26],u=[6,8,14,50,55],y=[8,14,55],p=[1,53],g=[1,52],b=[8,14,30,33,35,38,55],d=[1,67],f=[1,68],k=[1,69],_=[8,14,33,35,42,55],$={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ref:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,openDirective:46,typeDirective:47,closeDirective:48,argDirective:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,ID:54,";":55,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive",54:"ID",55:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[19,5],[19,5],[19,5],[19,5],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[41,0],[41,1],[39,1],[39,1],[39,1],[5,3],[5,5],[46,1],[47,1],[49,1],[48,1],[28,1],[28,1],[4,1],[4,1],[4,1]],performAction:function(t,e,i,r,c,n,s){var a=n.length-1;switch(c){case 3:return n[a];case 4:return n[a-1];case 5:return r.setDirection(n[a-3]),n[a-1];case 7:r.setOptions(n[a-1]),this.$=n[a];break;case 8:n[a-1]+=n[a],this.$=n[a-1];break;case 10:this.$=[];break;case 11:n[a-1].push(n[a]),this.$=n[a-1];break;case 12:this.$=n[a-1];break;case 17:this.$=n[a].trim(),r.setAccTitle(this.$);break;case 18:case 19:this.$=n[a].trim(),r.setAccDescription(this.$);break;case 20:r.addSection(n[a].substr(8)),this.$=n[a].substr(8);break;case 22:r.checkout(n[a]);break;case 23:r.branch(n[a]);break;case 24:r.branch(n[a-2],n[a]);break;case 25:r.cherryPick(n[a],"",void 0);break;case 26:r.cherryPick(n[a-2],"",n[a]);break;case 27:case 29:r.cherryPick(n[a-2],"","");break;case 28:r.cherryPick(n[a],"",n[a-2]);break;case 30:r.merge(n[a],"","","");break;case 31:r.merge(n[a-2],n[a],"","");break;case 32:r.merge(n[a-2],"",n[a],"");break;case 33:r.merge(n[a-2],"","",n[a]);break;case 34:r.merge(n[a-4],n[a],"",n[a-2]);break;case 35:r.merge(n[a-4],"",n[a],n[a-2]);break;case 36:r.merge(n[a-4],"",n[a-2],n[a]);break;case 37:r.merge(n[a-4],n[a-2],n[a],"");break;case 38:r.merge(n[a-4],n[a-2],"",n[a]);break;case 39:r.merge(n[a-4],n[a],n[a-2],"");break;case 40:r.merge(n[a-6],n[a-4],n[a-2],n[a]);break;case 41:r.merge(n[a-6],n[a],n[a-4],n[a-2]);break;case 42:r.merge(n[a-6],n[a-4],n[a],n[a-2]);break;case 43:r.merge(n[a-6],n[a-2],n[a-4],n[a]);break;case 44:r.merge(n[a-6],n[a],n[a-2],n[a-4]);break;case 45:r.merge(n[a-6],n[a-2],n[a],n[a-4]);break;case 46:r.commit(n[a]);break;case 47:r.commit("","",r.commitType.NORMAL,n[a]);break;case 48:r.commit("","",n[a],"");break;case 49:r.commit("","",n[a],n[a-2]);break;case 50:r.commit("","",n[a-2],n[a]);break;case 51:r.commit("",n[a],r.commitType.NORMAL,"");break;case 52:r.commit("",n[a-2],r.commitType.NORMAL,n[a]);break;case 53:r.commit("",n[a],r.commitType.NORMAL,n[a-2]);break;case 54:r.commit("",n[a-2],n[a],"");break;case 55:r.commit("",n[a],n[a-2],"");break;case 56:r.commit("",n[a-4],n[a-2],n[a]);break;case 57:r.commit("",n[a-4],n[a],n[a-2]);break;case 58:r.commit("",n[a-2],n[a-4],n[a]);break;case 59:r.commit("",n[a],n[a-4],n[a-2]);break;case 60:r.commit("",n[a],n[a-2],n[a-4]);break;case 61:r.commit("",n[a-2],n[a],n[a-4]);break;case 62:r.commit(n[a],"",r.commitType.NORMAL,"");break;case 63:r.commit(n[a],"",r.commitType.NORMAL,n[a-2]);break;case 64:r.commit(n[a-2],"",r.commitType.NORMAL,n[a]);break;case 65:r.commit(n[a-2],"",n[a],"");break;case 66:r.commit(n[a],"",n[a-2],"");break;case 67:r.commit(n[a],n[a-2],r.commitType.NORMAL,"");break;case 68:r.commit(n[a-2],n[a],r.commitType.NORMAL,"");break;case 69:r.commit(n[a-4],"",n[a-2],n[a]);break;case 70:r.commit(n[a-4],"",n[a],n[a-2]);break;case 71:r.commit(n[a-2],"",n[a-4],n[a]);break;case 72:r.commit(n[a],"",n[a-4],n[a-2]);break;case 73:r.commit(n[a],"",n[a-2],n[a-4]);break;case 74:r.commit(n[a-2],"",n[a],n[a-4]);break;case 75:r.commit(n[a-4],n[a],n[a-2],"");break;case 76:r.commit(n[a-4],n[a-2],n[a],"");break;case 77:r.commit(n[a-2],n[a],n[a-4],"");break;case 78:r.commit(n[a],n[a-2],n[a-4],"");break;case 79:r.commit(n[a],n[a-4],n[a-2],"");break;case 80:r.commit(n[a-2],n[a-4],n[a],"");break;case 81:r.commit(n[a-4],n[a],r.commitType.NORMAL,n[a-2]);break;case 82:r.commit(n[a-4],n[a-2],r.commitType.NORMAL,n[a]);break;case 83:r.commit(n[a-2],n[a],r.commitType.NORMAL,n[a-4]);break;case 84:r.commit(n[a],n[a-2],r.commitType.NORMAL,n[a-4]);break;case 85:r.commit(n[a],n[a-4],r.commitType.NORMAL,n[a-2]);break;case 86:r.commit(n[a-2],n[a-4],r.commitType.NORMAL,n[a]);break;case 87:r.commit(n[a-6],n[a-4],n[a-2],n[a]);break;case 88:r.commit(n[a-6],n[a-4],n[a],n[a-2]);break;case 89:r.commit(n[a-6],n[a-2],n[a-4],n[a]);break;case 90:r.commit(n[a-6],n[a],n[a-4],n[a-2]);break;case 91:r.commit(n[a-6],n[a-2],n[a],n[a-4]);break;case 92:r.commit(n[a-6],n[a],n[a-2],n[a-4]);break;case 93:r.commit(n[a-4],n[a-6],n[a-2],n[a]);break;case 94:r.commit(n[a-4],n[a-6],n[a],n[a-2]);break;case 95:r.commit(n[a-2],n[a-6],n[a-4],n[a]);break;case 96:r.commit(n[a],n[a-6],n[a-4],n[a-2]);break;case 97:r.commit(n[a-2],n[a-6],n[a],n[a-4]);break;case 98:r.commit(n[a],n[a-6],n[a-2],n[a-4]);break;case 99:r.commit(n[a],n[a-4],n[a-2],n[a-6]);break;case 100:r.commit(n[a-2],n[a-4],n[a],n[a-6]);break;case 101:r.commit(n[a],n[a-2],n[a-4],n[a-6]);break;case 102:r.commit(n[a-2],n[a],n[a-4],n[a-6]);break;case 103:r.commit(n[a-4],n[a-2],n[a],n[a-6]);break;case 104:r.commit(n[a-4],n[a],n[a-2],n[a-6]);break;case 105:r.commit(n[a-2],n[a-4],n[a-6],n[a]);break;case 106:r.commit(n[a],n[a-4],n[a-6],n[a-2]);break;case 107:r.commit(n[a-2],n[a],n[a-6],n[a-4]);break;case 108:r.commit(n[a],n[a-2],n[a-6],n[a-4]);break;case 109:r.commit(n[a-4],n[a-2],n[a-6],n[a]);break;case 110:r.commit(n[a-4],n[a],n[a-6],n[a-2]);break;case 111:this.$="";break;case 112:this.$=n[a];break;case 113:this.$=r.commitType.NORMAL;break;case 114:this.$=r.commitType.REVERSE;break;case 115:this.$=r.commitType.HIGHLIGHT;break;case 118:r.parseDirective("%%{","open_directive");break;case 119:r.parseDirective(n[a],"type_directive");break;case 120:n[a]=n[a].trim().replace(/'/g,'"'),r.parseDirective(n[a],"arg_directive");break;case 121:r.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:e,8:i,14:r,46:8,50:c,55:n},{1:[3]},{3:10,4:2,5:3,6:e,8:i,14:r,46:8,50:c,55:n},{3:11,4:2,5:3,6:e,8:i,14:r,46:8,50:c,55:n},{7:12,8:s,9:[1,13],10:[1,14],11:15,14:a},t(o,[2,124]),t(o,[2,125]),t(o,[2,126]),{47:17,51:[1,18]},{51:[2,118]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:s,11:15,14:a},{9:[1,21]},t(l,[2,10],{12:22,13:[1,23]}),t(h,[2,9]),{9:[1,25],48:24,53:m},t([9,53],[2,119]),{1:[2,3]},{8:[1,27]},{7:28,8:s,11:15,14:a},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:34,20:[1,35],22:[1,36],24:[1,37],25:[1,38],26:39,27:[1,40],29:[1,44],32:[1,43],37:[1,42],40:[1,41]},t(h,[2,8]),t(u,[2,116]),{49:45,52:[1,46]},t(u,[2,121]),{1:[2,4]},{8:[1,47]},t(l,[2,11]),{4:48,8:i,14:r,55:n},t(l,[2,13]),t(y,[2,14]),t(y,[2,15]),t(y,[2,16]),{21:[1,49]},{23:[1,50]},t(y,[2,19]),t(y,[2,20]),t(y,[2,21]),{28:51,34:p,54:g},t(y,[2,111],{41:54,33:[1,57],34:[1,59],35:[1,55],38:[1,56],42:[1,58]}),{28:60,34:p,54:g},{33:[1,61],35:[1,62]},{28:63,34:p,54:g},{48:64,53:m},{53:[2,120]},{1:[2,5]},t(l,[2,12]),t(y,[2,17]),t(y,[2,18]),t(y,[2,22]),t(b,[2,122]),t(b,[2,123]),t(y,[2,46]),{34:[1,65]},{39:66,43:d,44:f,45:k},{34:[1,70]},{34:[1,71]},t(y,[2,112]),t(y,[2,30],{33:[1,72],35:[1,74],38:[1,73]}),{34:[1,75]},{34:[1,76],36:[1,77]},t(y,[2,23],{30:[1,78]}),t(u,[2,117]),t(y,[2,47],{33:[1,80],38:[1,79],42:[1,81]}),t(y,[2,48],{33:[1,83],35:[1,82],42:[1,84]}),t(_,[2,113]),t(_,[2,114]),t(_,[2,115]),t(y,[2,51],{35:[1,85],38:[1,86],42:[1,87]}),t(y,[2,62],{33:[1,90],35:[1,88],38:[1,89]}),{34:[1,91]},{39:92,43:d,44:f,45:k},{34:[1,93]},t(y,[2,25],{35:[1,94]}),{33:[1,95]},{33:[1,96]},{31:[1,97]},{39:98,43:d,44:f,45:k},{34:[1,99]},{34:[1,100]},{34:[1,101]},{34:[1,102]},{34:[1,103]},{34:[1,104]},{39:105,43:d,44:f,45:k},{34:[1,106]},{34:[1,107]},{39:108,43:d,44:f,45:k},{34:[1,109]},t(y,[2,31],{35:[1,111],38:[1,110]}),t(y,[2,32],{33:[1,113],35:[1,112]}),t(y,[2,33],{33:[1,114],38:[1,115]}),{34:[1,116],36:[1,117]},{34:[1,118]},{34:[1,119]},t(y,[2,24]),t(y,[2,49],{33:[1,120],42:[1,121]}),t(y,[2,53],{38:[1,122],42:[1,123]}),t(y,[2,63],{33:[1,125],38:[1,124]}),t(y,[2,50],{33:[1,126],42:[1,127]}),t(y,[2,55],{35:[1,128],42:[1,129]}),t(y,[2,66],{33:[1,131],35:[1,130]}),t(y,[2,52],{38:[1,132],42:[1,133]}),t(y,[2,54],{35:[1,134],42:[1,135]}),t(y,[2,67],{35:[1,137],38:[1,136]}),t(y,[2,64],{33:[1,139],38:[1,138]}),t(y,[2,65],{33:[1,141],35:[1,140]}),t(y,[2,68],{35:[1,143],38:[1,142]}),{39:144,43:d,44:f,45:k},{34:[1,145]},{34:[1,146]},{34:[1,147]},{34:[1,148]},{39:149,43:d,44:f,45:k},t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,29]),{34:[1,150]},{34:[1,151]},{39:152,43:d,44:f,45:k},{34:[1,153]},{39:154,43:d,44:f,45:k},{34:[1,155]},{34:[1,156]},{34:[1,157]},{34:[1,158]},{34:[1,159]},{34:[1,160]},{34:[1,161]},{39:162,43:d,44:f,45:k},{34:[1,163]},{34:[1,164]},{34:[1,165]},{39:166,43:d,44:f,45:k},{34:[1,167]},{39:168,43:d,44:f,45:k},{34:[1,169]},{34:[1,170]},{34:[1,171]},{39:172,43:d,44:f,45:k},{34:[1,173]},t(y,[2,37],{35:[1,174]}),t(y,[2,38],{38:[1,175]}),t(y,[2,36],{33:[1,176]}),t(y,[2,39],{35:[1,177]}),t(y,[2,34],{38:[1,178]}),t(y,[2,35],{33:[1,179]}),t(y,[2,60],{42:[1,180]}),t(y,[2,73],{33:[1,181]}),t(y,[2,61],{42:[1,182]}),t(y,[2,84],{38:[1,183]}),t(y,[2,74],{33:[1,184]}),t(y,[2,83],{38:[1,185]}),t(y,[2,59],{42:[1,186]}),t(y,[2,72],{33:[1,187]}),t(y,[2,58],{42:[1,188]}),t(y,[2,78],{35:[1,189]}),t(y,[2,71],{33:[1,190]}),t(y,[2,77],{35:[1,191]}),t(y,[2,57],{42:[1,192]}),t(y,[2,85],{38:[1,193]}),t(y,[2,56],{42:[1,194]}),t(y,[2,79],{35:[1,195]}),t(y,[2,80],{35:[1,196]}),t(y,[2,86],{38:[1,197]}),t(y,[2,70],{33:[1,198]}),t(y,[2,81],{38:[1,199]}),t(y,[2,69],{33:[1,200]}),t(y,[2,75],{35:[1,201]}),t(y,[2,76],{35:[1,202]}),t(y,[2,82],{38:[1,203]}),{34:[1,204]},{39:205,43:d,44:f,45:k},{34:[1,206]},{34:[1,207]},{39:208,43:d,44:f,45:k},{34:[1,209]},{34:[1,210]},{34:[1,211]},{34:[1,212]},{39:213,43:d,44:f,45:k},{34:[1,214]},{39:215,43:d,44:f,45:k},{34:[1,216]},{34:[1,217]},{34:[1,218]},{34:[1,219]},{34:[1,220]},{34:[1,221]},{34:[1,222]},{39:223,43:d,44:f,45:k},{34:[1,224]},{34:[1,225]},{34:[1,226]},{39:227,43:d,44:f,45:k},{34:[1,228]},{39:229,43:d,44:f,45:k},{34:[1,230]},{34:[1,231]},{34:[1,232]},{39:233,43:d,44:f,45:k},t(y,[2,40]),t(y,[2,42]),t(y,[2,41]),t(y,[2,43]),t(y,[2,45]),t(y,[2,44]),t(y,[2,101]),t(y,[2,102]),t(y,[2,99]),t(y,[2,100]),t(y,[2,104]),t(y,[2,103]),t(y,[2,108]),t(y,[2,107]),t(y,[2,106]),t(y,[2,105]),t(y,[2,110]),t(y,[2,109]),t(y,[2,98]),t(y,[2,97]),t(y,[2,96]),t(y,[2,95]),t(y,[2,93]),t(y,[2,94]),t(y,[2,92]),t(y,[2,91]),t(y,[2,90]),t(y,[2,89]),t(y,[2,87]),t(y,[2,88])],defaultActions:{9:[2,118],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,120],47:[2,5]},parseError:function(t,e){if(!e.recoverable){var i=new Error(t);throw i.hash=e,i}this.trace(t)},parse:function(t){var e=[0],i=[],r=[null],c=[],n=this.table,s="",a=0,o=0,l=c.slice.call(arguments,1),h=Object.create(this.lexer),m={yy:{}};for(var u in this.yy)Object.prototype.hasOwnProperty.call(this.yy,u)&&(m.yy[u]=this.yy[u]);h.setInput(t,m.yy),m.yy.lexer=h,m.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var y=h.yylloc;c.push(y);var p=h.options&&h.options.ranges;"function"==typeof m.yy.parseError?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var g,b,d,f,k,_,$,x,v,w={};;){if(b=e[e.length-1],this.defaultActions[b]?d=this.defaultActions[b]:(null==g&&(v=void 0,"number"!=typeof(v=i.pop()||h.lex()||1)&&(v instanceof Array&&(v=(i=v).pop()),v=this.symbols_[v]||v),g=v),d=n[b]&&n[b][g]),void 0===d||!d.length||!d[0]){var E;for(k in x=[],n[b])this.terminals_[k]&&k>2&&x.push("'"+this.terminals_[k]+"'");E=h.showPosition?"Parse error on line "+(a+1)+":\n"+h.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(a+1)+": Unexpected "+(1==g?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(E,{text:h.match,token:this.terminals_[g]||g,line:h.yylineno,loc:y,expected:x})}if(d[0]instanceof Array&&d.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+g);switch(d[0]){case 1:e.push(g),r.push(h.yytext),c.push(h.yylloc),e.push(d[1]),g=null,o=h.yyleng,s=h.yytext,a=h.yylineno,y=h.yylloc;break;case 2:if(_=this.productions_[d[1]][1],w.$=r[r.length-_],w._$={first_line:c[c.length-(_||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(_||1)].first_column,last_column:c[c.length-1].last_column},p&&(w._$.range=[c[c.length-(_||1)].range[0],c[c.length-1].range[1]]),void 0!==(f=this.performAction.apply(w,[s,o,a,m.yy,d[1],r,c].concat(l))))return f;_&&(e=e.slice(0,-1*_*2),r=r.slice(0,-1*_),c=c.slice(0,-1*_)),e.push(this.productions_[d[1]][0]),r.push(w.$),c.push(w._$),$=n[e[e.length-2]][e[e.length-1]],e.push($);break;case 3:return!0}}return!0}},x={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var c=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===r.length?this.yylloc.first_column:0)+r[r.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[c[0],c[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var i,r,c;if(this.options.backtrack_lexer&&(c={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(c.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var n in c)this[n]=c[n];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,i,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var c=this._currentRules(),n=0;ne[0].length)){if(e=i,r=n,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,c[n])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,c[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,i,r){switch(i){case 0:return this.begin("open_directive"),50;case 1:return this.begin("type_directive"),51;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),53;case 4:return 52;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 34:case 38:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:case 14:break;case 15:return 6;case 16:return 40;case 17:return 33;case 18:return 38;case 19:return 42;case 20:return 43;case 21:return 44;case 22:return 45;case 23:return 35;case 24:return 29;case 25:return 30;case 26:return 37;case 27:return 32;case 28:return 27;case 29:case 30:return 10;case 31:return 9;case 32:return"CARET";case 33:this.begin("options");break;case 35:return 13;case 36:return 36;case 37:this.begin("string");break;case 39:return 34;case 40:return 31;case 41:return 54;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[34,35],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,36,37,40,41,42,43],inclusive:!0}}};function v(){this.yy={}}return $.lexer=x,v.prototype=$,$.Parser=v,new v}());n.parser=n;const s=n;let a=(0,r.c)().gitGraph.mainBranchName,o=(0,r.c)().gitGraph.mainBranchOrder,l={},h=null,m={};m[a]={name:a,order:o};let u={};u[a]=h;let y=a,p="LR",g=0;function b(){return(0,r.y)({length:7})}let d={};const f=function(t){if(t=r.e.sanitizeText(t,(0,r.c)()),void 0===u[t]){let e=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+t+'")');throw e.hash={text:"checkout "+t,token:"checkout "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+t+'"']},e}{y=t;const e=u[y];h=l[e]}};function k(t,e,i){const r=t.indexOf(e);-1===r?t.push(i):t.splice(r,1,i)}function _(t){const e=t.reduce(((t,e)=>t.seq>e.seq?t:e),t[0]);let i="";t.forEach((function(t){i+=t===e?"\t*":"\t|"}));const c=[i,e.id,e.seq];for(let t in u)u[t]===e.id&&c.push(t);if(r.l.debug(c.join(" ")),e.parents&&2==e.parents.length){const i=l[e.parents[0]];k(t,e,i),t.push(l[e.parents[1]])}else{if(0==e.parents.length)return;{const i=l[e.parents];k(t,e,i)}}_(t=function(t,e){const i=Object.create(null);return t.reduce(((t,e)=>{const r=e.id;return i[r]||(i[r]=!0,t.push(e)),t}),[])}(t))}const $=function(){const t=Object.keys(l).map((function(t){return l[t]}));return t.forEach((function(t){r.l.debug(t.id)})),t.sort(((t,e)=>t.seq-e.seq)),t},x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},v={parseDirective:function(t,e,i){r.m.parseDirective(this,t,e,i)},getConfig:()=>(0,r.c)().gitGraph,setDirection:function(t){p=t},setOptions:function(t){r.l.debug("options str",t),t=(t=t&&t.trim())||"{}";try{d=JSON.parse(t)}catch(t){r.l.error("error while parsing gitGraph options",t.message)}},getOptions:function(){return d},commit:function(t,e,i,c){r.l.debug("Entering commit:",t,e,i,c),e=r.e.sanitizeText(e,(0,r.c)()),t=r.e.sanitizeText(t,(0,r.c)()),c=r.e.sanitizeText(c,(0,r.c)());const n={id:e||g+"-"+b(),message:t,seq:g++,type:i||x.NORMAL,tag:c||"",parents:null==h?[]:[h.id],branch:y};h=n,l[n.id]=n,u[y]=n.id,r.l.debug("in pushCommit "+n.id)},branch:function(t,e){if(t=r.e.sanitizeText(t,(0,r.c)()),void 0!==u[t]){let e=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+t+'")');throw e.hash={text:"branch "+t,token:"branch "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+t+'"']},e}u[t]=null!=h?h.id:null,m[t]={name:t,order:e?parseInt(e,10):null},f(t),r.l.debug("in createBranch")},merge:function(t,e,i,c){t=r.e.sanitizeText(t,(0,r.c)()),e=r.e.sanitizeText(e,(0,r.c)());const n=l[u[y]],s=l[u[t]];if(y===t){let e=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},e}if(void 0===n||!n){let e=new Error('Incorrect usage of "merge". Current branch ('+y+")has no commits");throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},e}if(void 0===u[t]){let e=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+t]},e}if(void 0===s||!s){let e=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},e}if(n===s){let e=new Error('Incorrect usage of "merge". Both branches have same head');throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},e}if(e&&void 0!==l[e]){let r=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom Id");throw r.hash={text:"merge "+t+e+i+c,token:"merge "+t+e+i+c,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+t+" "+e+"_UNIQUE "+i+" "+c]},r}const a={id:e||g+"-"+b(),message:"merged branch "+t+" into "+y,seq:g++,parents:[null==h?null:h.id,u[t]],branch:y,type:x.MERGE,customType:i,customId:!!e,tag:c||""};h=a,l[a.id]=a,u[y]=a.id,r.l.debug(u),r.l.debug("in mergeBranch")},cherryPick:function(t,e,i){if(r.l.debug("Entering cherryPick:",t,e,i),t=r.e.sanitizeText(t,(0,r.c)()),e=r.e.sanitizeText(e,(0,r.c)()),i=r.e.sanitizeText(i,(0,r.c)()),!t||void 0===l[t]){let i=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw i.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},i}let c=l[t],n=c.branch;if(c.type===x.MERGE){let i=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw i.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},i}if(!e||void 0===l[e]){if(n===y){let i=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw i.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},i}const s=l[u[y]];if(void 0===s||!s){let i=new Error('Incorrect usage of "cherry-pick". Current branch ('+y+")has no commits");throw i.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},i}const a={id:g+"-"+b(),message:"cherry-picked "+c+" into "+y,seq:g++,parents:[null==h?null:h.id,c.id],branch:y,type:x.CHERRY_PICK,tag:i??"cherry-pick:"+c.id};h=a,l[a.id]=a,u[y]=a.id,r.l.debug(u),r.l.debug("in cherryPick")}},checkout:f,prettyPrint:function(){r.l.debug(l),_([$()[0]])},clear:function(){l={},h=null;let t=(0,r.c)().gitGraph.mainBranchName,e=(0,r.c)().gitGraph.mainBranchOrder;u={},u[t]=null,m={},m[t]={name:t,order:e},y=t,g=0,(0,r.v)()},getBranchesAsObjArray:function(){return Object.values(m).map(((t,e)=>null!==t.order?t:{...t,order:parseFloat(`0.${e}`,10)})).sort(((t,e)=>t.order-e.order)).map((({name:t})=>({name:t})))},getBranches:function(){return u},getCommits:function(){return l},getCommitsArray:$,getCurrentBranch:function(){return y},getDirection:function(){return p},getHead:function(){return h},setAccTitle:r.s,getAccTitle:r.g,getAccDescription:r.a,setAccDescription:r.b,setDiagramTitle:r.r,getDiagramTitle:r.t,commitType:x};let w={};let E={},T={},L=[],M=0;const I=(t,e,i)=>{const c=(0,r.z)().gitGraph,n=t.append("g").attr("class","commit-bullets"),s=t.append("g").attr("class","commit-labels");let a=0;Object.keys(e).sort(((t,i)=>e[t].seq-e[i].seq)).forEach((t=>{const r=e[t],o=E[r.branch].pos,l=a+10;if(i){let t,e=void 0!==r.customType&&""!==r.customType?r.customType:r.type;switch(e){case 0:default:t="commit-normal";break;case 1:t="commit-reverse";break;case 2:t="commit-highlight";break;case 3:t="commit-merge";break;case 4:t="commit-cherry-pick"}if(2===e){const e=n.append("rect");e.attr("x",l-10),e.attr("y",o-10),e.attr("height",20),e.attr("width",20),e.attr("class",`commit ${r.id} commit-highlight${E[r.branch].index%8} ${t}-outer`),n.append("rect").attr("x",l-6).attr("y",o-6).attr("height",12).attr("width",12).attr("class",`commit ${r.id} commit${E[r.branch].index%8} ${t}-inner`)}else if(4===e)n.append("circle").attr("cx",l).attr("cy",o).attr("r",10).attr("class",`commit ${r.id} ${t}`),n.append("circle").attr("cx",l-3).attr("cy",o+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${t}`),n.append("circle").attr("cx",l+3).attr("cy",o+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${t}`),n.append("line").attr("x1",l+3).attr("y1",o+1).attr("x2",l).attr("y2",o-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${t}`),n.append("line").attr("x1",l-3).attr("y1",o+1).attr("x2",l).attr("y2",o-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${t}`);else{const i=n.append("circle");if(i.attr("cx",l),i.attr("cy",o),i.attr("r",3===r.type?9:10),i.attr("class",`commit ${r.id} commit${E[r.branch].index%8}`),3===e){const e=n.append("circle");e.attr("cx",l),e.attr("cy",o),e.attr("r",6),e.attr("class",`commit ${t} ${r.id} commit${E[r.branch].index%8}`)}1===e&&n.append("path").attr("d",`M ${l-5},${o-5}L${l+5},${o+5}M${l-5},${o+5}L${l+5},${o-5}`).attr("class",`commit ${t} ${r.id} commit${E[r.branch].index%8}`)}}if(T[r.id]={x:a+10,y:o},i){const t=4,e=2;if(4!==r.type&&(r.customId&&3===r.type||3!==r.type)&&c.showCommitLabel){const t=s.append("g"),i=t.insert("rect").attr("class","commit-label-bkg"),n=t.append("text").attr("x",a).attr("y",o+25).attr("class","commit-label").text(r.id);let l=n.node().getBBox();if(i.attr("x",a+10-l.width/2-e).attr("y",o+13.5).attr("width",l.width+2*e).attr("height",l.height+2*e),n.attr("x",a+10-l.width/2),c.rotateCommitLabel){let e=-7.5-(l.width+10)/25*9.5,i=10+l.width/25*8.5;t.attr("transform","translate("+e+", "+i+") rotate(-45, "+a+", "+o+")")}}if(r.tag){const i=s.insert("polygon"),c=s.append("circle"),n=s.append("text").attr("y",o-16).attr("class","tag-label").text(r.tag);let l=n.node().getBBox();n.attr("x",a+10-l.width/2);const h=l.height/2,m=o-19.2;i.attr("class","tag-label-bkg").attr("points",`\n ${a-l.width/2-t/2},${m+e}\n ${a-l.width/2-t/2},${m-e}\n ${a+10-l.width/2-t},${m-h-e}\n ${a+10+l.width/2+t},${m-h-e}\n ${a+10+l.width/2+t},${m+h+e}\n ${a+10-l.width/2-t},${m+h+e}`),c.attr("cx",a-l.width/2+t/2).attr("cy",m).attr("r",1.5).attr("class","tag-hole")}}a+=50,a>M&&(M=a)}))},A=(t,e,i=0)=>{const r=t+Math.abs(t-e)/2;if(i>5)return r;if(L.every((t=>Math.abs(t-r)>=10)))return L.push(r),r;const c=Math.abs(t-e);return A(t,e-c/5,i+1)},O={parser:s,db:v,renderer:{draw:function(t,e,i,n){E={},T={},w={},M=0,L=[];const s=(0,r.z)(),a=s.gitGraph;r.l.debug("in gitgraph renderer",t+"\n","id:",e,i),w=n.db.getCommits();const o=n.db.getBranchesAsObjArray();let l=0;o.forEach(((t,e)=>{E[t.name]={pos:l,index:e},l+=50+(a.rotateCommitLabel?40:0)}));const h=(0,c.Ys)(`[id="${e}"]`);I(h,w,!1),a.showBranches&&((t,e)=>{const i=(0,r.z)().gitGraph,c=t.append("g");e.forEach(((t,e)=>{const r=e%8,n=E[t.name].pos,s=c.append("line");s.attr("x1",0),s.attr("y1",n),s.attr("x2",M),s.attr("y2",n),s.attr("class","branch branch"+r),L.push(n);const a=(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");let i=[];i="string"==typeof t?t.split(/\\n|\n|/gi):Array.isArray(t)?t:[];for(const t of i){const i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=t.trim(),e.appendChild(i)}return e})(t.name),o=c.insert("rect"),l=c.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+r);l.node().appendChild(a);let h=a.getBBox();o.attr("class","branchLabelBkg label"+r).attr("rx",4).attr("ry",4).attr("x",-h.width-4-(!0===i.rotateCommitLabel?30:0)).attr("y",-h.height/2+8).attr("width",h.width+18).attr("height",h.height+4),l.attr("transform","translate("+(-h.width-14-(!0===i.rotateCommitLabel?30:0))+", "+(n-h.height/2-1)+")"),o.attr("transform","translate(-19, "+(n-h.height/2)+")")}))})(h,o),((t,e)=>{const i=t.append("g").attr("class","commit-arrows");Object.keys(e).forEach((t=>{const r=e[t];r.parents&&r.parents.length>0&&r.parents.forEach((t=>{((t,e,i,r)=>{const c=T[e.id],n=T[i.id],s=((t,e,i)=>Object.keys(i).filter((r=>i[r].branch===e.branch&&i[r].seq>t.seq&&i[r].seq0)(e,i,r);let a,o="",l="",h=0,m=0,u=E[i.branch].index;if(s){o="A 10 10, 0, 0, 0,",l="A 10 10, 0, 0, 1,",h=10,m=10,u=E[i.branch].index;const t=c.yn.y&&(o="A 20 20, 0, 0, 0,",h=20,m=20,u=E[e.branch].index,a=`M ${c.x} ${c.y} L ${n.x-h} ${c.y} ${o} ${n.x} ${c.y-m} L ${n.x} ${n.y}`),c.y===n.y&&(u=E[e.branch].index,a=`M ${c.x} ${c.y} L ${c.x} ${n.y-h} ${o} ${c.x+m} ${n.y} L ${n.x} ${n.y}`);t.append("path").attr("d",a).attr("class","arrow arrow"+u%8)})(i,e[t],r,e)}))}))})(h,w),I(h,w,!0),r.u.insertTitle(h,"gitTitleText",a.titleTopMargin,n.db.getDiagramTitle()),(0,r.A)(void 0,h,a.diagramPadding,a.useMaxWidth??s.useMaxWidth)}},styles:t=>`\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n ${[0,1,2,3,4,5,6,7].map((e=>`\n .branch-label${e} { fill: ${t["gitBranchLabel"+e]}; }\n .commit${e} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; }\n .commit-highlight${e} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; }\n .label${e} { fill: ${t["git"+e]}; }\n .arrow${e} { stroke: ${t["git"+e]}; }\n `)).join("\n")}\n\n .branch {\n stroke-width: 1;\n stroke: ${t.lineColor};\n stroke-dasharray: 2;\n }\n .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}\n .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }\n .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}\n .tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }\n .tag-hole { fill: ${t.textColor}; }\n\n .commit-merge {\n stroke: ${t.primaryColor};\n fill: ${t.primaryColor};\n }\n .commit-reverse {\n stroke: ${t.primaryColor};\n fill: ${t.primaryColor};\n stroke-width: 3;\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ${t.primaryColor};\n fill: ${t.primaryColor};\n }\n\n .arrow { stroke-width: 8; stroke-linecap: round; fill: none}\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n`}}}]); \ No newline at end of file diff --git a/static/js/4504b1fe216fbf391c33.eot b/static/js/4504b1fe216fbf391c33.eot deleted file mode 100644 index 8588ac304..000000000 Binary files a/static/js/4504b1fe216fbf391c33.eot and /dev/null differ diff --git a/static/js/451.js b/static/js/451.js deleted file mode 100644 index 4ed544f32..000000000 --- a/static/js/451.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[451],{29451:(n,e,t)=>{t.d(e,{bK:()=>Se});var r=t(70870),o=t(66749),i=t(43402),u=t(62002),a=t(27961),c=t(43836),s=t(96446),f=t(45625);class d{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,e=n._prev;if(e!==n)return v(e),e}enqueue(n){var e=this._sentinel;n._prev&&n._next&&v(n),n._next=e._next,e._next._prev=n,e._next=n,n._prev=e}toString(){for(var n=[],e=this._sentinel,t=e._prev;t!==e;)n.push(JSON.stringify(t,h)),t=t._prev;return"["+n.join(", ")+"]"}}function v(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function h(n,e){if("_next"!==n&&"_prev"!==n)return e}var Z=u.Z(1);function l(n,e,t,o,i){var u=i?[]:void 0;return r.Z(n.inEdges(o.v),(function(r){var o=n.edge(r),a=n.node(r.v);i&&u.push({v:r.v,w:r.w}),a.out-=o,g(e,t,a)})),r.Z(n.outEdges(o.v),(function(r){var o=n.edge(r),i=r.w,u=n.node(i);u.in-=o,g(e,t,u)})),n.removeNode(o.v),u}function g(n,e,t){t.out?t.in?n[t.out-t.in+e].enqueue(t):n[n.length-1].enqueue(t):n[0].enqueue(t)}function p(n){var e="greedy"===n.graph().acyclicer?function(n,e){if(n.nodeCount()<=1)return[];var t=function(n,e){var t=new f.k,o=0,i=0;r.Z(n.nodes(),(function(n){t.setNode(n,{v:n,in:0,out:0})})),r.Z(n.edges(),(function(n){var r=t.edge(n.v,n.w)||0,u=e(n),a=r+u;t.setEdge(n.v,n.w,a),i=Math.max(i,t.node(n.v).out+=u),o=Math.max(o,t.node(n.w).in+=u)}));var u=s.Z(i+o+3).map((function(){return new d})),a=o+1;return r.Z(t.nodes(),(function(n){g(u,a,t.node(n))})),{graph:t,buckets:u,zeroIdx:a}}(n,e||Z),o=function(n,e,t){for(var r,o=[],i=e[e.length-1],u=e[0];n.nodeCount();){for(;r=u.dequeue();)l(n,e,t,r);for(;r=i.dequeue();)l(n,e,t,r);if(n.nodeCount())for(var a=e.length-2;a>0;--a)if(r=e[a].dequeue()){o=o.concat(l(n,e,t,r,!0));break}}return o}(t.graph,t.buckets,t.zeroIdx);return a.Z(c.Z(o,(function(e){return n.outEdges(e.v,e.w)})))}(n,function(n){return function(e){return n.edge(e).weight}}(n)):function(n){var e=[],t={},o={};return r.Z(n.nodes(),(function u(a){i.Z(o,a)||(o[a]=!0,t[a]=!0,r.Z(n.outEdges(a),(function(n){i.Z(t,n.w)?e.push(n):u(n.w)})),delete t[a])})),e}(n);r.Z(e,(function(e){var t=n.edge(e);n.removeEdge(e),t.forwardName=e.name,t.reversed=!0,n.setEdge(e.w,e.v,t,o.Z("rev"))}))}var b=t(45365),w=t(74752),y=t(79651);const m=function(n,e,t){(void 0!==t&&!(0,y.Z)(n[e],t)||void 0===t&&!(e in n))&&(0,w.Z)(n,e,t)};var _=t(35381),j=t(91050),E=t(12701),k=t(87215),x=t(61585),N=t(84732),O=t(27771),C=t(836),I=t(16706),L=t(73234),M=t(77226),A=t(37514),P=t(77212);const S=function(n,e){if(("constructor"!==e||"function"!=typeof n[e])&&"__proto__"!=e)return n[e]};var R=t(31899),T=t(57590);const F=function(n,e,t,r,o,i,u){var a,c=S(n,t),s=S(e,t),f=u.get(s);if(f)m(n,t,f);else{var d=i?i(c,s,t+"",n,e,u):void 0,v=void 0===d;if(v){var h=(0,O.Z)(s),Z=!h&&(0,I.Z)(s),l=!h&&!Z&&(0,P.Z)(s);d=s,h||Z||l?(0,O.Z)(c)?d=c:(0,C.Z)(c)?d=(0,k.Z)(c):Z?(v=!1,d=(0,j.Z)(s,!0)):l?(v=!1,d=(0,E.Z)(s,!0)):d=[]:(0,A.Z)(s)||(0,N.Z)(s)?(d=c,(0,N.Z)(c)?(a=c,d=(0,R.Z)(a,(0,T.Z)(a))):(0,M.Z)(c)&&!(0,L.Z)(c)||(d=(0,x.Z)(s))):v=!1}v&&(u.set(s,d),o(d,s,r,i,u),u.delete(s)),m(n,t,d)}},D=function n(e,t,r,o,i){e!==t&&(0,_.Z)(t,(function(u,a){if(i||(i=new b.Z),(0,M.Z)(u))F(e,t,a,r,n,o,i);else{var c=o?o(S(e,a),u,a+"",e,t,i):void 0;void 0===c&&(c=u),m(e,a,c)}}),T.Z)};var z=t(69581),B=t(50439);const G=(V=function(n,e,t){D(n,e,t)},(0,z.Z)((function(n,e){var t=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=V.length>3&&"function"==typeof o?(r--,o):void 0,i&&(0,B.Z)(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),n=Object(n);++te};var K=t(69203);const W=function(n){return n&&n.length?$(n,K.Z,J):void 0},H=function(n){var e=null==n?0:n.length;return e?n[e-1]:void 0};var Q=t(2693),X=t(77058);const nn=function(n,e){var t={};return e=(0,X.Z)(e,3),(0,Q.Z)(n,(function(n,r,o){(0,w.Z)(t,r,e(n,r,o))})),t};var en=t(49360);const tn=function(n,e){return nMath.abs(u)*s?(a<0&&(s=-s),t=s*u/a,r=s):(u<0&&(c=-c),t=c,r=c*a/u),{x:o+t,y:i+r}}function fn(n){var e=c.Z(s.Z(vn(n)+1),(function(){return[]}));return r.Z(n.nodes(),(function(t){var r=n.node(t),o=r.rank;en.Z(o)||(e[o][r.order]=t)})),e}function dn(n,e,t,r){var o={width:0,height:0};return arguments.length>=4&&(o.rank=t,o.order=r),an(n,"border",o,e)}function vn(n){return W(c.Z(n.nodes(),(function(e){var t=n.node(e).rank;if(!en.Z(t))return t})))}function hn(n,e){var t=un();try{return e()}finally{console.log(n+" time: "+(un()-t)+"ms")}}function Zn(n,e){return e()}function ln(n,e,t,r,o,i){var u={width:0,height:0,rank:i,borderType:e},a=o[e][i-1],c=an(n,"border",u,t);o[e][i]=c,n.setParent(c,r),a&&n.setEdge(a,c,{weight:1})}function gn(n){r.Z(n.nodes(),(function(e){pn(n.node(e))})),r.Z(n.edges(),(function(e){pn(n.edge(e))}))}function pn(n){var e=n.width;n.width=n.height,n.height=e}function bn(n){n.y=-n.y}function wn(n){var e=n.x;n.x=n.y,n.y=e}const yn=function(n,e){return n&&n.length?$(n,(0,X.Z)(e,2),tn):void 0};function mn(n){var e={};r.Z(n.sources(),(function t(r){var o=n.node(r);if(i.Z(e,r))return o.rank;e[r]=!0;var u=rn(c.Z(n.outEdges(r),(function(e){return t(e.w)-n.edge(e).minlen})));return u!==Number.POSITIVE_INFINITY&&null!=u||(u=0),o.rank=u}))}function _n(n,e){return n.node(e.w).rank-n.node(e.v).rank-n.edge(e).minlen}function jn(n){var e,t,r=new f.k({directed:!1}),o=n.nodes()[0],i=n.nodeCount();for(r.setNode(o,{});En(r,n)-1?r[o?n[i]:i]:void 0});var An,Pn=t(2489);u.Z(1),u.Z(1),t(8448),t(96155),t(13243),t(18533),(0,t(54193).Z)("length"),RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Sn="\\ud800-\\udfff",Rn="["+Sn+"]",Tn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Fn="\\ud83c[\\udffb-\\udfff]",Dn="[^"+Sn+"]",zn="(?:\\ud83c[\\udde6-\\uddff]){2}",Bn="[\\ud800-\\udbff][\\udc00-\\udfff]",Gn="(?:"+Tn+"|"+Fn+")?",Vn="[\\ufe0e\\ufe0f]?",Un=Vn+Gn+"(?:\\u200d(?:"+[Dn,zn,Bn].join("|")+")"+Vn+Gn+")*",qn="(?:"+[Dn+Tn+"?",Tn,zn,Bn,Rn].join("|")+")";function Yn(n,e,t){O.Z(e)||(e=[e]);var o=(n.isDirected()?n.successors:n.neighbors).bind(n),i=[],u={};return r.Z(e,(function(e){if(!n.hasNode(e))throw new Error("Graph does not have node: "+e);$n(n,e,"post"===t,u,o,i)})),i}function $n(n,e,t,o,u,a){i.Z(o,e)||(o[e]=!0,t||a.push(e),r.Z(u(e),(function(e){$n(n,e,t,o,u,a)})),t&&a.push(e))}function Jn(n){n=function(n){var e=(new f.k).setGraph(n.graph());return r.Z(n.nodes(),(function(t){e.setNode(t,n.node(t))})),r.Z(n.edges(),(function(t){var r=e.edge(t.v,t.w)||{weight:0,minlen:1},o=n.edge(t);e.setEdge(t.v,t.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})})),e}(n),mn(n);var e,t=jn(n);for(Hn(t),Kn(t,n);e=Xn(t);)ee(t,n,e,ne(t,n,e))}function Kn(n,e){var t=function(n,e){return Yn(n,e,"post")}(n,n.nodes());t=t.slice(0,t.length-1),r.Z(t,(function(t){!function(n,e,t){var r=n.node(t).parent;n.edge(t,r).cutvalue=Wn(n,e,t)}(n,e,t)}))}function Wn(n,e,t){var o=n.node(t).parent,i=!0,u=e.edge(t,o),a=0;return u||(i=!1,u=e.edge(o,t)),a=u.weight,r.Z(e.nodeEdges(t),(function(r){var u,c,s=r.v===t,f=s?r.w:r.v;if(f!==o){var d=s===i,v=e.edge(r).weight;if(a+=d?v:-v,u=t,c=f,n.hasEdge(u,c)){var h=n.edge(t,f).cutvalue;a+=d?-h:h}}})),a}function Hn(n,e){arguments.length<2&&(e=n.nodes()[0]),Qn(n,{},1,e)}function Qn(n,e,t,o,u){var a=t,c=n.node(o);return e[o]=!0,r.Z(n.neighbors(o),(function(r){i.Z(e,r)||(t=Qn(n,e,t,r,o))})),c.low=a,c.lim=t++,u?c.parent=u:delete c.parent,t}function Xn(n){return Mn(n.edges(),(function(e){return n.edge(e).cutvalue<0}))}function ne(n,e,t){var r=t.v,o=t.w;e.hasEdge(r,o)||(r=t.w,o=t.v);var i=n.node(r),u=n.node(o),a=i,c=!1;i.lim>u.lim&&(a=u,c=!0);var s=Pn.Z(e.edges(),(function(e){return c===te(0,n.node(e.v),a)&&c!==te(0,n.node(e.w),a)}));return yn(s,(function(n){return _n(e,n)}))}function ee(n,e,t,o){var i=t.v,u=t.w;n.removeEdge(i,u),n.setEdge(o.v,o.w,{}),Hn(n),Kn(n,e),function(n,e){var t=Mn(n.nodes(),(function(n){return!e.node(n).parent})),o=function(n,e){return Yn(n,e,"pre")}(n,t);o=o.slice(1),r.Z(o,(function(t){var r=n.node(t).parent,o=e.edge(t,r),i=!1;o||(o=e.edge(r,t),i=!0),e.node(t).rank=e.node(r).rank+(i?o.minlen:-o.minlen)}))}(n,e)}function te(n,e,t){return t.low<=e.lim&&e.lim<=t.lim}function re(n){switch(n.graph().ranker){case"network-simplex":default:!function(n){Jn(n)}(n);break;case"tight-tree":!function(n){mn(n),jn(n)}(n);break;case"longest-path":oe(n)}}RegExp(Fn+"(?="+Fn+")|"+qn+Un,"g"),new Error,t(95351),Jn.initLowLimValues=Hn,Jn.initCutValues=Kn,Jn.calcCutValue=Wn,Jn.leaveEdge=Xn,Jn.enterEdge=ne,Jn.exchangeEdges=ee;var oe=mn;var ie=t(64657),ue=t(44283);function ae(n){var e=an(n,"root",{},"_root"),t=function(n){var e={};function t(o,i){var u=n.children(o);u&&u.length&&r.Z(u,(function(n){t(n,i+1)})),e[o]=i}return r.Z(n.children(),(function(n){t(n,1)})),e}(n),o=W(ie.Z(t))-1,i=2*o+1;n.graph().nestingRoot=e,r.Z(n.edges(),(function(e){n.edge(e).minlen*=i}));var u=function(n){return ue.Z(n.edges(),(function(e,t){return e+n.edge(t).weight}),0)}(n)+1;r.Z(n.children(),(function(r){ce(n,e,i,u,o,t,r)})),n.graph().nodeRankFactor=i}function ce(n,e,t,o,i,u,a){var c=n.children(a);if(c.length){var s=dn(n,"_bt"),f=dn(n,"_bb"),d=n.node(a);n.setParent(s,a),d.borderTop=s,n.setParent(f,a),d.borderBottom=f,r.Z(c,(function(r){ce(n,e,t,o,i,u,r);var c=n.node(r),d=c.borderTop?c.borderTop:r,v=c.borderBottom?c.borderBottom:r,h=c.borderTop?o:2*o,Z=d!==v?1:i-u[a]+1;n.setEdge(s,d,{weight:h,minlen:Z,nestingEdge:!0}),n.setEdge(v,f,{weight:h,minlen:Z,nestingEdge:!0})})),n.parent(a)||n.setEdge(e,s,{weight:0,minlen:i+u[a]})}else a!==e&&n.setEdge(e,a,{weight:0,minlen:t})}var se=t(49103);const fe=function(n){return(0,se.Z)(n,5)};var de=t(72954);const ve=function(n,e){return function(n,e,t){for(var r=-1,o=n.length,i=e.length,u={};++re||i&&u&&c&&!a&&!s||r&&u&&c||!t&&c||!o)return 1;if(!r&&!i&&!s&&n=a?c:c*("desc"==t[r]?-1:1)}return n.index-e.index}(n,e,t)}))},ye=(0,z.Z)((function(n,e){if(null==n)return[];var t=e.length;return t>1&&(0,B.Z)(n,e[0],e[1])?e=[]:t>2&&(0,B.Z)(e[0],e[1],e[2])&&(e=[e[0]]),we(n,(0,he.Z)(e,1),[])}));function me(n,e){for(var t=0,r=1;r0;)e%2&&(t+=f[e+1]),f[e=e-1>>1]+=n.weight;d+=n.weight*t}))),d}function je(n,e){var t,o=function(n,e){var t={lhs:[],rhs:[]};return r.Z(n,(function(n){var e;e=n,i.Z(e,"barycenter")?t.lhs.push(n):t.rhs.push(n)})),t}(n),u=o.lhs,c=ye(o.rhs,(function(n){return-n.i})),s=[],f=0,d=0,v=0;u.sort((t=!!e,function(n,e){return n.barycentere.barycenter?1:t?e.i-n.i:n.i-e.i})),v=Ee(s,c,v),r.Z(u,(function(n){v+=n.vs.length,s.push(n.vs),f+=n.barycenter*n.weight,d+=n.weight,v=Ee(s,c,v)}));var h={vs:a.Z(s)};return d&&(h.barycenter=f/d,h.weight=d),h}function Ee(n,e,t){for(var r;e.length&&(r=H(e)).i<=t;)e.pop(),n.push(r.vs),t++;return t}function ke(n,e,t,o){var u=n.children(e),s=n.node(e),f=s?s.borderLeft:void 0,d=s?s.borderRight:void 0,v={};f&&(u=Pn.Z(u,(function(n){return n!==f&&n!==d})));var h=function(n,e){return c.Z(e,(function(e){var t=n.inEdges(e);if(t.length){var r=ue.Z(t,(function(e,t){var r=n.edge(t),o=n.node(t.v);return{sum:e.sum+r.weight*o.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:r.sum/r.weight,weight:r.weight}}return{v:e}}))}(n,u);r.Z(h,(function(e){if(n.children(e.v).length){var r=ke(n,e.v,t,o);v[e.v]=r,i.Z(r,"barycenter")&&(u=e,a=r,en.Z(u.barycenter)?(u.barycenter=a.barycenter,u.weight=a.weight):(u.barycenter=(u.barycenter*u.weight+a.barycenter*a.weight)/(u.weight+a.weight),u.weight+=a.weight))}var u,a}));var Z=function(n,e){var t={};return r.Z(n,(function(n,e){var r=t[n.v]={indegree:0,in:[],out:[],vs:[n.v],i:e};en.Z(n.barycenter)||(r.barycenter=n.barycenter,r.weight=n.weight)})),r.Z(e.edges(),(function(n){var e=t[n.v],r=t[n.w];en.Z(e)||en.Z(r)||(r.indegree++,e.out.push(t[n.w]))})),function(n){var e=[];function t(n){return function(e){var t,r,o,i;e.merged||(en.Z(e.barycenter)||en.Z(n.barycenter)||e.barycenter>=n.barycenter)&&(r=e,o=0,i=0,(t=n).weight&&(o+=t.barycenter*t.weight,i+=t.weight),r.weight&&(o+=r.barycenter*r.weight,i+=r.weight),t.vs=r.vs.concat(t.vs),t.barycenter=o/i,t.weight=i,t.i=Math.min(r.i,t.i),r.merged=!0)}}function o(e){return function(t){t.in.push(e),0==--t.indegree&&n.push(t)}}for(;n.length;){var i=n.pop();e.push(i),r.Z(i.in.reverse(),t(i)),r.Z(i.out,o(i))}return c.Z(Pn.Z(e,(function(n){return!n.merged})),(function(n){return U.Z(n,["vs","i","barycenter","weight"])}))}(Pn.Z(t,(function(n){return!n.indegree})))}(h,t);!function(n,e){r.Z(n,(function(n){n.vs=a.Z(n.vs.map((function(n){return e[n]?e[n].vs:n})))}))}(Z,v);var l=je(Z,o);if(f&&(l.vs=a.Z([f,l.vs,d]),n.predecessors(f).length)){var g=n.node(n.predecessors(f)[0]),p=n.node(n.predecessors(d)[0]);i.Z(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+g.order+p.order)/(l.weight+2),l.weight+=2}return l}function xe(n,e,t){return c.Z(e,(function(e){return function(n,e,t){var u=function(n){for(var e;n.hasNode(e=o.Z("_root")););return e}(n),a=new f.k({compound:!0}).setGraph({root:u}).setDefaultNodeLabel((function(e){return n.node(e)}));return r.Z(n.nodes(),(function(o){var c=n.node(o),s=n.parent(o);(c.rank===e||c.minRank<=e&&e<=c.maxRank)&&(a.setNode(o),a.setParent(o,s||u),r.Z(n[t](o),(function(e){var t=e.v===o?e.w:e.v,r=a.edge(t,o),i=en.Z(r)?0:r.weight;a.setEdge(t,o,{weight:n.edge(e).weight+i})})),i.Z(c,"minRank")&&a.setNode(o,{borderLeft:c.borderLeft[e],borderRight:c.borderRight[e]}))})),a}(n,e,t)}))}function Ne(n,e){var t=new f.k;r.Z(n,(function(n){var o=n.graph().root,i=ke(n,o,t,e);r.Z(i.vs,(function(e,t){n.node(e).order=t})),function(n,e,t){var o,i={};r.Z(t,(function(t){for(var r,u,a=n.parent(t);a;){if((r=n.parent(a))?(u=i[r],i[r]=a):(u=o,o=a),u&&u!==a)return void e.setEdge(u,a);a=r}}))}(n,t,i.vs)}))}function Oe(n,e){r.Z(e,(function(e){r.Z(e,(function(e,t){n.node(e).order=t}))}))}var Ce=t(68882);const Ie=function(n,e){return n&&(0,Q.Z)(n,(0,Ce.Z)(e))},Le=function(n,e){return null==n?n:(0,_.Z)(n,(0,Ce.Z)(e),T.Z)};function Me(n,e,t){if(e>t){var r=e;e=t,t=r}var o=n[e];o||(n[e]=o={}),o[t]=!0}function Ae(n,e,t){if(e>t){var r=e;e=t,t=r}return i.Z(n[e],t)}function Pe(n){var e,t=fn(n),o=G(function(n,e){var t={};return ue.Z(e,(function(e,o){var i=0,u=0,a=e.length,c=H(o);return r.Z(o,(function(e,s){var f=function(n,e){if(n.node(e).dummy)return Mn(n.predecessors(e),(function(e){return n.node(e).dummy}))}(n,e),d=f?n.node(f).order:a;(f||e===c)&&(r.Z(o.slice(u,s+1),(function(e){r.Z(n.predecessors(e),(function(r){var o=n.node(r),u=o.order;!(ua)&&Me(t,e,c)}))}))}return ue.Z(e,(function(e,t){var i,u=-1,a=0;return r.Z(t,(function(r,c){if("border"===n.node(r).dummy){var s=n.predecessors(r);s.length&&(i=n.node(s[0]).order,o(t,a,c,u,i),a=c,u=i)}o(t,a,t.length,i,e.length)})),t})),t}(n,t)),u={};r.Z(["u","d"],(function(a){e="u"===a?t:ie.Z(t).reverse(),r.Z(["l","r"],(function(t){"r"===t&&(e=c.Z(e,(function(n){return ie.Z(n).reverse()})));var s=("u"===a?n.predecessors:n.successors).bind(n),d=function(n,e,t,o){var i={},u={},a={};return r.Z(e,(function(n){r.Z(n,(function(n,e){i[n]=n,u[n]=n,a[n]=e}))})),r.Z(e,(function(n){var e=-1;r.Z(n,(function(n){var r=o(n);if(r.length){r=ye(r,(function(n){return a[n]}));for(var c=(r.length-1)/2,s=Math.floor(c),f=Math.ceil(c);s<=f;++s){var d=r[s];u[n]===n&&ec||s>e[o].lim));for(i=o,o=r;(o=n.parent(o))!==i;)a.push(o);return{path:u.concat(a.reverse()),lca:i}}(n,e,o.v,o.w),u=i.path,a=i.lca,c=0,s=u[c],f=!0;t!==o.w;){if(r=n.node(t),f){for(;(s=u[c])!==a&&n.node(s).maxRank=2);var h=me(n,u=fn(n));h{t.d(e,{k:()=>I});var r=t(43402),o=t(62002),i=t(73234),u=t(17179),a=t(2489),c=t(79697),s=t(70870),f=t(49360),d=t(25140),v=t(69581),h=t(45084),Z=t(21692);const l=function(n){return n!=n},g=function(n,e){return!(null==n||!n.length)&&function(n,e,t){return e==e?function(n,e,t){for(var r=t-1,o=n.length;++r-1},p=function(n,e,t){for(var r=-1,o=null==n?0:n.length;++r=200){var s=e?null:_(n);if(s)return(0,y.Z)(s);u=!1,o=b.Z,c=new h.Z}else c=e?[]:a;n:for(;++r1?r.setNode(n,e):r.setNode(n)})),this}setNode(n,e){return r.Z(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=e),this):(this._nodes[n]=arguments.length>1?e:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=O,this._children[n]={},this._children[O][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)}node(n){return this._nodes[n]}hasNode(n){return r.Z(this._nodes,n)}removeNode(n){var e=this;if(r.Z(this._nodes,n)){var t=function(n){e.removeEdge(e._edgeObjs[n])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],s.Z(this.children(n),(function(n){e.setParent(n)})),delete this._children[n]),s.Z(u.Z(this._in[n]),t),delete this._in[n],delete this._preds[n],s.Z(u.Z(this._out[n]),t),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this}setParent(n,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(f.Z(e))e=O;else{for(var t=e+="";!f.Z(t);t=this.parent(t))if(t===n)throw new Error("Setting "+e+" as parent of "+n+" would create a cycle");this.setNode(e)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=e,this._children[e][n]=!0,this}_removeFromParentsChildList(n){delete this._children[this._parent[n]][n]}parent(n){if(this._isCompound){var e=this._parent[n];if(e!==O)return e}}children(n){if(f.Z(n)&&(n=O),this._isCompound){var e=this._children[n];if(e)return u.Z(e)}else{if(n===O)return this.nodes();if(this.hasNode(n))return[]}}predecessors(n){var e=this._preds[n];if(e)return u.Z(e)}successors(n){var e=this._sucs[n];if(e)return u.Z(e)}neighbors(n){var e=this.predecessors(n);if(e)return E(e,this.successors(n))}isLeaf(n){return 0===(this.isDirected()?this.successors(n):this.neighbors(n)).length}filterNodes(n){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var t=this;s.Z(this._nodes,(function(t,r){n(r)&&e.setNode(r,t)})),s.Z(this._edgeObjs,(function(n){e.hasNode(n.v)&&e.hasNode(n.w)&&e.setEdge(n,t.edge(n))}));var r={};function o(n){var i=t.parent(n);return void 0===i||e.hasNode(i)?(r[n]=i,i):i in r?r[i]:o(i)}return this._isCompound&&s.Z(e.nodes(),(function(n){e.setParent(n,o(n))})),e}setDefaultEdgeLabel(n){return i.Z(n)||(n=o.Z(n)),this._defaultEdgeLabelFn=n,this}edgeCount(){return this._edgeCount}edges(){return k.Z(this._edgeObjs)}setPath(n,e){var t=this,r=arguments;return x.Z(n,(function(n,o){return r.length>1?t.setEdge(n,o,e):t.setEdge(n,o),o})),this}setEdge(){var n,e,t,o,i=!1,u=arguments[0];"object"==typeof u&&null!==u&&"v"in u?(n=u.v,e=u.w,t=u.name,2===arguments.length&&(o=arguments[1],i=!0)):(n=u,e=arguments[1],t=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),n=""+n,e=""+e,f.Z(t)||(t=""+t);var a=A(this._isDirected,n,e,t);if(r.Z(this._edgeLabels,a))return i&&(this._edgeLabels[a]=o),this;if(!f.Z(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(e),this._edgeLabels[a]=i?o:this._defaultEdgeLabelFn(n,e,t);var c=function(n,e,t,r){var o=""+e,i=""+t;if(!n&&o>i){var u=o;o=i,i=u}var a={v:o,w:i};return r&&(a.name=r),a}(this._isDirected,n,e,t);return n=c.v,e=c.w,Object.freeze(c),this._edgeObjs[a]=c,L(this._preds[e],n),L(this._sucs[n],e),this._in[e][a]=c,this._out[n][a]=c,this._edgeCount++,this}edge(n,e,t){var r=1===arguments.length?P(this._isDirected,arguments[0]):A(this._isDirected,n,e,t);return this._edgeLabels[r]}hasEdge(n,e,t){var o=1===arguments.length?P(this._isDirected,arguments[0]):A(this._isDirected,n,e,t);return r.Z(this._edgeLabels,o)}removeEdge(n,e,t){var r=1===arguments.length?P(this._isDirected,arguments[0]):A(this._isDirected,n,e,t),o=this._edgeObjs[r];return o&&(n=o.v,e=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],M(this._preds[e],n),M(this._sucs[n],e),delete this._in[e][r],delete this._out[n][r],this._edgeCount--),this}inEdges(n,e){var t=this._in[n];if(t){var r=k.Z(t);return e?a.Z(r,(function(n){return n.v===e})):r}}outEdges(n,e){var t=this._out[n];if(t){var r=k.Z(t);return e?a.Z(r,(function(n){return n.w===e})):r}}nodeEdges(n,e){var t=this.inEdges(n,e);if(t)return t.concat(this.outEdges(n,e))}}function L(n,e){n[e]?n[e]++:n[e]=1}function M(n,e){--n[e]||delete n[e]}function A(n,e,t,r){var o=""+e,i=""+t;if(!n&&o>i){var u=o;o=i,i=u}return o+C+i+C+(f.Z(r)?N:r)}function P(n,e){return A(n,e.v,e.w,e.name)}I.prototype._nodeCount=0,I.prototype._edgeCount=0},45625:(n,e,t)=>{t.d(e,{k:()=>r.k});var r=t(95351)},45084:(n,e,t)=>{t.d(e,{Z:()=>i});var r=t(80520);function o(n){var e=-1,t=null==n?0:n.length;for(this.__data__=new r.Z;++e{t.d(e,{Z:()=>a});var r=t(42536);var o=t(86183),i=t(80520);function u(n){var e=this.__data__=new r.Z(n);this.size=e.size}u.prototype.clear=function(){this.__data__=new r.Z,this.size=0},u.prototype.delete=function(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t},u.prototype.get=function(n){return this.__data__.get(n)},u.prototype.has=function(n){return this.__data__.has(n)},u.prototype.set=function(n,e){var t=this.__data__;if(t instanceof r.Z){var u=t.__data__;if(!o.Z||u.length<199)return u.push([n,e]),this.size=++t.size,this;t=this.__data__=new i.Z(u)}return t.set(n,e),this.size=t.size,this};const a=u},84073:(n,e,t)=>{t.d(e,{Z:()=>r});const r=t(66092).Z.Uint8Array},76579:(n,e,t)=>{t.d(e,{Z:()=>r});const r=function(n,e){for(var t=-1,r=null==n?0:n.length;++t{t.d(e,{Z:()=>r});const r=function(n,e){for(var t=-1,r=null==n?0:n.length,o=0,i=[];++t{t.d(e,{Z:()=>s});var r=t(84732),o=t(27771),i=t(16706),u=t(56009),a=t(77212),c=Object.prototype.hasOwnProperty;const s=function(n,e){var t=(0,o.Z)(n),s=!t&&(0,r.Z)(n),f=!t&&!s&&(0,i.Z)(n),d=!t&&!s&&!f&&(0,a.Z)(n),v=t||s||f||d,h=v?function(n,e){for(var t=-1,r=Array(n);++t{t.d(e,{Z:()=>r});const r=function(n,e){for(var t=-1,r=null==n?0:n.length,o=Array(r);++t{t.d(e,{Z:()=>r});const r=function(n,e){for(var t=-1,r=e.length,o=n.length;++t{t.d(e,{Z:()=>u});var r=t(74752),o=t(79651),i=Object.prototype.hasOwnProperty;const u=function(n,e,t){var u=n[e];i.call(n,e)&&(0,o.Z)(u,t)&&(void 0!==t||e in n)||(0,r.Z)(n,e,t)}},74752:(n,e,t)=>{t.d(e,{Z:()=>o});var r=t(77904);const o=function(n,e,t){"__proto__"==e&&r.Z?(0,r.Z)(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}},49103:(n,e,t)=>{t.d(e,{Z:()=>V});var r=t(45365),o=t(76579),i=t(72954),u=t(31899),a=t(17179);var c=t(57590);var s=t(91050),f=t(87215),d=t(95695);var v=t(58694),h=t(12513),Z=t(60532);const l=Object.getOwnPropertySymbols?function(n){for(var e=[];n;)(0,v.Z)(e,(0,d.Z)(n)),n=(0,h.Z)(n);return e}:Z.Z;var g=t(1808),p=t(63327);const b=function(n){return(0,p.Z)(n,c.Z,l)};var w=t(96155),y=Object.prototype.hasOwnProperty;var m=t(41884);var _=/\w*$/;var j=t(17685),E=j.Z?j.Z.prototype:void 0,k=E?E.valueOf:void 0;var x=t(12701);const N=function(n,e,t){var r,o,i,u=n.constructor;switch(e){case"[object ArrayBuffer]":return(0,m.Z)(n);case"[object Boolean]":case"[object Date]":return new u(+n);case"[object DataView]":return function(n,e){var t=e?(0,m.Z)(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}(n,t);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,x.Z)(n,t);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(n);case"[object RegExp]":return(i=new(o=n).constructor(o.source,_.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return r=n,k?Object(k.call(r)):{}}};var O=t(61585),C=t(27771),I=t(16706),L=t(18533);var M=t(21162),A=t(98351),P=A.Z&&A.Z.isMap;const S=P?(0,M.Z)(P):function(n){return(0,L.Z)(n)&&"[object Map]"==(0,w.Z)(n)};var R=t(77226);var T=A.Z&&A.Z.isSet;const F=T?(0,M.Z)(T):function(n){return(0,L.Z)(n)&&"[object Set]"==(0,w.Z)(n)};var D="[object Arguments]",z="[object Function]",B="[object Object]",G={};G[D]=G["[object Array]"]=G["[object ArrayBuffer]"]=G["[object DataView]"]=G["[object Boolean]"]=G["[object Date]"]=G["[object Float32Array]"]=G["[object Float64Array]"]=G["[object Int8Array]"]=G["[object Int16Array]"]=G["[object Int32Array]"]=G["[object Map]"]=G["[object Number]"]=G[B]=G["[object RegExp]"]=G["[object Set]"]=G["[object String]"]=G["[object Symbol]"]=G["[object Uint8Array]"]=G["[object Uint8ClampedArray]"]=G["[object Uint16Array]"]=G["[object Uint32Array]"]=!0,G["[object Error]"]=G[z]=G["[object WeakMap]"]=!1;const V=function n(e,t,v,h,Z,p){var m,_=1&t,j=2&t,E=4&t;if(v&&(m=Z?v(e,h,Z,p):v(e)),void 0!==m)return m;if(!(0,R.Z)(e))return e;var k=(0,C.Z)(e);if(k){if(m=function(n){var e=n.length,t=new n.constructor(e);return e&&"string"==typeof n[0]&&y.call(n,"index")&&(t.index=n.index,t.input=n.input),t}(e),!_)return(0,f.Z)(e,m)}else{var x=(0,w.Z)(e),L=x==z||"[object GeneratorFunction]"==x;if((0,I.Z)(e))return(0,s.Z)(e,_);if(x==B||x==D||L&&!Z){if(m=j||L?{}:(0,O.Z)(e),!_)return j?function(n,e){return(0,u.Z)(n,l(n),e)}(e,function(n,e){return n&&(0,u.Z)(e,(0,c.Z)(e),n)}(m,e)):function(n,e){return(0,u.Z)(n,(0,d.Z)(n),e)}(e,function(n,e){return n&&(0,u.Z)(e,(0,a.Z)(e),n)}(m,e))}else{if(!G[x])return Z?e:{};m=N(e,x,_)}}p||(p=new r.Z);var M=p.get(e);if(M)return M;p.set(e,m),F(e)?e.forEach((function(r){m.add(n(r,t,v,r,e,p))})):S(e)&&e.forEach((function(r,o){m.set(o,n(r,t,v,o,e,p))}));var A=E?j?b:g.Z:j?c.Z:a.Z,P=k?void 0:A(e);return(0,o.Z)(P||e,(function(r,o){P&&(r=e[o=r]),(0,i.Z)(m,o,n(r,t,v,o,e,p))})),m}},58640:(n,e,t)=>{t.d(e,{Z:()=>i});var r=t(2693),o=t(50585);const i=(u=r.Z,function(n,e){if(null==n)return n;if(!(0,o.Z)(n))return u(n,e);for(var t=n.length,r=-1,i=Object(n);++r{t.d(e,{Z:()=>r});const r=function(n,e,t,r){for(var o=n.length,i=t+(r?1:-1);r?i--:++i{t.d(e,{Z:()=>s});var r=t(58694),o=t(17685),i=t(84732),u=t(27771),a=o.Z?o.Z.isConcatSpreadable:void 0;const c=function(n){return(0,u.Z)(n)||(0,i.Z)(n)||!!(a&&n&&n[a])},s=function n(e,t,o,i,u){var a=-1,s=e.length;for(o||(o=c),u||(u=[]);++a0&&o(f)?t>1?n(f,t-1,o,i,u):(0,r.Z)(u,f):i||(u[u.length]=f)}return u}},35381:(n,e,t)=>{t.d(e,{Z:()=>r});const r=function(n,e,t){for(var r=-1,o=Object(n),i=t(n),u=i.length;u--;){var a=i[++r];if(!1===e(o[a],a,o))break}return n}},2693:(n,e,t)=>{t.d(e,{Z:()=>i});var r=t(35381),o=t(17179);const i=function(n,e){return n&&(0,r.Z)(n,e,o.Z)}},13317:(n,e,t)=>{t.d(e,{Z:()=>i});var r=t(71036),o=t(62281);const i=function(n,e){for(var t=0,i=(e=(0,r.Z)(e,n)).length;null!=n&&t{t.d(e,{Z:()=>i});var r=t(58694),o=t(27771);const i=function(n,e,t){var i=e(n);return(0,o.Z)(n)?i:(0,r.Z)(i,t(n))}},77058:(n,e,t)=>{t.d(e,{Z:()=>B});var r=t(45365),o=t(45084);const i=function(n,e){for(var t=-1,r=null==n?0:n.length;++tf))return!1;var v=c.get(n),h=c.get(e);if(v&&h)return v==e&&h==n;var Z=-1,l=!0,g=2&t?new o.Z:void 0;for(c.set(n,e),c.set(e,n);++Z{t.d(e,{Z:()=>i});var r=t(58640),o=t(50585);const i=function(n,e){var t=-1,i=(0,o.Z)(n)?Array(n.length):[];return(0,r.Z)(n,(function(n,r,o){i[++t]=e(n,r,o)})),i}},54193:(n,e,t)=>{t.d(e,{Z:()=>r});const r=function(n){return function(e){return null==e?void 0:e[n]}}},69581:(n,e,t)=>{t.d(e,{Z:()=>u});var r=t(69203),o=t(53948),i=t(3626);const u=function(n,e){return(0,i.Z)((0,o.Z)(n,e,r.Z),n+"")}},59548:(n,e,t)=>{t.d(e,{Z:()=>r});const r=function(n,e){return n.has(e)}},68882:(n,e,t)=>{t.d(e,{Z:()=>o});var r=t(69203);const o=function(n){return"function"==typeof n?n:r.Z}},71036:(n,e,t)=>{t.d(e,{Z:()=>v});var r=t(27771),o=t(99365),i=t(42454),u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g;const c=(s=(0,i.Z)((function(n){var e=[];return 46===n.charCodeAt(0)&&e.push(""),n.replace(u,(function(n,t,r,o){e.push(r?o.replace(a,"$1"):t||n)})),e}),(function(n){return 500===f.size&&f.clear(),n})),f=s.cache,s);var s,f,d=t(72402);const v=function(n,e){return(0,r.Z)(n)?n:(0,o.Z)(n,e)?[n]:c((0,d.Z)(n))}},41884:(n,e,t)=>{t.d(e,{Z:()=>o});var r=t(84073);const o=function(n){var e=new n.constructor(n.byteLength);return new r.Z(e).set(new r.Z(n)),e}},91050:(n,e,t)=>{t.d(e,{Z:()=>c});var r=t(66092),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof module&&module&&!module.nodeType&&module,u=i&&i.exports===o?r.Z.Buffer:void 0,a=u?u.allocUnsafe:void 0;const c=function(n,e){if(e)return n.slice();var t=n.length,r=a?a(t):new n.constructor(t);return n.copy(r),r}},12701:(n,e,t)=>{t.d(e,{Z:()=>o});var r=t(41884);const o=function(n,e){var t=e?(0,r.Z)(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}},87215:(n,e,t)=>{t.d(e,{Z:()=>r});const r=function(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t{t.d(e,{Z:()=>i});var r=t(72954),o=t(74752);const i=function(n,e,t,i){var u=!t;t||(t={});for(var a=-1,c=e.length;++a{t.d(e,{Z:()=>o});var r=t(72119);const o=function(){try{var n=(0,r.Z)(Object,"defineProperty");return n({},"",{}),n}catch(n){}}()},1808:(n,e,t)=>{t.d(e,{Z:()=>u});var r=t(63327),o=t(95695),i=t(17179);const u=function(n){return(0,r.Z)(n,i.Z,o.Z)}},12513:(n,e,t)=>{t.d(e,{Z:()=>r});const r=(0,t(1851).Z)(Object.getPrototypeOf,Object)},95695:(n,e,t)=>{t.d(e,{Z:()=>a});var r=t(68774),o=t(60532),i=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols;const a=u?function(n){return null==n?[]:(n=Object(n),(0,r.Z)(u(n),(function(e){return i.call(n,e)})))}:o.Z},16174:(n,e,t)=>{t.d(e,{Z:()=>s});var r=t(71036),o=t(84732),i=t(27771),u=t(56009),a=t(1656),c=t(62281);const s=function(n,e,t){for(var s=-1,f=(e=(0,r.Z)(e,n)).length,d=!1;++s{t.d(e,{Z:()=>c});var r=t(77226),o=Object.create;const i=function(){function n(){}return function(e){if(!(0,r.Z)(e))return{};if(o)return o(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();var u=t(12513),a=t(72764);const c=function(n){return"function"!=typeof n.constructor||(0,a.Z)(n)?{}:i((0,u.Z)(n))}},56009:(n,e,t)=>{t.d(e,{Z:()=>o});var r=/^(?:0|[1-9]\d*)$/;const o=function(n,e){var t=typeof n;return!!(e=null==e?9007199254740991:e)&&("number"==t||"symbol"!=t&&r.test(n))&&n>-1&&n%1==0&&n{t.d(e,{Z:()=>a});var r=t(79651),o=t(50585),i=t(56009),u=t(77226);const a=function(n,e,t){if(!(0,u.Z)(t))return!1;var a=typeof e;return!!("number"==a?(0,o.Z)(t)&&(0,i.Z)(e,t.length):"string"==a&&e in t)&&(0,r.Z)(t[e],n)}},99365:(n,e,t)=>{t.d(e,{Z:()=>a});var r=t(27771),o=t(72714),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;const a=function(n,e){if((0,r.Z)(n))return!1;var t=typeof n;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=n&&!(0,o.Z)(n))||u.test(n)||!i.test(n)||null!=e&&n in Object(e)}},53948:(n,e,t)=>{t.d(e,{Z:()=>o});var r=Math.max;const o=function(n,e,t){return e=r(void 0===e?n.length-1:e,0),function(){for(var o=arguments,i=-1,u=r(o.length-e,0),a=Array(u);++i{t.d(e,{Z:()=>r});const r=function(n){var e=-1,t=Array(n.size);return n.forEach((function(n){t[++e]=n})),t}},3626:(n,e,t)=>{t.d(e,{Z:()=>c});var r=t(62002),o=t(77904),i=t(69203);const u=o.Z?function(n,e){return(0,o.Z)(n,"toString",{configurable:!0,enumerable:!1,value:(0,r.Z)(e),writable:!0})}:i.Z;var a=Date.now;const c=(s=u,f=0,d=0,function(){var n=a(),e=16-(n-d);if(d=n,e>0){if(++f>=800)return arguments[0]}else f=0;return s.apply(void 0,arguments)});var s,f,d},62281:(n,e,t)=>{t.d(e,{Z:()=>o});var r=t(72714);const o=function(n){if("string"==typeof n||(0,r.Z)(n))return n;var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},62002:(n,e,t)=>{t.d(e,{Z:()=>r});const r=function(n){return function(){return n}}},3688:(n,e,t)=>{t.d(e,{Z:()=>s});var r=t(69581),o=t(79651),i=t(50439),u=t(57590),a=Object.prototype,c=a.hasOwnProperty;const s=(0,r.Z)((function(n,e){n=Object(n);var t=-1,r=e.length,s=r>2?e[2]:void 0;for(s&&(0,i.Z)(e[0],e[1],s)&&(r=1);++t{t.d(e,{Z:()=>c});var r=t(68774),o=t(58640);const i=function(n,e){var t=[];return(0,o.Z)(n,(function(n,r,o){e(n,r,o)&&t.push(n)})),t};var u=t(77058),a=t(27771);const c=function(n,e){return((0,a.Z)(n)?r.Z:i)(n,(0,u.Z)(e,3))}},27961:(n,e,t)=>{t.d(e,{Z:()=>o});var r=t(25140);const o=function(n){return null!=n&&n.length?(0,r.Z)(n,1):[]}},70870:(n,e,t)=>{t.d(e,{Z:()=>a});var r=t(76579),o=t(58640),i=t(68882),u=t(27771);const a=function(n,e){return((0,u.Z)(n)?r.Z:o.Z)(n,(0,i.Z)(e))}},43402:(n,e,t)=>{t.d(e,{Z:()=>u});var r=Object.prototype.hasOwnProperty;const o=function(n,e){return null!=n&&r.call(n,e)};var i=t(16174);const u=function(n,e){return null!=n&&(0,i.Z)(n,e,o)}},81910:(n,e,t)=>{t.d(e,{Z:()=>i});const r=function(n,e){return null!=n&&e in Object(n)};var o=t(16174);const i=function(n,e){return null!=n&&(0,o.Z)(n,e,r)}},69203:(n,e,t)=>{t.d(e,{Z:()=>r});const r=function(n){return n}},836:(n,e,t)=>{t.d(e,{Z:()=>i});var r=t(50585),o=t(18533);const i=function(n){return(0,o.Z)(n)&&(0,r.Z)(n)}},37514:(n,e,t)=>{t.d(e,{Z:()=>d});var r=t(13243),o=t(12513),i=t(18533),u=Function.prototype,a=Object.prototype,c=u.toString,s=a.hasOwnProperty,f=c.call(Object);const d=function(n){if(!(0,i.Z)(n)||"[object Object]"!=(0,r.Z)(n))return!1;var e=(0,o.Z)(n);if(null===e)return!0;var t=s.call(e,"constructor")&&e.constructor;return"function"==typeof t&&t instanceof t&&c.call(t)==f}},72714:(n,e,t)=>{t.d(e,{Z:()=>i});var r=t(13243),o=t(18533);const i=function(n){return"symbol"==typeof n||(0,o.Z)(n)&&"[object Symbol]"==(0,r.Z)(n)}},49360:(n,e,t)=>{t.d(e,{Z:()=>r});const r=function(n){return void 0===n}},17179:(n,e,t)=>{t.d(e,{Z:()=>u});var r=t(39001),o=t(8448),i=t(50585);const u=function(n){return(0,i.Z)(n)?(0,r.Z)(n):(0,o.Z)(n)}},57590:(n,e,t)=>{t.d(e,{Z:()=>s});var r=t(39001),o=t(77226),i=t(72764);var u=Object.prototype.hasOwnProperty;const a=function(n){if(!(0,o.Z)(n))return function(n){var e=[];if(null!=n)for(var t in Object(n))e.push(t);return e}(n);var e=(0,i.Z)(n),t=[];for(var r in n)("constructor"!=r||!e&&u.call(n,r))&&t.push(r);return t};var c=t(50585);const s=function(n){return(0,c.Z)(n)?(0,r.Z)(n,!0):a(n)}},43836:(n,e,t)=>{t.d(e,{Z:()=>a});var r=t(74073),o=t(77058),i=t(21018),u=t(27771);const a=function(n,e){return((0,u.Z)(n)?r.Z:i.Z)(n,(0,o.Z)(e,3))}},73032:(n,e,t)=>{t.d(e,{Z:()=>l});var r=t(13317),o=t(72954),i=t(71036),u=t(56009),a=t(77226),c=t(62281);const s=function(n,e,t,r){if(!(0,a.Z)(n))return n;for(var s=-1,f=(e=(0,i.Z)(e,n)).length,d=f-1,v=n;null!=v&&++s{t.d(e,{Z:()=>a});var r=Math.ceil,o=Math.max;var i=t(50439),u=t(96770);const a=function(n,e,t){return t&&"number"!=typeof t&&(0,i.Z)(n,e,t)&&(e=t=void 0),n=(0,u.Z)(n),void 0===e?(e=n,n=0):e=(0,u.Z)(e),function(n,e,t,i){for(var u=-1,a=o(r((e-n)/(t||1)),0),c=Array(a);a--;)c[i?a:++u]=n,n+=t;return c}(n,e,t=void 0===t?n{t.d(e,{Z:()=>c});const r=function(n,e,t,r){var o=-1,i=null==n?0:n.length;for(r&&i&&(t=n[++o]);++o{t.d(e,{Z:()=>r});const r=function(){return[]}},96770:(n,e,t)=>{t.d(e,{Z:()=>v});var r=/\s/;var o=/^\s+/;const i=function(n){return n?n.slice(0,function(n){for(var e=n.length;e--&&r.test(n.charAt(e)););return e}(n)+1).replace(o,""):n};var u=t(77226),a=t(72714),c=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,f=/^0o[0-7]+$/i,d=parseInt;const v=function(n){return n?Infinity===(n=function(n){if("number"==typeof n)return n;if((0,a.Z)(n))return NaN;if((0,u.Z)(n)){var e="function"==typeof n.valueOf?n.valueOf():n;n=(0,u.Z)(e)?e+"":e}if("string"!=typeof n)return 0===n?n:+n;n=i(n);var t=s.test(n);return t||f.test(n)?d(n.slice(2),t?2:8):c.test(n)?NaN:+n}(n))||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}},72402:(n,e,t)=>{t.d(e,{Z:()=>f});var r=t(17685),o=t(74073),i=t(27771),u=t(72714),a=r.Z?r.Z.prototype:void 0,c=a?a.toString:void 0;const s=function n(e){if("string"==typeof e)return e;if((0,i.Z)(e))return(0,o.Z)(e,n)+"";if((0,u.Z)(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},f=function(n){return null==n?"":s(n)}},66749:(n,e,t)=>{t.d(e,{Z:()=>i});var r=t(72402),o=0;const i=function(n){var e=++o;return(0,r.Z)(n)+e}},64657:(n,e,t)=>{t.d(e,{Z:()=>i});var r=t(74073);var o=t(17179);const i=function(n){return null==n?[]:function(n,e){return(0,r.Z)(e,(function(e){return n[e]}))}(n,(0,o.Z)(n))}}}]); \ No newline at end of file diff --git a/static/js/4ad7c7e8bb8d10a34bb7.ttf b/static/js/4ad7c7e8bb8d10a34bb7.ttf deleted file mode 100644 index 74f08921f..000000000 Binary files a/static/js/4ad7c7e8bb8d10a34bb7.ttf and /dev/null differ diff --git a/static/js/4c6b94fd1d07f8beff7c.woff b/static/js/4c6b94fd1d07f8beff7c.woff deleted file mode 100644 index 2432419f2..000000000 Binary files a/static/js/4c6b94fd1d07f8beff7c.woff and /dev/null differ diff --git a/static/js/4c761b3711973ab04edf.ttf b/static/js/4c761b3711973ab04edf.ttf deleted file mode 100644 index 4e98259c3..000000000 Binary files a/static/js/4c761b3711973ab04edf.ttf and /dev/null differ diff --git a/static/js/4f35fbcc9ee8614c2bcc.woff b/static/js/4f35fbcc9ee8614c2bcc.woff deleted file mode 100644 index 21f581296..000000000 Binary files a/static/js/4f35fbcc9ee8614c2bcc.woff and /dev/null differ diff --git a/static/js/503.js b/static/js/503.js deleted file mode 100644 index 24a59509a..000000000 --- a/static/js/503.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[503],{10503:(t,i,n)=>{n.d(i,{diagram:()=>l});var e=n(31460),s=n(74309),r=(n(93628),n(17967),n(27856),function(){var t=function(t,i,n,e){for(n=n||{},e=t.length;e--;n[t[e]]=i);return n},i=[6,9,10],n={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,i,n,e,s,r,o){switch(r.length,s){case 1:return e;case 4:break;case 6:e.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},t(i,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},t(i,[2,3]),t(i,[2,4]),t(i,[2,5]),t(i,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,i){if(!i.recoverable){var n=new Error(t);throw n.hash=i,n}this.trace(t)},parse:function(t){var i=[0],n=[],e=[null],s=[],r=this.table,o="",h=0,l=0,c=s.slice.call(arguments,1),a=Object.create(this.lexer),y={yy:{}};for(var u in this.yy)Object.prototype.hasOwnProperty.call(this.yy,u)&&(y.yy[u]=this.yy[u]);a.setInput(t,y.yy),y.yy.lexer=a,y.yy.parser=this,void 0===a.yylloc&&(a.yylloc={});var p=a.yylloc;s.push(p);var f=a.options&&a.options.ranges;"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var g,m,_,d,k,b,x,v,w,I={};;){if(m=i[i.length-1],this.defaultActions[m]?_=this.defaultActions[m]:(null==g&&(w=void 0,"number"!=typeof(w=n.pop()||a.lex()||1)&&(w instanceof Array&&(w=(n=w).pop()),w=this.symbols_[w]||w),g=w),_=r[m]&&r[m][g]),void 0===_||!_.length||!_[0]){var S;for(k in v=[],r[m])this.terminals_[k]&&k>2&&v.push("'"+this.terminals_[k]+"'");S=a.showPosition?"Parse error on line "+(h+1)+":\n"+a.showPosition()+"\nExpecting "+v.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==g?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(S,{text:a.match,token:this.terminals_[g]||g,line:a.yylineno,loc:p,expected:v})}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+g);switch(_[0]){case 1:i.push(g),e.push(a.yytext),s.push(a.yylloc),i.push(_[1]),g=null,l=a.yyleng,o=a.yytext,h=a.yylineno,p=a.yylloc;break;case 2:if(b=this.productions_[_[1]][1],I.$=e[e.length-b],I._$={first_line:s[s.length-(b||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(b||1)].first_column,last_column:s[s.length-1].last_column},f&&(I._$.range=[s[s.length-(b||1)].range[0],s[s.length-1].range[1]]),void 0!==(d=this.performAction.apply(I,[o,l,h,y.yy,_[1],e,s].concat(c))))return d;b&&(i=i.slice(0,-1*b*2),e=e.slice(0,-1*b),s=s.slice(0,-1*b)),i.push(this.productions_[_[1]][0]),e.push(I.$),s.push(I._$),x=r[i[i.length-2]][i[i.length-1]],i.push(x);break;case 3:return!0}}return!0}},e={EOF:1,parseError:function(t,i){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,i)},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];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(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,n=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 e=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===e.length?this.yylloc.first_column:0)+e[e.length-n.length].length-n[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},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()+"\n"+i+"^"},test_match:function(t,i){var n,e,s;if(this.options.backtrack_lexer&&(s={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(s.yylloc.range=this.yylloc.range.slice(0))),(e=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=e.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:e?e[e.length-1].length-e[e.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in s)this[r]=s[r];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,i,n,e;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),r=0;ri[0].length)){if(i=n,e=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,s[r])))return t;if(this._backtrack){i=!1;continue}return!1}if(!this.options.flex)break}return i?!1!==(t=this.test_match(i,s[e]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,i,n,e){switch(n){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function s(){this.yy={}}return n.lexer=e,s.prototype=n,n.Parser=s,new s}());r.parser=r;var o="",h=!1;const l={parser:r,db:{setMessage:t=>{e.l.debug("Setting message to: "+t),o=t},getMessage:()=>o,setInfo:t=>{h=t},getInfo:()=>h,clear:e.v},renderer:{draw:(t,i,n)=>{try{e.l.debug("Rendering info diagram\n"+t);const r=(0,e.c)().securityLevel;let o;"sandbox"===r&&(o=(0,s.Ys)("#i"+i));const h=("sandbox"===r?(0,s.Ys)(o.nodes()[0].contentDocument.body):(0,s.Ys)("body")).select("#"+i);h.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+n),h.attr("height",100),h.attr("width",400)}catch(t){e.l.error("Error while rendering info diagram"),e.l.error(t.message)}}},styles:()=>""}}}]); \ No newline at end of file diff --git a/static/js/526.js b/static/js/526.js deleted file mode 100644 index e380ca89e..000000000 --- a/static/js/526.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[526],{77526:(t,e,n)=>{n.d(e,{diagram:()=>st});var i=n(17967),s=n(93628),r=n(97706),a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,c=/\d\d/,l=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,d={},h=function(t){return(t=+t)+(t>68?1900:2e3)},f=function(t){return function(e){this[t]=+e}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],p=function(t){var e=d[t];return e&&(e.indexOf?e:e.s.concat(e.f))},y=function(t,e){var n,i=d.meridiem;if(i){for(var s=1;s<=24;s+=1)if(t.indexOf(i(s,0,e))>-1){n=s>12;break}}else n=t===(e?"pm":"PM");return n},k={A:[u,function(t){this.afternoon=y(t,!1)}],a:[u,function(t){this.afternoon=y(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[c,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[l,f("seconds")],ss:[l,f("seconds")],m:[l,f("minutes")],mm:[l,f("minutes")],H:[l,f("hours")],h:[l,f("hours")],HH:[l,f("hours")],hh:[l,f("hours")],D:[l,f("day")],DD:[c,f("day")],Do:[u,function(t){var e=d.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var i=1;i<=31;i+=1)e(i).replace(/\[|\]/g,"")===t&&(this.day=i)}],M:[l,f("month")],MM:[c,f("month")],MMM:[u,function(t){var e=p("months"),n=(p("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[u,function(t){var e=p("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,f("year")],YY:[c,function(t){this.year=h(t)}],YYYY:[/\d{4}/,f("year")],Z:m,ZZ:m};var g=n(31460),v=n(74309),b=(n(27856),function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,3],n=[1,5],i=[7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],s=[1,15],r=[1,16],a=[1,17],o=[1,18],c=[1,19],l=[1,20],u=[1,21],d=[1,22],h=[1,23],f=[1,24],m=[1,25],p=[1,26],y=[1,27],k=[1,29],g=[1,31],v=[1,34],b=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],x={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,tickInterval:16,excludes:17,includes:18,todayMarker:19,title:20,acc_title:21,acc_title_value:22,acc_descr:23,acc_descr_value:24,acc_descr_multiline_value:25,section:26,clickStatement:27,taskTxt:28,taskData:29,openDirective:30,typeDirective:31,closeDirective:32,":":33,argDirective:34,click:35,callbackname:36,callbackargs:37,href:38,clickStatementDebug:39,open_directive:40,type_directive:41,arg_directive:42,close_directive:43,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"tickInterval",17:"excludes",18:"includes",19:"todayMarker",20:"title",21:"acc_title",22:"acc_title_value",23:"acc_descr",24:"acc_descr_value",25:"acc_descr_multiline_value",26:"section",28:"taskTxt",29:"taskData",33:":",35:"click",36:"callbackname",37:"callbackargs",38:"href",40:"open_directive",41:"type_directive",42:"arg_directive",43:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[27,2],[27,3],[27,3],[27,4],[27,3],[27,4],[27,2],[39,2],[39,3],[39,3],[39,4],[39,3],[39,4],[39,2],[30,1],[31,1],[34,1],[32,1]],performAction:function(t,e,n,i,s,r,a){var o=r.length-1;switch(s){case 2:return r[o-1];case 3:case 7:case 8:this.$=[];break;case 4:r[o-1].push(r[o]),this.$=r[o-1];break;case 5:case 6:this.$=r[o];break;case 9:i.setDateFormat(r[o].substr(11)),this.$=r[o].substr(11);break;case 10:i.enableInclusiveEndDates(),this.$=r[o].substr(18);break;case 11:i.TopAxis(),this.$=r[o].substr(8);break;case 12:i.setAxisFormat(r[o].substr(11)),this.$=r[o].substr(11);break;case 13:i.setTickInterval(r[o].substr(13)),this.$=r[o].substr(13);break;case 14:i.setExcludes(r[o].substr(9)),this.$=r[o].substr(9);break;case 15:i.setIncludes(r[o].substr(9)),this.$=r[o].substr(9);break;case 16:i.setTodayMarker(r[o].substr(12)),this.$=r[o].substr(12);break;case 17:i.setDiagramTitle(r[o].substr(6)),this.$=r[o].substr(6);break;case 18:this.$=r[o].trim(),i.setAccTitle(this.$);break;case 19:case 20:this.$=r[o].trim(),i.setAccDescription(this.$);break;case 21:i.addSection(r[o].substr(8)),this.$=r[o].substr(8);break;case 23:i.addTask(r[o-1],r[o]),this.$="task";break;case 27:this.$=r[o-1],i.setClickEvent(r[o-1],r[o],null);break;case 28:this.$=r[o-2],i.setClickEvent(r[o-2],r[o-1],r[o]);break;case 29:this.$=r[o-2],i.setClickEvent(r[o-2],r[o-1],null),i.setLink(r[o-2],r[o]);break;case 30:this.$=r[o-3],i.setClickEvent(r[o-3],r[o-2],r[o-1]),i.setLink(r[o-3],r[o]);break;case 31:this.$=r[o-2],i.setClickEvent(r[o-2],r[o],null),i.setLink(r[o-2],r[o-1]);break;case 32:this.$=r[o-3],i.setClickEvent(r[o-3],r[o-1],r[o]),i.setLink(r[o-3],r[o-2]);break;case 33:this.$=r[o-1],i.setLink(r[o-1],r[o]);break;case 34:case 40:this.$=r[o-1]+" "+r[o];break;case 35:case 36:case 38:this.$=r[o-2]+" "+r[o-1]+" "+r[o];break;case 37:case 39:this.$=r[o-3]+" "+r[o-2]+" "+r[o-1]+" "+r[o];break;case 41:i.parseDirective("%%{","open_directive");break;case 42:i.parseDirective(r[o],"type_directive");break;case 43:r[o]=r[o].trim().replace(/'/g,'"'),i.parseDirective(r[o],"arg_directive");break;case 44:i.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:e,30:4,40:n},{1:[3]},{3:6,4:2,5:e,30:4,40:n},t(i,[2,3],{6:7}),{31:8,41:[1,9]},{41:[2,41]},{1:[2,1]},{4:30,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:s,13:r,14:a,15:o,16:c,17:l,18:u,19:d,20:h,21:f,23:m,25:p,26:y,27:28,28:k,30:4,35:g,40:n},{32:32,33:[1,33],43:v},t([33,43],[2,42]),t(i,[2,8],{1:[2,2]}),t(i,[2,4]),{4:30,10:35,12:s,13:r,14:a,15:o,16:c,17:l,18:u,19:d,20:h,21:f,23:m,25:p,26:y,27:28,28:k,30:4,35:g,40:n},t(i,[2,6]),t(i,[2,7]),t(i,[2,9]),t(i,[2,10]),t(i,[2,11]),t(i,[2,12]),t(i,[2,13]),t(i,[2,14]),t(i,[2,15]),t(i,[2,16]),t(i,[2,17]),{22:[1,36]},{24:[1,37]},t(i,[2,20]),t(i,[2,21]),t(i,[2,22]),{29:[1,38]},t(i,[2,24]),{36:[1,39],38:[1,40]},{11:[1,41]},{34:42,42:[1,43]},{11:[2,44]},t(i,[2,5]),t(i,[2,18]),t(i,[2,19]),t(i,[2,23]),t(i,[2,27],{37:[1,44],38:[1,45]}),t(i,[2,33],{36:[1,46]}),t(b,[2,25]),{32:47,43:v},{43:[2,43]},t(i,[2,28],{38:[1,48]}),t(i,[2,29]),t(i,[2,31],{37:[1,49]}),{11:[1,50]},t(i,[2,30]),t(i,[2,32]),t(b,[2,26])],defaultActions:{5:[2,41],6:[2,1],34:[2,44],43:[2,43]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],s=[],r=this.table,a="",o=0,c=0,l=s.slice.call(arguments,1),u=Object.create(this.lexer),d={yy:{}};for(var h in this.yy)Object.prototype.hasOwnProperty.call(this.yy,h)&&(d.yy[h]=this.yy[h]);u.setInput(t,d.yy),d.yy.lexer=u,d.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var f=u.yylloc;s.push(f);var m=u.options&&u.options.ranges;"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var p,y,k,g,v,b,x,T,_,$={};;){if(y=e[e.length-1],this.defaultActions[y]?k=this.defaultActions[y]:(null==p&&(_=void 0,"number"!=typeof(_=n.pop()||u.lex()||1)&&(_ instanceof Array&&(_=(n=_).pop()),_=this.symbols_[_]||_),p=_),k=r[y]&&r[y][p]),void 0===k||!k.length||!k[0]){var D;for(v in T=[],r[y])this.terminals_[v]&&v>2&&T.push("'"+this.terminals_[v]+"'");D=u.showPosition?"Parse error on line "+(o+1)+":\n"+u.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(D,{text:u.match,token:this.terminals_[p]||p,line:u.yylineno,loc:f,expected:T})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+p);switch(k[0]){case 1:e.push(p),i.push(u.yytext),s.push(u.yylloc),e.push(k[1]),p=null,c=u.yyleng,a=u.yytext,o=u.yylineno,f=u.yylloc;break;case 2:if(b=this.productions_[k[1]][1],$.$=i[i.length-b],$._$={first_line:s[s.length-(b||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(b||1)].first_column,last_column:s[s.length-1].last_column},m&&($._$.range=[s[s.length-(b||1)].range[0],s[s.length-1].range[1]]),void 0!==(g=this.performAction.apply($,[a,c,o,d.yy,k[1],i,s].concat(l))))return g;b&&(e=e.slice(0,-1*b*2),i=i.slice(0,-1*b),s=s.slice(0,-1*b)),e.push(this.productions_[k[1]][0]),i.push($.$),s.push($._$),x=r[e[e.length-2]][e[e.length-1]],e.push(x);break;case 3:return!0}}return!0}},T={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,s;if(this.options.backtrack_lexer&&(s={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(s.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in s)this[r]=s[r];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),r=0;re[0].length)){if(e=n,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,s[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),40;case 1:return this.begin("type_directive"),41;case 2:return this.popState(),this.begin("arg_directive"),33;case 3:return this.popState(),this.popState(),43;case 4:return 42;case 5:return this.begin("acc_title"),21;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),23;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 20:case 23:case 26:case 29:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:case 13:case 14:case 16:case 17:case 18:break;case 15:return 11;case 19:this.begin("href");break;case 21:return 38;case 22:this.begin("callbackname");break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 36;case 27:return 37;case 28:this.begin("click");break;case 30:return 35;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 16;case 37:return 18;case 38:return 17;case 39:return 19;case 40:return"date";case 41:return 20;case 42:return"accDescription";case 43:return 26;case 44:return 28;case 45:return 29;case 46:return 33;case 47:return 7;case 48:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};function _(){this.yy={}}return x.lexer=T,_.prototype=x,x.Parser=_,new _}());b.parser=b;const x=b;s.Z.extend((function(t,e,n){var i=function(t){return t.add(4-t.isoWeekday(),r.D)},s=e.prototype;s.isoWeekYear=function(){return i(this).year()},s.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),r.D);var e,s,a,o=i(this),c=(e=this.isoWeekYear(),a=4-(s=(this.$u?n.utc:n)().year(e).startOf(r.Y)).isoWeekday(),s.isoWeekday()>4&&(a+=7),s.add(a,r.D));return o.diff(c,r.W)+1},s.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var a=s.startOf;s.startOf=function(t,e){var n=this.$utils(),i=!!n.u(e)||e;return"isoweek"===n.p(t)?i?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(t,e)}})),s.Z.extend((function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(h=t.parseTwoDigitYear);var i=e.prototype,s=i.parse;i.parse=function(t){var e=t.date,i=t.utc,r=t.args;this.$u=i;var c=r[1];if("string"==typeof c){var l=!0===r[2],u=!0===r[3],h=l||u,f=r[2];u&&(f=r[2]),d=this.$locale(),!l&&f&&(d=n.Ls[f]),this.$d=function(t,e,n){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var i=function(t){var e,n;e=t,n=d&&d.formats;for(var i=(t=e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,e,i){var s=i&&i.toUpperCase();return e||n[i]||a[i]||n[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(o),s=i.length,r=0;r0?r-1:p.getMonth());var b=l||0,x=u||0,T=h||0,_=f||0;return m?new Date(Date.UTC(g,v,y,b,x,T,_+60*m.offset*1e3)):n?new Date(Date.UTC(g,v,y,b,x,T,_)):new Date(g,v,y,b,x,T,_)}catch(t){return new Date("")}}(e,c,i),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),h&&e!=this.format(c)&&(this.$d=new Date("")),d={}}else if(c instanceof Array)for(var m=c.length,p=1;p<=m;p+=1){r[1]=c[p-1];var y=n.apply(this,r);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}p===m&&(this.$d=new Date(""))}else s.call(this,t)}})),s.Z.extend((function(t,e){var n=e.prototype,i=n.format;n.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return i.bind(this)(t);var s=this.$utils(),a=(t||r.r0).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(t){switch(t){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return n.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return n.ordinal(e.week(),"W");case"w":case"ww":return s.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return s.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return s.s(String(0===e.$H?24:e.$H),"k"===t?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return t}}));return i.bind(this)(a)}}));let T,_="",$="",D="",w=[],S=[],C={},E=[],M=[],A="",Y="";const L=["active","done","crit","milestone"];let F=[],I=!1,O=!1,z=0;const W=function(t,e,n,i){return!i.includes(t.format(e.trim()))&&(!!(t.isoWeekday()>=6&&n.includes("weekends"))||!!n.includes(t.format("dddd").toLowerCase())||n.includes(t.format(e.trim())))},B=function(t,e,n,i){if(!n.length||t.manualEndTime)return;let r,a;r=t.startTime instanceof Date?(0,s.Z)(t.startTime):(0,s.Z)(t.startTime,e,!0),r=r.add(1,"d"),a=t.endTime instanceof Date?(0,s.Z)(t.endTime):(0,s.Z)(t.endTime,e,!0);const[o,c]=P(r,a,e,n,i);t.endTime=o.toDate(),t.renderEndTime=c},P=function(t,e,n,i,s){let r=!1,a=null;for(;t<=e;)r||(a=e.toDate()),r=W(t,n,i,s),r&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,a]},Z=function(t,e,n){n=n.trim();const i=/^after\s+([\d\w- ]+)/.exec(n.trim());if(null!==i){let t=null;if(i[1].split(" ").forEach((function(e){let n=X(e);void 0!==n&&(t?n.endTime>t.endTime&&(t=n):t=n)})),t)return t.endTime;{const t=new Date;return t.setHours(0,0,0,0),t}}let r=(0,s.Z)(n,e.trim(),!0);if(r.isValid())return r.toDate();{g.l.debug("Invalid date:"+n),g.l.debug("With date format:"+e.trim());const t=new Date(n);if(void 0===t||isNaN(t.getTime())||t.getFullYear()<-1e4||t.getFullYear()>1e4)throw new Error("Invalid date:"+n);return t}},N=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==e?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},G=function(t,e,n,i=!1){n=n.trim();let r=(0,s.Z)(n,e.trim(),!0);if(r.isValid())return i&&(r=r.add(1,"d")),r.toDate();let a=(0,s.Z)(t);const[o,c]=N(n);if(!Number.isNaN(o)){const t=a.add(o,c);t.isValid()&&(a=t)}return a.toDate()};let H=0;const j=function(t){return void 0===t?(H+=1,"task"+H):t};let V,R,U=[];const q={},X=function(t){const e=q[t];return U[e]},Q=function(){const t=function(t){const e=U[t];let n="";switch(U[t].raw.startTime.type){case"prevTaskEnd":{const t=X(e.prevTaskId);e.startTime=t.endTime;break}case"getStartDate":n=Z(0,_,U[t].raw.startTime.startData),n&&(U[t].startTime=n)}return U[t].startTime&&(U[t].endTime=G(U[t].startTime,_,U[t].raw.endTime.data,I),U[t].endTime&&(U[t].processed=!0,U[t].manualEndTime=(0,s.Z)(U[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),B(U[t],_,S,w))),U[t].processed};let e=!0;for(const[n,i]of U.entries())t(n),e=e&&i.processed;return e},J=function(t,e){t.split(",").forEach((function(t){let n=X(t);void 0!==n&&n.classes.push(e)}))},K=function(t,e){F.push((function(){const n=document.querySelector(`[id="${t}"]`);null!==n&&n.addEventListener("click",(function(){e()}))}),(function(){const n=document.querySelector(`[id="${t}-text"]`);null!==n&&n.addEventListener("click",(function(){e()}))}))},tt={parseDirective:function(t,e,n){g.m.parseDirective(this,t,e,n)},getConfig:()=>(0,g.c)().gantt,clear:function(){E=[],M=[],A="",F=[],H=0,V=void 0,R=void 0,U=[],_="",$="",Y="",T=void 0,D="",w=[],S=[],I=!1,O=!1,z=0,C={},(0,g.v)()},setDateFormat:function(t){_=t},getDateFormat:function(){return _},enableInclusiveEndDates:function(){I=!0},endDatesAreInclusive:function(){return I},enableTopAxis:function(){O=!0},topAxisEnabled:function(){return O},setAxisFormat:function(t){$=t},getAxisFormat:function(){return $},setTickInterval:function(t){T=t},getTickInterval:function(){return T},setTodayMarker:function(t){D=t},getTodayMarker:function(){return D},setAccTitle:g.s,getAccTitle:g.g,setDiagramTitle:g.r,getDiagramTitle:g.t,setDisplayMode:function(t){Y=t},getDisplayMode:function(){return Y},setAccDescription:g.b,getAccDescription:g.a,addSection:function(t){A=t,E.push(t)},getSections:function(){return E},getTasks:function(){let t=Q(),e=0;for(;!t&&e<10;)t=Q(),e++;return M=U,M},addTask:function(t,e){const n={section:A,type:A,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},i=function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const i=n.split(","),s={};et(i,s,L);for(let t=0;t{g.u.runFunc(e,...i)}))}(t,e,n)})),J(t,"clickable")},setLink:function(t,e){let n=e;"loose"!==(0,g.c)().securityLevel&&(n=(0,i.N)(e)),t.split(",").forEach((function(t){void 0!==X(t)&&(K(t,(()=>{window.open(n,"_self")})),C[t]=n)})),J(t,"clickable")},getLinks:function(){return C},bindFunctions:function(t){F.forEach((function(e){e(t)}))},parseDuration:N,isInvalidDate:W};function et(t,e,n){let i=!0;for(;i;)i=!1,n.forEach((function(n){const s=new RegExp("^\\s*"+n+"\\s*$");t[0].match(s)&&(e[n]=!0,t.shift(1),i=!0)}))}const nt=(t,e)=>{let n=[...t].map((()=>-1/0)),i=[...t].sort(((t,e)=>t.startTime-e.startTime||t.order-e.order)),s=0;for(const t of i)for(let i=0;i=n[i]){n[i]=t.endTime,t.order=i+e,i>s&&(s=i);break}return s};let it;const st={parser:x,db:tt,renderer:{setConf:function(){g.l.debug("Something is calling, setConf, remove the call")},draw:function(t,e,n,i){const r=(0,g.c)().gantt,a=(0,g.c)().securityLevel;let o;"sandbox"===a&&(o=(0,v.Ys)("#i"+e));const c="sandbox"===a?(0,v.Ys)(o.nodes()[0].contentDocument.body):(0,v.Ys)("body"),l="sandbox"===a?o.nodes()[0].contentDocument:document,u=l.getElementById(e);it=u.parentElement.offsetWidth,void 0===it&&(it=1200),void 0!==r.useWidth&&(it=r.useWidth);const d=i.db.getTasks();let h=[];for(const t of d)h.push(t.type);h=function(t){const e={},n=[];for(let i=0,s=t.length;ie.type===t)).length}u.setAttribute("viewBox","0 0 "+it+" "+m);const p=c.select(`[id="${e}"]`),y=(0,v.Xf)().domain([(0,v.VV$)(d,(function(t){return t.startTime})),(0,v.Fp7)(d,(function(t){return t.endTime}))]).rangeRound([0,it-r.leftPadding-r.rightPadding]);d.sort((function(t,e){const n=t.startTime,i=e.startTime;let s=0;return n>i?s=1:nt?Math.min(t,e):e),0),h=c.reduce(((t,{endTime:e})=>t?Math.max(t,e):e),0),f=i.db.getDateFormat();if(!d||!h)return;const m=[];let k=null,g=(0,s.Z)(d);for(;g.valueOf()<=h;)i.db.isInvalidDate(g,f,l,u)?k?k.end=g:k={start:g,end:g}:k&&(m.push(k),k=null),g=g.add(1,"d");p.append("g").selectAll("rect").data(m).enter().append("rect").attr("id",(function(t){return"exclude-"+t.start.format("YYYY-MM-DD")})).attr("x",(function(t){return y(t.start)+n})).attr("y",r.gridLineStartPadding).attr("width",(function(t){const e=t.end.add(1,"day");return y(e)-y(t.start)})).attr("height",o-e-r.gridLineStartPadding).attr("transform-origin",(function(e,i){return(y(e.start)+n+.5*(y(e.end)-y(e.start))).toString()+"px "+(i*t+.5*o).toString()+"px"})).attr("class","exclude-range")}(c,u,d,0,a,t,i.db.getExcludes(),i.db.getIncludes()),function(t,e,n,s){let a=(0,v.LLu)(y).tickSize(-s+e+r.gridLineStartPadding).tickFormat((0,v.i$Z)(i.db.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));const o=/^([1-9]\d*)(minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||r.tickInterval);if(null!==o){const t=o[1];switch(o[2]){case"minute":a.ticks(v.Z_i.every(t));break;case"hour":a.ticks(v.WQD.every(t));break;case"day":a.ticks(v.rr1.every(t));break;case"week":a.ticks(v.NGh.every(t));break;case"month":a.ticks(v.F0B.every(t))}}if(p.append("g").attr("class","grid").attr("transform","translate("+t+", "+(s-50)+")").call(a).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||r.topAxis){let n=(0,v.F5q)(y).tickSize(-s+e+r.gridLineStartPadding).tickFormat((0,v.i$Z)(i.db.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));if(null!==o){const t=o[1];switch(o[2]){case"minute":n.ticks(v.Z_i.every(t));break;case"hour":n.ticks(v.WQD.every(t));break;case"day":n.ticks(v.rr1.every(t));break;case"week":n.ticks(v.NGh.every(t));break;case"month":n.ticks(v.F0B.every(t))}}p.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(d,u,0,a),function(t,n,s,a,o,c,l){const u=[...new Set(t.map((t=>t.order)))].map((e=>t.find((t=>t.order===e))));p.append("g").selectAll("rect").data(u).enter().append("rect").attr("x",0).attr("y",(function(t,e){return t.order*n+s-2})).attr("width",(function(){return l-r.rightPadding/2})).attr("height",n).attr("class",(function(t){for(const[e,n]of h.entries())if(t.type===n)return"section section"+e%r.numberSectionStyles;return"section section0"}));const d=p.append("g").selectAll("rect").data(t).enter(),f=i.db.getLinks();if(d.append("rect").attr("id",(function(t){return t.id})).attr("rx",3).attr("ry",3).attr("x",(function(t){return t.milestone?y(t.startTime)+a+.5*(y(t.endTime)-y(t.startTime))-.5*o:y(t.startTime)+a})).attr("y",(function(t,e){return t.order*n+s})).attr("width",(function(t){return t.milestone?o:y(t.renderEndTime||t.endTime)-y(t.startTime)})).attr("height",o).attr("transform-origin",(function(t,e){return e=t.order,(y(t.startTime)+a+.5*(y(t.endTime)-y(t.startTime))).toString()+"px "+(e*n+s+.5*o).toString()+"px"})).attr("class",(function(t){let e="";t.classes.length>0&&(e=t.classes.join(" "));let n=0;for(const[e,i]of h.entries())t.type===i&&(n=e%r.numberSectionStyles);let i="";return t.active?t.crit?i+=" activeCrit":i=" active":t.done?i=t.crit?" doneCrit":" done":t.crit&&(i+=" crit"),0===i.length&&(i=" task"),t.milestone&&(i=" milestone "+i),i+=n,i+=" "+e,"task"+i})),d.append("text").attr("id",(function(t){return t.id+"-text"})).text((function(t){return t.task})).attr("font-size",r.fontSize).attr("x",(function(t){let e=y(t.startTime),n=y(t.renderEndTime||t.endTime);t.milestone&&(e+=.5*(y(t.endTime)-y(t.startTime))-.5*o),t.milestone&&(n=e+o);const i=this.getBBox().width;return i>n-e?n+i+1.5*r.leftPadding>l?e+a-5:n+a+5:(n-e)/2+e+a})).attr("y",(function(t,e){return t.order*n+r.barHeight/2+(r.fontSize/2-2)+s})).attr("text-height",o).attr("class",(function(t){const e=y(t.startTime);let n=y(t.endTime);t.milestone&&(n=e+o);const i=this.getBBox().width;let s="";t.classes.length>0&&(s=t.classes.join(" "));let a=0;for(const[e,n]of h.entries())t.type===n&&(a=e%r.numberSectionStyles);let c="";return t.active&&(c=t.crit?"activeCritText"+a:"activeText"+a),t.done?c=t.crit?c+" doneCritText"+a:c+" doneText"+a:t.crit&&(c=c+" critText"+a),t.milestone&&(c+=" milestoneText"),i>n-e?n+i+1.5*r.leftPadding>l?s+" taskTextOutsideLeft taskTextOutside"+a+" "+c:s+" taskTextOutsideRight taskTextOutside"+a+" "+c+" width-"+i:s+" taskText taskText"+a+" "+c+" width-"+i})),"sandbox"===(0,g.c)().securityLevel){let t;t=(0,v.Ys)("#i"+e);const n=t.nodes()[0].contentDocument;d.filter((function(t){return void 0!==f[t.id]})).each((function(t){var e=n.querySelector("#"+t.id),i=n.querySelector("#"+t.id+"-text");const s=e.parentNode;var r=n.createElement("a");r.setAttribute("xlink:href",f[t.id]),r.setAttribute("target","_top"),s.appendChild(r),r.appendChild(e),r.appendChild(i)}))}}(t,c,u,d,o,0,n),function(t,e){let n=0;const i=Object.keys(f).map((t=>[t,f[t]]));p.append("g").selectAll("text").data(i).enter().append((function(t){const e=t[0].split(g.e.lineBreakRegex),n=-(e.length-1)/2,i=l.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("dy",n+"em");for(const[t,n]of e.entries()){const e=l.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttribute("alignment-baseline","central"),e.setAttribute("x","10"),t>0&&e.setAttribute("dy","1em"),e.textContent=n,i.appendChild(e)}return i})).attr("x",10).attr("y",(function(s,r){if(!(r>0))return s[1]*t/2+e;for(let a=0;a`\n .mermaid-main-font {\n font-family: "trebuchet ms", verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n .exclude-range {\n fill: ${t.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${t.sectionBkgColor};\n }\n\n .section2 {\n fill: ${t.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${t.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n // font-size: ${t.ganttFontSize};\n // text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${t.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ${t.fontFamily};\n fill: ${t.textColor};\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${t.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n\n // .taskText:not([font-size]) {\n // font-size: ${t.ganttFontSize};\n // }\n\n .taskTextOutsideRight {\n fill: ${t.taskTextDarkColor};\n text-anchor: start;\n // font-size: ${t.ganttFontSize};\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ${t.taskTextDarkColor};\n text-anchor: end;\n // font-size: ${t.ganttFontSize};\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${t.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${t.taskBkgColor};\n stroke: ${t.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${t.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${t.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${t.activeTaskBkgColor};\n stroke: ${t.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${t.doneTaskBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor} ;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n`}}}]); \ No newline at end of file diff --git a/static/js/544.js b/static/js/544.js deleted file mode 100644 index dac33b6cf..000000000 --- a/static/js/544.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[544],{46544:(t,e,i)=>{i.d(e,{diagram:()=>Q});var n=i(31460),a=i(74309),s=i(38770),r=i(17967),l=(i(93628),i(27856),function(){var t=function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},e=[1,6],i=[1,7],n=[1,8],a=[1,9],s=[1,16],r=[1,11],l=[1,12],o=[1,13],h=[1,14],d=[1,15],u=[1,27],p=[1,33],y=[1,34],f=[1,35],b=[1,36],g=[1,37],_=[1,72],x=[1,73],m=[1,74],E=[1,75],A=[1,76],S=[1,77],v=[1,78],C=[1,38],k=[1,39],O=[1,40],T=[1,41],w=[1,42],D=[1,43],R=[1,44],N=[1,45],P=[1,46],M=[1,47],j=[1,48],B=[1,49],Y=[1,50],L=[1,51],I=[1,52],U=[1,53],F=[1,54],X=[1,55],z=[1,56],Q=[1,57],W=[1,59],$=[1,60],q=[1,61],V=[1,62],G=[1,63],H=[1,64],K=[1,65],J=[1,66],Z=[1,67],tt=[1,68],et=[1,69],it=[24,52],nt=[24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],at=[15,24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],st=[1,94],rt=[1,95],lt=[1,96],ot=[1,97],ct=[15,24,52],ht=[7,8,9,10,18,22,25,26,27,28],dt=[15,24,43,52],ut=[15,24,43,52,86,87,89,90],pt=[15,43],yt=[44,46,47,48,49,50,51,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],ft={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boundaryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,1],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[45,1],[45,2],[85,1],[85,2],[85,1],[85,1]],performAction:function(t,e,i,n,a,s,r){var l=s.length-1;switch(a){case 4:n.setDirection("TB");break;case 5:n.setDirection("BT");break;case 6:n.setDirection("RL");break;case 7:n.setDirection("LR");break;case 11:n.parseDirective("%%{","open_directive");break;case 12:break;case 13:s[l]=s[l].trim().replace(/'/g,'"'),n.parseDirective(s[l],"arg_directive");break;case 14:n.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:n.setC4Type(s[l-3]);break;case 26:n.setTitle(s[l].substring(6)),this.$=s[l].substring(6);break;case 27:n.setAccDescription(s[l].substring(15)),this.$=s[l].substring(15);break;case 28:this.$=s[l].trim(),n.setTitle(this.$);break;case 29:case 30:this.$=s[l].trim(),n.setAccDescription(this.$);break;case 35:case 36:s[l].splice(2,0,"ENTERPRISE"),n.addPersonOrSystemBoundary(...s[l]),this.$=s[l];break;case 37:n.addPersonOrSystemBoundary(...s[l]),this.$=s[l];break;case 38:s[l].splice(2,0,"CONTAINER"),n.addContainerBoundary(...s[l]),this.$=s[l];break;case 39:n.addDeploymentNode("node",...s[l]),this.$=s[l];break;case 40:n.addDeploymentNode("nodeL",...s[l]),this.$=s[l];break;case 41:n.addDeploymentNode("nodeR",...s[l]),this.$=s[l];break;case 42:n.popBoundaryParseStack();break;case 46:n.addPersonOrSystem("person",...s[l]),this.$=s[l];break;case 47:n.addPersonOrSystem("external_person",...s[l]),this.$=s[l];break;case 48:n.addPersonOrSystem("system",...s[l]),this.$=s[l];break;case 49:n.addPersonOrSystem("system_db",...s[l]),this.$=s[l];break;case 50:n.addPersonOrSystem("system_queue",...s[l]),this.$=s[l];break;case 51:n.addPersonOrSystem("external_system",...s[l]),this.$=s[l];break;case 52:n.addPersonOrSystem("external_system_db",...s[l]),this.$=s[l];break;case 53:n.addPersonOrSystem("external_system_queue",...s[l]),this.$=s[l];break;case 54:n.addContainer("container",...s[l]),this.$=s[l];break;case 55:n.addContainer("container_db",...s[l]),this.$=s[l];break;case 56:n.addContainer("container_queue",...s[l]),this.$=s[l];break;case 57:n.addContainer("external_container",...s[l]),this.$=s[l];break;case 58:n.addContainer("external_container_db",...s[l]),this.$=s[l];break;case 59:n.addContainer("external_container_queue",...s[l]),this.$=s[l];break;case 60:n.addComponent("component",...s[l]),this.$=s[l];break;case 61:n.addComponent("component_db",...s[l]),this.$=s[l];break;case 62:n.addComponent("component_queue",...s[l]),this.$=s[l];break;case 63:n.addComponent("external_component",...s[l]),this.$=s[l];break;case 64:n.addComponent("external_component_db",...s[l]),this.$=s[l];break;case 65:n.addComponent("external_component_queue",...s[l]),this.$=s[l];break;case 67:n.addRel("rel",...s[l]),this.$=s[l];break;case 68:n.addRel("birel",...s[l]),this.$=s[l];break;case 69:n.addRel("rel_u",...s[l]),this.$=s[l];break;case 70:n.addRel("rel_d",...s[l]),this.$=s[l];break;case 71:n.addRel("rel_l",...s[l]),this.$=s[l];break;case 72:n.addRel("rel_r",...s[l]),this.$=s[l];break;case 73:n.addRel("rel_b",...s[l]),this.$=s[l];break;case 74:s[l].splice(0,1),n.addRel("rel",...s[l]),this.$=s[l];break;case 75:n.updateElStyle("update_el_style",...s[l]),this.$=s[l];break;case 76:n.updateRelStyle("update_rel_style",...s[l]),this.$=s[l];break;case 77:n.updateLayoutConfig("update_layout_config",...s[l]),this.$=s[l];break;case 78:this.$=[s[l]];break;case 79:s[l].unshift(s[l-1]),this.$=s[l];break;case 80:case 82:this.$=s[l].trim();break;case 81:let t={};t[s[l-1].trim()]=s[l].trim(),this.$=t;break;case 83:this.$=""}},table:[{3:1,4:2,5:3,6:4,7:e,8:i,9:n,10:a,11:5,12:10,18:s,22:r,25:l,26:o,27:h,28:d},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:e,8:i,9:n,10:a,11:5,12:10,18:s,22:r,25:l,26:o,27:h,28:d},{1:[2,8]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{1:[2,7]},{13:18,19:[1,19]},{15:[1,20]},{15:[1,21]},{15:[1,22]},{15:[1,23]},{15:[1,24]},{19:[2,11]},{1:[2,3]},{14:25,16:[1,26],21:u},t([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:p,33:y,34:f,36:b,38:g,39:58,40:70,42:71,44:_,46:x,47:m,48:E,49:A,50:S,51:v,53:32,54:C,55:k,56:O,57:T,58:w,59:D,60:R,61:N,62:P,63:M,64:j,65:B,66:Y,67:L,68:I,69:U,70:F,71:X,72:z,73:Q,74:W,75:$,76:q,77:V,78:G,79:H,80:K,81:J,82:Z,83:tt,84:et},{23:79,29:29,30:30,31:31,32:p,33:y,34:f,36:b,38:g,39:58,40:70,42:71,44:_,46:x,47:m,48:E,49:A,50:S,51:v,53:32,54:C,55:k,56:O,57:T,58:w,59:D,60:R,61:N,62:P,63:M,64:j,65:B,66:Y,67:L,68:I,69:U,70:F,71:X,72:z,73:Q,74:W,75:$,76:q,77:V,78:G,79:H,80:K,81:J,82:Z,83:tt,84:et},{23:80,29:29,30:30,31:31,32:p,33:y,34:f,36:b,38:g,39:58,40:70,42:71,44:_,46:x,47:m,48:E,49:A,50:S,51:v,53:32,54:C,55:k,56:O,57:T,58:w,59:D,60:R,61:N,62:P,63:M,64:j,65:B,66:Y,67:L,68:I,69:U,70:F,71:X,72:z,73:Q,74:W,75:$,76:q,77:V,78:G,79:H,80:K,81:J,82:Z,83:tt,84:et},{23:81,29:29,30:30,31:31,32:p,33:y,34:f,36:b,38:g,39:58,40:70,42:71,44:_,46:x,47:m,48:E,49:A,50:S,51:v,53:32,54:C,55:k,56:O,57:T,58:w,59:D,60:R,61:N,62:P,63:M,64:j,65:B,66:Y,67:L,68:I,69:U,70:F,71:X,72:z,73:Q,74:W,75:$,76:q,77:V,78:G,79:H,80:K,81:J,82:Z,83:tt,84:et},{23:82,29:29,30:30,31:31,32:p,33:y,34:f,36:b,38:g,39:58,40:70,42:71,44:_,46:x,47:m,48:E,49:A,50:S,51:v,53:32,54:C,55:k,56:O,57:T,58:w,59:D,60:R,61:N,62:P,63:M,64:j,65:B,66:Y,67:L,68:I,69:U,70:F,71:X,72:z,73:Q,74:W,75:$,76:q,77:V,78:G,79:H,80:K,81:J,82:Z,83:tt,84:et},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},t(it,[2,20],{53:32,39:58,40:70,42:71,30:87,44:_,46:x,47:m,48:E,49:A,50:S,51:v,54:C,55:k,56:O,57:T,58:w,59:D,60:R,61:N,62:P,63:M,64:j,65:B,66:Y,67:L,68:I,69:U,70:F,71:X,72:z,73:Q,74:W,75:$,76:q,77:V,78:G,79:H,80:K,81:J,82:Z,83:tt,84:et}),t(it,[2,21]),t(nt,[2,23],{15:[1,88]}),t(it,[2,43],{15:[1,89]}),t(at,[2,26]),t(at,[2,27]),{35:[1,90]},{37:[1,91]},t(at,[2,30]),{45:92,85:93,86:st,87:rt,89:lt,90:ot},{45:98,85:93,86:st,87:rt,89:lt,90:ot},{45:99,85:93,86:st,87:rt,89:lt,90:ot},{45:100,85:93,86:st,87:rt,89:lt,90:ot},{45:101,85:93,86:st,87:rt,89:lt,90:ot},{45:102,85:93,86:st,87:rt,89:lt,90:ot},{45:103,85:93,86:st,87:rt,89:lt,90:ot},{45:104,85:93,86:st,87:rt,89:lt,90:ot},{45:105,85:93,86:st,87:rt,89:lt,90:ot},{45:106,85:93,86:st,87:rt,89:lt,90:ot},{45:107,85:93,86:st,87:rt,89:lt,90:ot},{45:108,85:93,86:st,87:rt,89:lt,90:ot},{45:109,85:93,86:st,87:rt,89:lt,90:ot},{45:110,85:93,86:st,87:rt,89:lt,90:ot},{45:111,85:93,86:st,87:rt,89:lt,90:ot},{45:112,85:93,86:st,87:rt,89:lt,90:ot},{45:113,85:93,86:st,87:rt,89:lt,90:ot},{45:114,85:93,86:st,87:rt,89:lt,90:ot},{45:115,85:93,86:st,87:rt,89:lt,90:ot},{45:116,85:93,86:st,87:rt,89:lt,90:ot},t(ct,[2,66]),{45:117,85:93,86:st,87:rt,89:lt,90:ot},{45:118,85:93,86:st,87:rt,89:lt,90:ot},{45:119,85:93,86:st,87:rt,89:lt,90:ot},{45:120,85:93,86:st,87:rt,89:lt,90:ot},{45:121,85:93,86:st,87:rt,89:lt,90:ot},{45:122,85:93,86:st,87:rt,89:lt,90:ot},{45:123,85:93,86:st,87:rt,89:lt,90:ot},{45:124,85:93,86:st,87:rt,89:lt,90:ot},{45:125,85:93,86:st,87:rt,89:lt,90:ot},{45:126,85:93,86:st,87:rt,89:lt,90:ot},{45:127,85:93,86:st,87:rt,89:lt,90:ot},{30:128,39:58,40:70,42:71,44:_,46:x,47:m,48:E,49:A,50:S,51:v,53:32,54:C,55:k,56:O,57:T,58:w,59:D,60:R,61:N,62:P,63:M,64:j,65:B,66:Y,67:L,68:I,69:U,70:F,71:X,72:z,73:Q,74:W,75:$,76:q,77:V,78:G,79:H,80:K,81:J,82:Z,83:tt,84:et},{15:[1,130],43:[1,129]},{45:131,85:93,86:st,87:rt,89:lt,90:ot},{45:132,85:93,86:st,87:rt,89:lt,90:ot},{45:133,85:93,86:st,87:rt,89:lt,90:ot},{45:134,85:93,86:st,87:rt,89:lt,90:ot},{45:135,85:93,86:st,87:rt,89:lt,90:ot},{45:136,85:93,86:st,87:rt,89:lt,90:ot},{45:137,85:93,86:st,87:rt,89:lt,90:ot},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},t(ht,[2,9]),{14:142,21:u},{21:[2,13]},{1:[2,15]},t(it,[2,22]),t(nt,[2,24],{31:31,29:143,32:p,33:y,34:f,36:b,38:g}),t(it,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:p,33:y,34:f,36:b,38:g,44:_,46:x,47:m,48:E,49:A,50:S,51:v,54:C,55:k,56:O,57:T,58:w,59:D,60:R,61:N,62:P,63:M,64:j,65:B,66:Y,67:L,68:I,69:U,70:F,71:X,72:z,73:Q,74:W,75:$,76:q,77:V,78:G,79:H,80:K,81:J,82:Z,83:tt,84:et}),t(at,[2,28]),t(at,[2,29]),t(ct,[2,46]),t(dt,[2,78],{85:93,45:145,86:st,87:rt,89:lt,90:ot}),t(ut,[2,80]),{88:[1,146]},t(ut,[2,82]),t(ut,[2,83]),t(ct,[2,47]),t(ct,[2,48]),t(ct,[2,49]),t(ct,[2,50]),t(ct,[2,51]),t(ct,[2,52]),t(ct,[2,53]),t(ct,[2,54]),t(ct,[2,55]),t(ct,[2,56]),t(ct,[2,57]),t(ct,[2,58]),t(ct,[2,59]),t(ct,[2,60]),t(ct,[2,61]),t(ct,[2,62]),t(ct,[2,63]),t(ct,[2,64]),t(ct,[2,65]),t(ct,[2,67]),t(ct,[2,68]),t(ct,[2,69]),t(ct,[2,70]),t(ct,[2,71]),t(ct,[2,72]),t(ct,[2,73]),t(ct,[2,74]),t(ct,[2,75]),t(ct,[2,76]),t(ct,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},t(pt,[2,35]),t(pt,[2,36]),t(pt,[2,37]),t(pt,[2,38]),t(pt,[2,39]),t(pt,[2,40]),t(pt,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},t(nt,[2,25]),t(it,[2,45]),t(dt,[2,79]),t(ut,[2,81]),t(ct,[2,31]),t(ct,[2,42]),t(yt,[2,32]),t(yt,[2,33],{15:[1,152]}),t(ht,[2,10]),t(yt,[2,34])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],6:[2,4],7:[2,5],8:[2,6],9:[2,7],16:[2,11],17:[2,3],27:[2,14],85:[2,13],86:[2,15],138:[2,16],139:[2,17],140:[2,18],141:[2,19]},parseError:function(t,e){if(!e.recoverable){var i=new Error(t);throw i.hash=e,i}this.trace(t)},parse:function(t){var e=[0],i=[],n=[null],a=[],s=this.table,r="",l=0,o=0,c=a.slice.call(arguments,1),h=Object.create(this.lexer),d={yy:{}};for(var u in this.yy)Object.prototype.hasOwnProperty.call(this.yy,u)&&(d.yy[u]=this.yy[u]);h.setInput(t,d.yy),d.yy.lexer=h,d.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var p=h.yylloc;a.push(p);var y=h.options&&h.options.ranges;"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var f,b,g,_,x,m,E,A,S,v={};;){if(b=e[e.length-1],this.defaultActions[b]?g=this.defaultActions[b]:(null==f&&(S=void 0,"number"!=typeof(S=i.pop()||h.lex()||1)&&(S instanceof Array&&(S=(i=S).pop()),S=this.symbols_[S]||S),f=S),g=s[b]&&s[b][f]),void 0===g||!g.length||!g[0]){var C;for(x in A=[],s[b])this.terminals_[x]&&x>2&&A.push("'"+this.terminals_[x]+"'");C=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(C,{text:h.match,token:this.terminals_[f]||f,line:h.yylineno,loc:p,expected:A})}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+f);switch(g[0]){case 1:e.push(f),n.push(h.yytext),a.push(h.yylloc),e.push(g[1]),f=null,o=h.yyleng,r=h.yytext,l=h.yylineno,p=h.yylloc;break;case 2:if(m=this.productions_[g[1]][1],v.$=n[n.length-m],v._$={first_line:a[a.length-(m||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(m||1)].first_column,last_column:a[a.length-1].last_column},y&&(v._$.range=[a[a.length-(m||1)].range[0],a[a.length-1].range[1]]),void 0!==(_=this.performAction.apply(v,[r,o,l,d.yy,g[1],n,a].concat(c))))return _;m&&(e=e.slice(0,-1*m*2),n=n.slice(0,-1*m),a=a.slice(0,-1*m)),e.push(this.productions_[g[1]][0]),n.push(v.$),a.push(v._$),E=s[e[e.length-2]][e[e.length-1]],e.push(E);break;case 3:return!0}}return!0}},bt={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var 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:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var i,n,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;se[0].length)){if(e=i,n=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,a[s])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,a[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,i,n){switch(i){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 78:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:case 21:case 75:break;case 19:c;break;case 20:return 15;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),55;case 28:return this.begin("person"),54;case 29:return this.begin("system_ext_queue"),61;case 30:return this.begin("system_ext_db"),60;case 31:return this.begin("system_ext"),59;case 32:return this.begin("system_queue"),58;case 33:return this.begin("system_db"),57;case 34:return this.begin("system"),56;case 35:return this.begin("boundary"),47;case 36:return this.begin("enterprise_boundary"),44;case 37:return this.begin("system_boundary"),46;case 38:return this.begin("container_ext_queue"),67;case 39:return this.begin("container_ext_db"),66;case 40:return this.begin("container_ext"),65;case 41:return this.begin("container_queue"),64;case 42:return this.begin("container_db"),63;case 43:return this.begin("container"),62;case 44:return this.begin("container_boundary"),48;case 45:return this.begin("component_ext_queue"),73;case 46:return this.begin("component_ext_db"),72;case 47:return this.begin("component_ext"),71;case 48:return this.begin("component_queue"),70;case 49:return this.begin("component_db"),69;case 50:return this.begin("component"),68;case 51:case 52:return this.begin("node"),49;case 53:return this.begin("node_l"),50;case 54:return this.begin("node_r"),51;case 55:return this.begin("rel"),74;case 56:return this.begin("birel"),75;case 57:case 58:return this.begin("rel_u"),76;case 59:case 60:return this.begin("rel_d"),77;case 61:case 62:return this.begin("rel_l"),78;case 63:case 64:return this.begin("rel_r"),79;case 65:return this.begin("rel_b"),80;case 66:return this.begin("rel_index"),81;case 67:return this.begin("update_el_style"),82;case 68:return this.begin("update_rel_style"),83;case 69:return this.begin("update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:this.begin("attribute");break;case 73:case 84:this.popState(),this.popState();break;case 74:case 76:return 90;case 77:this.begin("string");break;case 79:case 85:return"STR";case 80:this.begin("string_kv");break;case 81:return this.begin("string_kv_key"),"STR_KEY";case 82:this.popState(),this.begin("string_kv_value");break;case 83:return"STR_VALUE";case 86:return"LBRACE";case 87:return"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string_kv_value:{rules:[83,84],inclusive:!1},string_kv_key:{rules:[82],inclusive:!1},string_kv:{rules:[81],inclusive:!1},string:{rules:[78,79],inclusive:!1},attribute:{rules:[73,74,75,76,77,80,85],inclusive:!1},update_layout_config:{rules:[70,71,72,73],inclusive:!1},update_rel_style:{rules:[70,71,72,73],inclusive:!1},update_el_style:{rules:[70,71,72,73],inclusive:!1},rel_b:{rules:[70,71,72,73],inclusive:!1},rel_r:{rules:[70,71,72,73],inclusive:!1},rel_l:{rules:[70,71,72,73],inclusive:!1},rel_d:{rules:[70,71,72,73],inclusive:!1},rel_u:{rules:[70,71,72,73],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[70,71,72,73],inclusive:!1},node_r:{rules:[70,71,72,73],inclusive:!1},node_l:{rules:[70,71,72,73],inclusive:!1},node:{rules:[70,71,72,73],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[70,71,72,73],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[70,71,72,73],inclusive:!1},component_ext:{rules:[70,71,72,73],inclusive:!1},component_queue:{rules:[70,71,72,73],inclusive:!1},component_db:{rules:[70,71,72,73],inclusive:!1},component:{rules:[70,71,72,73],inclusive:!1},container_boundary:{rules:[70,71,72,73],inclusive:!1},container_ext_queue:{rules:[],inclusive:!1},container_ext_db:{rules:[70,71,72,73],inclusive:!1},container_ext:{rules:[70,71,72,73],inclusive:!1},container_queue:{rules:[70,71,72,73],inclusive:!1},container_db:{rules:[70,71,72,73],inclusive:!1},container:{rules:[70,71,72,73],inclusive:!1},birel:{rules:[70,71,72,73],inclusive:!1},system_boundary:{rules:[70,71,72,73],inclusive:!1},enterprise_boundary:{rules:[70,71,72,73],inclusive:!1},boundary:{rules:[70,71,72,73],inclusive:!1},system_ext_queue:{rules:[70,71,72,73],inclusive:!1},system_ext_db:{rules:[70,71,72,73],inclusive:!1},system_ext:{rules:[70,71,72,73],inclusive:!1},system_queue:{rules:[70,71,72,73],inclusive:!1},system_db:{rules:[70,71,72,73],inclusive:!1},system:{rules:[70,71,72,73],inclusive:!1},person_ext:{rules:[70,71,72,73],inclusive:!1},person:{rules:[70,71,72,73],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,86,87,88,89,90],inclusive:!0}}};function gt(){this.yy={}}return ft.lexer=bt,gt.prototype=ft,ft.Parser=gt,new gt}());l.parser=l;const o=l;let h=[],d=[""],u="global",p="",y=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],f=[],b="",g=!1,_=4,x=2;var m;const E=function(t){return null==t?h:h.filter((e=>e.parentBoundary===t))},A=function(){return g},S={addPersonOrSystem:function(t,e,i,n,a,s,r){if(null===e||null===i)return;let l={};const o=h.find((t=>t.alias===e));if(o&&e===o.alias?l=o:(l.alias=e,h.push(l)),l.label=null==i?{text:""}:{text:i},null==n)l.descr={text:""};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];l[t]={text:e}}else l.descr={text:n};if("object"==typeof a){let[t,e]=Object.entries(a)[0];l[t]=e}else l.sprite=a;if("object"==typeof s){let[t,e]=Object.entries(s)[0];l[t]=e}else l.tags=s;if("object"==typeof r){let[t,e]=Object.entries(r)[0];l[t]=e}else l.link=r;l.typeC4Shape={text:t},l.parentBoundary=u,l.wrap=A()},addPersonOrSystemBoundary:function(t,e,i,n,a){if(null===t||null===e)return;let s={};const r=y.find((e=>e.alias===t));if(r&&t===r.alias?s=r:(s.alias=t,y.push(s)),s.label=null==e?{text:""}:{text:e},null==i)s.type={text:"system"};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];s[t]={text:e}}else s.type={text:i};if("object"==typeof n){let[t,e]=Object.entries(n)[0];s[t]=e}else s.tags=n;if("object"==typeof a){let[t,e]=Object.entries(a)[0];s[t]=e}else s.link=a;s.parentBoundary=u,s.wrap=A(),p=u,u=t,d.push(p)},addContainer:function(t,e,i,n,a,s,r,l){if(null===e||null===i)return;let o={};const c=h.find((t=>t.alias===e));if(c&&e===c.alias?o=c:(o.alias=e,h.push(o)),o.label=null==i?{text:""}:{text:i},null==n)o.techn={text:""};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];o[t]={text:e}}else o.techn={text:n};if(null==a)o.descr={text:""};else if("object"==typeof a){let[t,e]=Object.entries(a)[0];o[t]={text:e}}else o.descr={text:a};if("object"==typeof s){let[t,e]=Object.entries(s)[0];o[t]=e}else o.sprite=s;if("object"==typeof r){let[t,e]=Object.entries(r)[0];o[t]=e}else o.tags=r;if("object"==typeof l){let[t,e]=Object.entries(l)[0];o[t]=e}else o.link=l;o.wrap=A(),o.typeC4Shape={text:t},o.parentBoundary=u},addContainerBoundary:function(t,e,i,n,a){if(null===t||null===e)return;let s={};const r=y.find((e=>e.alias===t));if(r&&t===r.alias?s=r:(s.alias=t,y.push(s)),s.label=null==e?{text:""}:{text:e},null==i)s.type={text:"container"};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];s[t]={text:e}}else s.type={text:i};if("object"==typeof n){let[t,e]=Object.entries(n)[0];s[t]=e}else s.tags=n;if("object"==typeof a){let[t,e]=Object.entries(a)[0];s[t]=e}else s.link=a;s.parentBoundary=u,s.wrap=A(),p=u,u=t,d.push(p)},addComponent:function(t,e,i,n,a,s,r,l){if(null===e||null===i)return;let o={};const c=h.find((t=>t.alias===e));if(c&&e===c.alias?o=c:(o.alias=e,h.push(o)),o.label=null==i?{text:""}:{text:i},null==n)o.techn={text:""};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];o[t]={text:e}}else o.techn={text:n};if(null==a)o.descr={text:""};else if("object"==typeof a){let[t,e]=Object.entries(a)[0];o[t]={text:e}}else o.descr={text:a};if("object"==typeof s){let[t,e]=Object.entries(s)[0];o[t]=e}else o.sprite=s;if("object"==typeof r){let[t,e]=Object.entries(r)[0];o[t]=e}else o.tags=r;if("object"==typeof l){let[t,e]=Object.entries(l)[0];o[t]=e}else o.link=l;o.wrap=A(),o.typeC4Shape={text:t},o.parentBoundary=u},addDeploymentNode:function(t,e,i,n,a,s,r,l){if(null===e||null===i)return;let o={};const c=y.find((t=>t.alias===e));if(c&&e===c.alias?o=c:(o.alias=e,y.push(o)),o.label=null==i?{text:""}:{text:i},null==n)o.type={text:"node"};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];o[t]={text:e}}else o.type={text:n};if(null==a)o.descr={text:""};else if("object"==typeof a){let[t,e]=Object.entries(a)[0];o[t]={text:e}}else o.descr={text:a};if("object"==typeof r){let[t,e]=Object.entries(r)[0];o[t]=e}else o.tags=r;if("object"==typeof l){let[t,e]=Object.entries(l)[0];o[t]=e}else o.link=l;o.nodeType=t,o.parentBoundary=u,o.wrap=A(),p=u,u=e,d.push(p)},popBoundaryParseStack:function(){u=p,d.pop(),p=d.pop(),d.push(p)},addRel:function(t,e,i,n,a,s,r,l,o){if(null==t||null==e||null==i||null==n)return;let c={};const h=f.find((t=>t.from===e&&t.to===i));if(h?c=h:f.push(c),c.type=t,c.from=e,c.to=i,c.label={text:n},null==a)c.techn={text:""};else if("object"==typeof a){let[t,e]=Object.entries(a)[0];c[t]={text:e}}else c.techn={text:a};if(null==s)c.descr={text:""};else if("object"==typeof s){let[t,e]=Object.entries(s)[0];c[t]={text:e}}else c.descr={text:s};if("object"==typeof r){let[t,e]=Object.entries(r)[0];c[t]=e}else c.sprite=r;if("object"==typeof l){let[t,e]=Object.entries(l)[0];c[t]=e}else c.tags=l;if("object"==typeof o){let[t,e]=Object.entries(o)[0];c[t]=e}else c.link=o;c.wrap=A()},updateElStyle:function(t,e,i,n,a,s,r,l,o,c,d){let u=h.find((t=>t.alias===e));if(void 0!==u||(u=y.find((t=>t.alias===e)),void 0!==u)){if(null!=i)if("object"==typeof i){let[t,e]=Object.entries(i)[0];u[t]=e}else u.bgColor=i;if(null!=n)if("object"==typeof n){let[t,e]=Object.entries(n)[0];u[t]=e}else u.fontColor=n;if(null!=a)if("object"==typeof a){let[t,e]=Object.entries(a)[0];u[t]=e}else u.borderColor=a;if(null!=s)if("object"==typeof s){let[t,e]=Object.entries(s)[0];u[t]=e}else u.shadowing=s;if(null!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];u[t]=e}else u.shape=r;if(null!=l)if("object"==typeof l){let[t,e]=Object.entries(l)[0];u[t]=e}else u.sprite=l;if(null!=o)if("object"==typeof o){let[t,e]=Object.entries(o)[0];u[t]=e}else u.techn=o;if(null!=c)if("object"==typeof c){let[t,e]=Object.entries(c)[0];u[t]=e}else u.legendText=c;if(null!=d)if("object"==typeof d){let[t,e]=Object.entries(d)[0];u[t]=e}else u.legendSprite=d}},updateRelStyle:function(t,e,i,n,a,s,r){const l=f.find((t=>t.from===e&&t.to===i));if(void 0!==l){if(null!=n)if("object"==typeof n){let[t,e]=Object.entries(n)[0];l[t]=e}else l.textColor=n;if(null!=a)if("object"==typeof a){let[t,e]=Object.entries(a)[0];l[t]=e}else l.lineColor=a;if(null!=s)if("object"==typeof s){let[t,e]=Object.entries(s)[0];l[t]=parseInt(e)}else l.offsetX=parseInt(s);if(null!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];l[t]=parseInt(e)}else l.offsetY=parseInt(r)}},updateLayoutConfig:function(t,e,i){let n=_,a=x;if("object"==typeof e){const t=Object.values(e)[0];n=parseInt(t)}else n=parseInt(e);if("object"==typeof i){const t=Object.values(i)[0];a=parseInt(t)}else a=parseInt(i);n>=1&&(_=n),a>=1&&(x=a)},autoWrap:A,setWrap:function(t){g=t},getC4ShapeArray:E,getC4Shape:function(t){return h.find((e=>e.alias===t))},getC4ShapeKeys:function(t){return Object.keys(E(t))},getBoundarys:function(t){return null==t?y:y.filter((e=>e.parentBoundary===t))},getCurrentBoundaryParse:function(){return u},getParentBoundaryParse:function(){return p},getRels:function(){return f},getTitle:function(){return b},getC4Type:function(){return m},getC4ShapeInRow:function(){return _},getC4BoundaryInRow:function(){return x},setAccTitle:n.s,getAccTitle:n.g,getAccDescription:n.a,setAccDescription:n.b,parseDirective:function(t,e,i){n.m.parseDirective(this,t,e,i)},getConfig:()=>(0,n.c)().c4,clear:function(){h=[],y=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],p="",u="global",d=[""],f=[],d=[""],b="",g=!1,_=4,x=2},LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:function(t){let e=(0,n.d)(t,(0,n.c)());b=e},setC4Type:function(t){let e=(0,n.d)(t,(0,n.c)());m=e}},v=function(t,e){return(0,s.d)(t,e)},C=function(){function t(t,e,i,n,s,r,l){a(e.append("text").attr("x",i+s/2).attr("y",n+r/2+5).style("text-anchor","middle").text(t),l)}function e(t,e,i,s,r,l,o,c){const{fontSize:h,fontFamily:d,fontWeight:u}=c,p=t.split(n.e.lineBreakRegex);for(let t=0;t>"),e.typeC4Shape.text){case"person":case"external_person":!function(t,e,i,n,a,s){const l=t.append("image");l.attr("width",e),l.attr("height",i),l.attr("x",n),l.attr("y",a);let o=s.startsWith("data:image/png;base64")?s:(0,r.N)(s);l.attr("xlink:href",o)}(h,48,48,e.x+e.width/2-24,e.y+e.image.Y,c)}let f=i[e.typeC4Shape.text+"Font"]();return f.fontWeight="bold",f.fontSize=f.fontSize+2,f.fontColor=o,C(i)(e.label.text,h,e.x,e.y+e.label.Y,e.width,e.height,{fill:o},f),f=i[e.typeC4Shape.text+"Font"](),f.fontColor=o,e.techn&&""!==(null==(n=e.techn)?void 0:n.text)?C(i)(e.techn.text,h,e.x,e.y+e.techn.Y,e.width,e.height,{fill:o,"font-style":"italic"},f):e.type&&""!==e.type.text&&C(i)(e.type.text,h,e.x,e.y+e.type.Y,e.width,e.height,{fill:o,"font-style":"italic"},f),e.descr&&""!==e.descr.text&&(f=i.personFont(),f.fontColor=o,C(i)(e.descr.text,h,e.x,e.y+e.descr.Y,e.width,e.height,{fill:o},f)),e.height};let O=0,T=0,w=4,D=2;l.yy=S;let R={};class N{constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,P(t.db.getConfig())}setData(t,e,i,n){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=i,this.nextData.stopy=this.data.stopy=n}updateVal(t,e,i,n){void 0===t[e]?t[e]=i:t[e]=n(i,t[e])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let e=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+2*t.margin,i=e+t.width,n=this.nextData.starty+2*t.margin,a=n+t.height;(e>=this.data.widthLimit||i>=this.data.widthLimit||this.nextData.cnt>w)&&(e=this.nextData.startx+t.margin+R.nextLinePaddingX,n=this.nextData.stopy+2*t.margin,this.nextData.stopx=i=e+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=a=n+t.height,this.nextData.cnt=1),t.x=e,t.y=n,this.updateVal(this.data,"startx",e,Math.min),this.updateVal(this.data,"starty",n,Math.min),this.updateVal(this.data,"stopx",i,Math.max),this.updateVal(this.data,"stopy",a,Math.max),this.updateVal(this.nextData,"startx",e,Math.min),this.updateVal(this.nextData,"starty",n,Math.min),this.updateVal(this.nextData,"stopx",i,Math.max),this.updateVal(this.nextData,"stopy",a,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},P(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}}const P=function(t){(0,n.f)(R,t),t.fontFamily&&(R.personFontFamily=R.systemFontFamily=R.messageFontFamily=t.fontFamily),t.fontSize&&(R.personFontSize=R.systemFontSize=R.messageFontSize=t.fontSize),t.fontWeight&&(R.personFontWeight=R.systemFontWeight=R.messageFontWeight=t.fontWeight)},M=(t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),j=t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight});function B(t,e,i,a,s){if(!e[t].width)if(i)e[t].text=(0,n.w)(e[t].text,s,a),e[t].textLines=e[t].text.split(n.e.lineBreakRegex).length,e[t].width=s,e[t].height=(0,n.j)(e[t].text,a);else{let i=e[t].text.split(n.e.lineBreakRegex);e[t].textLines=i.length;let s=0;e[t].height=0,e[t].width=0;for(const r of i)e[t].width=Math.max((0,n.h)(r,a),e[t].width),s=(0,n.j)(r,a),e[t].height=e[t].height+s}}const Y=function(t,e,i){e.x=i.data.startx,e.y=i.data.starty,e.width=i.data.stopx-i.data.startx,e.height=i.data.stopy-i.data.starty,e.label.y=R.c4ShapeMargin-35;let a=e.wrap&&R.wrap,s=j(R);s.fontSize=s.fontSize+2,s.fontWeight="bold",B("label",e,a,s,(0,n.h)(e.label.text,s)),function(t,e,i){const n=t.append("g");let a=e.bgColor?e.bgColor:"none",s=e.borderColor?e.borderColor:"#444444",r=e.fontColor?e.fontColor:"black",l={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(l={"stroke-width":1});let o={x:e.x,y:e.y,fill:a,stroke:s,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:l};v(n,o);let c=i.boundaryFont();c.fontWeight="bold",c.fontSize=c.fontSize+2,c.fontColor=r,C(i)(e.label.text,n,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},c),e.type&&""!==e.type.text&&(c=i.boundaryFont(),c.fontColor=r,C(i)(e.type.text,n,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},c)),e.descr&&""!==e.descr.text&&(c=i.boundaryFont(),c.fontSize=c.fontSize-2,c.fontColor=r,C(i)(e.descr.text,n,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},c))}(t,e,R)},L=function(t,e,i,a){let s=0;for(const r of a){s=0;const a=i[r];let l=M(R,a.typeC4Shape.text);switch(l.fontSize=l.fontSize-2,a.typeC4Shape.width=(0,n.h)("<<"+a.typeC4Shape.text+">>",l),a.typeC4Shape.height=l.fontSize+2,a.typeC4Shape.Y=R.c4ShapePadding,s=a.typeC4Shape.Y+a.typeC4Shape.height-4,a.image={width:0,height:0,Y:0},a.typeC4Shape.text){case"person":case"external_person":a.image.width=48,a.image.height=48,a.image.Y=s,s=a.image.Y+a.image.height}a.sprite&&(a.image.width=48,a.image.height=48,a.image.Y=s,s=a.image.Y+a.image.height);let o=a.wrap&&R.wrap,c=R.width-2*R.c4ShapePadding,h=M(R,a.typeC4Shape.text);h.fontSize=h.fontSize+2,h.fontWeight="bold",B("label",a,o,h,c),a.label.Y=s+8,s=a.label.Y+a.label.height,a.type&&""!==a.type.text?(a.type.text="["+a.type.text+"]",B("type",a,o,M(R,a.typeC4Shape.text),c),a.type.Y=s+5,s=a.type.Y+a.type.height):a.techn&&""!==a.techn.text&&(a.techn.text="["+a.techn.text+"]",B("techn",a,o,M(R,a.techn.text),c),a.techn.Y=s+5,s=a.techn.Y+a.techn.height);let d=s,u=a.label.width;a.descr&&""!==a.descr.text&&(B("descr",a,o,M(R,a.typeC4Shape.text),c),a.descr.Y=s+20,s=a.descr.Y+a.descr.height,u=Math.max(a.label.width,a.descr.width),d=s-5*a.descr.textLines),u+=R.c4ShapePadding,a.width=Math.max(a.width||R.width,u,R.width),a.height=Math.max(a.height||R.height,d,R.height),a.margin=a.margin||R.c4ShapeMargin,t.insert(a),k(e,a,R)}t.bumpLastMargin(R.c4ShapeMargin)};class I{constructor(t,e){this.x=t,this.y=e}}let U=function(t,e){let i=t.x,n=t.y,a=e.x,s=e.y,r=i+t.width/2,l=n+t.height/2,o=Math.abs(i-a),c=Math.abs(n-s),h=c/o,d=t.height/t.width,u=null;return n==s&&ia?u=new I(i,l):i==a&&ns&&(u=new I(r,n)),i>a&&n=h?new I(i,l+h*t.width/2):new I(r-o/c*t.height/2,n+t.height):i=h?new I(i+t.width,l+h*t.width/2):new I(r+o/c*t.height/2,n+t.height):is?u=d>=h?new I(i+t.width,l-h*t.width/2):new I(r+t.height/2*o/c,n):i>a&&n>s&&(u=d>=h?new I(i,l-t.width/2*h):new I(r-t.height/2*o/c,n)),u},F=function(t,e){let i={x:0,y:0};i.x=e.x+e.width/2,i.y=e.y+e.height/2;let n=U(t,i);return i.x=t.x+t.width/2,i.y=t.y+t.height/2,{startPoint:n,endPoint:U(e,i)}};function X(t,e,i,n,a){let s=new N(a);s.data.widthLimit=i.data.widthLimit/Math.min(D,n.length);for(let[r,l]of n.entries()){let n=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=n,n=l.image.Y+l.image.height);let o=l.wrap&&R.wrap,c=j(R);if(c.fontSize=c.fontSize+2,c.fontWeight="bold",B("label",l,o,c,s.data.widthLimit),l.label.Y=n+8,n=l.label.Y+l.label.height,l.type&&""!==l.type.text&&(l.type.text="["+l.type.text+"]",B("type",l,o,j(R),s.data.widthLimit),l.type.Y=n+5,n=l.type.Y+l.type.height),l.descr&&""!==l.descr.text){let t=j(R);t.fontSize=t.fontSize-2,B("descr",l,o,t,s.data.widthLimit),l.descr.Y=n+20,n=l.descr.Y+l.descr.height}if(0==r||r%D==0){let t=i.data.startx+R.diagramMarginX,e=i.data.stopy+R.diagramMarginY+n;s.setData(t,t,e,e)}else{let t=s.data.stopx!==s.data.startx?s.data.stopx+R.diagramMarginX:s.data.startx,e=s.data.starty;s.setData(t,t,e,e)}s.name=l.alias;let h=a.db.getC4ShapeArray(l.alias),d=a.db.getC4ShapeKeys(l.alias);d.length>0&&L(s,t,h,d),e=l.alias;let u=a.db.getBoundarys(e);u.length>0&&X(t,e,s,u,a),"global"!==l.alias&&Y(t,l,s),i.data.stopy=Math.max(s.data.stopy+R.c4ShapeMargin,i.data.stopy),i.data.stopx=Math.max(s.data.stopx+R.c4ShapeMargin,i.data.stopx),O=Math.max(O,i.data.stopx),T=Math.max(T,i.data.stopy)}}const z={drawPersonOrSystemArray:L,drawBoundary:Y,setConf:P,draw:function(t,e,i,s){R=(0,n.c)().c4;const r=(0,n.c)().securityLevel;let l;"sandbox"===r&&(l=(0,a.Ys)("#i"+e));const o="sandbox"===r?(0,a.Ys)(l.nodes()[0].contentDocument.body):(0,a.Ys)("body");let c=s.db;s.db.setWrap(R.wrap),w=c.getC4ShapeInRow(),D=c.getC4BoundaryInRow(),n.l.debug(`C:${JSON.stringify(R,null,2)}`);const h="sandbox"===r?o.select(`[id="${e}"]`):(0,a.Ys)(`[id="${e}"]`);h.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z"),function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")}(h),function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")}(h);let d=new N(s);d.setData(R.diagramMarginX,R.diagramMarginX,R.diagramMarginY,R.diagramMarginY),d.data.widthLimit=screen.availWidth,O=R.diagramMarginX,T=R.diagramMarginY;const u=s.db.getTitle();X(h,"",d,s.db.getBoundarys(""),s),function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")}(h),function(t){t.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")}(h),function(t){const e=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);e.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),e.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")}(h),function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}(h),function(t,e,i,a){let s=0;for(let t of e){s+=1;let e=t.wrap&&R.wrap,l={fontFamily:(r=R).messageFontFamily,fontSize:r.messageFontSize,fontWeight:r.messageFontWeight};"C4Dynamic"===a.db.getC4Type()&&(t.label.text=s+": "+t.label.text);let o=(0,n.h)(t.label.text,l);B("label",t,e,l,o),t.techn&&""!==t.techn.text&&(o=(0,n.h)(t.techn.text,l),B("techn",t,e,l,o)),t.descr&&""!==t.descr.text&&(o=(0,n.h)(t.descr.text,l),B("descr",t,e,l,o));let c=i(t.from),h=i(t.to),d=F(c,h);t.startPoint=d.startPoint,t.endPoint=d.endPoint}var r;((t,e,i)=>{const n=t.append("g");let a=0;for(let t of e){let e=t.textColor?t.textColor:"#444444",s=t.lineColor?t.lineColor:"#444444",r=t.offsetX?parseInt(t.offsetX):0,l=t.offsetY?parseInt(t.offsetY):0,o="";if(0===a){let e=n.append("line");e.attr("x1",t.startPoint.x),e.attr("y1",t.startPoint.y),e.attr("x2",t.endPoint.x),e.attr("y2",t.endPoint.y),e.attr("stroke-width","1"),e.attr("stroke",s),e.style("fill","none"),"rel_b"!==t.type&&e.attr("marker-end","url("+o+"#arrowhead)"),"birel"!==t.type&&"rel_b"!==t.type||e.attr("marker-start","url("+o+"#arrowend)"),a=-1}else{let e=n.append("path");e.attr("fill","none").attr("stroke-width","1").attr("stroke",s).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",t.startPoint.x).replaceAll("starty",t.startPoint.y).replaceAll("controlx",t.startPoint.x+(t.endPoint.x-t.startPoint.x)/2-(t.endPoint.x-t.startPoint.x)/4).replaceAll("controly",t.startPoint.y+(t.endPoint.y-t.startPoint.y)/2).replaceAll("stopx",t.endPoint.x).replaceAll("stopy",t.endPoint.y)),"rel_b"!==t.type&&e.attr("marker-end","url("+o+"#arrowhead)"),"birel"!==t.type&&"rel_b"!==t.type||e.attr("marker-start","url("+o+"#arrowend)")}let c=i.messageFont();C(i)(t.label.text,n,Math.min(t.startPoint.x,t.endPoint.x)+Math.abs(t.endPoint.x-t.startPoint.x)/2+r,Math.min(t.startPoint.y,t.endPoint.y)+Math.abs(t.endPoint.y-t.startPoint.y)/2+l,t.label.width,t.label.height,{fill:e},c),t.techn&&""!==t.techn.text&&(c=i.messageFont(),C(i)("["+t.techn.text+"]",n,Math.min(t.startPoint.x,t.endPoint.x)+Math.abs(t.endPoint.x-t.startPoint.x)/2+r,Math.min(t.startPoint.y,t.endPoint.y)+Math.abs(t.endPoint.y-t.startPoint.y)/2+i.messageFontSize+5+l,Math.max(t.label.width,t.techn.width),t.techn.height,{fill:e,"font-style":"italic"},c))}})(t,e,R)}(h,s.db.getRels(),s.db.getC4Shape,s),d.data.stopx=O,d.data.stopy=T;const p=d.data;let y=p.stopy-p.starty+2*R.diagramMarginY;const f=p.stopx-p.startx+2*R.diagramMarginX;u&&h.append("text").text(u).attr("x",(p.stopx-p.startx)/2-4*R.diagramMarginX).attr("y",p.starty+R.diagramMarginY),(0,n.i)(h,y,f,R.useMaxWidth);const b=u?60:0;h.attr("viewBox",p.startx-R.diagramMarginX+" -"+(R.diagramMarginY+b)+" "+f+" "+(y+b)),n.l.debug("models:",p)}},Q={parser:o,db:S,renderer:z,styles:t=>`.person {\n stroke: ${t.personBorder};\n fill: ${t.personBkg};\n }\n`,init:t=>{z.setConf(t.c4)}}},38770:(t,e,i)=>{i.d(e,{a:()=>s,b:()=>o,c:()=>l,d:()=>a,e:()=>h,f:()=>r,g:()=>c});var n=i(17967);const a=function(t,e){const i=t.append("rect");if(i.attr("x",e.x),i.attr("y",e.y),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("width",e.width),i.attr("height",e.height),i.attr("rx",e.rx),i.attr("ry",e.ry),"undefined"!==e.attrs&&null!==e.attrs)for(let t in e.attrs)i.attr(t,e.attrs[t]);return"undefined"!==e.class&&i.attr("class",e.class),i},s=function(t,e){a(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},r=function(t,e){const i=e.text.replace(//gi," "),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.attr("class","legend"),n.style("text-anchor",e.anchor),void 0!==e.class&&n.attr("class",e.class);const a=n.append("tspan");return a.attr("x",e.x+2*e.textMargin),a.text(i),n},l=function(t,e,i,a){const s=t.append("image");s.attr("x",e),s.attr("y",i);var r=(0,n.N)(a);s.attr("xlink:href",r)},o=function(t,e,i,a){const s=t.append("use");s.attr("x",e),s.attr("y",i);const r=(0,n.N)(a);s.attr("xlink:href","#"+r)},c=function(){return{x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}},h=function(){return{x:0,y:0,width:100,height:100,fill:void 0,anchor:void 0,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}}}}]); \ No newline at end of file diff --git a/static/js/564.js b/static/js/564.js deleted file mode 100644 index e8d704b96..000000000 --- a/static/js/564.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 564.js.LICENSE.txt */ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[564],{45288:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>gt,DefinitionAdapter:()=>yt,DiagnosticsAdapter:()=>ct,DocumentColorAdapter:()=>Mt,DocumentFormattingEditProvider:()=>Rt,DocumentHighlightAdapter:()=>kt,DocumentLinkAdapter:()=>St,DocumentRangeFormattingEditProvider:()=>Tt,DocumentSymbolAdapter:()=>At,FoldingRangeAdapter:()=>Pt,HoverAdapter:()=>mt,ReferenceAdapter:()=>Ct,RenameAdapter:()=>xt,SelectionRangeAdapter:()=>Ft,WorkerManager:()=>oe,fromPosition:()=>lt,fromRange:()=>ht,setupMode:()=>Lt,toRange:()=>ft,toTextEdit:()=>vt});var r=n(1593),i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of a(t))s.call(e,u)||u===n||i(e,u,{get:()=>t[u],enumerable:!(r=o(t,u))||r.enumerable});return e},c={};u(c,r,"default");var d,g,l,h,f,p,v,m,_,w,k,b,y,E,C,x,A,I,S,R,T,D,M,P,F,L,j,O,N,U,W,V,H,K,z,X,B,$,q,Q,G,J,Y,Z,ee,te,ne,re,ie,oe=class{_defaults;_idleCheckInterval;_lastUsedTime;_configChangeListener;_worker;_client;constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(g=d||(d={})).MIN_VALUE=-2147483648,g.MAX_VALUE=2147483647,(h=l||(l={})).MIN_VALUE=0,h.MAX_VALUE=2147483647,(p=f||(f={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=l.MAX_VALUE),t===Number.MAX_VALUE&&(t=l.MAX_VALUE),{line:e,character:t}},p.is=function(e){var t=e;return ot.objectLiteral(t)&&ot.uinteger(t.line)&&ot.uinteger(t.character)},(m=v||(v={})).create=function(e,t,n,r){if(ot.uinteger(e)&&ot.uinteger(t)&&ot.uinteger(n)&&ot.uinteger(r))return{start:f.create(e,t),end:f.create(n,r)};if(f.is(e)&&f.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},m.is=function(e){var t=e;return ot.objectLiteral(t)&&f.is(t.start)&&f.is(t.end)},(w=_||(_={})).create=function(e,t){return{uri:e,range:t}},w.is=function(e){var t=e;return ot.defined(t)&&v.is(t.range)&&(ot.string(t.uri)||ot.undefined(t.uri))},(b=k||(k={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},b.is=function(e){var t=e;return ot.defined(t)&&v.is(t.targetRange)&&ot.string(t.targetUri)&&(v.is(t.targetSelectionRange)||ot.undefined(t.targetSelectionRange))&&(v.is(t.originSelectionRange)||ot.undefined(t.originSelectionRange))},(E=y||(y={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},E.is=function(e){var t=e;return ot.numberRange(t.red,0,1)&&ot.numberRange(t.green,0,1)&&ot.numberRange(t.blue,0,1)&&ot.numberRange(t.alpha,0,1)},(x=C||(C={})).create=function(e,t){return{range:e,color:t}},x.is=function(e){var t=e;return v.is(t.range)&&y.is(t.color)},(I=A||(A={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},I.is=function(e){var t=e;return ot.string(t.label)&&(ot.undefined(t.textEdit)||K.is(t))&&(ot.undefined(t.additionalTextEdits)||ot.typedArray(t.additionalTextEdits,K.is))},(R=S||(S={})).Comment="comment",R.Imports="imports",R.Region="region",(D=T||(T={})).create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return ot.defined(n)&&(o.startCharacter=n),ot.defined(r)&&(o.endCharacter=r),ot.defined(i)&&(o.kind=i),o},D.is=function(e){var t=e;return ot.uinteger(t.startLine)&&ot.uinteger(t.startLine)&&(ot.undefined(t.startCharacter)||ot.uinteger(t.startCharacter))&&(ot.undefined(t.endCharacter)||ot.uinteger(t.endCharacter))&&(ot.undefined(t.kind)||ot.string(t.kind))},(P=M||(M={})).create=function(e,t){return{location:e,message:t}},P.is=function(e){var t=e;return ot.defined(t)&&_.is(t.location)&&ot.string(t.message)},(L=F||(F={})).Error=1,L.Warning=2,L.Information=3,L.Hint=4,(O=j||(j={})).Unnecessary=1,O.Deprecated=2,(N||(N={})).is=function(e){var t=e;return null!=t&&ot.string(t.href)},(W=U||(U={})).create=function(e,t,n,r,i,o){var a={range:e,message:t};return ot.defined(n)&&(a.severity=n),ot.defined(r)&&(a.code=r),ot.defined(i)&&(a.source=i),ot.defined(o)&&(a.relatedInformation=o),a},W.is=function(e){var t,n=e;return ot.defined(n)&&v.is(n.range)&&ot.string(n.message)&&(ot.number(n.severity)||ot.undefined(n.severity))&&(ot.integer(n.code)||ot.string(n.code)||ot.undefined(n.code))&&(ot.undefined(n.codeDescription)||ot.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(ot.string(n.source)||ot.undefined(n.source))&&(ot.undefined(n.relatedInformation)||ot.typedArray(n.relatedInformation,M.is))},(H=V||(V={})).create=function(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i},H.is=function(e){var t=e;return ot.defined(t)&&ot.string(t.title)&&ot.string(t.command)},(z=K||(K={})).replace=function(e,t){return{range:e,newText:t}},z.insert=function(e,t){return{range:{start:e,end:e},newText:t}},z.del=function(e){return{range:e,newText:""}},z.is=function(e){var t=e;return ot.objectLiteral(t)&&ot.string(t.newText)&&v.is(t.range)},(B=X||(X={})).create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},B.is=function(e){var t=e;return void 0!==t&&ot.objectLiteral(t)&&ot.string(t.label)&&(ot.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(ot.string(t.description)||void 0===t.description)},($||($={})).is=function(e){return"string"==typeof e},(Q=q||(q={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},Q.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},Q.del=function(e,t){return{range:e,newText:"",annotationId:t}},Q.is=function(e){var t=e;return K.is(t)&&(X.is(t.annotationId)||$.is(t.annotationId))},(J=G||(G={})).create=function(e,t){return{textDocument:e,edits:t}},J.is=function(e){var t=e;return ot.defined(t)&&de.is(t.textDocument)&&Array.isArray(t.edits)},(Z=Y||(Y={})).create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},Z.is=function(e){var t=e;return t&&"create"===t.kind&&ot.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||ot.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ot.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||$.is(t.annotationId))},(te=ee||(ee={})).create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},te.is=function(e){var t=e;return t&&"rename"===t.kind&&ot.string(t.oldUri)&&ot.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||ot.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ot.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||$.is(t.annotationId))},(re=ne||(ne={})).create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},re.is=function(e){var t=e;return t&&"delete"===t.kind&&ot.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||ot.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||ot.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||$.is(t.annotationId))},(ie||(ie={})).is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return ot.string(e.kind)?Y.is(e)||ee.is(e)||ne.is(e):G.is(e)})))};var ae,se,ue,ce,de,ge,le,he,fe,pe,ve,me,_e,we,ke,be,ye,Ee,Ce,xe,Ae,Ie,Se,Re,Te,De,Me,Pe,Fe,Le,je,Oe,Ne,Ue,We,Ve,He,Ke,ze,Xe,Be,$e,qe,Qe,Ge,Je,Ye,Ze,et,tt,nt,rt=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=K.insert(e,t):$.is(n)?(i=n,r=q.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=q.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=K.replace(e,t):$.is(n)?(i=n,r=q.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=q.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=K.del(e):$.is(t)?(r=t,n=q.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=q.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),it=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if($.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new it(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(G.is(e)){var n=new rt(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new rt(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(de.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new rt(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new rt(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new it,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(X.is(t)||$.is(t)?r=t:n=t,void 0===r?i=Y.create(e,n):(o=$.is(r)?r:this._changeAnnotations.manage(r),i=Y.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(X.is(n)||$.is(n)?i=n:r=n,void 0===i?o=ee.create(e,t,r):(a=$.is(i)?i:this._changeAnnotations.manage(i),o=ee.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(X.is(t)||$.is(t)?r=t:n=t,void 0===r?i=ne.create(e,n):(o=$.is(r)?r:this._changeAnnotations.manage(r),i=ne.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),(se=ae||(ae={})).create=function(e){return{uri:e}},se.is=function(e){var t=e;return ot.defined(t)&&ot.string(t.uri)},(ce=ue||(ue={})).create=function(e,t){return{uri:e,version:t}},ce.is=function(e){var t=e;return ot.defined(t)&&ot.string(t.uri)&&ot.integer(t.version)},(ge=de||(de={})).create=function(e,t){return{uri:e,version:t}},ge.is=function(e){var t=e;return ot.defined(t)&&ot.string(t.uri)&&(null===t.version||ot.integer(t.version))},(he=le||(le={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},he.is=function(e){var t=e;return ot.defined(t)&&ot.string(t.uri)&&ot.string(t.languageId)&&ot.integer(t.version)&&ot.string(t.text)},(pe=fe||(fe={})).PlainText="plaintext",pe.Markdown="markdown",function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(fe||(fe={})),(ve||(ve={})).is=function(e){var t=e;return ot.objectLiteral(e)&&fe.is(t.kind)&&ot.string(t.value)},(_e=me||(me={})).Text=1,_e.Method=2,_e.Function=3,_e.Constructor=4,_e.Field=5,_e.Variable=6,_e.Class=7,_e.Interface=8,_e.Module=9,_e.Property=10,_e.Unit=11,_e.Value=12,_e.Enum=13,_e.Keyword=14,_e.Snippet=15,_e.Color=16,_e.File=17,_e.Reference=18,_e.Folder=19,_e.EnumMember=20,_e.Constant=21,_e.Struct=22,_e.Event=23,_e.Operator=24,_e.TypeParameter=25,(ke=we||(we={})).PlainText=1,ke.Snippet=2,(be||(be={})).Deprecated=1,(Ee=ye||(ye={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Ee.is=function(e){var t=e;return t&&ot.string(t.newText)&&v.is(t.insert)&&v.is(t.replace)},(xe=Ce||(Ce={})).asIs=1,xe.adjustIndentation=2,(Ae||(Ae={})).create=function(e){return{label:e}},(Ie||(Ie={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Re=Se||(Se={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Re.is=function(e){var t=e;return ot.string(t)||ot.objectLiteral(t)&&ot.string(t.language)&&ot.string(t.value)},(Te||(Te={})).is=function(e){var t=e;return!!t&&ot.objectLiteral(t)&&(ve.is(t.contents)||Se.is(t.contents)||ot.typedArray(t.contents,Se.is))&&(void 0===e.range||v.is(e.range))},(De||(De={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Me||(Me={})).create=function(e,t){for(var n=[],r=2;r=0;a--){var s=i[a],u=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");r=r.substring(0,u)+s.newText+r.substring(c,r.length),o=u}return r}}(nt||(nt={}));var ot,at,st,ut=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return f.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return f.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{c.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(i)),this._disposables.push(c.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{c.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),c.editor.getModels().forEach(r)}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"==typeof t.code?String(t.code):t.code;return{severity:dt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=c.editor.getModel(e);i&&i.getLanguageId()===t&&c.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function dt(e){switch(e){case F.Error:return c.MarkerSeverity.Error;case F.Warning:return c.MarkerSeverity.Warning;case F.Information:return c.MarkerSeverity.Info;case F.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}var gt=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),lt(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new c.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:pt(e.kind)};var n,r;return e.textEdit&&(void 0!==(r=e.textEdit).insert&&void 0!==r.replace?t.range={insert:ft(e.textEdit.insert),replace:ft(e.textEdit.replace)}:t.range=ft(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(vt)),e.insertTextFormat===we.Snippet&&(t.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function lt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function ht(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function ft(e){if(e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function pt(e){const t=c.languages.CompletionItemKind;switch(e){case me.Text:return t.Text;case me.Method:return t.Method;case me.Function:return t.Function;case me.Constructor:return t.Constructor;case me.Field:return t.Field;case me.Variable:return t.Variable;case me.Class:return t.Class;case me.Interface:return t.Interface;case me.Module:return t.Module;case me.Property:return t.Property;case me.Unit:return t.Unit;case me.Value:return t.Value;case me.Enum:return t.Enum;case me.Keyword:return t.Keyword;case me.Snippet:return t.Snippet;case me.Color:return t.Color;case me.File:return t.File;case me.Reference:return t.Reference}return t.Property}function vt(e){if(e)return{range:ft(e.range),text:e.newText}}var mt=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),lt(t)))).then((e=>{if(e)return{range:ft(e.range),contents:wt(e.contents)}}))}};function _t(e){return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function wt(e){if(e)return Array.isArray(e)?e.map(_t):[_t(e)]}var kt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),lt(t)))).then((e=>{if(e)return e.map((e=>({range:ft(e.range),kind:bt(e.kind)})))}))}};function bt(e){switch(e){case Pe.Read:return c.languages.DocumentHighlightKind.Read;case Pe.Write:return c.languages.DocumentHighlightKind.Write;case Pe.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var yt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),lt(t)))).then((e=>{if(e)return[Et(e)]}))}};function Et(e){return{uri:c.Uri.parse(e.uri),range:ft(e.range)}}var Ct=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),lt(t)))).then((e=>{if(e)return e.map(Et)}))}},xt=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),lt(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=c.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:ft(i.range),text:i.newText}})}return{edits:t}}(e)))}},At=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>({name:e.name,detail:"",containerName:e.containerName,kind:It(e.kind),range:ft(e.location.range),selectionRange:ft(e.location.range),tags:[]})))}))}};function It(e){let t=c.languages.SymbolKind;switch(e){case je.File:return t.Array;case je.Module:return t.Module;case je.Namespace:return t.Namespace;case je.Package:return t.Package;case je.Class:return t.Class;case je.Method:return t.Method;case je.Property:return t.Property;case je.Field:return t.Field;case je.Constructor:return t.Constructor;case je.Enum:return t.Enum;case je.Interface:return t.Interface;case je.Function:return t.Function;case je.Variable:return t.Variable;case je.Constant:return t.Constant;case je.String:return t.String;case je.Number:return t.Number;case je.Boolean:return t.Boolean;case je.Array:return t.Array}return t.Function}var St=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:ft(e.range),url:e.target})))}}))}},Rt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,Dt(t)).then((e=>{if(e&&0!==e.length)return e.map(vt)}))))}},Tt=class{constructor(e){this._worker=e}canFormatMultipleRanges=!1;provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),ht(t),Dt(n)).then((e=>{if(e&&0!==e.length)return e.map(vt)}))))}};function Dt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Mt=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:ft(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,ht(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=vt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(vt)),t}))}))}},Pt=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case S.Comment:return c.languages.FoldingRangeKind.Comment;case S.Imports:return c.languages.FoldingRangeKind.Imports;case S.Region:return c.languages.FoldingRangeKind.Region}}(e.kind)),t}))}))}},Ft=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(lt)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:ft(e.range)}),e=e.parent;return t}))}))}};function Lt(e){const t=[],n=[],r=new oe(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);return function(){const{languageId:t,modeConfiguration:r}=e;Ot(n),r.completionItems&&n.push(c.languages.registerCompletionItemProvider(t,new gt(i,["/","-",":"]))),r.hovers&&n.push(c.languages.registerHoverProvider(t,new mt(i))),r.documentHighlights&&n.push(c.languages.registerDocumentHighlightProvider(t,new kt(i))),r.definitions&&n.push(c.languages.registerDefinitionProvider(t,new yt(i))),r.references&&n.push(c.languages.registerReferenceProvider(t,new Ct(i))),r.documentSymbols&&n.push(c.languages.registerDocumentSymbolProvider(t,new At(i))),r.rename&&n.push(c.languages.registerRenameProvider(t,new xt(i))),r.colors&&n.push(c.languages.registerColorProvider(t,new Mt(i))),r.foldingRanges&&n.push(c.languages.registerFoldingRangeProvider(t,new Pt(i))),r.diagnostics&&n.push(new ct(t,i,e.onDidChange)),r.selectionRanges&&n.push(c.languages.registerSelectionRangeProvider(t,new Ft(i))),r.documentFormattingEdits&&n.push(c.languages.registerDocumentFormattingEditProvider(t,new Rt(i))),r.documentRangeFormattingEdits&&n.push(c.languages.registerDocumentRangeFormattingEditProvider(t,new Tt(i)))}(),t.push(jt(n)),jt(t)}function jt(e){return{dispose:()=>Ot(e)}}function Ot(e){for(;e.length;)e.pop().dispose()}}}]); \ No newline at end of file diff --git a/static/js/564.js.LICENSE.txt b/static/js/564.js.LICENSE.txt deleted file mode 100644 index 8ef59e134..000000000 --- a/static/js/564.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/static/js/571.js b/static/js/571.js deleted file mode 100644 index 38cce652c..000000000 --- a/static/js/571.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 571.js.LICENSE.txt */ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[571],{2571:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>l,language:()=>c});var r=n(1593),i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let d of s(t))a.call(e,d)||d===n||i(e,d,{get:()=>t[d],enumerable:!(r=o(t,d))||r.enumerable});return e},p={};d(p,r,"default");var m=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],l={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${m.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:p.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:p.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#endregion\\b.*--\x3e")}}},c={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}}}]); \ No newline at end of file diff --git a/static/js/571.js.LICENSE.txt b/static/js/571.js.LICENSE.txt deleted file mode 100644 index 8ef59e134..000000000 --- a/static/js/571.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/static/js/57f5c1837853986ea1db.ttf b/static/js/57f5c1837853986ea1db.ttf deleted file mode 100644 index 7a212caf9..000000000 Binary files a/static/js/57f5c1837853986ea1db.ttf and /dev/null differ diff --git a/static/js/5b49f4993ae22d7975b4.ttf b/static/js/5b49f4993ae22d7975b4.ttf deleted file mode 100644 index 2f65a8a3a..000000000 Binary files a/static/js/5b49f4993ae22d7975b4.ttf and /dev/null differ diff --git a/static/js/61350b97874888a6c0d8.woff b/static/js/61350b97874888a6c0d8.woff deleted file mode 100644 index 1fe940892..000000000 Binary files a/static/js/61350b97874888a6c0d8.woff and /dev/null differ diff --git a/static/js/643.js b/static/js/643.js deleted file mode 100644 index 884f6437b..000000000 --- a/static/js/643.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[643],{78643:(t,e,n)=>{n.d(e,{diagram:()=>A});var i=n(31460),s=n(74309),r=n(38770),a=(n(93628),n(17967),n(27856),function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,2],n=[1,5],i=[6,9,11,17,18,20,22,23,24,26],s=[1,15],r=[1,16],a=[1,17],o=[1,18],c=[1,19],l=[1,20],h=[1,24],u=[4,6,9,11,17,18,20,22,23,24,26],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,i,s,r,a){var o=r.length-1;switch(s){case 1:return r[o-1];case 3:case 7:case 8:this.$=[];break;case 4:r[o-1].push(r[o]),this.$=r[o-1];break;case 5:case 6:this.$=r[o];break;case 11:i.setDiagramTitle(r[o].substr(6)),this.$=r[o].substr(6);break;case 12:this.$=r[o].trim(),i.setAccTitle(this.$);break;case 13:case 14:this.$=r[o].trim(),i.setAccDescription(this.$);break;case 15:i.addSection(r[o].substr(8)),this.$=r[o].substr(8);break;case 16:i.addTask(r[o-1],r[o]),this.$="task";break;case 18:i.parseDirective("%%{","open_directive");break;case 19:i.parseDirective(r[o],"type_directive");break;case 20:r[o]=r[o].trim().replace(/'/g,'"'),i.parseDirective(r[o],"arg_directive");break;case 21:i.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:e,7:3,12:4,26:n},{1:[3]},t(i,[2,3],{5:6}),{3:7,4:e,7:3,12:4,26:n},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:s,18:r,20:a,22:o,23:c,24:l,26:n},{1:[2,2]},{14:22,15:[1,23],29:h},t([15,29],[2,19]),t(i,[2,8],{1:[2,1]}),t(i,[2,4]),{7:21,10:25,12:4,17:s,18:r,20:a,22:o,23:c,24:l,26:n},t(i,[2,6]),t(i,[2,7]),t(i,[2,11]),{19:[1,26]},{21:[1,27]},t(i,[2,14]),t(i,[2,15]),{25:[1,28]},t(i,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},t(i,[2,5]),t(i,[2,12]),t(i,[2,13]),t(i,[2,16]),t(u,[2,9]),{14:32,29:h},{29:[2,20]},{11:[1,33]},t(u,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=[0],n=[],i=[null],s=[],r=this.table,a="",o=0,c=0,l=s.slice.call(arguments,1),h=Object.create(this.lexer),u={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(u.yy[y]=this.yy[y]);h.setInput(t,u.yy),u.yy.lexer=h,u.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var p=h.yylloc;s.push(p);var d=h.options&&h.options.ranges;"function"==typeof u.yy.parseError?this.parseError=u.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var f,g,x,m,k,_,b,v,$,w={};;){if(g=e[e.length-1],this.defaultActions[g]?x=this.defaultActions[g]:(null==f&&($=void 0,"number"!=typeof($=n.pop()||h.lex()||1)&&($ instanceof Array&&($=(n=$).pop()),$=this.symbols_[$]||$),f=$),x=r[g]&&r[g][f]),void 0===x||!x.length||!x[0]){var M;for(k in v=[],r[g])this.terminals_[k]&&k>2&&v.push("'"+this.terminals_[k]+"'");M=h.showPosition?"Parse error on line "+(o+1)+":\n"+h.showPosition()+"\nExpecting "+v.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(M,{text:h.match,token:this.terminals_[f]||f,line:h.yylineno,loc:p,expected:v})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+f);switch(x[0]){case 1:e.push(f),i.push(h.yytext),s.push(h.yylloc),e.push(x[1]),f=null,c=h.yyleng,a=h.yytext,o=h.yylineno,p=h.yylloc;break;case 2:if(_=this.productions_[x[1]][1],w.$=i[i.length-_],w._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},d&&(w._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),void 0!==(m=this.performAction.apply(w,[a,c,o,u.yy,x[1],i,s].concat(l))))return m;_&&(e=e.slice(0,-1*_*2),i=i.slice(0,-1*_),s=s.slice(0,-1*_)),e.push(this.productions_[x[1]][0]),i.push(w.$),s.push(w._$),b=r[e[e.length-2]][e[e.length-1]],e.push(b);break;case 3:return!0}}return!0}},p={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,s;if(this.options.backtrack_lexer&&(s={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(s.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in s)this[r]=s[r];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),r=0;re[0].length)){if(e=n,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,s[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};function d(){this.yy={}}return y.lexer=p,d.prototype=y,y.Parser=d,new d}());a.parser=a;const o=a;let c="";const l=[],h=[],u=[],y=function(){let t=!0;for(const[e,n]of u.entries())u[e].processed,t=t&&n.processed;return t},p={parseDirective:function(t,e,n){i.m.parseDirective(this,t,e,n)},getConfig:()=>(0,i.c)().journey,clear:function(){l.length=0,h.length=0,c="",u.length=0,(0,i.v)()},setDiagramTitle:i.r,getDiagramTitle:i.t,setAccTitle:i.s,getAccTitle:i.g,setAccDescription:i.b,getAccDescription:i.a,addSection:function(t){c=t,l.push(t)},getSections:function(){return l},getTasks:function(){let t=y(),e=0;for(;!t&&e<100;)t=y(),e++;return h.push(...u),h},addTask:function(t,e){const n=e.substr(1).split(":");let i=0,s=[];1===n.length?(i=Number(n[0]),s=[]):(i=Number(n[0]),s=n[1].split(","));const r=s.map((t=>t.trim())),a={section:c,type:c,people:r,task:t,score:i};u.push(a)},addTaskOrg:function(t){const e={section:c,type:c,description:t,task:t,classes:[]};h.push(e)},getActors:function(){return function(){const t=[];return h.forEach((e=>{e.people&&t.push(...e.people)})),[...new Set(t)].sort()}()}},d=function(t,e){return(0,r.d)(t,e)},f=function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n};let g=-1;const x=function(){function t(t,e,n,s,r,a,o,c){i(e.append("text").attr("x",n+r/2).attr("y",s+a/2+5).style("font-color",c).style("text-anchor","middle").text(t),o)}function e(t,e,n,s,r,a,o,c,l){const{taskFontSize:h,taskFontFamily:u}=c,y=t.split(//gi);for(let t=0;t3?function(t){const n=(0,s.Nb1)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}(n):e.score<3?function(t){const n=(0,s.Nb1)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}(n):n.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(a,{cx:i,cy:300+30*(5-e.score),score:e.score});const o=(0,r.g)();o.x=e.x,o.y=e.y,o.fill=e.fill,o.width=n.width,o.height=n.height,o.class="task task-type-"+e.num,o.rx=3,o.ry=3,d(a,o);let c=e.x+14;e.people.forEach((t=>{const n=e.actors[t].color,i={cx:c,cy:e.y,r:7,fill:n,stroke:"#000",title:t,pos:e.actors[t].position};f(a,i),c+=10})),x(n)(e.task,a,o.x,o.y,o.width,o.height,{class:"task"},n,e.colour)},v={},$=(0,i.c)().journey,w=$.leftMargin,M={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,n,i){void 0===t[e]?t[e]=n:t[e]=i(n,t[e])},updateBounds:function(t,e,n,s){const r=(0,i.c)().journey,a=this;let o=0;this.sequenceItems.forEach((function(i){o++;const c=a.sequenceItems.length-o+1;a.updateVal(i,"starty",e-c*r.boxMargin,Math.min),a.updateVal(i,"stopy",s+c*r.boxMargin,Math.max),a.updateVal(M.data,"startx",t-c*r.boxMargin,Math.min),a.updateVal(M.data,"stopx",n+c*r.boxMargin,Math.max),a.updateVal(i,"startx",t-c*r.boxMargin,Math.min),a.updateVal(i,"stopx",n+c*r.boxMargin,Math.max),a.updateVal(M.data,"starty",e-c*r.boxMargin,Math.min),a.updateVal(M.data,"stopy",s+c*r.boxMargin,Math.max)}))},insert:function(t,e,n,i){const s=Math.min(t,n),r=Math.max(t,n),a=Math.min(e,i),o=Math.max(e,i);this.updateVal(M.data,"startx",s,Math.min),this.updateVal(M.data,"starty",a,Math.min),this.updateVal(M.data,"stopx",r,Math.max),this.updateVal(M.data,"stopy",o,Math.max),this.updateBounds(s,a,r,o)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},E=$.sectionFills,S=$.sectionColours,T={setConf:function(t){Object.keys(t).forEach((function(e){$[e]=t[e]}))},draw:function(t,e,n,r){const a=(0,i.c)().journey;r.db.clear(),r.parser.parse(t+"\n");const o=(0,i.c)().securityLevel;let c;"sandbox"===o&&(c=(0,s.Ys)("#i"+e));const l="sandbox"===o?(0,s.Ys)(c.nodes()[0].contentDocument.body):(0,s.Ys)("body");M.init();const h=l.select("#"+e);h.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z");const u=r.db.getTasks(),y=r.db.getDiagramTitle(),p=r.db.getActors();for(const t in v)delete v[t];let d=0;p.forEach((t=>{v[t]={color:a.actorColours[d%a.actorColours.length],position:d},d++})),function(t){const e=(0,i.c)().journey;let n=60;Object.keys(v).forEach((i=>{const s=v[i].color,r={cx:20,cy:n,r:7,fill:s,stroke:"#000",pos:v[i].position};m(t,r);const a={x:40,y:n+7,fill:"#666",text:i,textMargin:5|e.boxTextMargin};_(t,a),n+=20}))}(h),M.insert(0,0,w,50*Object.keys(v).length),function(t,e,n){const s=(0,i.c)().journey;let r="";const a=n+(2*s.height+s.diagramMarginY);let o=0,c="#CCC",l="black",h=0;for(const[n,i]of e.entries()){if(r!==i.section){c=E[o%E.length],h=o%E.length,l=S[o%S.length];let a=0;const u=i.section;for(let t=n;t(v[e]&&(t[e]=v[e]),t)),{});i.x=n*s.taskMargin+n*s.width+w,i.y=a,i.width=s.diagramMarginX,i.height=s.diagramMarginY,i.colour=l,i.fill=c,i.num=h,i.actors=u,b(t,i,s),M.insert(i.x,i.y,i.x+i.width+s.taskMargin,450)}}(h,u,0);const f=M.getBounds();y&&h.append("text").text(y).attr("x",w).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const g=f.stopy-f.starty+2*a.diagramMarginY,x=w+f.stopx+2*a.diagramMarginX;(0,i.i)(h,g,x,a.useMaxWidth),h.append("line").attr("x1",w).attr("y1",4*a.height).attr("x2",x-w-4).attr("y2",4*a.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const $=y?70:0;h.attr("viewBox",`${f.startx} -25 ${x} ${g+$}`),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",g+$+25)}},A={parser:o,db:p,renderer:T,styles:t=>`.label {\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n color: ${t.textColor};\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ${t.textColor}\n }\n\n .legend {\n fill: ${t.textColor};\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ${t.textColor}\n }\n\n .face {\n ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ${t.fillType0?`fill: ${t.fillType0}`:""};\n }\n .task-type-1, .section-type-1 {\n ${t.fillType0?`fill: ${t.fillType1}`:""};\n }\n .task-type-2, .section-type-2 {\n ${t.fillType0?`fill: ${t.fillType2}`:""};\n }\n .task-type-3, .section-type-3 {\n ${t.fillType0?`fill: ${t.fillType3}`:""};\n }\n .task-type-4, .section-type-4 {\n ${t.fillType0?`fill: ${t.fillType4}`:""};\n }\n .task-type-5, .section-type-5 {\n ${t.fillType0?`fill: ${t.fillType5}`:""};\n }\n .task-type-6, .section-type-6 {\n ${t.fillType0?`fill: ${t.fillType6}`:""};\n }\n .task-type-7, .section-type-7 {\n ${t.fillType0?`fill: ${t.fillType7}`:""};\n }\n\n .actor-0 {\n ${t.actor0?`fill: ${t.actor0}`:""};\n }\n .actor-1 {\n ${t.actor1?`fill: ${t.actor1}`:""};\n }\n .actor-2 {\n ${t.actor2?`fill: ${t.actor2}`:""};\n }\n .actor-3 {\n ${t.actor3?`fill: ${t.actor3}`:""};\n }\n .actor-4 {\n ${t.actor4?`fill: ${t.actor4}`:""};\n }\n .actor-5 {\n ${t.actor5?`fill: ${t.actor5}`:""};\n }\n`,init:t=>{T.setConf(t.journey),p.clear()}}},38770:(t,e,n)=>{n.d(e,{a:()=>r,b:()=>c,c:()=>o,d:()=>s,e:()=>h,f:()=>a,g:()=>l});var i=n(17967);const s=function(t,e){const n=t.append("rect");if(n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),"undefined"!==e.attrs&&null!==e.attrs)for(let t in e.attrs)n.attr(t,e.attrs[t]);return"undefined"!==e.class&&n.attr("class",e.class),n},r=function(t,e){s(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},a=function(t,e){const n=e.text.replace(//gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);const s=i.append("tspan");return s.attr("x",e.x+2*e.textMargin),s.text(n),i},o=function(t,e,n,s){const r=t.append("image");r.attr("x",e),r.attr("y",n);var a=(0,i.N)(s);r.attr("xlink:href",a)},c=function(t,e,n,s){const r=t.append("use");r.attr("x",e),r.attr("y",n);const a=(0,i.N)(s);r.attr("xlink:href","#"+a)},l=function(){return{x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}},h=function(){return{x:0,y:0,width:100,height:100,fill:void 0,anchor:void 0,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}}}}]); \ No newline at end of file diff --git a/static/js/662f290710a57b8dfbbd.woff b/static/js/662f290710a57b8dfbbd.woff deleted file mode 100644 index b3db30637..000000000 Binary files a/static/js/662f290710a57b8dfbbd.woff and /dev/null differ diff --git a/static/js/665.js b/static/js/665.js deleted file mode 100644 index 965f3adcd..000000000 --- a/static/js/665.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 665.js.LICENSE.txt */ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[665],{90665:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>gt,DefinitionAdapter:()=>Ct,DiagnosticsAdapter:()=>ut,DocumentColorAdapter:()=>Mt,DocumentFormattingEditProvider:()=>Tt,DocumentHighlightAdapter:()=>bt,DocumentLinkAdapter:()=>St,DocumentRangeFormattingEditProvider:()=>Rt,DocumentSymbolAdapter:()=>xt,FoldingRangeAdapter:()=>jt,HoverAdapter:()=>vt,ReferenceAdapter:()=>Et,RenameAdapter:()=>At,SelectionRangeAdapter:()=>Lt,WorkerManager:()=>oe,fromPosition:()=>lt,fromRange:()=>ht,setupMode:()=>en,toRange:()=>ft,toTextEdit:()=>mt});var r=n(1593),i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of a(t))s.call(e,c)||c===n||i(e,c,{get:()=>t[c],enumerable:!(r=o(t,c))||r.enumerable});return e},u={};c(u,r,"default");var d,g,l,h,f,p,m,v,_,k,b,w,C,y,E,A,x,I,S,T,R,D,P,M,j,L,F,O,N,W,U,V,H,K,z,q,X,B,$,Q,G,J,Y,Z,ee,te,ne,re,ie,oe=class{_defaults;_idleCheckInterval;_lastUsedTime;_configChangeListener;_worker;_client;constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=u.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(g=d||(d={})).MIN_VALUE=-2147483648,g.MAX_VALUE=2147483647,(h=l||(l={})).MIN_VALUE=0,h.MAX_VALUE=2147483647,(p=f||(f={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=l.MAX_VALUE),t===Number.MAX_VALUE&&(t=l.MAX_VALUE),{line:e,character:t}},p.is=function(e){var t=e;return ot.objectLiteral(t)&&ot.uinteger(t.line)&&ot.uinteger(t.character)},(v=m||(m={})).create=function(e,t,n,r){if(ot.uinteger(e)&&ot.uinteger(t)&&ot.uinteger(n)&&ot.uinteger(r))return{start:f.create(e,t),end:f.create(n,r)};if(f.is(e)&&f.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},v.is=function(e){var t=e;return ot.objectLiteral(t)&&f.is(t.start)&&f.is(t.end)},(k=_||(_={})).create=function(e,t){return{uri:e,range:t}},k.is=function(e){var t=e;return ot.defined(t)&&m.is(t.range)&&(ot.string(t.uri)||ot.undefined(t.uri))},(w=b||(b={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},w.is=function(e){var t=e;return ot.defined(t)&&m.is(t.targetRange)&&ot.string(t.targetUri)&&(m.is(t.targetSelectionRange)||ot.undefined(t.targetSelectionRange))&&(m.is(t.originSelectionRange)||ot.undefined(t.originSelectionRange))},(y=C||(C={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},y.is=function(e){var t=e;return ot.numberRange(t.red,0,1)&&ot.numberRange(t.green,0,1)&&ot.numberRange(t.blue,0,1)&&ot.numberRange(t.alpha,0,1)},(A=E||(E={})).create=function(e,t){return{range:e,color:t}},A.is=function(e){var t=e;return m.is(t.range)&&C.is(t.color)},(I=x||(x={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},I.is=function(e){var t=e;return ot.string(t.label)&&(ot.undefined(t.textEdit)||K.is(t))&&(ot.undefined(t.additionalTextEdits)||ot.typedArray(t.additionalTextEdits,K.is))},(T=S||(S={})).Comment="comment",T.Imports="imports",T.Region="region",(D=R||(R={})).create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return ot.defined(n)&&(o.startCharacter=n),ot.defined(r)&&(o.endCharacter=r),ot.defined(i)&&(o.kind=i),o},D.is=function(e){var t=e;return ot.uinteger(t.startLine)&&ot.uinteger(t.startLine)&&(ot.undefined(t.startCharacter)||ot.uinteger(t.startCharacter))&&(ot.undefined(t.endCharacter)||ot.uinteger(t.endCharacter))&&(ot.undefined(t.kind)||ot.string(t.kind))},(M=P||(P={})).create=function(e,t){return{location:e,message:t}},M.is=function(e){var t=e;return ot.defined(t)&&_.is(t.location)&&ot.string(t.message)},(L=j||(j={})).Error=1,L.Warning=2,L.Information=3,L.Hint=4,(O=F||(F={})).Unnecessary=1,O.Deprecated=2,(N||(N={})).is=function(e){var t=e;return null!=t&&ot.string(t.href)},(U=W||(W={})).create=function(e,t,n,r,i,o){var a={range:e,message:t};return ot.defined(n)&&(a.severity=n),ot.defined(r)&&(a.code=r),ot.defined(i)&&(a.source=i),ot.defined(o)&&(a.relatedInformation=o),a},U.is=function(e){var t,n=e;return ot.defined(n)&&m.is(n.range)&&ot.string(n.message)&&(ot.number(n.severity)||ot.undefined(n.severity))&&(ot.integer(n.code)||ot.string(n.code)||ot.undefined(n.code))&&(ot.undefined(n.codeDescription)||ot.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(ot.string(n.source)||ot.undefined(n.source))&&(ot.undefined(n.relatedInformation)||ot.typedArray(n.relatedInformation,P.is))},(H=V||(V={})).create=function(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i},H.is=function(e){var t=e;return ot.defined(t)&&ot.string(t.title)&&ot.string(t.command)},(z=K||(K={})).replace=function(e,t){return{range:e,newText:t}},z.insert=function(e,t){return{range:{start:e,end:e},newText:t}},z.del=function(e){return{range:e,newText:""}},z.is=function(e){var t=e;return ot.objectLiteral(t)&&ot.string(t.newText)&&m.is(t.range)},(X=q||(q={})).create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},X.is=function(e){var t=e;return void 0!==t&&ot.objectLiteral(t)&&ot.string(t.label)&&(ot.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(ot.string(t.description)||void 0===t.description)},(B||(B={})).is=function(e){return"string"==typeof e},(Q=$||($={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},Q.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},Q.del=function(e,t){return{range:e,newText:"",annotationId:t}},Q.is=function(e){var t=e;return K.is(t)&&(q.is(t.annotationId)||B.is(t.annotationId))},(J=G||(G={})).create=function(e,t){return{textDocument:e,edits:t}},J.is=function(e){var t=e;return ot.defined(t)&&de.is(t.textDocument)&&Array.isArray(t.edits)},(Z=Y||(Y={})).create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},Z.is=function(e){var t=e;return t&&"create"===t.kind&&ot.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||ot.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ot.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||B.is(t.annotationId))},(te=ee||(ee={})).create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},te.is=function(e){var t=e;return t&&"rename"===t.kind&&ot.string(t.oldUri)&&ot.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||ot.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ot.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||B.is(t.annotationId))},(re=ne||(ne={})).create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},re.is=function(e){var t=e;return t&&"delete"===t.kind&&ot.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||ot.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||ot.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||B.is(t.annotationId))},(ie||(ie={})).is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return ot.string(e.kind)?Y.is(e)||ee.is(e)||ne.is(e):G.is(e)})))};var ae,se,ce,ue,de,ge,le,he,fe,pe,me,ve,_e,ke,be,we,Ce,ye,Ee,Ae,xe,Ie,Se,Te,Re,De,Pe,Me,je,Le,Fe,Oe,Ne,We,Ue,Ve,He,Ke,ze,qe,Xe,Be,$e,Qe,Ge,Je,Ye,Ze,et,tt,nt,rt=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=K.insert(e,t):B.is(n)?(i=n,r=$.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=$.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=K.replace(e,t):B.is(n)?(i=n,r=$.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=$.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=K.del(e):B.is(t)?(r=t,n=$.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=$.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),it=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(B.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new it(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(G.is(e)){var n=new rt(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new rt(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(de.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new rt(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new rt(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new it,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(q.is(t)||B.is(t)?r=t:n=t,void 0===r?i=Y.create(e,n):(o=B.is(r)?r:this._changeAnnotations.manage(r),i=Y.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(q.is(n)||B.is(n)?i=n:r=n,void 0===i?o=ee.create(e,t,r):(a=B.is(i)?i:this._changeAnnotations.manage(i),o=ee.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(q.is(t)||B.is(t)?r=t:n=t,void 0===r?i=ne.create(e,n):(o=B.is(r)?r:this._changeAnnotations.manage(r),i=ne.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),(se=ae||(ae={})).create=function(e){return{uri:e}},se.is=function(e){var t=e;return ot.defined(t)&&ot.string(t.uri)},(ue=ce||(ce={})).create=function(e,t){return{uri:e,version:t}},ue.is=function(e){var t=e;return ot.defined(t)&&ot.string(t.uri)&&ot.integer(t.version)},(ge=de||(de={})).create=function(e,t){return{uri:e,version:t}},ge.is=function(e){var t=e;return ot.defined(t)&&ot.string(t.uri)&&(null===t.version||ot.integer(t.version))},(he=le||(le={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},he.is=function(e){var t=e;return ot.defined(t)&&ot.string(t.uri)&&ot.string(t.languageId)&&ot.integer(t.version)&&ot.string(t.text)},(pe=fe||(fe={})).PlainText="plaintext",pe.Markdown="markdown",function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(fe||(fe={})),(me||(me={})).is=function(e){var t=e;return ot.objectLiteral(e)&&fe.is(t.kind)&&ot.string(t.value)},(_e=ve||(ve={})).Text=1,_e.Method=2,_e.Function=3,_e.Constructor=4,_e.Field=5,_e.Variable=6,_e.Class=7,_e.Interface=8,_e.Module=9,_e.Property=10,_e.Unit=11,_e.Value=12,_e.Enum=13,_e.Keyword=14,_e.Snippet=15,_e.Color=16,_e.File=17,_e.Reference=18,_e.Folder=19,_e.EnumMember=20,_e.Constant=21,_e.Struct=22,_e.Event=23,_e.Operator=24,_e.TypeParameter=25,(be=ke||(ke={})).PlainText=1,be.Snippet=2,(we||(we={})).Deprecated=1,(ye=Ce||(Ce={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},ye.is=function(e){var t=e;return t&&ot.string(t.newText)&&m.is(t.insert)&&m.is(t.replace)},(Ae=Ee||(Ee={})).asIs=1,Ae.adjustIndentation=2,(xe||(xe={})).create=function(e){return{label:e}},(Ie||(Ie={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Te=Se||(Se={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Te.is=function(e){var t=e;return ot.string(t)||ot.objectLiteral(t)&&ot.string(t.language)&&ot.string(t.value)},(Re||(Re={})).is=function(e){var t=e;return!!t&&ot.objectLiteral(t)&&(me.is(t.contents)||Se.is(t.contents)||ot.typedArray(t.contents,Se.is))&&(void 0===e.range||m.is(e.range))},(De||(De={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Pe||(Pe={})).create=function(e,t){for(var n=[],r=2;r=0;a--){var s=i[a],c=e.offsetAt(s.range.start),u=e.offsetAt(s.range.end);if(!(u<=o))throw new Error("Overlapping edit");r=r.substring(0,c)+s.newText+r.substring(u,r.length),o=c}return r}}(nt||(nt={}));var ot,at,st,ct=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return f.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return f.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{u.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(u.editor.onDidCreateModel(r)),this._disposables.push(u.editor.onWillDisposeModel(i)),this._disposables.push(u.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{u.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{u.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),u.editor.getModels().forEach(r)}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"==typeof t.code?String(t.code):t.code;return{severity:dt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=u.editor.getModel(e);i&&i.getLanguageId()===t&&u.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function dt(e){switch(e){case j.Error:return u.MarkerSeverity.Error;case j.Warning:return u.MarkerSeverity.Warning;case j.Information:return u.MarkerSeverity.Info;case j.Hint:return u.MarkerSeverity.Hint;default:return u.MarkerSeverity.Info}}var gt=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),lt(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new u.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:pt(e.kind)};var n,r;return e.textEdit&&(void 0!==(r=e.textEdit).insert&&void 0!==r.replace?t.range={insert:ft(e.textEdit.insert),replace:ft(e.textEdit.replace)}:t.range=ft(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(mt)),e.insertTextFormat===ke.Snippet&&(t.insertTextRules=u.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function lt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function ht(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function ft(e){if(e)return new u.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function pt(e){const t=u.languages.CompletionItemKind;switch(e){case ve.Text:return t.Text;case ve.Method:return t.Method;case ve.Function:return t.Function;case ve.Constructor:return t.Constructor;case ve.Field:return t.Field;case ve.Variable:return t.Variable;case ve.Class:return t.Class;case ve.Interface:return t.Interface;case ve.Module:return t.Module;case ve.Property:return t.Property;case ve.Unit:return t.Unit;case ve.Value:return t.Value;case ve.Enum:return t.Enum;case ve.Keyword:return t.Keyword;case ve.Snippet:return t.Snippet;case ve.Color:return t.Color;case ve.File:return t.File;case ve.Reference:return t.Reference}return t.Property}function mt(e){if(e)return{range:ft(e.range),text:e.newText}}var vt=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),lt(t)))).then((e=>{if(e)return{range:ft(e.range),contents:kt(e.contents)}}))}};function _t(e){return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function kt(e){if(e)return Array.isArray(e)?e.map(_t):[_t(e)]}var bt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),lt(t)))).then((e=>{if(e)return e.map((e=>({range:ft(e.range),kind:wt(e.kind)})))}))}};function wt(e){switch(e){case Me.Read:return u.languages.DocumentHighlightKind.Read;case Me.Write:return u.languages.DocumentHighlightKind.Write;case Me.Text:return u.languages.DocumentHighlightKind.Text}return u.languages.DocumentHighlightKind.Text}var Ct=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),lt(t)))).then((e=>{if(e)return[yt(e)]}))}};function yt(e){return{uri:u.Uri.parse(e.uri),range:ft(e.range)}}var Et=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),lt(t)))).then((e=>{if(e)return e.map(yt)}))}},At=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),lt(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=u.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:ft(i.range),text:i.newText}})}return{edits:t}}(e)))}},xt=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>({name:e.name,detail:"",containerName:e.containerName,kind:It(e.kind),range:ft(e.location.range),selectionRange:ft(e.location.range),tags:[]})))}))}};function It(e){let t=u.languages.SymbolKind;switch(e){case Fe.File:return t.Array;case Fe.Module:return t.Module;case Fe.Namespace:return t.Namespace;case Fe.Package:return t.Package;case Fe.Class:return t.Class;case Fe.Method:return t.Method;case Fe.Property:return t.Property;case Fe.Field:return t.Field;case Fe.Constructor:return t.Constructor;case Fe.Enum:return t.Enum;case Fe.Interface:return t.Interface;case Fe.Function:return t.Function;case Fe.Variable:return t.Variable;case Fe.Constant:return t.Constant;case Fe.String:return t.String;case Fe.Number:return t.Number;case Fe.Boolean:return t.Boolean;case Fe.Array:return t.Array}return t.Function}var St=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:ft(e.range),url:e.target})))}}))}},Tt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,Dt(t)).then((e=>{if(e&&0!==e.length)return e.map(mt)}))))}},Rt=class{constructor(e){this._worker=e}canFormatMultipleRanges=!1;provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),ht(t),Dt(n)).then((e=>{if(e&&0!==e.length)return e.map(mt)}))))}};function Dt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Pt,Mt=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:ft(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,ht(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=mt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(mt)),t}))}))}},jt=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case S.Comment:return u.languages.FoldingRangeKind.Comment;case S.Imports:return u.languages.FoldingRangeKind.Imports;case S.Region:return u.languages.FoldingRangeKind.Region}}(e.kind)),t}))}))}},Lt=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(lt)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:ft(e.range)}),e=e.parent;return t}))}))}};function Ft(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function Ot(e){return 10===e||13===e||8232===e||8233===e}function Nt(e){return e>=48&&e<=57}(Pt||(Pt={})).DEFAULT={allowTrailingComma:!1};var Wt=function(e,t){void 0===t&&(t=!1);var n=e.length,r=0,i="",o=0,a=16,s=0,c=0,u=0,d=0,g=0;function l(t,n){for(var i=0,o=0;i=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}r++,i++}return i=n)return o=n,a=17;var t=e.charCodeAt(r);if(Ft(t)){do{r++,i+=String.fromCharCode(t),t=e.charCodeAt(r)}while(Ft(t));return a=15}if(Ot(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),s++,u=r,a=14;switch(t){case 123:return r++,a=1;case 125:return r++,a=2;case 91:return r++,a=3;case 93:return r++,a=4;case 58:return r++,a=6;case 44:return r++,a=5;case 34:return r++,i=function(){for(var t="",i=r;;){if(r>=n){t+=e.substring(i,r),g=2;break}var o=e.charCodeAt(r);if(34===o){t+=e.substring(i,r),r++;break}if(92!==o){if(o>=0&&o<=31){if(Ot(o)){t+=e.substring(i,r),g=2;break}g=6}r++}else{if(t+=e.substring(i,r),++r>=n){g=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var a=l(4,!0);a>=0?t+=String.fromCharCode(a):g=4;break;default:g=5}i=r}}return t}(),a=10;case 47:var h=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r=12&&e<=15);return e}:h,getToken:function(){return a},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return r-o},getTokenStartLine:function(){return c},getTokenStartCharacter:function(){return o-d},getTokenError:function(){return g}}};var Ut="delimiter.bracket.json",Vt="delimiter.array.json",Ht="delimiter.colon.json",Kt="delimiter.comma.json",zt="keyword.json",qt="keyword.json",Xt="string.value.json",Bt="number.json",$t="string.key.json",Qt="comment.block.json",Gt="comment.line.json",Jt=class{constructor(e,t){this.parent=e,this.type=t}static pop(e){return e?e.parent:null}static push(e,t){return new Jt(e,t)}static equals(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;for(;e&&t;){if(e===t)return!0;if(e.type!==t.type)return!1;e=e.parent,t=t.parent}return!0}},Yt=class{_state;scanError;lastWasColon;parents;constructor(e,t,n,r){this._state=e,this.scanError=t,this.lastWasColon=n,this.parents=r}clone(){return new Yt(this._state,this.scanError,this.lastWasColon,this.parents)}equals(e){return e===this||!!(e&&e instanceof Yt)&&this.scanError===e.scanError&&this.lastWasColon===e.lastWasColon&&Jt.equals(this.parents,e.parents)}getStateData(){return this._state}setStateData(e){this._state=e}},Zt=class extends ut{constructor(e,t,n){super(e,t,n.onDidChange),this._disposables.push(u.editor.onWillDisposeModel((e=>{this._resetSchema(e.uri)}))),this._disposables.push(u.editor.onDidChangeModelLanguage((e=>{this._resetSchema(e.model.uri)})))}_resetSchema(e){this._worker().then((t=>{t.resetSchema(e.toString())}))}};function en(e){const t=[],n=[],r=new oe(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);function o(){const{languageId:t,modeConfiguration:r}=e;var o;nn(n),r.documentFormattingEdits&&n.push(u.languages.registerDocumentFormattingEditProvider(t,new Tt(i))),r.documentRangeFormattingEdits&&n.push(u.languages.registerDocumentRangeFormattingEditProvider(t,new Rt(i))),r.completionItems&&n.push(u.languages.registerCompletionItemProvider(t,new gt(i,[" ",":",'"']))),r.hovers&&n.push(u.languages.registerHoverProvider(t,new vt(i))),r.documentSymbols&&n.push(u.languages.registerDocumentSymbolProvider(t,new xt(i))),r.tokens&&n.push(u.languages.setTokensProvider(t,(o=!0,{getInitialState:()=>new Yt(null,null,!1,null),tokenize:(e,t)=>function(e,t,n,r=0){let i=0,o=!1;switch(n.scanError){case 2:t='"'+t,i=1;break;case 1:t="/*"+t,i=2}const a=Wt(t);let s=n.lastWasColon,c=n.parents;const u={tokens:[],endState:n.clone()};for(;;){let d=r+a.getPosition(),g="";const l=a.scan();if(17===l)break;if(d===r+a.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+t.substr(a.getPosition(),3));switch(o&&(d-=i),o=i>0,l){case 1:c=Jt.push(c,0),g=Ut,s=!1;break;case 2:c=Jt.pop(c),g=Ut,s=!1;break;case 3:c=Jt.push(c,1),g=Vt,s=!1;break;case 4:c=Jt.pop(c),g=Vt,s=!1;break;case 6:g=Ht,s=!0;break;case 5:g=Kt,s=!1;break;case 8:case 9:g=zt,s=!1;break;case 7:g=qt,s=!1;break;case 10:const e=c?c.type:0;g=s||1===e?Xt:$t,s=!1;break;case 11:g=Bt,s=!1}if(e)switch(l){case 12:g=Gt;break;case 13:g=Qt}u.endState=new Yt(n.getStateData(),a.getTokenError(),s,c),u.tokens.push({startIndex:d,scopes:g})}return u}(o,e,t)}))),r.colors&&n.push(u.languages.registerColorProvider(t,new Mt(i))),r.foldingRanges&&n.push(u.languages.registerFoldingRangeProvider(t,new jt(i))),r.diagnostics&&n.push(new Zt(t,i,e)),r.selectionRanges&&n.push(u.languages.registerSelectionRangeProvider(t,new Lt(i)))}o(),t.push(u.languages.setLanguageConfiguration(e.languageId,rn));let a=e.modeConfiguration;return e.onDidChange((e=>{e.modeConfiguration!==a&&(a=e.modeConfiguration,o())})),t.push(tn(n)),tn(t)}function tn(e){return{dispose:()=>nn(e)}}function nn(e){for(;e.length;)e.pop().dispose()}var rn={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}}}]); \ No newline at end of file diff --git a/static/js/665.js.LICENSE.txt b/static/js/665.js.LICENSE.txt deleted file mode 100644 index 8ef59e134..000000000 --- a/static/js/665.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/static/js/66b622a25da168cc60ec.woff2 b/static/js/66b622a25da168cc60ec.woff2 deleted file mode 100644 index 0fee707f3..000000000 Binary files a/static/js/66b622a25da168cc60ec.woff2 and /dev/null differ diff --git a/static/js/6c1a3008005254946aef.woff b/static/js/6c1a3008005254946aef.woff deleted file mode 100644 index 751d007cd..000000000 Binary files a/static/js/6c1a3008005254946aef.woff and /dev/null differ diff --git a/static/js/6d3d25f4820d0da8f01f.woff2 b/static/js/6d3d25f4820d0da8f01f.woff2 deleted file mode 100644 index 215c143fd..000000000 Binary files a/static/js/6d3d25f4820d0da8f01f.woff2 and /dev/null differ diff --git a/static/js/6de7d4b539221a49e9e2.ttf b/static/js/6de7d4b539221a49e9e2.ttf deleted file mode 100644 index 871fd7d19..000000000 Binary files a/static/js/6de7d4b539221a49e9e2.ttf and /dev/null differ diff --git a/static/js/6e39ad95bc37a080358e.woff2 b/static/js/6e39ad95bc37a080358e.woff2 deleted file mode 100644 index ada16a626..000000000 Binary files a/static/js/6e39ad95bc37a080358e.woff2 and /dev/null differ diff --git a/static/js/6eec866c69313624be60.woff2 b/static/js/6eec866c69313624be60.woff2 deleted file mode 100644 index c5a8462fb..000000000 Binary files a/static/js/6eec866c69313624be60.woff2 and /dev/null differ diff --git a/static/js/6fdf0ac577be0ba82a4c.woff b/static/js/6fdf0ac577be0ba82a4c.woff deleted file mode 100644 index acab069f9..000000000 Binary files a/static/js/6fdf0ac577be0ba82a4c.woff and /dev/null differ diff --git a/static/js/734.js b/static/js/734.js deleted file mode 100644 index 45c2d78fd..000000000 --- a/static/js/734.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[734],{61734:(t,i,e)=>{e.d(i,{diagram:()=>d});var a=e(31460),n=e(74309),r=(e(93628),e(17967),e(27856),function(){var t=function(t,i,e,a){for(e=e||{},a=t.length;a--;e[t[a]]=i);return e},i=[1,3],e=[1,5],a=[1,6],n=[1,7],r=[1,8],s=[1,10],l=[1,5,14,16,18,20,21,26,28,29,30,31,32,38,39,40,41,47,48,50,51,52,53,54,55,56,57,58,59,60],o=[1,5,7,14,16,18,20,21,26,28,29,30,31,32,38,39,40,41,47,48,50,51,52,53,54,55,56,57,58,59,60],h=[38,39,40],c=[2,8],d=[1,19],u=[1,23],x=[1,24],g=[1,25],f=[1,26],y=[1,27],p=[1,29],q=[1,30],T=[1,31],_=[1,32],m=[1,33],A=[1,34],b=[1,37],S=[1,38],v=[1,39],k=[1,40],F=[1,41],P=[1,42],D=[1,43],C=[1,44],L=[1,45],z=[1,46],E=[1,47],I=[1,48],B=[1,49],w=[1,52],R=[1,67],W=[1,68],N=[5,23,27,38,39,40,50,51,52,53,54,55,56,57,58,59,60,61],U=[5,7,38,39,40,41],Q={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,directive:6,QUADRANT:7,document:8,line:9,statement:10,axisDetails:11,quadrantDetails:12,points:13,title:14,title_value:15,acc_title:16,acc_title_value:17,acc_descr:18,acc_descr_value:19,acc_descr_multiline_value:20,section:21,text:22,point_start:23,point_x:24,point_y:25,"X-AXIS":26,"AXIS-TEXT-DELIMITER":27,"Y-AXIS":28,QUADRANT_1:29,QUADRANT_2:30,QUADRANT_3:31,QUADRANT_4:32,openDirective:33,typeDirective:34,closeDirective:35,":":36,argDirective:37,NEWLINE:38,SEMI:39,EOF:40,open_directive:41,type_directive:42,arg_directive:43,close_directive:44,alphaNumToken:45,textNoTagsToken:46,STR:47,MD_STR:48,alphaNum:49,PUNCTUATION:50,AMP:51,NUM:52,ALPHA:53,COMMA:54,PLUS:55,EQUALS:56,MULT:57,DOT:58,BRKT:59,UNDERSCORE:60,MINUS:61,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",7:"QUADRANT",14:"title",15:"title_value",16:"acc_title",17:"acc_title_value",18:"acc_descr",19:"acc_descr_value",20:"acc_descr_multiline_value",21:"section",23:"point_start",24:"point_x",25:"point_y",26:"X-AXIS",27:"AXIS-TEXT-DELIMITER",28:"Y-AXIS",29:"QUADRANT_1",30:"QUADRANT_2",31:"QUADRANT_3",32:"QUADRANT_4",36:":",38:"NEWLINE",39:"SEMI",40:"EOF",41:"open_directive",42:"type_directive",43:"arg_directive",44:"close_directive",47:"STR",48:"MD_STR",50:"PUNCTUATION",51:"AMP",52:"NUM",53:"ALPHA",54:"COMMA",55:"PLUS",56:"EQUALS",57:"MULT",58:"DOT",59:"BRKT",60:"UNDERSCORE",61:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[10,0],[10,2],[10,1],[10,1],[10,1],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[13,4],[11,4],[11,3],[11,2],[11,4],[11,3],[11,2],[12,2],[12,2],[12,2],[12,2],[6,3],[6,5],[4,1],[4,1],[4,1],[33,1],[34,1],[37,1],[35,1],[22,1],[22,2],[22,1],[22,1],[49,1],[49,2],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[46,1],[46,1],[46,1]],performAction:function(t,i,e,a,n,r,s){var l=r.length-1;switch(n){case 13:this.$=r[l].trim(),a.setDiagramTitle(this.$);break;case 14:this.$=r[l].trim(),a.setAccTitle(this.$);break;case 15:case 16:this.$=r[l].trim(),a.setAccDescription(this.$);break;case 17:a.addSection(r[l].substr(8)),this.$=r[l].substr(8);break;case 19:a.addPoint(r[l-3],r[l-1],r[l]);break;case 20:a.setXAxisLeftText(r[l-2]),a.setXAxisRightText(r[l]);break;case 21:r[l-1].text+=r[l],a.setXAxisLeftText(r[l-1]);break;case 22:a.setXAxisLeftText(r[l]);break;case 23:a.setYAxisBottomText(r[l-2]),a.setYAxisTopText(r[l]);break;case 24:r[l-1].text+=r[l],a.setYAxisBottomText(r[l-1]);break;case 25:a.setYAxisBottomText(r[l]);break;case 26:a.setQuadrant1Text(r[l]);break;case 27:a.setQuadrant2Text(r[l]);break;case 28:a.setQuadrant3Text(r[l]);break;case 29:a.setQuadrant4Text(r[l]);break;case 35:a.parseDirective("%%{","open_directive");break;case 36:a.parseDirective(r[l],"type_directive");break;case 37:r[l]=r[l].trim().replace(/'/g,'"'),a.parseDirective(r[l],"arg_directive");break;case 38:a.parseDirective("}%%","close_directive","quadrantChart");break;case 39:case 41:this.$={text:r[l],type:"text"};break;case 40:this.$={text:r[l-1].text+""+r[l],type:r[l-1].type};break;case 42:this.$={text:r[l],type:"markdown"};break;case 43:this.$=r[l];break;case 44:this.$=r[l-1]+""+r[l]}},table:[{3:1,4:2,5:i,6:4,7:e,33:9,38:a,39:n,40:r,41:s},{1:[3]},{3:11,4:2,5:i,6:4,7:e,33:9,38:a,39:n,40:r,41:s},{3:12,4:2,5:i,6:4,7:e,33:9,38:a,39:n,40:r,41:s},{3:13,4:2,5:i,6:4,7:e,33:9,38:a,39:n,40:r,41:s},t(l,[2,5],{8:14}),t(o,[2,32]),t(o,[2,33]),t(o,[2,34]),{34:15,42:[1,16]},{42:[2,35]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(h,c,{33:9,9:17,10:18,11:20,12:21,13:22,6:28,22:35,45:36,1:[2,4],5:d,14:u,16:x,18:g,20:f,21:y,26:p,28:q,29:T,30:_,31:m,32:A,41:s,47:b,48:S,50:v,51:k,52:F,53:P,54:D,55:C,56:L,57:z,58:E,59:I,60:B}),{35:50,36:[1,51],44:w},t([36,44],[2,36]),t(l,[2,6]),{4:53,38:a,39:n,40:r},t(h,c,{33:9,11:20,12:21,13:22,6:28,22:35,45:36,10:54,5:d,14:u,16:x,18:g,20:f,21:y,26:p,28:q,29:T,30:_,31:m,32:A,41:s,47:b,48:S,50:v,51:k,52:F,53:P,54:D,55:C,56:L,57:z,58:E,59:I,60:B}),t(h,[2,10]),t(h,[2,11]),t(h,[2,12]),{15:[1,55]},{17:[1,56]},{19:[1,57]},t(h,[2,16]),t(h,[2,17]),t(h,[2,18]),{22:58,45:36,47:b,48:S,50:v,51:k,52:F,53:P,54:D,55:C,56:L,57:z,58:E,59:I,60:B},{22:59,45:36,47:b,48:S,50:v,51:k,52:F,53:P,54:D,55:C,56:L,57:z,58:E,59:I,60:B},{22:60,45:36,47:b,48:S,50:v,51:k,52:F,53:P,54:D,55:C,56:L,57:z,58:E,59:I,60:B},{22:61,45:36,47:b,48:S,50:v,51:k,52:F,53:P,54:D,55:C,56:L,57:z,58:E,59:I,60:B},{22:62,45:36,47:b,48:S,50:v,51:k,52:F,53:P,54:D,55:C,56:L,57:z,58:E,59:I,60:B},{22:63,45:36,47:b,48:S,50:v,51:k,52:F,53:P,54:D,55:C,56:L,57:z,58:E,59:I,60:B},{5:R,23:[1,64],45:66,46:65,50:v,51:k,52:F,53:P,54:D,55:C,56:L,57:z,58:E,59:I,60:B,61:W},t(N,[2,39]),t(N,[2,41]),t(N,[2,42]),t(N,[2,45]),t(N,[2,46]),t(N,[2,47]),t(N,[2,48]),t(N,[2,49]),t(N,[2,50]),t(N,[2,51]),t(N,[2,52]),t(N,[2,53]),t(N,[2,54]),t(N,[2,55]),t(U,[2,30]),{37:69,43:[1,70]},t(U,[2,38]),t(l,[2,7]),t(h,[2,9]),t(h,[2,13]),t(h,[2,14]),t(h,[2,15]),t(h,[2,22],{46:65,45:66,5:R,27:[1,71],50:v,51:k,52:F,53:P,54:D,55:C,56:L,57:z,58:E,59:I,60:B,61:W}),t(h,[2,25],{46:65,45:66,5:R,27:[1,72],50:v,51:k,52:F,53:P,54:D,55:C,56:L,57:z,58:E,59:I,60:B,61:W}),t(h,[2,26],{46:65,45:66,5:R,50:v,51:k,52:F,53:P,54:D,55:C,56:L,57:z,58:E,59:I,60:B,61:W}),t(h,[2,27],{46:65,45:66,5:R,50:v,51:k,52:F,53:P,54:D,55:C,56:L,57:z,58:E,59:I,60:B,61:W}),t(h,[2,28],{46:65,45:66,5:R,50:v,51:k,52:F,53:P,54:D,55:C,56:L,57:z,58:E,59:I,60:B,61:W}),t(h,[2,29],{46:65,45:66,5:R,50:v,51:k,52:F,53:P,54:D,55:C,56:L,57:z,58:E,59:I,60:B,61:W}),{24:[1,73]},t(N,[2,40]),t(N,[2,56]),t(N,[2,57]),t(N,[2,58]),{35:74,44:w},{44:[2,37]},t(h,[2,21],{45:36,22:75,47:b,48:S,50:v,51:k,52:F,53:P,54:D,55:C,56:L,57:z,58:E,59:I,60:B}),t(h,[2,24],{45:36,22:76,47:b,48:S,50:v,51:k,52:F,53:P,54:D,55:C,56:L,57:z,58:E,59:I,60:B}),{25:[1,77]},t(U,[2,31]),t(h,[2,20],{46:65,45:66,5:R,50:v,51:k,52:F,53:P,54:D,55:C,56:L,57:z,58:E,59:I,60:B,61:W}),t(h,[2,23],{46:65,45:66,5:R,50:v,51:k,52:F,53:P,54:D,55:C,56:L,57:z,58:E,59:I,60:B,61:W}),t(h,[2,19])],defaultActions:{10:[2,35],11:[2,1],12:[2,2],13:[2,3],70:[2,37]},parseError:function(t,i){if(!i.recoverable){var e=new Error(t);throw e.hash=i,e}this.trace(t)},parse:function(t){var i=[0],e=[],a=[null],n=[],r=this.table,s="",l=0,o=0,h=n.slice.call(arguments,1),c=Object.create(this.lexer),d={yy:{}};for(var u in this.yy)Object.prototype.hasOwnProperty.call(this.yy,u)&&(d.yy[u]=this.yy[u]);c.setInput(t,d.yy),d.yy.lexer=c,d.yy.parser=this,void 0===c.yylloc&&(c.yylloc={});var x=c.yylloc;n.push(x);var g=c.options&&c.options.ranges;"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var f,y,p,q,T,_,m,A,b,S={};;){if(y=i[i.length-1],this.defaultActions[y]?p=this.defaultActions[y]:(null==f&&(b=void 0,"number"!=typeof(b=e.pop()||c.lex()||1)&&(b instanceof Array&&(b=(e=b).pop()),b=this.symbols_[b]||b),f=b),p=r[y]&&r[y][f]),void 0===p||!p.length||!p[0]){var v;for(T in A=[],r[y])this.terminals_[T]&&T>2&&A.push("'"+this.terminals_[T]+"'");v=c.showPosition?"Parse error on line "+(l+1)+":\n"+c.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(v,{text:c.match,token:this.terminals_[f]||f,line:c.yylineno,loc:x,expected:A})}if(p[0]instanceof Array&&p.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+f);switch(p[0]){case 1:i.push(f),a.push(c.yytext),n.push(c.yylloc),i.push(p[1]),f=null,o=c.yyleng,s=c.yytext,l=c.yylineno,x=c.yylloc;break;case 2:if(_=this.productions_[p[1]][1],S.$=a[a.length-_],S._$={first_line:n[n.length-(_||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(_||1)].first_column,last_column:n[n.length-1].last_column},g&&(S._$.range=[n[n.length-(_||1)].range[0],n[n.length-1].range[1]]),void 0!==(q=this.performAction.apply(S,[s,o,l,d.yy,p[1],a,n].concat(h))))return q;_&&(i=i.slice(0,-1*_*2),a=a.slice(0,-1*_),n=n.slice(0,-1*_)),i.push(this.productions_[p[1]][0]),a.push(S.$),n.push(S._$),m=r[i[i.length-2]][i[i.length-1]],i.push(m);break;case 3:return!0}}return!0}},H={EOF:1,parseError:function(t,i){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,i)},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];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(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,e=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),e.length-1&&(this.yylineno-=e.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:e?(e.length===a.length?this.yylloc.first_column:0)+a[a.length-e.length].length-e[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(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},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()+"\n"+i+"^"},test_match:function(t,i){var e,a,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(a=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var r in n)this[r]=n[r];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,i,e,a;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;ri[0].length)){if(i=e,a=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(e,n[r])))return t;if(this._backtrack){i=!1;continue}return!1}if(!this.options.flex)break}return i?!1!==(t=this.test_match(i,n[a]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,i,e,a){switch(e){case 0:return this.begin("open_directive"),41;case 1:return this.begin("type_directive"),42;case 2:return this.popState(),this.begin("arg_directive"),36;case 3:return this.popState(),this.popState(),44;case 4:return 43;case 5:case 6:case 8:break;case 7:return 38;case 9:return this.begin("title"),14;case 10:return this.popState(),"title_value";case 11:return this.begin("acc_title"),16;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),18;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 27:case 29:case 33:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 26;case 19:return 28;case 20:return 27;case 21:return 29;case 22:return 30;case 23:return 31;case 24:return 32;case 25:this.begin("md_string");break;case 26:return"MD_STR";case 28:this.begin("string");break;case 30:return"STR";case 31:return this.begin("point_start"),23;case 32:return this.begin("point_x"),24;case 34:this.popState(),this.begin("point_y");break;case 35:return this.popState(),25;case 36:return 7;case 37:return 53;case 38:return"COLON";case 39:return 55;case 40:return 54;case 41:case 42:return 56;case 43:return 57;case 44:return 59;case 45:return 60;case 46:return 58;case 47:return 51;case 48:return 61;case 49:return 52;case 50:return 5;case 51:return 39;case 52:return 50;case 53:return 40}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[35],inclusive:!1},point_x:{rules:[34],inclusive:!1},point_start:{rules:[32,33],inclusive:!1},acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[10],inclusive:!1},md_string:{rules:[26,27],inclusive:!1},string:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,11,13,15,18,19,20,21,22,23,24,25,28,31,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53],inclusive:!0}}};function $(){this.yy={}}return Q.lexer=H,$.prototype=Q,Q.Parser=$,new $}());r.parser=r;const s=r,l=(0,a.C)(),o=(0,a.c)();function h(t){return(0,a.d)(t.trim(),o)}const c=new class{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var t,i,e,n,r,s,l,o,h,c,d,u,x,g,f,y,p,q;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:(null==(t=a.D.quadrantChart)?void 0:t.chartWidth)||500,chartWidth:(null==(i=a.D.quadrantChart)?void 0:i.chartHeight)||500,titlePadding:(null==(e=a.D.quadrantChart)?void 0:e.titlePadding)||10,titleFontSize:(null==(n=a.D.quadrantChart)?void 0:n.titleFontSize)||20,quadrantPadding:(null==(r=a.D.quadrantChart)?void 0:r.quadrantPadding)||5,xAxisLabelPadding:(null==(s=a.D.quadrantChart)?void 0:s.xAxisLabelPadding)||5,yAxisLabelPadding:(null==(l=a.D.quadrantChart)?void 0:l.yAxisLabelPadding)||5,xAxisLabelFontSize:(null==(o=a.D.quadrantChart)?void 0:o.xAxisLabelFontSize)||16,yAxisLabelFontSize:(null==(h=a.D.quadrantChart)?void 0:h.yAxisLabelFontSize)||16,quadrantLabelFontSize:(null==(c=a.D.quadrantChart)?void 0:c.quadrantLabelFontSize)||16,quadrantTextTopPadding:(null==(d=a.D.quadrantChart)?void 0:d.quadrantTextTopPadding)||5,pointTextPadding:(null==(u=a.D.quadrantChart)?void 0:u.pointTextPadding)||5,pointLabelFontSize:(null==(x=a.D.quadrantChart)?void 0:x.pointLabelFontSize)||12,pointRadius:(null==(g=a.D.quadrantChart)?void 0:g.pointRadius)||5,xAxisPosition:(null==(f=a.D.quadrantChart)?void 0:f.xAxisPosition)||"top",yAxisPosition:(null==(y=a.D.quadrantChart)?void 0:y.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:(null==(p=a.D.quadrantChart)?void 0:p.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:(null==(q=a.D.quadrantChart)?void 0:q.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:l.quadrant1Fill,quadrant2Fill:l.quadrant2Fill,quadrant3Fill:l.quadrant3Fill,quadrant4Fill:l.quadrant4Fill,quadrant1TextFill:l.quadrant1TextFill,quadrant2TextFill:l.quadrant2TextFill,quadrant3TextFill:l.quadrant3TextFill,quadrant4TextFill:l.quadrant4TextFill,quadrantPointFill:l.quadrantPointFill,quadrantPointTextFill:l.quadrantPointTextFill,quadrantXAxisTextFill:l.quadrantXAxisTextFill,quadrantYAxisTextFill:l.quadrantYAxisTextFill,quadrantTitleFill:l.quadrantTitleFill,quadrantInternalBorderStrokeFill:l.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:l.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),a.l.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}setConfig(t){a.l.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){a.l.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,i,e,a){const n=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,r={top:"top"===t&&i?n:0,bottom:"bottom"===t&&i?n:0},s=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,l={left:"left"===this.config.yAxisPosition&&e?s:0,right:"right"===this.config.yAxisPosition&&e?s:0},o=this.config.titleFontSize+2*this.config.titlePadding,h={top:a?o:0},c=this.config.quadrantPadding+l.left,d=this.config.quadrantPadding+r.top+h.top,u=this.config.chartWidth-2*this.config.quadrantPadding-l.left-l.right,x=this.config.chartHeight-2*this.config.quadrantPadding-r.top-r.bottom-h.top;return{xAxisSpace:r,yAxisSpace:l,titleSpace:h,quadrantSpace:{quadrantLeft:c,quadrantTop:d,quadrantWidth:u,quadrantHalfWidth:u/2,quadrantHeight:x,quadrantHalfHeight:x/2}}}getAxisLabels(t,i,e,a){const{quadrantSpace:n,titleSpace:r}=a,{quadrantHalfHeight:s,quadrantHeight:l,quadrantLeft:o,quadrantHalfWidth:h,quadrantTop:c,quadrantWidth:d}=n,u=0===this.data.points.length,x=[];return this.data.xAxisLeftText&&i&&x.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:o+(u?h/2:0),y:"top"===t?this.config.xAxisLabelPadding+r.top:this.config.xAxisLabelPadding+c+l+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:u?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&i&&x.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:o+h+(u?h/2:0),y:"top"===t?this.config.xAxisLabelPadding+r.top:this.config.xAxisLabelPadding+c+l+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:u?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&e&&x.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+o+d+this.config.quadrantPadding,y:c+l-(u?s/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:u?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&e&&x.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+o+d+this.config.quadrantPadding,y:c+s-(u?s/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:u?"center":"left",horizontalPos:"top",rotation:-90}),x}getQuadrants(t){const{quadrantSpace:i}=t,{quadrantHalfHeight:e,quadrantLeft:a,quadrantHalfWidth:n,quadrantTop:r}=i,s=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a+n,y:r,width:n,height:e,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a,y:r,width:n,height:e,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a,y:r+e,width:n,height:e,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a+n,y:r+e,width:n,height:e,fill:this.themeConfig.quadrant4Fill}];for(const t of s)t.text.x=t.x+t.width/2,0===this.data.points.length?(t.text.y=t.y+t.height/2,t.text.horizontalPos="middle"):(t.text.y=t.y+this.config.quadrantTextTopPadding,t.text.horizontalPos="top");return s}getQuadrantPoints(t){const{quadrantSpace:i}=t,{quadrantHeight:e,quadrantLeft:a,quadrantTop:r,quadrantWidth:s}=i,l=(0,n.BYU)().domain([0,1]).range([a,s+a]),o=(0,n.BYU)().domain([0,1]).range([e+r,r]);return this.data.points.map((t=>({x:l(t.x),y:o(t.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:t.text,fill:this.themeConfig.quadrantPointTextFill,x:l(t.x),y:o(t.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}})))}getBorders(t){const i=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:e}=t,{quadrantHalfHeight:a,quadrantHeight:n,quadrantLeft:r,quadrantHalfWidth:s,quadrantTop:l,quadrantWidth:o}=e;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:r-i,y1:l,x2:r+o+i,y2:l},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:r+o,y1:l+i,x2:r+o,y2:l+n-i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:r-i,y1:l+n,x2:r+o+i,y2:l+n},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:r,y1:l+i,x2:r,y2:l+n-i},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:r+s,y1:l+i,x2:r+s,y2:l+n-i},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:r+i,y1:l+a,x2:r+o-i,y2:l+a}]}getTitle(t){if(t)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const t=this.config.showXAxis&&!(!this.data.xAxisLeftText&&!this.data.xAxisRightText),i=this.config.showYAxis&&!(!this.data.yAxisTopText&&!this.data.yAxisBottomText),e=this.config.showTitle&&!!this.data.titleText,a=this.data.points.length>0?"bottom":this.config.xAxisPosition,n=this.calculateSpace(a,t,i,e);return{points:this.getQuadrantPoints(n),quadrants:this.getQuadrants(n),axisLabels:this.getAxisLabels(a,t,i,n),borderLines:this.getBorders(n),title:this.getTitle(e)}}},d={parser:s,db:{setWidth:function(t){c.setConfig({chartWidth:t})},setHeight:function(t){c.setConfig({chartHeight:t})},setQuadrant1Text:function(t){c.setData({quadrant1Text:h(t.text)})},setQuadrant2Text:function(t){c.setData({quadrant2Text:h(t.text)})},setQuadrant3Text:function(t){c.setData({quadrant3Text:h(t.text)})},setQuadrant4Text:function(t){c.setData({quadrant4Text:h(t.text)})},setXAxisLeftText:function(t){c.setData({xAxisLeftText:h(t.text)})},setXAxisRightText:function(t){c.setData({xAxisRightText:h(t.text)})},setYAxisTopText:function(t){c.setData({yAxisTopText:h(t.text)})},setYAxisBottomText:function(t){c.setData({yAxisBottomText:h(t.text)})},addPoint:function(t,i,e){c.addPoints([{x:i,y:e,text:h(t.text)}])},getQuadrantData:function(){const t=(0,a.c)(),{themeVariables:i,quadrantChart:e}=t;return e&&c.setConfig(e),c.setThemeConfig({quadrant1Fill:i.quadrant1Fill,quadrant2Fill:i.quadrant2Fill,quadrant3Fill:i.quadrant3Fill,quadrant4Fill:i.quadrant4Fill,quadrant1TextFill:i.quadrant1TextFill,quadrant2TextFill:i.quadrant2TextFill,quadrant3TextFill:i.quadrant3TextFill,quadrant4TextFill:i.quadrant4TextFill,quadrantPointFill:i.quadrantPointFill,quadrantPointTextFill:i.quadrantPointTextFill,quadrantXAxisTextFill:i.quadrantXAxisTextFill,quadrantYAxisTextFill:i.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:i.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:i.quadrantInternalBorderStrokeFill,quadrantTitleFill:i.quadrantTitleFill}),c.setData({titleText:(0,a.t)()}),c.build()},parseDirective:function(t,i,e){a.m.parseDirective(this,t,i,e)},clear:function(){c.clear(),(0,a.v)()},setAccTitle:a.s,getAccTitle:a.g,setDiagramTitle:a.r,getDiagramTitle:a.t,getAccDescription:a.a,setAccDescription:a.b},renderer:{draw:(t,i,e,r)=>{var s,l,o;function h(t){return"top"===t?"hanging":"middle"}function c(t){return"left"===t?"start":"middle"}function d(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}const u=(0,a.c)();a.l.debug("Rendering quadrant chart\n"+t);const x=u.securityLevel;let g;"sandbox"===x&&(g=(0,n.Ys)("#i"+i));const f=("sandbox"===x?(0,n.Ys)(g.nodes()[0].contentDocument.body):(0,n.Ys)("body")).select(`[id="${i}"]`),y=f.append("g").attr("class","main"),p=(null==(s=u.quadrantChart)?void 0:s.chartWidth)||500,q=(null==(l=u.quadrantChart)?void 0:l.chartHeight)||500;(0,a.i)(f,q,p,(null==(o=u.quadrantChart)?void 0:o.useMaxWidth)||!0),f.attr("viewBox","0 0 "+p+" "+q),r.db.setHeight(q),r.db.setWidth(p);const T=r.db.getQuadrantData(),_=y.append("g").attr("class","quadrants"),m=y.append("g").attr("class","border"),A=y.append("g").attr("class","data-points"),b=y.append("g").attr("class","labels"),S=y.append("g").attr("class","title");T.title&&S.append("text").attr("x",0).attr("y",0).attr("fill",T.title.fill).attr("font-size",T.title.fontSize).attr("dominant-baseline",h(T.title.horizontalPos)).attr("text-anchor",c(T.title.verticalPos)).attr("transform",d(T.title)).text(T.title.text),T.borderLines&&m.selectAll("line").data(T.borderLines).enter().append("line").attr("x1",(t=>t.x1)).attr("y1",(t=>t.y1)).attr("x2",(t=>t.x2)).attr("y2",(t=>t.y2)).style("stroke",(t=>t.strokeFill)).style("stroke-width",(t=>t.strokeWidth));const v=_.selectAll("g.quadrant").data(T.quadrants).enter().append("g").attr("class","quadrant");v.append("rect").attr("x",(t=>t.x)).attr("y",(t=>t.y)).attr("width",(t=>t.width)).attr("height",(t=>t.height)).attr("fill",(t=>t.fill)),v.append("text").attr("x",0).attr("y",0).attr("fill",(t=>t.text.fill)).attr("font-size",(t=>t.text.fontSize)).attr("dominant-baseline",(t=>h(t.text.horizontalPos))).attr("text-anchor",(t=>c(t.text.verticalPos))).attr("transform",(t=>d(t.text))).text((t=>t.text.text)),b.selectAll("g.label").data(T.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text((t=>t.text)).attr("fill",(t=>t.fill)).attr("font-size",(t=>t.fontSize)).attr("dominant-baseline",(t=>h(t.horizontalPos))).attr("text-anchor",(t=>c(t.verticalPos))).attr("transform",(t=>d(t)));const k=A.selectAll("g.data-point").data(T.points).enter().append("g").attr("class","data-point");k.append("circle").attr("cx",(t=>t.x)).attr("cy",(t=>t.y)).attr("r",(t=>t.radius)).attr("fill",(t=>t.fill)),k.append("text").attr("x",0).attr("y",0).text((t=>t.text.text)).attr("fill",(t=>t.text.fill)).attr("font-size",(t=>t.text.fontSize)).attr("dominant-baseline",(t=>h(t.text.horizontalPos))).attr("text-anchor",(t=>c(t.text.verticalPos))).attr("transform",(t=>d(t.text)))}},styles:()=>""}}}]); \ No newline at end of file diff --git a/static/js/737dedc32b59205a84d9.woff2 b/static/js/737dedc32b59205a84d9.woff2 deleted file mode 100644 index d1518426f..000000000 Binary files a/static/js/737dedc32b59205a84d9.woff2 and /dev/null differ diff --git a/static/js/73ea273a72f4aca30ca5.woff2 b/static/js/73ea273a72f4aca30ca5.woff2 deleted file mode 100644 index 0acaaff03..000000000 Binary files a/static/js/73ea273a72f4aca30ca5.woff2 and /dev/null differ diff --git a/static/js/748.js b/static/js/748.js deleted file mode 100644 index b6fac9608..000000000 --- a/static/js/748.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 748.js.LICENSE.txt */ -(self.webpackChunk=self.webpackChunk||[]).push([[748],{84182:function(e,t,n){var r;r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(0).FDLayoutConstants;function i(){}for(var a in r)i[a]=r[a];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TREE_REDUCTION_ON_INCREMENTAL=!1,e.exports=i},function(e,t,n){"use strict";var r=n(0).FDLayoutEdge;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i},function(e,t,n){"use strict";var r=n(0).LGraph;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i},function(e,t,n){"use strict";var r=n(0).LGraphManager;function i(e){r.call(this,e)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i},function(e,t,n){"use strict";var r=n(0).FDLayoutNode,i=n(0).IMath;function a(e,t,n,i){r.call(this,e,t,n,i)}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];a.prototype.move=function(){var e=this.graphManager.getLayout();this.displacementX=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementY)),null==this.child||0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),e.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},a.prototype.propogateDisplacementToChildren=function(e,t){for(var n,r=this.getChild().getNodes(),i=0;i0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter((function(e){return t.has(e)}));this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},m.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}if(this.totalIterations%u.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter((function(t){return e.has(t)}));this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=u.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=u.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},m.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n1)for(s=0;sr&&(r=Math.floor(o.y)),a=Math.floor(o.x+l.DEFAULT_COMPONENT_SEPERATION)}this.transform(new d(c.WORLD_CENTER_X-o.x/2,c.WORLD_CENTER_Y-o.y/2))},m.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),l.DEFAULT_RADIAL_SEPARATION);m.branchRadialLayout(t,null,0,359,0,r);var i=v.calculateBounds(e),a=new y;a.setDeviceOrgX(i.getMinX()),a.setDeviceOrgY(i.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o1;){var y=v[0];v.splice(0,1);var b=c.indexOf(y);b>=0&&c.splice(b,1),g--,h--}d=null!=t?(c.indexOf(v[0])+1)%g:0;for(var x=Math.abs(r-n)/h,w=d;p!=h;w=++w%g){var E=c[w].getOtherEnd(e);if(E!=t){var _=(n+p*x)%360,T=(_+x)%360;m.branchRadialLayout(E,e,_,T,i+a,a),p++}}},m.maxDiagonalInTree=function(e){for(var t=g.MIN_VALUE,n=0;nt&&(t=r)}return t},m.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},m.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i1){var r="DummyCompound_"+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),a=new o(e.graphManager);a.id=r,a.paddingLeft=i.paddingLeft||0,a.paddingRight=i.paddingRight||0,a.paddingBottom=i.paddingBottom||0,a.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=a;var s=e.getGraphManager().add(e.newGraph(),a),l=i.getChild();l.add(a);for(var u=0;u=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i)}},m.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach((function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,a=r.paddingTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,a)}))},m.prototype.getToBeTiled=function(e){var t=e.id;if(null!=this.toBeTiled[t])return this.toBeTiled[t];var n=e.getChild();if(null==n)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i0)return this.toBeTiled[t]=!1,!1;if(null!=a.getChild()){if(!this.getToBeTiled(a))return this.toBeTiled[t]=!1,!1}else this.toBeTiled[a.id]=!1}return this.toBeTiled[t]=!0,!0},m.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;rl&&(l=c.rect.height)}n+=l+e.verticalPadding}},m.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach((function(r){var i=t[r];n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height}))},m.prototype.tileNodes=function(e,t){var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:l.TILING_PADDING_VERTICAL,horizontalPadding:l.TILING_PADDING_HORIZONTAL};e.sort((function(e,t){return e.rect.width*e.rect.height>t.rect.width*t.rect.height?-1:e.rect.width*e.rect.height0&&(a+=e.horizontalPadding),e.rowWidth[n]=a,e.width0&&(o+=e.verticalPadding);var s=0;o>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=o,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},m.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;rn&&(t=r,n=e.rowWidth[r]);return t},m.prototype.canAddHorizontal=function(e,t,n){var r=this.getShortestRowIndex(e);if(r<0)return!0;var i=e.rowWidth[r];if(i+e.horizontalPadding+t<=e.width)return!0;var a,o,s=0;return e.rowHeight[r]0&&(s=n+e.verticalPadding-e.rowHeight[r]),a=e.width-i>=t+e.horizontalPadding?(e.height+s)/(i+t+e.horizontalPadding):(e.height+s)/e.width,s=n+e.verticalPadding,(o=e.widtha&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-a,e.rowWidth[n]=e.rowWidth[n]+a,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var o=Number.MIN_VALUE,s=0;so&&(o=r[s].height);t>0&&(o+=e.verticalPadding);var l=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=o,e.rowHeight[n]0)for(var c=i;c<=a;c++)l[0]+=this.grid[c][o-1].length+this.grid[c][o].length-1;if(a0)for(c=o;c<=s;c++)l[3]+=this.grid[i-1][c].length+this.grid[i][c].length-1;for(var h,d,p=g.MAX_VALUE,f=0;f0&&(o=n.getGraphManager().add(n.newGraph(),a),this.processChildrenList(o,h,n))}},h.prototype.stop=function(){return this.stopped=!0,this};var p=function(e){e("layout","cose-bilkent",h)};"undefined"!=typeof cytoscape&&p(cytoscape),e.exports=p}])},e.exports=r(n(84182))},71377:function(e,t,n){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nt?1:0},z=null!=Object.assign?Object.assign.bind(Object):function(e){for(var t=arguments,n=1;n255)return;t.push(Math.floor(a))}var o=r[1]||r[2]||r[3],s=r[1]&&r[2]&&r[3];if(o&&!s)return;var l=n[4];if(void 0!==l){if((l=parseFloat(l))<0||l>1)return;t.push(l)}}return t}(e)||function(e){var t,n,r,i,a,o,s,l;function u(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var c=new RegExp("^"+R+"$").exec(e);if(c){if((n=parseInt(c[1]))<0?n=(360- -1*n%360)%360:n>360&&(n%=360),n/=360,(r=parseFloat(c[2]))<0||r>100)return;if(r/=100,(i=parseFloat(c[3]))<0||i>100)return;if(i/=100,void 0!==(a=c[4])&&((a=parseFloat(a))<0||a>1))return;if(0===r)o=s=l=Math.round(255*i);else{var h=i<.5?i*(1+r):i+r-i*r,d=2*i-h;o=Math.round(255*u(d,h,n+1/3)),s=Math.round(255*u(d,h,n)),l=Math.round(255*u(d,h,n-1/3))}t=[o,s,l,a]}return t}(e)},Y={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]},X=function(e){for(var t=e.map,n=e.keys,r=n.length,i=0;i=t||n<0||h&&e-u>=a}function f(){var e=$();if(g(e))return v(e);s=setTimeout(f,function(e){var n=t-(e-l);return h?me(n,a-(e-u)):n}(e))}function v(e){return s=void 0,d&&r?p(e):(r=i=void 0,o)}function y(){var e=$(),n=g(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(f,t),c?p(e):o}(l);if(h)return clearTimeout(s),s=setTimeout(f,t),p(l)}return void 0===s&&(s=setTimeout(f,t)),o}return t=ve(t)||0,U(n)&&(c=!!n.leading,a=(h="maxWait"in n)?ye(ve(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},y.flush=function(){return void 0===s?o:v($())},y},xe=l?l.performance:null,we=xe&&xe.now?function(){return xe.now()}:function(){return Date.now()},Ee=function(){if(l){if(l.requestAnimationFrame)return function(e){l.requestAnimationFrame(e)};if(l.mozRequestAnimationFrame)return function(e){l.mozRequestAnimationFrame(e)};if(l.webkitRequestAnimationFrame)return function(e){l.webkitRequestAnimationFrame(e)};if(l.msRequestAnimationFrame)return function(e){l.msRequestAnimationFrame(e)}}return function(e){e&&setTimeout((function(){e(we())}),1e3/60)}}(),_e=function(e){return Ee(e)},Te=we,De=9261,Ce=5381,Ne=function(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:De;!(t=e.next()).done;)n=65599*n+t.value|0;return n},Ae=function(e){return 65599*(arguments.length>1&&void 0!==arguments[1]?arguments[1]:De)+e|0},Le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ce;return(t<<5)+t+e|0},ke=function(e){return 2097152*e[0]+e[1]},Se=function(e,t){return[Ae(e[0],t[0]),Le(e[1],t[1])]},Ie=function(e,t){var n={value:0,done:!1},r=0,i=e.length;return Ne({next:function(){return r=0&&(e[r]!==t||(e.splice(r,1),!n));r--);},Qe=function(e){e.splice(0,e.length)},Je=function(e,t,n){return n&&(t=S(n,t)),e[t]},et=function(e,t,n,r){n&&(t=S(n,t)),e[t]=r},tt="undefined"!=typeof Map?Map:function(){function e(){t(this,e),this._obj={}}return i(e,[{key:"set",value:function(e,t){return this._obj[e]=t,this}},{key:"delete",value:function(e){return this._obj[e]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(e){return void 0!==this._obj[e]}},{key:"get",value:function(e){return this._obj[e]}}]),e}(),nt=function(){function e(n){if(t(this,e),this._obj=Object.create(null),this.size=0,null!=n){var r;r=null!=n.instanceString&&n.instanceString()===this.instanceString()?n.toArray():n;for(var i=0;i2&&void 0!==arguments[2])||arguments[2];if(void 0!==e&&void 0!==t&&T(e)){var r=t.group;if(null==r&&(r=t.data&&null!=t.data.source&&null!=t.data.target?"edges":"nodes"),"nodes"===r||"edges"===r){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:r,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:void 0===t.selectable||!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:void 0===t.grabbable||!!t.grabbable,pannable:void 0===t.pannable?"edges"===r:!!t.pannable,active:!1,classes:new rt,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(null==i.position.x&&(i.position.x=0),null==i.position.y&&(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 l=[];y(t.classes)?l=t.classes:f(t.classes)&&(l=t.classes.split(/\s+/));for(var u=0,c=l.length;ut?1:0},u=function(e,t,i,a,o){var s;if(null==i&&(i=0),null==o&&(o=n),i<0)throw new Error("lo must be non-negative");for(null==a&&(a=e.length);in;0<=n?t++:t--)u.push(t);return u}.apply(this).reverse()).length;af;0<=f?++d:--d)v.push(a(e,r));return v},g=function(e,t,r,i){var a,o,s;for(null==i&&(i=n),a=e[r];r>t&&i(a,o=e[s=r-1>>1])<0;)e[r]=o,r=s;return e[r]=a},f=function(e,t,r){var i,a,o,s,l;for(null==r&&(r=n),a=e.length,l=t,o=e[t],i=2*t+1;i0;){var _=b.pop(),T=v(_),D=_.id();if(h[D]=T,T!==1/0)for(var C=_.neighborhood().intersect(p),N=0;N0)for(n.unshift(t);c[i];){var a=c[i];n.unshift(a.edge),n.unshift(a.node),i=(r=a.node).id()}return o.spawn(n)}}}},ht={kruskal:function(e){e=e||function(e){return 1};for(var t=this.byGroup(),n=t.nodes,r=t.edges,i=n.length,a=new Array(i),o=n,s=function(e){for(var t=0;t0;){if(l=v.pop(),u=l.id(),y.delete(u),w++,u===d){for(var E=[],_=i,T=d,D=b[T];E.unshift(_),null!=D&&E.unshift(D),null!=(_=m[T]);)D=b[T=_.id()];return{found:!0,distance:p[u],path:this.spawn(E),steps:w}}f[u]=!0;for(var C=l._private.edges,N=0;NN&&(p[C]=N,m[C]=D,b[C]=w),!i){var A=D*u+T;!i&&p[A]>N&&(p[A]=N,m[A]=T,b[A]=w)}}}for(var L=0;L1&&void 0!==arguments[1]?arguments[1]:a,r=[],i=b(e);;){if(null==i)return t.spawn();var o=m(i),l=o.edge,u=o.pred;if(r.unshift(i[0]),i.same(n)&&r.length>0)break;null!=l&&r.unshift(l),i=u}return s.spawn(r)},hasNegativeWeightCycle:g,negativeWeightCycles:v}}},mt=Math.sqrt(2),bt=function(e,t,n){0===n.length&&Ve("Karger-Stein must be run on a connected (sub)graph");for(var r=n[e],i=r[1],a=r[2],o=t[i],s=t[a],l=n,u=l.length-1;u>=0;u--){var c=l[u],h=c[1],d=c[2];(t[h]===o&&t[d]===s||t[h]===s&&t[d]===o)&&l.splice(u,1)}for(var p=0;pr;){var i=Math.floor(Math.random()*t.length);t=bt(i,e,t),n--}return t},wt={kargerStein:function(){var e=this,t=this.byGroup(),n=t.nodes,r=t.edges;r.unmergeBy((function(e){return e.isLoop()}));var i=n.length,a=r.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),s=Math.floor(i/mt);if(!(i<2)){for(var l=[],u=0;u0?1:e<0?-1:0},At=function(e,t){return Math.sqrt(Lt(e,t))},Lt=function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},kt=function(e){for(var t=e.length,n=0,r=0;r=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(null!=e.w&&null!=e.h&&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}}},Pt=function(e,t,n){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,n),e.y2=Math.max(e.y2,n),e.h=e.y2-e.y1},Rt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?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},Bt=function(e){var t,n,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0];if(1===a.length)t=n=r=i=a[0];else if(2===a.length)t=r=a[0],i=n=a[1];else if(4===a.length){var s=o(a,4);t=s[0],n=s[1],r=s[2],i=s[3]}return e.x1-=i,e.x2+=n,e.y1-=t,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Ft=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},zt=function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2t.y2||t.y1>e.y2)},Gt=function(e,t,n){return e.x1<=t&&t<=e.x2&&e.y1<=n&&n<=e.y2},Yt=function(e,t){return Gt(e,t.x1,t.y1)&&Gt(e,t.x2,t.y2)},Xt=function(e,t,n,r,i,a,o){var s,l=sn(i,a),u=i/2,c=a/2,h=r-c-o;if((s=en(e,t,n,r,n-u+l-o,h,n+u-l+o,h,!1)).length>0)return s;var d=n+u+o;if((s=en(e,t,n,r,d,r-c+l-o,d,r+c-l+o,!1)).length>0)return s;var p=r+c+o;if((s=en(e,t,n,r,n-u+l-o,p,n+u-l+o,p,!1)).length>0)return s;var g,f=n-u-o;if((s=en(e,t,n,r,f,r-c+l-o,f,r+c-l+o,!1)).length>0)return s;var v=n-u+l,y=r-c+l;if((g=Qt(e,t,n,r,v,y,l+o)).length>0&&g[0]<=v&&g[1]<=y)return[g[0],g[1]];var m=n+u-l,b=r-c+l;if((g=Qt(e,t,n,r,m,b,l+o)).length>0&&g[0]>=m&&g[1]<=b)return[g[0],g[1]];var x=n+u-l,w=r+c-l;if((g=Qt(e,t,n,r,x,w,l+o)).length>0&&g[0]>=x&&g[1]>=w)return[g[0],g[1]];var E=n-u+l,_=r+c-l;return(g=Qt(e,t,n,r,E,_,l+o)).length>0&&g[0]<=E&&g[1]>=_?[g[0],g[1]]:[]},Vt=function(e,t,n,r,i,a,o){var s=o,l=Math.min(n,i),u=Math.max(n,i),c=Math.min(r,a),h=Math.max(r,a);return l-s<=e&&e<=u+s&&c-s<=t&&t<=h+s},Ut=function(e,t,n,r,i,a,o,s,l){var u=Math.min(n,o,i)-l,c=Math.max(n,o,i)+l,h=Math.min(r,s,a)-l,d=Math.max(r,s,a)+l;return!(ec||td)},jt=function(e,t,n,r,i,a,o,s){var l,u,c,h,d,p,g,f,v,y,m,b,x,w=[];u=9*n*i-3*n*n-3*n*o-6*i*i+3*i*o+9*r*a-3*r*r-3*r*s-6*a*a+3*a*s,c=3*n*n-6*n*i+n*o-n*e+2*i*i+2*i*e-o*e+3*r*r-6*r*a+r*s-r*t+2*a*a+2*a*t-s*t,h=1*n*i-n*n+n*e-i*e+r*a-r*r+r*t-a*t,0===(l=1*n*n-4*n*i+2*n*o+4*i*i-4*i*o+o*o+r*r-4*r*a+2*r*s+4*a*a-4*a*s+s*s)&&(l=1e-5),f=-27*(h/=l)+(u/=l)*(9*(c/=l)-u*u*2),p=(g=(3*c-u*u)/9)*g*g+(f/=54)*f,(d=w)[1]=0,b=u/3,p>0?(y=(y=f+Math.sqrt(p))<0?-Math.pow(-y,1/3):Math.pow(y,1/3),m=(m=f-Math.sqrt(p))<0?-Math.pow(-m,1/3):Math.pow(m,1/3),d[0]=-b+y+m,b+=(y+m)/2,d[4]=d[2]=-b,b=Math.sqrt(3)*(-m+y)/2,d[3]=b,d[5]=-b):(d[5]=d[3]=0,0===p?(x=f<0?-Math.pow(-f,1/3):Math.pow(f,1/3),d[0]=2*x-b,d[4]=d[2]=-(x+b)):(v=(g=-g)*g*g,v=Math.acos(f/Math.sqrt(v)),x=2*Math.sqrt(g),d[0]=-b+x*Math.cos(v/3),d[2]=-b+x*Math.cos((v+2*Math.PI)/3),d[4]=-b+x*Math.cos((v+4*Math.PI)/3)));for(var E=[],_=0;_<6;_+=2)Math.abs(w[_+1])<1e-7&&w[_]>=0&&w[_]<=1&&E.push(w[_]);E.push(1),E.push(0);for(var T,D,C,N=-1,A=0;A=0?Cl?(e-i)*(e-i)+(t-a)*(t-a):u-h},qt=function(e,t,n){for(var r,i,a,o,s=0,l=0;l=e&&e>=a||r<=e&&e<=a))continue;(e-r)/(a-r)*(o-i)+i>t&&s++}return s%2!=0},Wt=function(e,t,n,r,i,a,o,s,l){var u,c=new Array(n.length);null!=s[0]?(u=Math.atan(s[1]/s[0]),s[0]<0?u+=Math.PI/2:u=-u-Math.PI/2):u=s;for(var h,d=Math.cos(-u),p=Math.sin(-u),g=0;g0){var f=Kt(c,-l);h=$t(f)}else h=c;return qt(e,t,h)},$t=function(e){for(var t,n,r,i,a,o,s,l,u=new Array(e.length/2),c=0;c=0&&g<=1&&v.push(g),f>=0&&f<=1&&v.push(f),0===v.length)return[];var y=v[0]*s[0]+e,m=v[0]*s[1]+t;return v.length>1?v[0]==v[1]?[y,m]:[y,m,v[1]*s[0]+e,v[1]*s[1]+t]:[y,m]},Jt=function(e,t,n){return t<=e&&e<=n||n<=e&&e<=t?e:e<=t&&t<=n||n<=t&&t<=e?t:n},en=function(e,t,n,r,i,a,o,s,l){var u=e-i,c=n-e,h=o-i,d=t-a,p=r-t,g=s-a,f=h*d-g*u,v=c*d-p*u,y=g*c-h*p;if(0!==y){var m=f/y,b=v/y,x=-.001;return x<=m&&m<=1.001&&x<=b&&b<=1.001||l?[e+m*c,t+m*p]:[]}return 0===f||0===v?Jt(e,n,o)===o?[o,s]:Jt(e,n,i)===i?[i,a]:Jt(i,o,n)===n?[n,r]:[]:[]},tn=function(e,t,n,r,i,a,o,s){var l,u,c,h,d,p,g=[],f=new Array(n.length),v=!0;if(null==a&&(v=!1),v){for(var y=0;y0){var m=Kt(f,-s);u=$t(m)}else u=f}else u=n;for(var b=0;bu&&(u=t)},get:function(e){return l[e]}},h=0;h0?b.edgesTo(m)[0]:m.edgesTo(b)[0];var x=r(y);m=m.id(),h[m]>h[f]+x&&(h[m]=h[f]+x,d.nodes.indexOf(m)<0?d.push(m):d.updateItem(m),u[m]=0,l[m]=[]),h[m]==h[f]+x&&(u[m]=u[m]+u[f],l[m].push(f))}else for(var w=0;w0;){for(var D=n.pop(),C=0;C0&&o.push(n[s]);0!==o.length&&i.push(r.collection(o))}return i}(c,l,t,r);return function(e){for(var t=0;t5&&void 0!==arguments[5]?arguments[5]:An,o=r,s=0;s=2?On(e,t,n,0,Sn,In):On(e,t,n,0,kn)},squaredEuclidean:function(e,t,n){return On(e,t,n,0,Sn)},manhattan:function(e,t,n){return On(e,t,n,0,kn)},max:function(e,t,n){return On(e,t,n,-1/0,Mn)}};function Rn(e,t,n,r,i,a){var o;return o=v(e)?e:Pn[e]||Pn.euclidean,0===t&&v(e)?o(i,a):o(t,n,r,i,a)}Pn["squared-euclidean"]=Pn.squaredEuclidean,Pn.squaredeuclidean=Pn.squaredEuclidean;var Bn=Ke({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Fn=function(e){return Bn(e)},zn=function(e,t,n,r,i){var a="kMedoids"!==i?function(e){return n[e]}:function(e){return r[e](n)},o=n,s=t;return Rn(e,r.length,a,(function(e){return r[e](t)}),o,s)},Gn=function(e,t,n){for(var r=n.length,i=new Array(r),a=new Array(r),o=new Array(t),s=null,l=0;ln)return!1;return!0},Un=function(e,t,n){for(var r=0;ri&&(i=t[l][u],a=u);o[a].push(e[l])}for(var c=0;c=i.threshold||"dendrogram"===i.mode&&1===e.length)return!1;var p,g=t[o],f=t[r[o]];p="dendrogram"===i.mode?{left:g,right:f,key:g.key}:{value:g.value.concat(f.value),key:g.key},e[g.index]=p,e.splice(f.index,1),t[g.key]=p;for(var v=0;vn[f.key][y.key]&&(a=n[f.key][y.key])):"max"===i.linkage?(a=n[g.key][y.key],n[g.key][y.key]1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?(n0&&e.splice(0,t)):e=e.slice(t,n);for(var a=0,o=e.length-1;o>=0;o--){var s=e[o];i?isFinite(s)||(e[o]=-1/0,a++):e.splice(o,1)}r&&e.sort((function(e,t){return e-t}));var l=e.length,u=Math.floor(l/2);return l%2!=0?e[u+1+a]:(e[u-1+a]+e[u+a])/2}(e):"mean"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=0,i=0,a=t;a1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=1/0,i=t;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=-1/0,i=t;io&&(a=l,o=t[i*e+l])}a>0&&r.push(a)}for(var u=0;u=N?(A=N,N=k,L=S):k>A&&(A=k);for(var I=0;I0?1:0;T[_%u.minIterations*t+F]=z,B+=z}if(B>0&&(_>=u.minIterations-1||_==u.maxIterations-1)){for(var G=0,Y=0;Y0&&r.push(i);return r}(t,a,o),U=function(e,t,n){for(var r=ur(e,t,n),i=0;il&&(s=u,l=c)}n[i]=a[s]}return ur(e,t,n)}(t,r,V),j={},H=0;H1||o>1)&&(u=!0),c[t]=[],e.outgoers().forEach((function(e){e.isEdge()&&c[t].push(e.id())}))}else h[t]=[void 0,e.target().id()]})):l.forEach((function(e){var t=e.id();e.isNode()?(e.degree(!0)%2&&(n?r?u=!0:r=t:n=t),c[t]=[],e.connectedEdges().forEach((function(e){return c[t].push(e.id())}))):h[t]=[e.source().id(),e.target().id()]}));var d={found:!1,trail:void 0};if(u)return d;if(r&&n)if(s){if(i&&r!=i)return d;i=r}else{if(i&&r!=i&&n!=i)return d;i||(i=r)}else i||(i=l[0].id());var p=function(e){for(var t,n,r,i=e,a=[e];c[i].length;)t=c[i].shift(),n=h[t][0],i!=(r=h[t][1])?(c[r]=c[r].filter((function(e){return e!=t})),i=r):s||i==n||(c[n]=c[n].filter((function(e){return e!=t})),i=n),a.unshift(t),a.unshift(i);return a},g=[],v=[];for(v=p(i);1!=v.length;)0==c[v[0]].length?(g.unshift(l.getElementById(v.shift())),g.unshift(l.getElementById(v.shift()))):v=p(v.shift()).concat(v);for(var y in g.unshift(l.getElementById(v.shift())),c)if(c[y].length)return d;return d.found=!0,d.trail=this.spawn(g,!0),d}},gr=function(){var e=this,t={},n=0,r=0,i=[],a=[],o={},s=function s(l,u,c){l===c&&(r+=1),t[u]={id:n,low:n++,cutVertex:!1};var h,d,p,g,f=e.getElementById(u).connectedEdges().intersection(e);0===f.size()?i.push(e.spawn(e.getElementById(u))):f.forEach((function(n){h=n.source().id(),d=n.target().id(),(p=h===u?d:h)!==c&&(g=n.id(),o[g]||(o[g]=!0,a.push({x:u,y:p,edge:n})),p in t?t[u].low=Math.min(t[u].low,t[p].id):(s(l,p,u),t[u].low=Math.min(t[u].low,t[p].low),t[u].id<=t[p].low&&(t[u].cutVertex=!0,function(n,r){for(var o=a.length-1,s=[],l=e.spawn();a[o].x!=n||a[o].y!=r;)s.push(a.pop().edge),o--;s.push(a.pop().edge),s.forEach((function(n){var r=n.connectedNodes().intersection(e);l.merge(n),r.forEach((function(n){var r=n.id(),i=n.connectedEdges().intersection(e);l.merge(n),t[r].cutVertex?l.merge(i.filter((function(e){return e.isLoop()}))):l.merge(i)}))})),i.push(l)}(u,p))))}))};e.forEach((function(e){if(e.isNode()){var n=e.id();n in t||(r=0,s(n,n),t[n].cutVertex=r>1)}}));var l=Object.keys(t).filter((function(e){return t[e].cutVertex})).map((function(t){return e.getElementById(t)}));return{cut:e.spawn(l),components:i}},fr=function(){var e=this,t={},n=0,r=[],i=[],a=e.spawn(e),o=function o(s){if(i.push(s),t[s]={index:n,low:n++,explored:!1},e.getElementById(s).connectedEdges().intersection(e).forEach((function(e){var n=e.target().id();n!==s&&(n in t||o(n),t[n].explored||(t[s].low=Math.min(t[s].low,t[n].low)))})),t[s].index===t[s].low){for(var l=e.spawn();;){var u=i.pop();if(l.merge(e.getElementById(u)),t[u].low=t[s].index,t[u].explored=!0,u===s)break}var c=l.edgesWith(l),h=l.merge(c);r.push(h),a=a.difference(h)}};return e.forEach((function(e){if(e.isNode()){var n=e.id();n in t||o(n)}})),{cut:a,components:r}},vr={};[ot,ct,ht,pt,ft,yt,wt,hn,pn,fn,yn,Nn,Zn,ar,hr,pr,{hopcroftTarjanBiconnected:gr,htbc:gr,htb:gr,hopcroftTarjanBiconnectedComponents:gr},{tarjanStronglyConnected:fr,tsc:fr,tscc:fr,tarjanStronglyConnectedComponents:fr}].forEach((function(e){z(vr,e)}));var yr=function e(t){if(!(this instanceof e))return new e(t);this.id="Thenable/1.0.7",this.state=0,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},"function"==typeof t&&t.call(this,this.fulfill.bind(this),this.reject.bind(this))};yr.prototype={fulfill:function(e){return mr(this,1,"fulfillValue",e)},reject:function(e){return mr(this,2,"rejectReason",e)},then:function(e,t){var n=this,r=new yr;return n.onFulfilled.push(wr(e,r,"fulfill")),n.onRejected.push(wr(t,r,"reject")),br(n),r.proxy}};var mr=function(e,t,n,r){return 0===e.state&&(e.state=t,e[n]=r,br(e)),e},br=function(e){1===e.state?xr(e,"onFulfilled",e.fulfillValue):2===e.state&&xr(e,"onRejected",e.rejectReason)},xr=function(e,t,n){if(0!==e[t].length){var r=e[t];e[t]=[];var i=function(){for(var e=0;e0:void 0}},clearQueue:function(){return function(){var e=this,t=void 0!==e.length?e:[e];if(!(this._private.cy||this).styleEnabled())return this;for(var n=0;n-1};var ci=function(e,t){var n=this.__data__,r=ai(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function hi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e0&&this.spawn(r).updateStyle().emit("class"),t},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var t=this[0];return null!=t&&t._private.classes.has(e)},toggleClass:function(e,t){y(e)||(e=e.match(/\S+/g)||[]);for(var n=this,r=void 0===t,i=[],a=0,o=n.length;a0&&this.spawn(i).updateStyle().emit("class"),n},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,t){var n=this;if(null==t)t=250;else if(0===t)return n;return n.addClass(e),setTimeout((function(){n.removeClass(e)}),t),n}};Ki.className=Ki.classNames=Ki.classes;var Zi={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:"\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'",number:M,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};Zi.variable="(?:[\\w-.]|(?:\\\\"+Zi.metaChar+"))+",Zi.className="(?:[\\w-]|(?:\\\\"+Zi.metaChar+"))+",Zi.value=Zi.string+"|"+Zi.number,Zi.id=Zi.variable,function(){var e,t,n;for(e=Zi.comparatorOp.split("|"),n=0;n=0||"="!==t&&(Zi.comparatorOp+="|\\!"+t)}();var Qi=0,Ji=1,ea=2,ta=3,na=4,ra=5,ia=6,aa=7,oa=8,sa=9,la=10,ua=11,ca=12,ha=13,da=14,pa=15,ga=16,fa=17,va=18,ya=19,ma=20,ba=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort((function(e,t){return function(e,t){return-1*F(e,t)}(e.selector,t.selector)})),xa=function(){for(var e,t={},n=0;n0&&u.edgeCount>0)return je("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(u.edgeCount>1)return je("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;1===u.edgeCount&&je("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},toString:function(){if(null!=this.toStringCache)return this.toStringCache;for(var e=function(e){return null==e?"":e},t=function(t){return f(t)?'"'+t+'"':e(t)},n=function(e){return" "+e+" "},r=function(i,a){return i.checks.reduce((function(o,s,l){return o+(a===i&&0===l?"$":"")+function(i,a){var o=i.type,s=i.value;switch(o){case Qi:var l=e(s);return l.substring(0,l.length-1);case ta:var u=i.field,c=i.operator;return"["+u+n(e(c))+t(s)+"]";case ra:var h=i.operator,d=i.field;return"["+e(h)+d+"]";case na:return"["+i.field+"]";case ia:var p=i.operator;return"[["+i.field+n(e(p))+t(s)+"]]";case aa:return s;case oa:return"#"+s;case sa:return"."+s;case fa:case pa:return r(i.parent,a)+n(">")+r(i.child,a);case va:case ga:return r(i.ancestor,a)+" "+r(i.descendant,a);case ya:var g=r(i.left,a),f=r(i.subject,a),v=r(i.right,a);return g+(g.length>0?" ":"")+f+v;case ma:return""}}(s,a)}),"")},i="",a=0;a1&&a=0&&(t=t.replace("!",""),c=!0),t.indexOf("@")>=0&&(t=t.replace("@",""),u=!0),(o||l||u)&&(i=o||s?""+e:"",a=""+n),u&&(e=i=i.toLowerCase(),n=a=a.toLowerCase()),t){case"*=":r=i.indexOf(a)>=0;break;case"$=":r=i.indexOf(a,i.length-a.length)>=0;break;case"^=":r=0===i.indexOf(a);break;case"=":r=e===n;break;case">":h=!0,r=e>n;break;case">=":h=!0,r=e>=n;break;case"<":h=!0,r=e0;){var u=i.shift();t(u),a.add(u.id()),o&&r(i,a,u)}return e}function Ga(e,t,n){if(n.isParent())for(var r=n._private.children,i=0;i1&&void 0!==arguments[1])||arguments[1],Ga)},Fa.forEachUp=function(e){return za(this,e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Ya)},Fa.forEachUpAndDown=function(e){return za(this,e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Xa)},Fa.ancestors=Fa.parents,(Pa=Ra={data:Wi.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:Wi.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Wi.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Wi.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Wi.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Wi.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}}).attr=Pa.data,Pa.removeAttr=Pa.removeData;var Va,Ua,ja=Ra,Ha={};function qa(e){return function(t){var n=this;if(void 0===t&&(t=!0),0!==n.length&&n.isNode()&&!n.removed()){for(var r=0,i=n[0],a=i._private.edges,o=0;ot})),minIndegree:Wa("indegree",(function(e,t){return et})),minOutdegree:Wa("outdegree",(function(e,t){return et}))}),z(Ha,{totalDegree:function(e){for(var t=0,n=this.nodes(),r=0;r0,c=u;u&&(l=l[0]);var h=c?l.position():{x:0,y:0};return i={x:s.x-h.x,y:s.y-h.y},void 0===e?i:i[e]}for(var d=0;d0,y=v;v&&(g=g[0]);var b=y?g.position():{x:0,y:0};void 0!==t?p.position(e,t+b[e]):void 0!==i&&p.position({x:i.x+b.x,y:i.y+b.y})}}else if(!a)return;return this}}).modelPosition=Va.point=Va.position,Va.modelPositions=Va.points=Va.positions,Va.renderedPoint=Va.renderedPosition,Va.relativePoint=Va.relativePosition;var Za,Qa,Ja=Ua;Za=Qa={},Qa.renderedBoundingBox=function(e){var t=this.boundingBox(e),n=this.cy(),r=n.zoom(),i=n.pan(),a=t.x1*r+i.x,o=t.x2*r+i.x,s=t.y1*r+i.y,l=t.y2*r+i.y;return{x1:a,x2:o,y1:s,y2:l,w:o-a,h:l-s}},Qa.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.cy();return t.styleEnabled()&&t.hasCompoundNodes()?(this.forEachUp((function(t){if(t.isParent()){var n=t._private;n.compoundBoundsClean=!1,n.bbCache=null,e||t.emitAndNotify("bounds")}})),this):this},Qa.updateCompoundBounds=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes())return this;if(!e&&t.batching())return this;function n(e){if(e.isParent()){var t=e._private,n=e.children(),r="include"===e.pstyle("compound-sizing-wrt-labels").value,i={width:{val:e.pstyle("min-width").pfValue,left:e.pstyle("min-width-bias-left"),right:e.pstyle("min-width-bias-right")},height:{val:e.pstyle("min-height").pfValue,top:e.pstyle("min-height-bias-top"),bottom:e.pstyle("min-height-bias-bottom")}},a=n.boundingBox({includeLabels:r,includeOverlays:!1,useCache:!1}),o=t.position;0!==a.w&&0!==a.h||((a={w:e.pstyle("width").pfValue,h:e.pstyle("height").pfValue}).x1=o.x-a.w/2,a.x2=o.x+a.w/2,a.y1=o.y-a.h/2,a.y2=o.y+a.h/2);var s=i.width.left.value;"px"===i.width.left.units&&i.width.val>0&&(s=100*s/i.width.val);var l=i.width.right.value;"px"===i.width.right.units&&i.width.val>0&&(l=100*l/i.width.val);var u=i.height.top.value;"px"===i.height.top.units&&i.height.val>0&&(u=100*u/i.height.val);var c=i.height.bottom.value;"px"===i.height.bottom.units&&i.height.val>0&&(c=100*c/i.height.val);var h=y(i.width.val-a.w,s,l),d=h.biasDiff,p=h.biasComplementDiff,g=y(i.height.val-a.h,u,c),f=g.biasDiff,v=g.biasComplementDiff;t.autoPadding=function(e,t,n,r){if("%"!==n.units)return"px"===n.units?n.pfValue:0;switch(r){case"width":return e>0?n.pfValue*e:0;case"height":return t>0?n.pfValue*t:0;case"average":return e>0&&t>0?n.pfValue*(e+t)/2:0;case"min":return e>0&&t>0?e>t?n.pfValue*t:n.pfValue*e:0;case"max":return e>0&&t>0?e>t?n.pfValue*e:n.pfValue*t:0;default:return 0}}(a.w,a.h,e.pstyle("padding"),e.pstyle("padding-relative-to").value),t.autoWidth=Math.max(a.w,i.width.val),o.x=(-d+a.x1+a.x2+p)/2,t.autoHeight=Math.max(a.h,i.height.val),o.y=(-f+a.y1+a.y2+v)/2}function y(e,t,n){var r=0,i=0,a=t+n;return e>0&&a>0&&(r=t/a*e,i=n/a*e),{biasDiff:r,biasComplementDiff:i}}}for(var r=0;re.x2?r:e.x2,e.y1=ne.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},no=function(e,t){return null==t?e:to(e,t.x1,t.y1,t.x2,t.y2)},ro=function(e,t,n){return Je(e,t,n)},io=function(e,t,n){if(!t.cy().headless()){var r,i,a=t._private,o=a.rstyle,s=o.arrowWidth/2;if("none"!==t.pstyle(n+"-arrow-shape").value){"source"===n?(r=o.srcX,i=o.srcY):"target"===n?(r=o.tgtX,i=o.tgtY):(r=o.midX,i=o.midY);var l=a.arrowBounds=a.arrowBounds||{},u=l[n]=l[n]||{};u.x1=r-s,u.y1=i-s,u.x2=r+s,u.y2=i+s,u.w=u.x2-u.x1,u.h=u.y2-u.y1,Rt(u,1),to(e,u.x1,u.y1,u.x2,u.y2)}}},ao=function(e,t,n){if(!t.cy().headless()){var r;r=n?n+"-":"";var i=t._private,a=i.rstyle;if(t.pstyle(r+"label").strValue){var o,s,l,u,c=t.pstyle("text-halign"),h=t.pstyle("text-valign"),d=ro(a,"labelWidth",n),p=ro(a,"labelHeight",n),g=ro(a,"labelX",n),f=ro(a,"labelY",n),v=t.pstyle(r+"text-margin-x").pfValue,y=t.pstyle(r+"text-margin-y").pfValue,m=t.isEdge(),b=t.pstyle(r+"text-rotation"),x=t.pstyle("text-outline-width").pfValue,w=t.pstyle("text-border-width").pfValue/2,E=t.pstyle("text-background-padding").pfValue,_=p,T=d,D=T/2,C=_/2;if(m)o=g-D,s=g+D,l=f-C,u=f+C;else{switch(c.value){case"left":o=g-T,s=g;break;case"center":o=g-D,s=g+D;break;case"right":o=g,s=g+T}switch(h.value){case"top":l=f-_,u=f;break;case"center":l=f-C,u=f+C;break;case"bottom":l=f,u=f+_}}o+=v-Math.max(x,w)-E-2,s+=v+Math.max(x,w)+E+2,l+=y-Math.max(x,w)-E-2,u+=y+Math.max(x,w)+E+2;var N=n||"main",A=i.labelBounds,L=A[N]=A[N]||{};L.x1=o,L.y1=l,L.x2=s,L.y2=u,L.w=s-o,L.h=u-l;var k=m&&"autorotate"===b.strValue,S=null!=b.pfValue&&0!==b.pfValue;if(k||S){var I=k?ro(i.rstyle,"labelAngle",n):b.pfValue,M=Math.cos(I),O=Math.sin(I),P=(o+s)/2,R=(l+u)/2;if(!m){switch(c.value){case"left":P=s;break;case"right":P=o}switch(h.value){case"top":R=u;break;case"bottom":R=l}}var B=function(e,t){return{x:(e-=P)*M-(t-=R)*O+P,y:e*O+t*M+R}},F=B(o,l),z=B(o,u),G=B(s,l),Y=B(s,u);o=Math.min(F.x,z.x,G.x,Y.x),s=Math.max(F.x,z.x,G.x,Y.x),l=Math.min(F.y,z.y,G.y,Y.y),u=Math.max(F.y,z.y,G.y,Y.y)}var X=N+"Rot",V=A[X]=A[X]||{};V.x1=o,V.y1=l,V.x2=s,V.y2=u,V.w=s-o,V.h=u-l,to(e,o,l,s,u),to(i.labelBounds.all,o,l,s,u)}return e}},oo=function(e){var t=0,n=function(e){return(e?1:0)<(r=A[1].x)){var L=n;n=r,r=L}if(i>(a=A[1].y)){var k=i;i=a,a=k}to(d,n-_,i-_,r+_,a+_)}}else if("bezier"===N||"unbundled-bezier"===N||"segments"===N||"taxi"===N){var S;switch(N){case"bezier":case"unbundled-bezier":S=v.bezierPts;break;case"segments":case"taxi":S=v.linePts}if(null!=S)for(var I=0;I(r=P.x)){var R=n;n=r,r=R}if((i=O.y)>(a=P.y)){var B=i;i=a,a=B}to(d,n-=_,i-=_,r+=_,a+=_)}if(c&&t.includeEdges&&f&&(io(d,e,"mid-source"),io(d,e,"mid-target"),io(d,e,"source"),io(d,e,"target")),c&&"yes"===e.pstyle("ghost").value){var F=e.pstyle("ghost-offset-x").pfValue,z=e.pstyle("ghost-offset-y").pfValue;to(d,d.x1+F,d.y1+z,d.x2+F,d.y2+z)}var G=p.bodyBounds=p.bodyBounds||{};Ft(G,d),Bt(G,y),Rt(G,1),c&&(n=d.x1,r=d.x2,i=d.y1,a=d.y2,to(d,n-E,i-E,r+E,a+E));var Y=p.overlayBounds=p.overlayBounds||{};Ft(Y,d),Bt(Y,y),Rt(Y,1);var X=p.labelBounds=p.labelBounds||{};null!=X.all?((l=X.all).x1=1/0,l.y1=1/0,l.x2=-1/0,l.y2=-1/0,l.w=0,l.h=0):X.all=Ot(),c&&t.includeLabels&&(t.includeMainLabels&&ao(d,e,null),f&&(t.includeSourceLabels&&ao(d,e,"source"),t.includeTargetLabels&&ao(d,e,"target")))}return d.x1=eo(d.x1),d.y1=eo(d.y1),d.x2=eo(d.x2),d.y2=eo(d.y2),d.w=eo(d.x2-d.x1),d.h=eo(d.y2-d.y1),d.w>0&&d.h>0&&b&&(Bt(d,y),Rt(d,1)),d}(e,uo),r.bbCache=n,r.bbCachePosKey=o):n=r.bbCache,!a){var c=e.isNode();n=Ot(),(t.includeNodes&&c||t.includeEdges&&!c)&&(t.includeOverlays?no(n,r.overlayBounds):no(n,r.bodyBounds)),t.includeLabels&&(t.includeMainLabels&&(!i||t.includeSourceLabels&&t.includeTargetLabels)?no(n,r.labelBounds.all):(t.includeMainLabels&&no(n,r.labelBounds.mainRot),t.includeSourceLabels&&no(n,r.labelBounds.sourceRot),t.includeTargetLabels&&no(n,r.labelBounds.targetRot))),n.w=n.x2-n.x1,n.h=n.y2-n.y1}return n},uo={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,useCache:!0},co=oo(uo),ho=Ke(uo);Qa.boundingBox=function(e){var t;if(1!==this.length||null==this[0]._private.bbCache||this[0]._private.styleDirty||void 0!==e&&void 0!==e.useCache&&!0!==e.useCache){t=Ot();var n=ho(e=e||uo),r=this;if(r.cy().styleEnabled())for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:No,t=arguments.length>1?arguments[1]:void 0,n=0;n=0;s--)o(s);return this},Lo.removeAllListeners=function(){return this.removeListener("*")},Lo.emit=Lo.trigger=function(e,t,n){var r=this.listeners,i=r.length;return this.emitting++,y(t)||(t=[t]),Io(this,(function(e,a){null!=n&&(r=[{event:a.event,type:a.type,namespace:a.namespace,callback:n}],i=r.length);for(var o=function(n){var i=r[n];if(i.type===a.type&&(!i.namespace||i.namespace===a.namespace||".*"===i.namespace)&&e.eventMatches(e.context,i,a)){var o=[a];null!=t&&function(e,t){for(var n=0;n1&&!r){var i=this.length-1,a=this[i],o=a._private.data.id;this[i]=void 0,this[e]=a,n.set(o,{ele:a,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var t=this._private,n=e._private.data.id,r=t.map.get(n);if(!r)return this;var i=r.index;return this.unmergeAt(i),this},unmerge:function(e){var t=this._private.cy;if(!e)return this;if(e&&f(e)){var n=e;e=t.mutableElements().filter(n)}for(var r=0;r=0;t--)e(this[t])&&this.unmergeAt(t);return this},map:function(e,t){for(var n=[],r=this,i=0;ir&&(r=s,n=o)}return{value:r,ele:n}},min:function(e,t){for(var n,r=1/0,i=this,a=0;a=0&&i1&&void 0!==arguments[1])||arguments[1],n=this[0],r=n.cy();if(r.styleEnabled()&&n){this.cleanStyle();var i=n._private.style[e];return null!=i?i:t?r.style().getDefaultProperty(e):null}},numericStyle:function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var n=t.pstyle(e);return void 0!==n.pfValue?n.pfValue:n.value}},numericStyleUnits:function(e){var t=this[0];if(t.cy().styleEnabled())return t?t.pstyle(e).units:void 0},renderedStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=this[0];return n?t.style().getRenderedStyle(n,e):void 0},style:function(e,t){var n=this.cy();if(!n.styleEnabled())return this;var r=n.style();if(m(e)){var i=e;r.applyBypass(this,i,false),this.emitAndNotify("style")}else if(f(e)){if(void 0===t){var a=this[0];return a?r.getStylePropertyValue(a,e):void 0}r.applyBypass(this,e,t,false),this.emitAndNotify("style")}else if(void 0===e){var o=this[0];return o?r.getRawStyle(o):void 0}return this},removeStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=t.style(),r=this;if(void 0===e)for(var i=0;i0&&t.push(c[0]),t.push(s[0])}return this.spawn(t,!0).filter(e)}),"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}}),rs.neighbourhood=rs.neighborhood,rs.closedNeighbourhood=rs.closedNeighborhood,rs.openNeighbourhood=rs.openNeighborhood,z(rs,{source:Ba((function(e){var t,n=this[0];return n&&(t=n._private.source||n.cy().collection()),t&&e?t.filter(e):t}),"source"),target:Ba((function(e){var t,n=this[0];return n&&(t=n._private.target||n.cy().collection()),t&&e?t.filter(e):t}),"target"),sources:ss({attr:"source"}),targets:ss({attr:"target"})}),z(rs,{edgesWith:Ba(ls(),"edgesWith"),edgesTo:Ba(ls({thisIsSrc:!0}),"edgesTo")}),z(rs,{connectedEdges:Ba((function(e){for(var t=[],n=0;n0);return a},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}}),rs.componentsOf=rs.components;var cs=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e){var i=new tt,a=!1;if(t){if(t.length>0&&m(t[0])&&!E(t[0])){a=!0;for(var o=[],s=new rt,l=0,u=t.length;l0&&void 0!==arguments[0])||arguments[0],r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this,a=i.cy(),o=a._private,s=[],l=[],u=0,c=i.length;u0){for(var B=e.length===i.length?i:new cs(a,e),F=0;F0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=[],i={},a=n._private.cy;function o(e){var n=i[e.id()];t&&e.removed()||n||(i[e.id()]=!0,e.isNode()?(r.push(e),function(e){for(var t=e._private.edges,n=0;n0&&(e?_.emitAndNotify("remove"):t&&_.emit("remove"));for(var T=0;T=.001?function(t,r){for(var a=0;a0?i=l:r=l}while(Math.abs(s)>a&&++uh&&Math.abs(s.v)>h;);return a?function(e){return u[e*(u.length-1)|0]}:c}}(),fs=function(e,t,n,r){var i=ps(e,t,n,r);return function(e,t,n){return e+(t-e)*i(n)}},vs={linear:function(e,t,n){return e+(t-e)*n},ease:fs(.25,.1,.25,1),"ease-in":fs(.42,0,1,1),"ease-out":fs(0,0,.58,1),"ease-in-out":fs(.42,0,.58,1),"ease-in-sine":fs(.47,0,.745,.715),"ease-out-sine":fs(.39,.575,.565,1),"ease-in-out-sine":fs(.445,.05,.55,.95),"ease-in-quad":fs(.55,.085,.68,.53),"ease-out-quad":fs(.25,.46,.45,.94),"ease-in-out-quad":fs(.455,.03,.515,.955),"ease-in-cubic":fs(.55,.055,.675,.19),"ease-out-cubic":fs(.215,.61,.355,1),"ease-in-out-cubic":fs(.645,.045,.355,1),"ease-in-quart":fs(.895,.03,.685,.22),"ease-out-quart":fs(.165,.84,.44,1),"ease-in-out-quart":fs(.77,0,.175,1),"ease-in-quint":fs(.755,.05,.855,.06),"ease-out-quint":fs(.23,1,.32,1),"ease-in-out-quint":fs(.86,0,.07,1),"ease-in-expo":fs(.95,.05,.795,.035),"ease-out-expo":fs(.19,1,.22,1),"ease-in-out-expo":fs(1,0,0,1),"ease-in-circ":fs(.6,.04,.98,.335),"ease-out-circ":fs(.075,.82,.165,1),"ease-in-out-circ":fs(.785,.135,.15,.86),spring:function(e,t,n){if(0===n)return vs.linear;var r=gs(e,t,n);return function(e,t,n){return e+(t-e)*r(n)}},"cubic-bezier":fs};function ys(e,t,n,r,i){if(1===r)return n;if(t===n)return n;var a=i(t,n,r);return null==e||((e.roundValue||e.color)&&(a=Math.round(a)),void 0!==e.min&&(a=Math.max(a,e.min)),void 0!==e.max&&(a=Math.min(a,e.max))),a}function ms(e,t){return null!=e.pfValue||null!=e.value?null==e.pfValue||null!=t&&"%"===t.type.units?e.value:e.pfValue:e}function bs(e,t,n,r,i){var a=null!=i?i.type:null;n<0?n=0:n>1&&(n=1);var o=ms(e,i),s=ms(t,i);if(b(o)&&b(s))return ys(a,o,s,n,r);if(y(o)&&y(s)){for(var l=[],u=0;u0?("spring"===h&&d.push(o.duration),o.easingImpl=vs[h].apply(null,d)):o.easingImpl=vs[h]}var p,g=o.easingImpl;if(p=0===o.duration?1:(n-l)/o.duration,o.applying&&(p=o.progress),p<0?p=0:p>1&&(p=1),null==o.delay){var v=o.startPosition,y=o.position;if(y&&i&&!e.locked()){var m={};ws(v.x,y.x)&&(m.x=bs(v.x,y.x,p,g)),ws(v.y,y.y)&&(m.y=bs(v.y,y.y,p,g)),e.position(m)}var b=o.startPan,x=o.pan,w=a.pan,E=null!=x&&r;E&&(ws(b.x,x.x)&&(w.x=bs(b.x,x.x,p,g)),ws(b.y,x.y)&&(w.y=bs(b.y,x.y,p,g)),e.emit("pan"));var _=o.startZoom,T=o.zoom,D=null!=T&&r;D&&(ws(_,T)&&(a.zoom=Mt(a.minZoom,bs(_,T,p,g),a.maxZoom)),e.emit("zoom")),(E||D)&&e.emit("viewport");var C=o.style;if(C&&C.length>0&&i){for(var N=0;N=0;t--)(0,e[t])();e.splice(0,e.length)},c=a.length-1;c>=0;c--){var h=a[c],d=h._private;d.stopped?(a.splice(c,1),d.hooked=!1,d.playing=!1,d.started=!1,u(d.frames)):(d.playing||d.applying)&&(d.playing&&d.applying&&(d.applying=!1),d.started||Es(0,h,e),xs(t,h,e,n),d.applying&&(d.applying=!1),u(d.frames),null!=d.step&&d.step(e),h.completed()&&(a.splice(c,1),d.hooked=!1,d.playing=!1,d.started=!1,u(d.completes)),s=!0)}return n||0!==a.length||0!==o.length||r.push(t),s}for(var a=!1,o=0;o0?t.notify("draw",n):t.notify("draw")),n.unmerge(r),t.emit("step")}var Ts={animate:Wi.animate(),animation:Wi.animation(),animated:Wi.animated(),clearQueue:Wi.clearQueue(),delay:Wi.delay(),delayAnimation:Wi.delayAnimation(),stop:Wi.stop(),addToAnimationPool:function(e){this.styleEnabled()&&this._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,e.styleEnabled()){var t=e.renderer();t&&t.beforeRender?t.beforeRender((function(t,n){_s(n,e)}),t.beforeRenderPriorities.animations):function t(){e._private.animationsRunning&&_e((function(n){_s(n,e),t()}))}()}}},Ds={qualifierCompare:function(e,t){return null==e||null==t?null==e&&null==t:e.sameText(t)},eventMatches:function(e,t,n){var r=t.qualifier;return null==r||e!==n.target&&E(n.target)&&r.matches(n.target)},addEventFields:function(e,t){t.cy=e,t.target=e},callbackContext:function(e,t,n){return null!=t.qualifier?n.target:e}},Cs=function(e){return f(e)?new Ia(e):e},Ns={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new Ao(Ds,this)),this},emitter:function(){return this._private.emitter},on:function(e,t,n){return this.emitter().on(e,Cs(t),n),this},removeListener:function(e,t,n){return this.emitter().removeListener(e,Cs(t),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,t,n){return this.emitter().one(e,Cs(t),n),this},once:function(e,t,n){return this.emitter().one(e,Cs(t),n),this},emit:function(e,t){return this.emitter().emit(e,t),this},emitAndNotify:function(e,t){return this.emit(e),this.notify(e,t),this}};Wi.eventAliasesOn(Ns);var As={png:function(e){return e=e||{},this._private.renderer.png(e)},jpg:function(e){var t=this._private.renderer;return(e=e||{}).bg=e.bg||"#fff",t.jpg(e)}};As.jpeg=As.jpg;var Ls={layout:function(e){var t=this;if(null!=e)if(null!=e.name){var n,r=e.name,i=t.extension("layout",r);if(null!=i)return n=f(e.eles)?t.$(e.eles):null!=e.eles?e.eles:t.$(),new i(z({},e,{cy:t,eles:n}));Ve("No such layout `"+r+"` found. Did you forget to import it and `cytoscape.use()` it?")}else Ve("A `name` must be specified to make a layout");else Ve("Layout options must be specified to make a layout")}};Ls.createLayout=Ls.makeLayout=Ls.layout;var ks={notify:function(e,t){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var r=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();null!=t&&r.merge(t)}else if(n.notificationsEnabled){var i=this.renderer();!this.destroyed()&&i&&i.notify(e,t)}},notifications:function(e){var t=this._private;return void 0===e?t.notificationsEnabled:(t.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return null==e.batchCount&&(e.batchCount=0),0===e.batchCount&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(0===e.batchCount)return this;if(e.batchCount--,0===e.batchCount){e.batchStyleEles.updateStyle();var t=this.renderer();Object.keys(e.batchNotifications).forEach((function(n){var r=e.batchNotifications[n];r.empty()?t.notify(n):t.notify(n,r)}))}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var t=this;return this.batch((function(){for(var n=Object.keys(e),r=0;r0;)t.removeChild(t.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach((function(e){var t=e._private;t.rscratch={},t.rstyle={},t.animation.current=[],t.animation.queue=[]}))},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};Is.invalidateDimensions=Is.resize;var Ms={collection:function(e,t){return f(e)?this.$(e):w(e)?e.collection():y(e)?(t||(t={}),new cs(this,e,t.unique,t.removed)):new cs(this)},nodes:function(e){var t=this.$((function(e){return e.isNode()}));return e?t.filter(e):t},edges:function(e){var t=this.$((function(e){return e.isEdge()}));return e?t.filter(e):t},$:function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},mutableElements:function(){return this._private.elements}};Ms.elements=Ms.filter=Ms.$;var Os={},Ps="t";Os.apply=function(e){for(var t=this,n=t._private.cy.collection(),r=0;r0;if(d||h&&p){var g=void 0;d&&p||d?g=u.properties:p&&(g=u.mappedProperties);for(var f=0;f1&&(v=1),s.color){var E=i.valueMin[0],_=i.valueMax[0],T=i.valueMin[1],D=i.valueMax[1],C=i.valueMin[2],N=i.valueMax[2],A=null==i.valueMin[3]?1:i.valueMin[3],L=null==i.valueMax[3]?1:i.valueMax[3],k=[Math.round(E+(_-E)*v),Math.round(T+(D-T)*v),Math.round(C+(N-C)*v),Math.round(A+(L-A)*v)];n={bypass:i.bypass,name:i.name,value:k,strValue:"rgb("+k[0]+", "+k[1]+", "+k[2]+")"}}else{if(!s.number)return!1;var S=i.valueMin+(i.valueMax-i.valueMin)*v;n=this.parse(i.name,S,i.bypass,d)}if(!n)return f(),!1;n.mapping=i,i=n;break;case o.data:for(var I=i.field.split("."),M=h.data,O=0;O0&&a>0){for(var s={},l=!1,u=0;u0?e.delayAnimation(o).play().promise().then(t):t()})).then((function(){return e.animation({style:s,duration:a,easing:e.pstyle("transition-timing-function").value,queue:!1}).play().promise()})).then((function(){n.removeBypasses(e,i),e.emitAndNotify("style"),r.transitioning=!1}))}else r.transitioning&&(this.removeBypasses(e,i),e.emitAndNotify("style"),r.transitioning=!1)},Os.checkTrigger=function(e,t,n,r,i,a){var o=this.properties[t],s=i(o);null!=s&&s(n,r)&&a(o)},Os.checkZOrderTrigger=function(e,t,n,r){var i=this;this.checkTrigger(e,t,n,r,(function(e){return e.triggersZOrder}),(function(){i._private.cy.notify("zorder",e)}))},Os.checkBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,(function(e){return e.triggersBounds}),(function(i){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache(),!i.triggersBoundsOfParallelBeziers||("curve-style"!==t||"bezier"!==n&&"bezier"!==r)&&("display"!==t||"none"!==n&&"none"!==r)||e.parallelEdges().forEach((function(e){e.isBundledBezier()&&e.dirtyBoundingBoxCache()}))}))},Os.checkTriggers=function(e,t,n,r){e.dirtyStyleCache(),this.checkZOrderTrigger(e,t,n,r),this.checkBoundsTrigger(e,t,n,r)};var Rs={applyBypass:function(e,t,n,r){var i=[];if("*"===t||"**"===t){if(void 0!==n)for(var a=0;at.length?a.substr(t.length):""}function s(){n=n.length>r.length?n.substr(r.length):""}for(a=a.replace(/[/][*](\s|.)+?[*][/]/g,"");!a.match(/^\s*$/);){var l=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!l){je("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}t=l[0];var u=l[1];if("core"!==u&&new Ia(u).invalid)je("Skipping parsing of block: Invalid selector found in string stylesheet: "+u),o();else{var c=l[2],h=!1;n=c;for(var d=[];!n.match(/^\s*$/);){var p=n.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!p){je("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+c),h=!0;break}r=p[0];var g=p[1],f=p[2];this.properties[g]?i.parse(g,f)?(d.push({name:g,val:f}),s()):(je("Skipping property: Invalid property definition in: "+r),s()):(je("Skipping property: Invalid property name in: "+r),s())}if(h){o();break}i.selector(u);for(var v=0;v=7&&"d"===t[0]&&(u=new RegExp(s.data.regex).exec(t))){if(n)return!1;var d=s.data;return{name:e,value:u,strValue:""+t,mapped:d,field:u[1],bypass:n}}if(t.length>=10&&"m"===t[0]&&(c=new RegExp(s.mapData.regex).exec(t))){if(n)return!1;if(h.multiple)return!1;var p=s.mapData;if(!h.color&&!h.number)return!1;var g=this.parse(e,c[4]);if(!g||g.mapped)return!1;var m=this.parse(e,c[5]);if(!m||m.mapped)return!1;if(g.pfValue===m.pfValue||g.strValue===m.strValue)return je("`"+e+": "+t+"` is not a valid mapper because the output range is zero; converting to `"+e+": "+g.strValue+"`"),this.parse(e,g.strValue);if(h.color){var x=g.value,w=m.value;if(!(x[0]!==w[0]||x[1]!==w[1]||x[2]!==w[2]||x[3]!==w[3]&&(null!=x[3]&&1!==x[3]||null!=w[3]&&1!==w[3])))return!1}return{name:e,value:c,strValue:""+t,mapped:p,field:c[1],fieldMin:parseFloat(c[2]),fieldMax:parseFloat(c[3]),valueMin:g.value,valueMax:m.value,bypass:n}}}if(h.multiple&&"multiple"!==r){var E;if(E=l?t.split(/\s+/):y(t)?t:[t],h.evenMultiple&&E.length%2!=0)return null;for(var _=[],T=[],D=[],C="",N=!1,A=0;A0?" ":"")+k.strValue}return h.validate&&!h.validate(_,T)?null:h.singleEnum&&N?1===_.length&&f(_[0])?{name:e,value:_[0],strValue:_[0],bypass:n}:null:{name:e,value:_,pfValue:D,strValue:C,bypass:n,units:T}}var S,I,O=function(){for(var r=0;rh.max||h.strictMax&&t===h.max))return null;var z={name:e,value:t,strValue:""+t+(P||""),units:P,bypass:n};return h.unitless||"px"!==P&&"em"!==P?z.pfValue=t:z.pfValue="px"!==P&&P?this.getEmSizeInPixels()*t:t,"ms"!==P&&"s"!==P||(z.pfValue="ms"===P?t:1e3*t),"deg"!==P&&"rad"!==P||(z.pfValue="rad"===P?t:(S=t,Math.PI*S/180)),"%"===P&&(z.pfValue=t/100),z}if(h.propList){var Y=[],X=""+t;if("none"===X);else{for(var V=X.split(/\s*,\s*|\s+/),U=0;U0&&s>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0)return{zoom:a=(a=(a=Math.min((o-2*t)/n.w,(s-2*t)/n.h))>this._private.maxZoom?this._private.maxZoom:a)=n.minZoom&&(n.maxZoom=t),this},minZoom:function(e){return void 0===e?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return void 0===e?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var t,n,r=this._private,i=r.pan,a=r.zoom,o=!1;if(r.zoomingEnabled||(o=!0),b(e)?n=e:m(e)&&(n=e.level,null!=e.position?t=Et(e.position,a,i):null!=e.renderedPosition&&(t=e.renderedPosition),null==t||r.panningEnabled||(o=!0)),n=(n=n>r.maxZoom?r.maxZoom:n)t.maxZoom||!t.zoomingEnabled?a=!0:(t.zoom=s,i.push("zoom"))}if(r&&(!a||!e.cancelOnFailedZoom)&&t.panningEnabled){var l=e.pan;b(l.x)&&(t.pan.x=l.x,o=!1),b(l.y)&&(t.pan.y=l.y,o=!1),o||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(e){var t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,t){if(this._private.panningEnabled){if(f(e)){var n=e;e=this.mutableElements().filter(n)}else w(e)||(e=this.mutableElements());if(0!==e.length){var r=e.boundingBox(),i=this.width(),a=this.height();return{x:(i-(t=void 0===t?this._private.zoom:t)*(r.x1+r.x2))/2,y:(a-t*(r.y1+r.y2))/2}}}},reset:function(){return this._private.panningEnabled&&this._private.zoomingEnabled?(this.viewport({pan:{x:0,y:0},zoom:1}),this):this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e,t,n=this._private,r=n.container;return n.sizeCache=n.sizeCache||(r?(e=l.getComputedStyle(r),t=function(t){return parseFloat(e.getPropertyValue(t))},{width:r.clientWidth-t("padding-left")-t("padding-right"),height:r.clientHeight-t("padding-top")-t("padding-bottom")}):{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,t=this._private.zoom,n=this.renderedExtent(),r={x1:(n.x1-e.x)/t,x2:(n.x2-e.x)/t,y1:(n.y1-e.y)/t,y2:(n.y2-e.y)/t};return r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},renderedExtent:function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},multiClickDebounceTime:function(e){return e?(this._private.multiClickDebounceTime=e,this):this._private.multiClickDebounceTime}};Hs.centre=Hs.center,Hs.autolockNodes=Hs.autolock,Hs.autoungrabifyNodes=Hs.autoungrabify;var qs={data:Wi.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Wi.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Wi.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Wi.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};qs.attr=qs.data,qs.removeAttr=qs.removeData;var Ws=function(e){var t=this,n=(e=z({},e)).container;n&&!x(n)&&x(n[0])&&(n=n[0]);var r=n?n._cyreg:null;(r=r||{})&&r.cy&&(r.cy.destroy(),r={});var i=r.readies=r.readies||[];n&&(n._cyreg=r),r.cy=t;var a=void 0!==l&&void 0!==n&&!e.headless,o=e;o.layout=z({name:a?"grid":"null"},o.layout),o.renderer=z({name:a?"canvas":"null"},o.renderer);var s=function(e,t,n){return void 0!==t?t:void 0!==n?n:e},u=this._private={container:n,ready:!1,options:o,elements:new cs(this),listeners:[],aniEles:new cs(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:s(!0,o.zoomingEnabled),userZoomingEnabled:s(!0,o.userZoomingEnabled),panningEnabled:s(!0,o.panningEnabled),userPanningEnabled:s(!0,o.userPanningEnabled),boxSelectionEnabled:s(!0,o.boxSelectionEnabled),autolock:s(!1,o.autolock,o.autolockNodes),autoungrabify:s(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:s(!1,o.autounselectify),styleEnabled:void 0===o.styleEnabled?a:o.styleEnabled,zoom:b(o.zoom)?o.zoom:1,pan:{x:m(o.pan)&&b(o.pan.x)?o.pan.x:0,y:m(o.pan)&&b(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:s(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});u.styleEnabled&&t.setStyle([]);var c=z({},o,o.renderer);t.initRenderer(c);!function(e,t){if(e.some(N))return _r.all(e).then(t);t(e)}([o.style,o.elements],(function(e){var n=e[0],a=e[1];u.styleEnabled&&t.style().append(n),function(e,n,r){t.notifications(!1);var i=t.mutableElements();i.length>0&&i.remove(),null!=e&&(m(e)||y(e))&&t.add(e),t.one("layoutready",(function(e){t.notifications(!0),t.emit(e),t.one("load",n),t.emitAndNotify("load")})).one("layoutstop",(function(){t.one("done",r),t.emit("done")}));var a=z({},t._private.options.layout);a.eles=t.elements(),t.layout(a).run()}(a,(function(){t.startAnimationLoop(),u.ready=!0,v(o.ready)&&t.on("ready",o.ready);for(var e=0;e0,u=Ot(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(w(n.roots))e=n.roots;else if(y(n.roots)){for(var c=[],h=0;h0;){var I=L.shift(),M=A(I,k);if(M)I.outgoers().filter((function(e){return e.isNode()&&i.has(e)})).forEach(S);else if(null===M){je("Detected double maximal shift for node `"+I.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}N();var O=0;if(n.avoidOverlap)for(var P=0;P0&&b[0].length<=3?l/2:0),h=2*Math.PI/b[r].length*i;return 0===r&&1===b[0].length&&(c=1),{x:W+c*Math.cos(h),y:$+c*Math.sin(h)}}return{x:W+(i+1-(a+1)/2)*o,y:(r+1)*s}})),this};var el={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function tl(e){this.options=z({},el,e)}tl.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,i=void 0!==t.counterclockwise?!t.counterclockwise:t.clockwise,a=r.nodes().not(":parent");t.sort&&(a=a.sort(t.sort));for(var o,s=Ot(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),l={x:s.x1+s.w/2,y:s.y1+s.h/2},u=(void 0===t.sweep?2*Math.PI-2*Math.PI/a.length:t.sweep)/Math.max(1,a.length-1),c=0,h=0;h1&&t.avoidOverlap){c*=1.75;var f=Math.cos(u)-Math.cos(0),v=Math.sin(u)-Math.sin(0),y=Math.sqrt(c*c/(f*f+v*v));o=Math.max(y,o)}return r.nodes().layoutPositions(this,t,(function(e,n){var r=t.startAngle+n*u*(i?1:-1),a=o*Math.cos(r),s=o*Math.sin(r);return{x:l.x+a,y:l.y+s}})),this};var nl,rl={fit:!0,padding:30,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function il(e){this.options=z({},rl,e)}il.prototype.run=function(){for(var e=this.options,t=e,n=void 0!==t.counterclockwise?!t.counterclockwise:t.clockwise,r=e.cy,i=t.eles,a=i.nodes().not(":parent"),o=Ot(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},l=[],u=0,c=0;c0&&Math.abs(y[0].value-b.value)>=f&&(y=[],v.push(y)),y.push(b)}var x=u+t.minNodeSpacing;if(!t.avoidOverlap){var w=v.length>0&&v[0].length>1,E=(Math.min(o.w,o.h)/2-x)/(v.length+w?1:0);x=Math.min(x,E)}for(var _=0,T=0;T1&&t.avoidOverlap){var A=Math.cos(N)-Math.cos(0),L=Math.sin(N)-Math.sin(0),k=Math.sqrt(x*x/(A*A+L*L));_=Math.max(k,_)}D.r=_,_+=x}if(t.equidistant){for(var S=0,I=0,M=0;M=e.numIter||(pl(r,e),r.temperature=r.temperature*e.coolingFactor,r.temperature=e.animationThreshold&&a(),_e(t)):(Dl(r,e),s())}();else{for(;u;)u=o(l),l++;Dl(r,e),s()}return this},ol.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},ol.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var sl=function(e,t,n){for(var r=n.eles.edges(),i=n.eles.nodes(),a={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:r.size(),temperature:n.initialTemp,clientWidth:e.width(),clientHeight:e.width(),boundingBox:Ot(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()})},o=n.eles.components(),s={},l=0;l0)for(a.graphSet.push(w),l=0;lr.count?0:r.graph},ul=function e(t,n,r,i){var a=i.graphSet[r];if(-10)var s=(u=r.nodeOverlap*o)*i/(f=Math.sqrt(i*i+a*a)),l=u*a/f;else{var u,c=ml(e,i,a),h=ml(t,-1*i,-1*a),d=h.x-c.x,p=h.y-c.y,g=d*d+p*p,f=Math.sqrt(g);s=(u=(e.nodeRepulsion+t.nodeRepulsion)/g)*d/f,l=u*p/f}e.isLocked||(e.offsetX-=s,e.offsetY-=l),t.isLocked||(t.offsetX+=s,t.offsetY+=l)}},yl=function(e,t,n,r){if(n>0)var i=e.maxX-t.minX;else i=t.maxX-e.minX;if(r>0)var a=e.maxY-t.minY;else a=t.maxY-e.minY;return i>=0&&a>=0?Math.sqrt(i*i+a*a):0},ml=function(e,t,n){var r=e.positionX,i=e.positionY,a=e.height||1,o=e.width||1,s=n/t,l=a/o,u={};return 0===t&&0n?(u.x=r,u.y=i+a/2,u):0t&&-1*l<=s&&s<=l?(u.x=r-o/2,u.y=i-o*n/2/t,u):0=l)?(u.x=r+a*t/2/n,u.y=i+a/2,u):0>n&&(s<=-1*l||s>=l)?(u.x=r-a*t/2/n,u.y=i-a/2,u):u},bl=function(e,t){for(var n=0;n1){var g=t.gravity*h/p,f=t.gravity*d/p;c.offsetX+=g,c.offsetY+=f}}}}},wl=function(e,t){var n=[],r=0,i=-1;for(n.push.apply(n,e.graphSet[0]),i+=e.graphSet[0].length;r<=i;){var a=n[r++],o=e.idToIndex[a],s=e.layoutNodes[o],l=s.children;if(0n)var i={x:n*e/r,y:n*t/r};else i={x:e,y:t};return i},Tl=function e(t,n){var r=t.parentId;if(null!=r){var i=n.layoutNodes[n.idToIndex[r]],a=!1;return(null==i.maxX||t.maxX+i.padRight>i.maxX)&&(i.maxX=t.maxX+i.padRight,a=!0),(null==i.minX||t.minX-i.padLefti.maxY)&&(i.maxY=t.maxY+i.padBottom,a=!0),(null==i.minY||t.minY-i.padTopg&&(h+=p+t.componentSpacing,c=0,d=0,p=0)}}},Cl={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function Nl(e){this.options=z({},Cl,e)}Nl.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,i=r.nodes().not(":parent");t.sort&&(i=i.sort(t.sort));var a=Ot(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()});if(0===a.h||0===a.w)r.nodes().layoutPositions(this,t,(function(e){return{x:a.x1,y:a.y1}}));else{var o=i.size(),s=Math.sqrt(o*a.h/a.w),l=Math.round(s),u=Math.round(a.w/a.h*s),c=function(e){if(null==e)return Math.min(l,u);Math.min(l,u)==l?l=e:u=e},h=function(e){if(null==e)return Math.max(l,u);Math.max(l,u)==l?l=e:u=e},d=t.rows,p=null!=t.cols?t.cols:t.columns;if(null!=d&&null!=p)l=d,u=p;else if(null!=d&&null==p)l=d,u=Math.ceil(o/l);else if(null==d&&null!=p)u=p,l=Math.ceil(o/u);else if(u*l>o){var g=c(),f=h();(g-1)*f>=o?c(g-1):(f-1)*g>=o&&h(f-1)}else for(;u*l=o?h(y+1):c(v+1)}var m=a.w/u,b=a.h/l;if(t.condense&&(m=0,b=0),t.avoidOverlap)for(var x=0;x=u&&(S=0,k++)},M={},O=0;O(r=Ht(e,t,x[w],x[w+1],x[w+2],x[w+3])))return v(n,r),!0}else if("bezier"===a.edgeType||"multibezier"===a.edgeType||"self"===a.edgeType||"compound"===a.edgeType)for(x=a.allpts,w=0;w+5(r=jt(e,t,x[w],x[w+1],x[w+2],x[w+3],x[w+4],x[w+5])))return v(n,r),!0;m=m||i.source,b=b||i.target;var E=o.getArrowWidth(l,c),_=[{name:"source",x:a.arrowStartX,y:a.arrowStartY,angle:a.srcArrowAngle},{name:"target",x:a.arrowEndX,y:a.arrowEndY,angle:a.tgtArrowAngle},{name:"mid-source",x:a.midX,y:a.midY,angle:a.midsrcArrowAngle},{name:"mid-target",x:a.midX,y:a.midY,angle:a.midtgtArrowAngle}];for(w=0;w<_.length;w++){var T=_[w],D=s.arrowShapes[n.pstyle(T.name+"-arrow-shape").value],C=n.pstyle("width").pfValue;if(D.roughCollide(e,t,E,T.angle,{x:T.x,y:T.y},C,d)&&D.collide(e,t,E,T.angle,{x:T.x,y:T.y},C,d))return v(n),!0}h&&u.length>0&&(y(m),y(b))}function b(e,t,n){return Je(e,t,n)}function x(n,r){var i,a=n._private,o=g;i=r?r+"-":"",n.boundingBox();var s=a.labelBounds[r||"main"],l=n.pstyle(i+"label").value;if("yes"===n.pstyle("text-events").strValue&&l){var u=b(a.rscratch,"labelX",r),c=b(a.rscratch,"labelY",r),h=b(a.rscratch,"labelAngle",r),d=n.pstyle(i+"text-margin-x").pfValue,p=n.pstyle(i+"text-margin-y").pfValue,f=s.x1-o-d,y=s.x2+o-d,m=s.y1-o-p,x=s.y2+o-p;if(h){var w=Math.cos(h),E=Math.sin(h),_=function(e,t){return{x:(e-=u)*w-(t-=c)*E+u,y:e*E+t*w+c}},T=_(f,m),D=_(f,x),C=_(y,m),N=_(y,x),A=[T.x+d,T.y+p,C.x+d,C.y+p,N.x+d,N.y+p,D.x+d,D.y+p];if(qt(e,t,A))return v(n),!0}else if(Gt(s,e,t))return v(n),!0}}n&&(l=l.interactive);for(var w=l.length-1;w>=0;w--){var E=l[w];E.isNode()?y(E)||x(E):m(E)||x(E)||x(E,"source")||x(E,"target")}return u},getAllInBox:function(e,t,n,r){for(var i=this.getCachedZSortedEles().interactive,a=[],o=Math.min(e,n),s=Math.max(e,n),l=Math.min(t,r),u=Math.max(t,r),c=Ot({x1:e=o,y1:t=l,x2:n=s,y2:r=u}),h=0;h0?Math.max(e-t,0):Math.min(e+t,0)},N=C(T,E),A=C(D,_),L=!1;"auto"===v?f=Math.abs(N)>Math.abs(A)?i:r:v===l||v===s?(f=r,L=!0):v!==a&&v!==o||(f=i,L=!0);var k,S=f===r,I=S?A:N,M=S?D:T,O=Nt(M),P=!1;L&&(m||x)||!(v===s&&M<0||v===l&&M>0||v===a&&M>0||v===o&&M<0)||(I=(O*=-1)*Math.abs(I),P=!0);var R=function(e){return Math.abs(e)=Math.abs(I)},B=R(k=m?(b<0?1+b:b)*I:(b<0?I:0)+b*O),F=R(Math.abs(I)-Math.abs(k));if(!B&&!F||P)if(S){var z=u.y1+k+(g?h/2*O:0),G=u.x1,Y=u.x2;n.segpts=[G,z,Y,z]}else{var X=u.x1+k+(g?c/2*O:0),V=u.y1,U=u.y2;n.segpts=[X,V,X,U]}else if(S){var j=Math.abs(M)<=h/2,H=Math.abs(T)<=d/2;if(j){var q=(u.x1+u.x2)/2,W=u.y1,$=u.y2;n.segpts=[q,W,q,$]}else if(H){var K=(u.y1+u.y2)/2,Z=u.x1,Q=u.x2;n.segpts=[Z,K,Q,K]}else n.segpts=[u.x1,u.y2]}else{var J=Math.abs(M)<=c/2,ee=Math.abs(D)<=p/2;if(J){var te=(u.y1+u.y2)/2,ne=u.x1,re=u.x2;n.segpts=[ne,te,re,te]}else if(ee){var ie=(u.x1+u.x2)/2,ae=u.y1,oe=u.y2;n.segpts=[ie,ae,ie,oe]}else n.segpts=[u.x2,u.y1]}},Yl.tryToCorrectInvalidPoints=function(e,t){var n=e._private.rscratch;if("bezier"===n.edgeType){var r=t.srcPos,i=t.tgtPos,a=t.srcW,o=t.srcH,s=t.tgtW,l=t.tgtH,u=t.srcShape,c=t.tgtShape,h=!b(n.startX)||!b(n.startY),d=!b(n.arrowStartX)||!b(n.arrowStartY),p=!b(n.endX)||!b(n.endY),g=!b(n.arrowEndX)||!b(n.arrowEndY),f=this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth*3,v=At({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.startX,y:n.startY}),y=vd.poolIndex()){var p=h;h=d,d=p}var g=s.srcPos=h.position(),f=s.tgtPos=d.position(),v=s.srcW=h.outerWidth(),y=s.srcH=h.outerHeight(),m=s.tgtW=d.outerWidth(),x=s.tgtH=d.outerHeight(),w=s.srcShape=n.nodeShapes[t.getNodeShape(h)],E=s.tgtShape=n.nodeShapes[t.getNodeShape(d)];s.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var _=0;_0){var X=u,V=Lt(X,Tt(t)),U=Lt(X,Tt(Y)),j=V;U2&&Lt(X,{x:Y[2],y:Y[3]})0){var ie=c,ae=Lt(ie,Tt(t)),oe=Lt(ie,Tt(re)),se=ae;oe2&&Lt(ie,{x:re[2],y:re[3]})=u||m){c={cp:f,segment:y};break}}if(c)break}var b=c.cp,x=c.segment,w=(u-d)/x.length,E=x.t1-x.t0,_=s?x.t0+E*w:x.t1-E*w;_=Mt(0,_,1),t=It(b.p0,b.p1,b.p2,_),i=function(e,t,n,r){var i=Mt(0,r-.001,1),a=Mt(0,r+.001,1),o=It(e,t,n,i),s=It(e,t,n,a);return Wl(o,s)}(b.p0,b.p1,b.p2,_);break;case"straight":case"segments":case"haystack":for(var T,D,C,N,A=0,L=r.allpts.length,k=0;k+3=u));k+=2);var S=(u-D)/T;S=Mt(0,S,1),t=function(e,t,n,r){var i=t.x-e.x,a=t.y-e.y,o=At(e,t),s=i/o,l=a/o;return n=null==n?0:n,r=null!=r?r:n*o,{x:e.x+s*r,y:e.y+l*r}}(C,N,S),i=Wl(C,N)}o("labelX",n,t.x),o("labelY",n,t.y),o("labelAutoAngle",n,i)}};u("source"),u("target"),this.applyLabelDimensions(e)}},Hl.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e),e.isEdge()&&(this.applyPrefixedLabelDimensions(e,"source"),this.applyPrefixedLabelDimensions(e,"target"))},Hl.applyPrefixedLabelDimensions=function(e,t){var n=e._private,r=this.getLabelText(e,t),i=this.calculateLabelDimensions(e,r),a=e.pstyle("line-height").pfValue,o=e.pstyle("text-wrap").strValue,s=Je(n.rscratch,"labelWrapCachedLines",t)||[],l="wrap"!==o?1:Math.max(s.length,1),u=i.height/l,c=u*a,h=i.width,d=i.height+(l-1)*(a-1)*u;et(n.rstyle,"labelWidth",t,h),et(n.rscratch,"labelWidth",t,h),et(n.rstyle,"labelHeight",t,d),et(n.rscratch,"labelHeight",t,d),et(n.rscratch,"labelLineHeight",t,c)},Hl.getLabelText=function(e,t){var n=e._private,r=t?t+"-":"",i=e.pstyle(r+"label").strValue,a=e.pstyle("text-transform").value,o=function(e,r){return r?(et(n.rscratch,e,t,r),r):Je(n.rscratch,e,t)};if(!i)return"";"none"==a||("uppercase"==a?i=i.toUpperCase():"lowercase"==a&&(i=i.toLowerCase()));var s=e.pstyle("text-wrap").value;if("wrap"===s){var l=o("labelKey");if(null!=l&&o("labelWrapKey")===l)return o("labelWrapCachedText");for(var u=i.split("\n"),c=e.pstyle("text-max-width").pfValue,h="anywhere"===e.pstyle("text-overflow-wrap").value,d=[],p=/[\s\u200b]+/,g=h?"":" ",f=0;fc){for(var b=v.split(p),x="",w=0;wT);N++)D+=i[N],N===i.length-1&&(C=!0);return C||(D+="…"),D}return i},Hl.getLabelJustification=function(e){var t=e.pstyle("text-justification").strValue,n=e.pstyle("text-halign").strValue;if("auto"!==t)return t;if(!e.isNode())return"center";switch(n){case"left":return"right";case"right":return"left";default:return"center"}},Hl.calculateLabelDimensions=function(e,t){var n=Ie(t,e._private.labelDimsKey),r=this.labelDimCache||(this.labelDimCache=[]),i=r[n];if(null!=i)return i;var a=e.pstyle("font-style").strValue,o=e.pstyle("font-size").pfValue,s=e.pstyle("font-family").strValue,l=e.pstyle("font-weight").strValue,u=this.labelCalcCanvas,c=this.labelCalcCanvasContext;if(!u){u=this.labelCalcCanvas=document.createElement("canvas"),c=this.labelCalcCanvasContext=u.getContext("2d");var h=u.style;h.position="absolute",h.left="-9999px",h.top="-9999px",h.zIndex="-1",h.visibility="hidden",h.pointerEvents="none"}c.font="".concat(a," ").concat(l," ").concat(o,"px ").concat(s);for(var d=0,p=0,g=t.split("\n"),f=0;f1&&void 0!==arguments[1])||arguments[1];if(t.merge(e),n)for(var r=0;r=e.desktopTapThreshold2}var N=r(t);v&&(e.hoverData.tapholdCancelled=!0);a=!0,n(f,["mousemove","vmousemove","tapdrag"],t,{x:h[0],y:h[1]});var A=function(){e.data.bgActivePosistion=void 0,e.hoverData.selecting||o.emit({originalEvent:t,type:"boxstart",position:{x:h[0],y:h[1]}}),g[4]=1,e.hoverData.selecting=!0,e.redrawHint("select",!0),e.redraw()};if(3===e.hoverData.which){if(v){var L={originalEvent:t,type:"cxtdrag",position:{x:h[0],y:h[1]}};m?m.emit(L):o.emit(L),e.hoverData.cxtDragged=!0,e.hoverData.cxtOver&&f===e.hoverData.cxtOver||(e.hoverData.cxtOver&&e.hoverData.cxtOver.emit({originalEvent:t,type:"cxtdragout",position:{x:h[0],y:h[1]}}),e.hoverData.cxtOver=f,f&&f.emit({originalEvent:t,type:"cxtdragover",position:{x:h[0],y:h[1]}}))}}else if(e.hoverData.dragging){if(a=!0,o.panningEnabled()&&o.userPanningEnabled()){var k;if(e.hoverData.justStartedPan){var S=e.hoverData.mdownPos;k={x:(h[0]-S[0])*s,y:(h[1]-S[1])*s},e.hoverData.justStartedPan=!1}else k={x:x[0]*s,y:x[1]*s};o.panBy(k),o.emit("dragpan"),e.hoverData.dragged=!0}h=e.projectIntoViewport(t.clientX,t.clientY)}else if(1!=g[4]||null!=m&&!m.pannable()){if(m&&m.pannable()&&m.active()&&m.unactivate(),m&&m.grabbed()||f==y||(y&&n(y,["mouseout","tapdragout"],t,{x:h[0],y:h[1]}),f&&n(f,["mouseover","tapdragover"],t,{x:h[0],y:h[1]}),e.hoverData.last=f),m)if(v){if(o.boxSelectionEnabled()&&N)m&&m.grabbed()&&(c(E),m.emit("freeon"),E.emit("free"),e.dragData.didDrag&&(m.emit("dragfreeon"),E.emit("dragfree"))),A();else if(m&&m.grabbed()&&e.nodeIsDraggable(m)){var I=!e.dragData.didDrag;I&&e.redrawHint("eles",!0),e.dragData.didDrag=!0,e.hoverData.draggingEles||l(E,{inDragLayer:!0});var M={x:0,y:0};if(b(x[0])&&b(x[1])&&(M.x+=x[0],M.y+=x[1],I)){var O=e.hoverData.dragDelta;O&&b(O[0])&&b(O[1])&&(M.x+=O[0],M.y+=O[1])}e.hoverData.draggingEles=!0,E.silentShift(M).emit("position drag"),e.redrawHint("drag",!0),e.redraw()}}else!function(){var t=e.hoverData.dragDelta=e.hoverData.dragDelta||[];0===t.length?(t.push(x[0]),t.push(x[1])):(t[0]+=x[0],t[1]+=x[1])}();a=!0}else v&&(e.hoverData.dragging||!o.boxSelectionEnabled()||!N&&o.panningEnabled()&&o.userPanningEnabled()?!e.hoverData.selecting&&o.panningEnabled()&&o.userPanningEnabled()&&i(m,e.hoverData.downs)&&(e.hoverData.dragging=!0,e.hoverData.justStartedPan=!0,g[4]=0,e.data.bgActivePosistion=Tt(d),e.redrawHint("select",!0),e.redraw()):A(),m&&m.pannable()&&m.active()&&m.unactivate());return g[2]=h[0],g[3]=h[1],a?(t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),!1):void 0}}),!1),e.registerBinding(window,"mouseup",(function(i){if(e.hoverData.capture){e.hoverData.capture=!1;var a=e.cy,o=e.projectIntoViewport(i.clientX,i.clientY),s=e.selection,l=e.findNearestElement(o[0],o[1],!0,!1),u=e.dragData.possibleDragElements,h=e.hoverData.down,d=r(i);if(e.data.bgActivePosistion&&(e.redrawHint("select",!0),e.redraw()),e.hoverData.tapholdCancelled=!0,e.data.bgActivePosistion=void 0,h&&h.unactivate(),3===e.hoverData.which){var p={originalEvent:i,type:"cxttapend",position:{x:o[0],y:o[1]}};if(h?h.emit(p):a.emit(p),!e.hoverData.cxtDragged){var g={originalEvent:i,type:"cxttap",position:{x:o[0],y:o[1]}};h?h.emit(g):a.emit(g)}e.hoverData.cxtDragged=!1,e.hoverData.which=null}else if(1===e.hoverData.which){if(n(l,["mouseup","tapend","vmouseup"],i,{x:o[0],y:o[1]}),e.dragData.didDrag||e.hoverData.dragged||e.hoverData.selecting||e.hoverData.isOverThresholdDrag||(n(h,["click","tap","vclick"],i,{x:o[0],y:o[1]}),m=!1,i.timeStamp-x<=a.multiClickDebounceTime()?(y&&clearTimeout(y),m=!0,x=null,n(h,["dblclick","dbltap","vdblclick"],i,{x:o[0],y:o[1]})):(y=setTimeout((function(){m||n(h,["oneclick","onetap","voneclick"],i,{x:o[0],y:o[1]})}),a.multiClickDebounceTime()),x=i.timeStamp)),null!=h||e.dragData.didDrag||e.hoverData.selecting||e.hoverData.dragged||r(i)||(a.$(t).unselect(["tapunselect"]),u.length>0&&e.redrawHint("eles",!0),e.dragData.possibleDragElements=u=a.collection()),l!=h||e.dragData.didDrag||e.hoverData.selecting||null!=l&&l._private.selectable&&(e.hoverData.dragging||("additive"===a.selectionType()||d?l.selected()?l.unselect(["tapunselect"]):l.select(["tapselect"]):d||(a.$(t).unmerge(l).unselect(["tapunselect"]),l.select(["tapselect"]))),e.redrawHint("eles",!0)),e.hoverData.selecting){var f=a.collection(e.getAllInBox(s[0],s[1],s[2],s[3]));e.redrawHint("select",!0),f.length>0&&e.redrawHint("eles",!0),a.emit({type:"boxend",originalEvent:i,position:{x:o[0],y:o[1]}});"additive"===a.selectionType()||d||a.$(t).unmerge(f).unselect(),f.emit("box").stdFilter((function(e){return e.selectable()&&!e.selected()})).select().emit("boxselect"),e.redraw()}if(e.hoverData.dragging&&(e.hoverData.dragging=!1,e.redrawHint("select",!0),e.redrawHint("eles",!0),e.redraw()),!s[4]){e.redrawHint("drag",!0),e.redrawHint("eles",!0);var v=h&&h.grabbed();c(u),v&&(h.emit("freeon"),u.emit("free"),e.dragData.didDrag&&(h.emit("dragfreeon"),u.emit("dragfree")))}}s[4]=0,e.hoverData.down=null,e.hoverData.cxtStarted=!1,e.hoverData.draggingEles=!1,e.hoverData.selecting=!1,e.hoverData.isOverThresholdDrag=!1,e.dragData.didDrag=!1,e.hoverData.dragged=!1,e.hoverData.dragDelta=[],e.hoverData.mdownPos=null,e.hoverData.mdownGPos=null}}),!1);var E,_,T,D,C,N,A,L,k,S,I,M,O,P=function(t){if(!e.scrollingPage){var n=e.cy,r=n.zoom(),i=n.pan(),a=e.projectIntoViewport(t.clientX,t.clientY),o=[a[0]*r+i.x,a[1]*r+i.y];if(e.hoverData.draggingEles||e.hoverData.dragging||e.hoverData.cxtStarted||0!==e.selection[4])t.preventDefault();else if(n.panningEnabled()&&n.userPanningEnabled()&&n.zoomingEnabled()&&n.userZoomingEnabled()){var s;t.preventDefault(),e.data.wheelZooming=!0,clearTimeout(e.data.wheelTimeout),e.data.wheelTimeout=setTimeout((function(){e.data.wheelZooming=!1,e.redrawHint("eles",!0),e.redraw()}),150),s=null!=t.deltaY?t.deltaY/-250:null!=t.wheelDeltaY?t.wheelDeltaY/1e3:t.wheelDelta/1e3,s*=e.wheelSensitivity,1===t.deltaMode&&(s*=33);var l=n.zoom()*Math.pow(10,s);"gesturechange"===t.type&&(l=e.gestureStartZoom*t.scale),n.zoom({level:l,renderedPosition:{x:o[0],y:o[1]}}),n.emit("gesturechange"===t.type?"pinchzoom":"scrollzoom")}}};e.registerBinding(e.container,"wheel",P,!0),e.registerBinding(window,"scroll",(function(t){e.scrollingPage=!0,clearTimeout(e.scrollingPageTimeout),e.scrollingPageTimeout=setTimeout((function(){e.scrollingPage=!1}),250)}),!0),e.registerBinding(e.container,"gesturestart",(function(t){e.gestureStartZoom=e.cy.zoom(),e.hasTouchStarted||t.preventDefault()}),!0),e.registerBinding(e.container,"gesturechange",(function(t){e.hasTouchStarted||P(t)}),!0),e.registerBinding(e.container,"mouseout",(function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:"mouseout",position:{x:n[0],y:n[1]}})}),!1),e.registerBinding(e.container,"mouseover",(function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:"mouseover",position:{x:n[0],y:n[1]}})}),!1);var R,B,F,z,G,Y,X,V=function(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))},U=function(e,t,n,r){return(n-e)*(n-e)+(r-t)*(r-t)};if(e.registerBinding(e.container,"touchstart",R=function(t){if(e.hasTouchStarted=!0,w(t)){d(),e.touchData.capture=!0,e.data.bgActivePosistion=void 0;var r=e.cy,i=e.touchData.now,a=e.touchData.earlier;if(t.touches[0]){var s=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);i[0]=s[0],i[1]=s[1]}if(t.touches[1]&&(s=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY),i[2]=s[0],i[3]=s[1]),t.touches[2]&&(s=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY),i[4]=s[0],i[5]=s[1]),t.touches[1]){e.touchData.singleTouchMoved=!0,c(e.dragData.touchDragEles);var h=e.findContainerClientCoords();k=h[0],S=h[1],I=h[2],M=h[3],E=t.touches[0].clientX-k,_=t.touches[0].clientY-S,T=t.touches[1].clientX-k,D=t.touches[1].clientY-S,O=0<=E&&E<=I&&0<=T&&T<=I&&0<=_&&_<=M&&0<=D&&D<=M;var p=r.pan(),g=r.zoom();C=V(E,_,T,D),N=U(E,_,T,D),L=[((A=[(E+T)/2,(_+D)/2])[0]-p.x)/g,(A[1]-p.y)/g];if(N<4e4&&!t.touches[2]){var f=e.findNearestElement(i[0],i[1],!0,!0),v=e.findNearestElement(i[2],i[3],!0,!0);return f&&f.isNode()?(f.activate().emit({originalEvent:t,type:"cxttapstart",position:{x:i[0],y:i[1]}}),e.touchData.start=f):v&&v.isNode()?(v.activate().emit({originalEvent:t,type:"cxttapstart",position:{x:i[0],y:i[1]}}),e.touchData.start=v):r.emit({originalEvent:t,type:"cxttapstart",position:{x:i[0],y:i[1]}}),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!0,e.touchData.cxtDragged=!1,e.data.bgActivePosistion=void 0,void e.redraw()}}if(t.touches[2])r.boxSelectionEnabled()&&t.preventDefault();else if(t.touches[1]);else if(t.touches[0]){var y=e.findNearestElements(i[0],i[1],!0,!0),m=y[0];if(null!=m&&(m.activate(),e.touchData.start=m,e.touchData.starts=y,e.nodeIsGrabbable(m))){var b=e.dragData.touchDragEles=r.collection(),x=null;e.redrawHint("eles",!0),e.redrawHint("drag",!0),m.selected()?(x=r.$((function(t){return t.selected()&&e.nodeIsGrabbable(t)})),l(x,{addToList:b})):u(m,{addToList:b}),o(m);var P=function(e){return{originalEvent:t,type:e,position:{x:i[0],y:i[1]}}};m.emit(P("grabon")),x?x.forEach((function(e){e.emit(P("grab"))})):m.emit(P("grab"))}n(m,["touchstart","tapstart","vmousedown"],t,{x:i[0],y:i[1]}),null==m&&(e.data.bgActivePosistion={x:s[0],y:s[1]},e.redrawHint("select",!0),e.redraw()),e.touchData.singleTouchMoved=!1,e.touchData.singleTouchStartTime=+new Date,clearTimeout(e.touchData.tapholdTimeout),e.touchData.tapholdTimeout=setTimeout((function(){!1!==e.touchData.singleTouchMoved||e.pinching||e.touchData.selecting||n(e.touchData.start,["taphold"],t,{x:i[0],y:i[1]})}),e.tapholdDuration)}if(t.touches.length>=1){for(var R=e.touchData.startPosition=[],B=0;B=e.touchTapThreshold2}if(r&&e.touchData.cxt){t.preventDefault();var A=t.touches[0].clientX-k,I=t.touches[0].clientY-S,M=t.touches[1].clientX-k,P=t.touches[1].clientY-S,R=U(A,I,M,P);if(R/N>=2.25||R>=22500){e.touchData.cxt=!1,e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var B={originalEvent:t,type:"cxttapend",position:{x:s[0],y:s[1]}};e.touchData.start?(e.touchData.start.unactivate().emit(B),e.touchData.start=null):o.emit(B)}}if(r&&e.touchData.cxt){B={originalEvent:t,type:"cxtdrag",position:{x:s[0],y:s[1]}},e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.touchData.start?e.touchData.start.emit(B):o.emit(B),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxtDragged=!0;var F=e.findNearestElement(s[0],s[1],!0,!0);e.touchData.cxtOver&&F===e.touchData.cxtOver||(e.touchData.cxtOver&&e.touchData.cxtOver.emit({originalEvent:t,type:"cxtdragout",position:{x:s[0],y:s[1]}}),e.touchData.cxtOver=F,F&&F.emit({originalEvent:t,type:"cxtdragover",position:{x:s[0],y:s[1]}}))}else if(r&&t.touches[2]&&o.boxSelectionEnabled())t.preventDefault(),e.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,e.touchData.selecting||o.emit({originalEvent:t,type:"boxstart",position:{x:s[0],y:s[1]}}),e.touchData.selecting=!0,e.touchData.didSelect=!0,a[4]=1,a&&0!==a.length&&void 0!==a[0]?(a[2]=(s[0]+s[2]+s[4])/3,a[3]=(s[1]+s[3]+s[5])/3):(a[0]=(s[0]+s[2]+s[4])/3,a[1]=(s[1]+s[3]+s[5])/3,a[2]=(s[0]+s[2]+s[4])/3+1,a[3]=(s[1]+s[3]+s[5])/3+1),e.redrawHint("select",!0),e.redraw();else if(r&&t.touches[1]&&!e.touchData.didSelect&&o.zoomingEnabled()&&o.panningEnabled()&&o.userZoomingEnabled()&&o.userPanningEnabled()){if(t.preventDefault(),e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),ee=e.dragData.touchDragEles){e.redrawHint("drag",!0);for(var z=0;z0&&!e.hoverData.draggingEles&&!e.swipePanning&&null!=e.data.bgActivePosistion&&(e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.redraw())}},!1),e.registerBinding(window,"touchcancel",F=function(t){var n=e.touchData.start;e.touchData.capture=!1,n&&n.unactivate()}),e.registerBinding(window,"touchend",z=function(r){var i=e.touchData.start;if(e.touchData.capture){0===r.touches.length&&(e.touchData.capture=!1),r.preventDefault();var a=e.selection;e.swipePanning=!1,e.hoverData.draggingEles=!1;var o,s=e.cy,l=s.zoom(),u=e.touchData.now,h=e.touchData.earlier;if(r.touches[0]){var d=e.projectIntoViewport(r.touches[0].clientX,r.touches[0].clientY);u[0]=d[0],u[1]=d[1]}if(r.touches[1]&&(d=e.projectIntoViewport(r.touches[1].clientX,r.touches[1].clientY),u[2]=d[0],u[3]=d[1]),r.touches[2]&&(d=e.projectIntoViewport(r.touches[2].clientX,r.touches[2].clientY),u[4]=d[0],u[5]=d[1]),i&&i.unactivate(),e.touchData.cxt){if(o={originalEvent:r,type:"cxttapend",position:{x:u[0],y:u[1]}},i?i.emit(o):s.emit(o),!e.touchData.cxtDragged){var p={originalEvent:r,type:"cxttap",position:{x:u[0],y:u[1]}};i?i.emit(p):s.emit(p)}return e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!1,e.touchData.start=null,void e.redraw()}if(!r.touches[2]&&s.boxSelectionEnabled()&&e.touchData.selecting){e.touchData.selecting=!1;var g=s.collection(e.getAllInBox(a[0],a[1],a[2],a[3]));a[0]=void 0,a[1]=void 0,a[2]=void 0,a[3]=void 0,a[4]=0,e.redrawHint("select",!0),s.emit({type:"boxend",originalEvent:r,position:{x:u[0],y:u[1]}});g.emit("box").stdFilter((function(e){return e.selectable()&&!e.selected()})).select().emit("boxselect"),g.nonempty()&&e.redrawHint("eles",!0),e.redraw()}if(null!=i&&i.unactivate(),r.touches[2])e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);else if(r.touches[1]);else if(r.touches[0]);else if(!r.touches[0]){e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var f=e.dragData.touchDragEles;if(null!=i){var v=i._private.grabbed;c(f),e.redrawHint("drag",!0),e.redrawHint("eles",!0),v&&(i.emit("freeon"),f.emit("free"),e.dragData.didDrag&&(i.emit("dragfreeon"),f.emit("dragfree"))),n(i,["touchend","tapend","vmouseup","tapdragout"],r,{x:u[0],y:u[1]}),i.unactivate(),e.touchData.start=null}else{var y=e.findNearestElement(u[0],u[1],!0,!0);n(y,["touchend","tapend","vmouseup","tapdragout"],r,{x:u[0],y:u[1]})}var m=e.touchData.startPosition[0]-u[0],b=m*m,x=e.touchData.startPosition[1]-u[1],w=(b+x*x)*l*l;e.touchData.singleTouchMoved||(i||s.$(":selected").unselect(["tapunselect"]),n(i,["tap","vclick"],r,{x:u[0],y:u[1]}),G=!1,r.timeStamp-X<=s.multiClickDebounceTime()?(Y&&clearTimeout(Y),G=!0,X=null,n(i,["dbltap","vdblclick"],r,{x:u[0],y:u[1]})):(Y=setTimeout((function(){G||n(i,["onetap","voneclick"],r,{x:u[0],y:u[1]})}),s.multiClickDebounceTime()),X=r.timeStamp)),null!=i&&!e.dragData.didDrag&&i._private.selectable&&w2){for(var A=[u[0],u[1]],L=Math.pow(A[0]-e,2)+Math.pow(A[1]-t,2),k=1;k0)return f[0]}return null},d=Object.keys(c),p=0;p0?l:Xt(i,a,e,t,n,r,o)},checkPoint:function(e,t,n,r,i,a,o){var s=sn(r,i),l=2*s;if(Wt(e,t,this.points,a,o,r,i-l,[0,-1],n))return!0;if(Wt(e,t,this.points,a,o,r-l,i,[0,-1],n))return!0;var u=r/2+2*n,c=i/2+2*n;return!!qt(e,t,[a-u,o-c,a-u,o,a+u,o,a+u,o-c])||!!Zt(e,t,l,l,a+r/2-s,o+i/2-s,n)||!!Zt(e,t,l,l,a-r/2+s,o+i/2-s,n)}}},registerNodeShapes:function(){var e=this.nodeShapes={},t=this;this.generateEllipse(),this.generatePolygon("triangle",rn(3,0)),this.generateRoundPolygon("round-triangle",rn(3,0)),this.generatePolygon("rectangle",rn(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();var n=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",n),this.generateRoundPolygon("round-diamond",n),this.generatePolygon("pentagon",rn(5,0)),this.generateRoundPolygon("round-pentagon",rn(5,0)),this.generatePolygon("hexagon",rn(6,0)),this.generateRoundPolygon("round-hexagon",rn(6,0)),this.generatePolygon("heptagon",rn(7,0)),this.generateRoundPolygon("round-heptagon",rn(7,0)),this.generatePolygon("octagon",rn(8,0)),this.generateRoundPolygon("round-octagon",rn(8,0));var r=new Array(20),i=on(5,0),a=on(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s=e.deqFastCost*f)break}else if(i){if(p>=e.deqCost*l||p>=e.deqAvgCost*s)break}else if(g>=e.deqNoDrawCost*ou)break;var v=e.deq(t,h,c);if(!(v.length>0))break;for(var y=0;y0&&(e.onDeqd(t,u),!i&&e.shouldRedraw(t,u,h,c)&&r())}),i(t))}}},lu=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ge;t(this,e),this.idsByKey=new tt,this.keyForId=new tt,this.cachesByLvl=new tt,this.lvls=[],this.getKey=n,this.doesEleInvalidateKey=r}return i(e,[{key:"getIdsFor",value:function(e){null==e&&Ve("Can not get id list for null key");var t=this.idsByKey,n=this.idsByKey.get(e);return n||(n=new rt,t.set(e,n)),n}},{key:"addIdForKey",value:function(e,t){null!=e&&this.getIdsFor(e).add(t)}},{key:"deleteIdForKey",value:function(e,t){null!=e&&this.getIdsFor(e).delete(t)}},{key:"getNumberOfIdsForKey",value:function(e){return null==e?0:this.getIdsFor(e).size}},{key:"updateKeyMappingFor",value:function(e){var t=e.id(),n=this.keyForId.get(t),r=this.getKey(e);this.deleteIdForKey(n,t),this.addIdForKey(r,t),this.keyForId.set(t,r)}},{key:"deleteKeyMappingFor",value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteIdForKey(n,t),this.keyForId.delete(t)}},{key:"keyHasChangedFor",value:function(e){var t=e.id();return this.keyForId.get(t)!==this.getKey(e)}},{key:"isInvalid",value:function(e){return this.keyHasChangedFor(e)||this.doesEleInvalidateKey(e)}},{key:"getCachesAt",value:function(e){var t=this.cachesByLvl,n=this.lvls,r=t.get(e);return r||(r=new tt,t.set(e,r),n.push(e)),r}},{key:"getCache",value:function(e,t){return this.getCachesAt(t).get(e)}},{key:"get",value:function(e,t){var n=this.getKey(e),r=this.getCache(n,t);return null!=r&&this.updateKeyMappingFor(e),r}},{key:"getForCachedKey",value:function(e,t){var n=this.keyForId.get(e.id());return this.getCache(n,t)}},{key:"hasCache",value:function(e,t){return this.getCachesAt(t).has(e)}},{key:"has",value:function(e,t){var n=this.getKey(e);return this.hasCache(n,t)}},{key:"setCache",value:function(e,t,n){n.key=e,this.getCachesAt(t).set(e,n)}},{key:"set",value:function(e,t,n){var r=this.getKey(e);this.setCache(r,t,n),this.updateKeyMappingFor(e)}},{key:"deleteCache",value:function(e,t){this.getCachesAt(t).delete(e)}},{key:"delete",value:function(e,t){var n=this.getKey(e);this.deleteCache(n,t)}},{key:"invalidateKey",value:function(e){var t=this;this.lvls.forEach((function(n){return t.deleteCache(e,n)}))}},{key:"invalidate",value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteKeyMappingFor(e);var r=this.doesEleInvalidateKey(e);return r&&this.invalidateKey(n),r||0===this.getNumberOfIdsForKey(n)}}]),e}(),uu={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},cu=Ke({getKey:null,doesEleInvalidateKey:Ge,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:ze,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),hu=function(e,t){var n=this;n.renderer=e,n.onDequeues=[];var r=cu(t);z(n,r),n.lookup=new lu(r.getKey,r.doesEleInvalidateKey),n.setupDequeueing()},du=hu.prototype;du.reasons=uu,du.getTextureQueue=function(e){var t=this;return t.eleImgCaches=t.eleImgCaches||{},t.eleImgCaches[e]=t.eleImgCaches[e]||[]},du.getRetiredTextureQueue=function(e){var t=this.eleImgCaches.retired=this.eleImgCaches.retired||{};return t[e]=t[e]||[]},du.getElementQueue=function(){return this.eleCacheQueue=this.eleCacheQueue||new lt((function(e,t){return t.reqs-e.reqs}))},du.getElementKeyToQueue=function(){return this.eleKeyToCacheQueue=this.eleKeyToCacheQueue||{}},du.getElement=function(e,t,n,r,i){var a=this,o=this.renderer,s=o.cy.zoom(),l=this.lookup;if(!t||0===t.w||0===t.h||isNaN(t.w)||isNaN(t.h)||!e.visible()||e.removed())return null;if(!a.allowEdgeTxrCaching&&e.isEdge()||!a.allowParentTxrCaching&&e.isParent())return null;if(null==r&&(r=Math.ceil(Ct(s*n))),r<-4)r=-4;else if(s>=7.99||r>3)return null;var u=Math.pow(2,r),c=t.h*u,h=t.w*u,d=o.eleTextBiggerThanMin(e,u);if(!this.isVisible(e,d))return null;var p,g=l.get(e,r);if(g&&g.invalidated&&(g.invalidated=!1,g.texture.invalidatedWidth-=g.width),g)return g;if(p=c<=25?25:c<=50?50:50*Math.ceil(c/50),c>1024||h>1024)return null;var f=a.getTextureQueue(p),v=f[f.length-2],y=function(){return a.recycleTexture(p,h)||a.addTexture(p,h)};v||(v=f[f.length-1]),v||(v=y()),v.width-v.usedWidthr;N--)D=a.getElement(e,t,n,N,uu.downscale);C()}else{var A;if(!x&&!w&&!E)for(var L=r-1;L>=-4;L--){var k=l.get(e,L);if(k){A=k;break}}if(b(A))return a.queueElement(e,r),A;v.context.translate(v.usedWidth,0),v.context.scale(u,u),this.drawElement(v.context,e,t,d,!1),v.context.scale(1/u,1/u),v.context.translate(-v.usedWidth,0)}return g={x:v.usedWidth,texture:v,level:r,scale:u,width:h,height:c,scaledLabelShown:d},v.usedWidth+=Math.ceil(h+8),v.eleCaches.push(g),l.set(e,r,g),a.checkTextureFullness(v),g},du.invalidateElements=function(e){for(var t=0;t=.2*e.width&&this.retireTexture(e)},du.checkTextureFullness=function(e){var t=this.getTextureQueue(e.height);e.usedWidth/e.width>.8&&e.fullnessChecks>=10?Ze(t,e):e.fullnessChecks++},du.retireTexture=function(e){var t=e.height,n=this.getTextureQueue(t),r=this.lookup;Ze(n,e),e.retired=!0;for(var i=e.eleCaches,a=0;a=t)return a.retired=!1,a.usedWidth=0,a.invalidatedWidth=0,a.fullnessChecks=0,Qe(a.eleCaches),a.context.setTransform(1,0,0,1,0,0),a.context.clearRect(0,0,a.width,a.height),Ze(r,a),n.push(a),a}},du.queueElement=function(e,t){var n=this.getElementQueue(),r=this.getElementKeyToQueue(),i=this.getKey(e),a=r[i];if(a)a.level=Math.max(a.level,t),a.eles.merge(e),a.reqs++,n.updateItem(a);else{var o={eles:e.spawn().merge(e),level:t,reqs:1,key:i};n.push(o),r[i]=o}},du.dequeue=function(e){for(var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),i=[],a=t.lookup,o=0;o<1&&n.size()>0;o++){var s=n.pop(),l=s.key,u=s.eles[0],c=a.hasCache(u,s.level);if(r[l]=null,!c){i.push(s);var h=t.getBoundingBox(u);t.getElement(u,h,e,s.level,uu.dequeue)}}return i},du.removeFromQueue=function(e){var t=this.getElementQueue(),n=this.getElementKeyToQueue(),r=this.getKey(e),i=n[r];null!=i&&(1===i.eles.length?(i.reqs=Fe,t.updateItem(i),t.pop(),n[r]=null):i.eles.unmerge(e))},du.onDequeue=function(e){this.onDequeues.push(e)},du.offDequeue=function(e){Ze(this.onDequeues,e)},du.setupDequeueing=su({deqRedrawThreshold:100,deqCost:.15,deqAvgCost:.1,deqNoDrawCost:.9,deqFastCost:.9,deq:function(e,t,n){return e.dequeue(t,n)},onDeqd:function(e,t){for(var n=0;n=3.99||n>2)return null;r.validateLayersElesOrdering(n,e);var o,s,l=r.layersByLevel,u=Math.pow(2,n),c=l[n]=l[n]||[];if(r.levelIsComplete(n,e))return c;!function(){var t=function(t){if(r.validateLayersElesOrdering(t,e),r.levelIsComplete(t,e))return s=l[t],!0},i=function(e){if(!s)for(var r=n+e;-4<=r&&r<=2&&!t(r);r+=e);};i(1),i(-1);for(var a=c.length-1;a>=0;a--){var o=c[a];o.invalid&&Ze(c,o)}}();var h=function(t){var i=(t=t||{}).after;if(function(){if(!o){o=Ot();for(var t=0;t16e6)return null;var a=r.makeLayer(o,n);if(null!=i){var s=c.indexOf(i)+1;c.splice(s,0,a)}else(void 0===t.insert||t.insert)&&c.unshift(a);return a};if(r.skipping&&!a)return null;for(var d=null,p=e.length/1,g=!a,f=0;f=p||!Yt(d.bb,v.boundingBox()))&&!(d=h({insert:!0,after:d})))return null;s||g?r.queueLayer(d,v):r.drawEleInLayer(d,v,n,t),d.eles.push(v),m[n]=d}}return s||(g?null:c)},gu.getEleLevelForLayerLevel=function(e,t){return e},gu.drawEleInLayer=function(e,t,n,r){var i=this.renderer,a=e.context,o=t.boundingBox();0!==o.w&&0!==o.h&&t.visible()&&(n=this.getEleLevelForLayerLevel(n,r),i.setImgSmoothing(a,!1),i.drawCachedElement(a,t,null,null,n,true),i.setImgSmoothing(a,!0))},gu.levelIsComplete=function(e,t){var n=this.layersByLevel[e];if(!n||0===n.length)return!1;for(var r=0,i=0;i0)return!1;if(a.invalid)return!1;r+=a.eles.length}return r===t.length},gu.validateLayersElesOrdering=function(e,t){var n=this.layersByLevel[e];if(n)for(var r=0;r0){e=!0;break}}return e},gu.invalidateElements=function(e){var t=this;0!==e.length&&(t.lastInvalidationTime=Te(),0!==e.length&&t.haveLayers()&&t.updateElementsInLayers(e,(function(e,n,r){t.invalidateLayer(e)})))},gu.invalidateLayer=function(e){if(this.lastInvalidationTime=Te(),!e.invalid){var t=e.level,n=e.eles,r=this.layersByLevel[t];Ze(r,e),e.elesQueue=[],e.invalid=!0,e.replacement&&(e.replacement.invalid=!0);for(var i=0;i3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],o=this,s=t._private.rscratch;if((!a||t.visible())&&!s.badLine&&null!=s.allpts&&!isNaN(s.allpts[0])){var l;n&&(l=n,e.translate(-l.x1,-l.y1));var u=a?t.pstyle("opacity").value:1,c=a?t.pstyle("line-opacity").value:1,h=t.pstyle("curve-style").value,d=t.pstyle("line-style").value,p=t.pstyle("width").pfValue,g=t.pstyle("line-cap").value,f=u*c,v=u*c,y=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;"straight-triangle"===h?(o.eleStrokeStyle(e,t,n),o.drawEdgeTrianglePath(t,e,s.allpts)):(e.lineWidth=p,e.lineCap=g,o.eleStrokeStyle(e,t,n),o.drawEdgePath(t,e,s.allpts,d),e.lineCap="butt")},m=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;o.drawArrowheads(e,t,n)};if(e.lineJoin="round","yes"===t.pstyle("ghost").value){var b=t.pstyle("ghost-offset-x").pfValue,x=t.pstyle("ghost-offset-y").pfValue,w=t.pstyle("ghost-opacity").value,E=f*w;e.translate(b,x),y(E),m(E),e.translate(-b,-x)}i&&o.drawEdgeUnderlay(e,t),y(),m(),i&&o.drawEdgeOverlay(e,t),o.drawElementText(e,t,null,r),n&&e.translate(l.x1,l.y1)}}},Iu=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(t,n){if(n.visible()){var r=n.pstyle("".concat(e,"-opacity")).value;if(0!==r){var i=this,a=i.usePaths(),o=n._private.rscratch,s=2*n.pstyle("".concat(e,"-padding")).pfValue,l=n.pstyle("".concat(e,"-color")).value;t.lineWidth=s,"self"!==o.edgeType||a?t.lineCap="round":t.lineCap="butt",i.colorStrokeStyle(t,l[0],l[1],l[2],r),i.drawEdgePath(n,t,o.allpts,"solid")}}}};Su.drawEdgeOverlay=Iu("overlay"),Su.drawEdgeUnderlay=Iu("underlay"),Su.drawEdgePath=function(e,t,n,r){var i,a=e._private.rscratch,o=t,s=!1,l=this.usePaths(),u=e.pstyle("line-dash-pattern").pfValue,c=e.pstyle("line-dash-offset").pfValue;if(l){var h=n.join("$");a.pathCacheKey&&a.pathCacheKey===h?(i=t=a.pathCache,s=!0):(i=t=new Path2D,a.pathCacheKey=h,a.pathCache=i)}if(o.setLineDash)switch(r){case"dotted":o.setLineDash([1,1]);break;case"dashed":o.setLineDash(u),o.lineDashOffset=c;break;case"solid":o.setLineDash([])}if(!s&&!a.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(n[0],n[1]),a.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var d=2;d+35&&void 0!==arguments[5])||arguments[5],o=this;if(null==r){if(a&&!o.eleTextBiggerThanMin(t))return}else if(!1===r)return;if(t.isNode()){var s=t.pstyle("label");if(!s||!s.value)return;var l=o.getLabelJustification(t);e.textAlign=l,e.textBaseline="bottom"}else{var u=t.element()._private.rscratch.badLine,c=t.pstyle("label"),h=t.pstyle("source-label"),d=t.pstyle("target-label");if(u||(!c||!c.value)&&(!h||!h.value)&&(!d||!d.value))return;e.textAlign="center",e.textBaseline="bottom"}var p,g=!n;n&&(p=n,e.translate(-p.x1,-p.y1)),null==i?(o.drawText(e,t,null,g,a),t.isEdge()&&(o.drawText(e,t,"source",g,a),o.drawText(e,t,"target",g,a))):o.drawText(e,t,i,g,a),n&&e.translate(p.x1,p.y1)},Ou.getFontCache=function(e){var t;this.fontCaches=this.fontCaches||[];for(var n=0;n2&&void 0!==arguments[2])||arguments[2],r=t.pstyle("font-style").strValue,i=t.pstyle("font-size").pfValue+"px",a=t.pstyle("font-family").strValue,o=t.pstyle("font-weight").strValue,s=n?t.effectiveOpacity()*t.pstyle("text-opacity").value:1,l=t.pstyle("text-outline-opacity").value*s,u=t.pstyle("color").value,c=t.pstyle("text-outline-color").value;e.font=r+" "+o+" "+i+" "+a,e.lineJoin="round",this.colorFillStyle(e,u[0],u[1],u[2],s),this.colorStrokeStyle(e,c[0],c[1],c[2],l)},Ou.getTextAngle=function(e,t){var n=e._private.rscratch,r=t?t+"-":"",i=e.pstyle(r+"text-rotation"),a=Je(n,"labelAngle",t);return"autorotate"===i.strValue?e.isEdge()?a:0:"none"===i.strValue?0:i.pfValue},Ou.drawText=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=t._private.rscratch,o=i?t.effectiveOpacity():1;if(!i||0!==o&&0!==t.pstyle("text-opacity").value){"main"===n&&(n=null);var s,l,u=Je(a,"labelX",n),c=Je(a,"labelY",n),h=this.getLabelText(t,n);if(null!=h&&""!==h&&!isNaN(u)&&!isNaN(c)){this.setupTextStyle(e,t,i);var d,p=n?n+"-":"",g=Je(a,"labelWidth",n),f=Je(a,"labelHeight",n),v=t.pstyle(p+"text-margin-x").pfValue,y=t.pstyle(p+"text-margin-y").pfValue,m=t.isEdge(),b=t.pstyle("text-halign").value,x=t.pstyle("text-valign").value;switch(m&&(b="center",x="center"),u+=v,c+=y,0!==(d=r?this.getTextAngle(t,n):0)&&(s=u,l=c,e.translate(s,l),e.rotate(d),u=0,c=0),x){case"top":break;case"center":c+=f/2;break;case"bottom":c+=f}var w=t.pstyle("text-background-opacity").value,E=t.pstyle("text-border-opacity").value,_=t.pstyle("text-border-width").pfValue,T=t.pstyle("text-background-padding").pfValue;if(w>0||_>0&&E>0){var D=u-T;switch(b){case"left":D-=g;break;case"center":D-=g/2}var C=c-f-T,N=g+2*T,A=f+2*T;if(w>0){var L=e.fillStyle,k=t.pstyle("text-background-color").value;e.fillStyle="rgba("+k[0]+","+k[1]+","+k[2]+","+w*o+")",0===t.pstyle("text-background-shape").strValue.indexOf("round")?function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:5;e.beginPath(),e.moveTo(t+a,n),e.lineTo(t+r-a,n),e.quadraticCurveTo(t+r,n,t+r,n+a),e.lineTo(t+r,n+i-a),e.quadraticCurveTo(t+r,n+i,t+r-a,n+i),e.lineTo(t+a,n+i),e.quadraticCurveTo(t,n+i,t,n+i-a),e.lineTo(t,n+a),e.quadraticCurveTo(t,n,t+a,n),e.closePath(),e.fill()}(e,D,C,N,A,2):e.fillRect(D,C,N,A),e.fillStyle=L}if(_>0&&E>0){var S=e.strokeStyle,I=e.lineWidth,M=t.pstyle("text-border-color").value,O=t.pstyle("text-border-style").value;if(e.strokeStyle="rgba("+M[0]+","+M[1]+","+M[2]+","+E*o+")",e.lineWidth=_,e.setLineDash)switch(O){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"double":e.lineWidth=_/4,e.setLineDash([]);break;case"solid":e.setLineDash([])}if(e.strokeRect(D,C,N,A),"double"===O){var P=_/2;e.strokeRect(D+P,C+P,N-2*P,A-2*P)}e.setLineDash&&e.setLineDash([]),e.lineWidth=I,e.strokeStyle=S}}var R=2*t.pstyle("text-outline-width").pfValue;if(R>0&&(e.lineWidth=R),"wrap"===t.pstyle("text-wrap").value){var B=Je(a,"labelWrapCachedLines",n),F=Je(a,"labelLineHeight",n),z=g/2,G=this.getLabelJustification(t);switch("auto"===G||("left"===b?"left"===G?u+=-g:"center"===G&&(u+=-z):"center"===b?"left"===G?u+=-z:"right"===G&&(u+=z):"right"===b&&("center"===G?u+=z:"right"===G&&(u+=g))),x){case"top":case"center":case"bottom":c-=(B.length-1)*F}for(var Y=0;Y0&&e.strokeText(B[Y],u,c),e.fillText(B[Y],u,c),c+=F}else R>0&&e.strokeText(h,u,c),e.fillText(h,u,c);0!==d&&(e.rotate(-d),e.translate(-s,-l))}}};var Pu={drawNode:function(e,t,n){var r,i,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],l=this,u=t._private,c=u.rscratch,h=t.position();if(b(h.x)&&b(h.y)&&(!s||t.visible())){var d,p,g=s?t.effectiveOpacity():1,f=l.usePaths(),v=!1,y=t.padding();r=t.width()+2*y,i=t.height()+2*y,n&&(p=n,e.translate(-p.x1,-p.y1));for(var m=t.pstyle("background-image").value,x=new Array(m.length),w=new Array(m.length),E=0,_=0;_0&&void 0!==arguments[0]?arguments[0]:A;l.eleFillStyle(e,t,n)},M=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S;l.colorStrokeStyle(e,L[0],L[1],L[2],t)},O=t.pstyle("shape").strValue,P=t.pstyle("shape-polygon-points").pfValue;if(f){e.translate(h.x,h.y);var R=l.nodePathCache=l.nodePathCache||[],B=Me("polygon"===O?O+","+P.join(","):O,""+i,""+r),F=R[B];null!=F?(d=F,v=!0,c.pathCache=d):(d=new Path2D,R[B]=c.pathCache=d)}var z=function(){if(!v){var n=h;f&&(n={x:0,y:0}),l.nodeShapes[l.getNodeShape(t)].draw(d||e,n.x,n.y,r,i)}f?e.fill(d):e.fill()},G=function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=u.backgrounding,a=0,o=0;o0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;l.hasPie(t)&&(l.drawPie(e,t,a),n&&(f||l.nodeShapes[l.getNodeShape(t)].draw(e,h.x,h.y,r,i)))},X=function(){var t=(C>0?C:-C)*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:g),n=C>0?0:255;0!==C&&(l.colorFillStyle(e,n,n,n,t),f?e.fill(d):e.fill())},V=function(){if(N>0){if(e.lineWidth=N,e.lineCap="butt",e.setLineDash)switch(k){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"solid":case"double":e.setLineDash([])}if(f?e.stroke(d):e.stroke(),"double"===k){e.lineWidth=N/3;var t=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",f?e.stroke(d):e.stroke(),e.globalCompositeOperation=t}e.setLineDash&&e.setLineDash([])}};if("yes"===t.pstyle("ghost").value){var U=t.pstyle("ghost-offset-x").pfValue,j=t.pstyle("ghost-offset-y").pfValue,H=t.pstyle("ghost-opacity").value,q=H*g;e.translate(U,j),I(H*A),z(),G(q,!0),M(H*S),V(),Y(0!==C||0!==N),G(q,!1),X(q),e.translate(-U,-j)}f&&e.translate(-h.x,-h.y),o&&l.drawNodeUnderlay(e,t,h,r,i),f&&e.translate(h.x,h.y),I(),z(),G(g,!0),M(),V(),Y(0!==C||0!==N),G(g,!1),X(),f&&e.translate(-h.x,-h.y),l.drawElementText(e,t,null,a),o&&l.drawNodeOverlay(e,t,h,r,i),n&&e.translate(p.x1,p.y1)}}},Ru=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(t,n,r,i,a){if(n.visible()){var o=n.pstyle("".concat(e,"-padding")).pfValue,s=n.pstyle("".concat(e,"-opacity")).value,l=n.pstyle("".concat(e,"-color")).value,u=n.pstyle("".concat(e,"-shape")).value;if(s>0){if(r=r||n.position(),null==i||null==a){var c=n.padding();i=n.width()+2*c,a=n.height()+2*c}this.colorFillStyle(t,l[0],l[1],l[2],s),this.nodeShapes[u].draw(t,r.x,r.y,i+2*o,a+2*o),t.fill()}}}};Pu.drawNodeOverlay=Ru("overlay"),Pu.drawNodeUnderlay=Ru("underlay"),Pu.hasPie=function(e){return(e=e[0])._private.hasPie},Pu.drawPie=function(e,t,n,r){t=t[0],r=r||t.position();var i=t.cy().style(),a=t.pstyle("pie-size"),o=r.x,s=r.y,l=t.width(),u=t.height(),c=Math.min(l,u)/2,h=0;this.usePaths()&&(o=0,s=0),"%"===a.units?c*=a.pfValue:void 0!==a.pfValue&&(c=a.pfValue/2);for(var d=1;d<=i.pieBackgroundN;d++){var p=t.pstyle("pie-"+d+"-background-size").value,g=t.pstyle("pie-"+d+"-background-color").value,f=t.pstyle("pie-"+d+"-background-opacity").value*n,v=p/100;v+h>1&&(v=1-h);var y=1.5*Math.PI+2*Math.PI*h,m=y+2*Math.PI*v;0===p||h>=1||h+v>1||(e.beginPath(),e.moveTo(o,s),e.arc(o,s,c,y,m),e.closePath(),this.colorFillStyle(e,g[0],g[1],g[2],f),e.fill(),h+=v)}};var Bu={};Bu.getPixelRatio=function(){var e=this.data.contexts[0];if(null!=this.forcedPixelRatio)return this.forcedPixelRatio;var t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t},Bu.paintCache=function(e){for(var t,n=this.paintCaches=this.paintCaches||[],r=!0,i=0;io.minMbLowQualFrames&&(o.motionBlurPxRatio=o.mbPxRBlurry)),o.clearingMotionBlur&&(o.motionBlurPxRatio=1),o.textureDrawLastFrame&&!h&&(c[o.NODE]=!0,c[o.SELECT_BOX]=!0);var m=l.style(),b=l.zoom(),x=void 0!==i?i:b,w=l.pan(),E={x:w.x,y:w.y},_={zoom:b,pan:{x:w.x,y:w.y}},T=o.prevViewport;void 0===T||_.zoom!==T.zoom||_.pan.x!==T.pan.x||_.pan.y!==T.pan.y||f&&!g||(o.motionBlurPxRatio=1),a&&(E=a),x*=s,E.x*=s,E.y*=s;var D=o.getCachedZSortedEles();function C(e,t,n,r,i){var a=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",o.colorFillStyle(e,255,255,255,o.motionBlurTransparency),e.fillRect(t,n,r,i),e.globalCompositeOperation=a}function N(e,r){var s,l,c,h;o.clearingMotionBlur||e!==u.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]&&e!==u.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]?(s=E,l=x,c=o.canvasWidth,h=o.canvasHeight):(s={x:w.x*p,y:w.y*p},l=b*p,c=o.canvasWidth*p,h=o.canvasHeight*p),e.setTransform(1,0,0,1,0,0),"motionBlur"===r?C(e,0,0,c,h):t||void 0!==r&&!r||e.clearRect(0,0,c,h),n||(e.translate(s.x,s.y),e.scale(l,l)),a&&e.translate(a.x,a.y),i&&e.scale(i,i)}if(h||(o.textureDrawLastFrame=!1),h){if(o.textureDrawLastFrame=!0,!o.textureCache){o.textureCache={},o.textureCache.bb=l.mutableElements().boundingBox(),o.textureCache.texture=o.data.bufferCanvases[o.TEXTURE_BUFFER];var A=o.data.bufferContexts[o.TEXTURE_BUFFER];A.setTransform(1,0,0,1,0,0),A.clearRect(0,0,o.canvasWidth*o.textureMult,o.canvasHeight*o.textureMult),o.render({forcedContext:A,drawOnlyNodeLayer:!0,forcedPxRatio:s*o.textureMult}),(_=o.textureCache.viewport={zoom:l.zoom(),pan:l.pan(),width:o.canvasWidth,height:o.canvasHeight}).mpan={x:(0-_.pan.x)/_.zoom,y:(0-_.pan.y)/_.zoom}}c[o.DRAG]=!1,c[o.NODE]=!1;var L=u.contexts[o.NODE],k=o.textureCache.texture;_=o.textureCache.viewport,L.setTransform(1,0,0,1,0,0),d?C(L,0,0,_.width,_.height):L.clearRect(0,0,_.width,_.height);var S=m.core("outside-texture-bg-color").value,I=m.core("outside-texture-bg-opacity").value;o.colorFillStyle(L,S[0],S[1],S[2],I),L.fillRect(0,0,_.width,_.height),b=l.zoom(),N(L,!1),L.clearRect(_.mpan.x,_.mpan.y,_.width/_.zoom/s,_.height/_.zoom/s),L.drawImage(k,_.mpan.x,_.mpan.y,_.width/_.zoom/s,_.height/_.zoom/s)}else o.textureOnViewport&&!t&&(o.textureCache=null);var M=l.extent(),O=o.pinching||o.hoverData.dragging||o.swipePanning||o.data.wheelZooming||o.hoverData.draggingEles||o.cy.animated(),P=o.hideEdgesOnViewport&&O,R=[];if(R[o.NODE]=!c[o.NODE]&&d&&!o.clearedForMotionBlur[o.NODE]||o.clearingMotionBlur,R[o.NODE]&&(o.clearedForMotionBlur[o.NODE]=!0),R[o.DRAG]=!c[o.DRAG]&&d&&!o.clearedForMotionBlur[o.DRAG]||o.clearingMotionBlur,R[o.DRAG]&&(o.clearedForMotionBlur[o.DRAG]=!0),c[o.NODE]||n||r||R[o.NODE]){var B=d&&!R[o.NODE]&&1!==p;N(L=t||(B?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]:u.contexts[o.NODE]),d&&!B?"motionBlur":void 0),P?o.drawCachedNodes(L,D.nondrag,s,M):o.drawLayeredElements(L,D.nondrag,s,M),o.debug&&o.drawDebugPoints(L,D.nondrag),n||d||(c[o.NODE]=!1)}if(!r&&(c[o.DRAG]||n||R[o.DRAG])&&(B=d&&!R[o.DRAG]&&1!==p,N(L=t||(B?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]:u.contexts[o.DRAG]),d&&!B?"motionBlur":void 0),P?o.drawCachedNodes(L,D.drag,s,M):o.drawCachedElements(L,D.drag,s,M),o.debug&&o.drawDebugPoints(L,D.drag),n||d||(c[o.DRAG]=!1)),o.showFps||!r&&c[o.SELECT_BOX]&&!n){if(N(L=t||u.contexts[o.SELECT_BOX]),1==o.selection[4]&&(o.hoverData.selecting||o.touchData.selecting)){b=o.cy.zoom();var F=m.core("selection-box-border-width").value/b;L.lineWidth=F,L.fillStyle="rgba("+m.core("selection-box-color").value[0]+","+m.core("selection-box-color").value[1]+","+m.core("selection-box-color").value[2]+","+m.core("selection-box-opacity").value+")",L.fillRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]),F>0&&(L.strokeStyle="rgba("+m.core("selection-box-border-color").value[0]+","+m.core("selection-box-border-color").value[1]+","+m.core("selection-box-border-color").value[2]+","+m.core("selection-box-opacity").value+")",L.strokeRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]))}if(u.bgActivePosistion&&!o.hoverData.selecting){b=o.cy.zoom();var z=u.bgActivePosistion;L.fillStyle="rgba("+m.core("active-bg-color").value[0]+","+m.core("active-bg-color").value[1]+","+m.core("active-bg-color").value[2]+","+m.core("active-bg-opacity").value+")",L.beginPath(),L.arc(z.x,z.y,m.core("active-bg-size").pfValue/b,0,2*Math.PI),L.fill()}var G=o.lastRedrawTime;if(o.showFps&&G){G=Math.round(G);var Y=Math.round(1e3/G);L.setTransform(1,0,0,1,0,0),L.fillStyle="rgba(255, 0, 0, 0.75)",L.strokeStyle="rgba(255, 0, 0, 0.75)",L.lineWidth=1,L.fillText("1 frame = "+G+" ms = "+Y+" fps",0,20);L.strokeRect(0,30,250,20),L.fillRect(0,30,250*Math.min(Y/60,1),20)}n||(c[o.SELECT_BOX]=!1)}if(d&&1!==p){var X=u.contexts[o.NODE],V=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_NODE],U=u.contexts[o.DRAG],j=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_DRAG],H=function(e,t,n){e.setTransform(1,0,0,1,0,0),n||!y?e.clearRect(0,0,o.canvasWidth,o.canvasHeight):C(e,0,0,o.canvasWidth,o.canvasHeight);var r=p;e.drawImage(t,0,0,o.canvasWidth*r,o.canvasHeight*r,0,0,o.canvasWidth,o.canvasHeight)};(c[o.NODE]||R[o.NODE])&&(H(X,V,R[o.NODE]),c[o.NODE]=!1),(c[o.DRAG]||R[o.DRAG])&&(H(U,j,R[o.DRAG]),c[o.DRAG]=!1)}o.prevViewport=_,o.clearingMotionBlur&&(o.clearingMotionBlur=!1,o.motionBlurCleared=!0,o.motionBlur=!0),d&&(o.motionBlurTimeout=setTimeout((function(){o.motionBlurTimeout=null,o.clearedForMotionBlur[o.NODE]=!1,o.clearedForMotionBlur[o.DRAG]=!1,o.motionBlur=!1,o.clearingMotionBlur=!h,o.mbFrames=0,c[o.NODE]=!0,c[o.DRAG]=!0,o.redraw()}),100)),t||l.emit("render")};for(var Fu={drawPolygonPath:function(e,t,n,r,i,a){var o=r/2,s=i/2;e.beginPath&&e.beginPath(),e.moveTo(t+o*a[0],n+s*a[1]);for(var l=1;l0&&a>0){d.clearRect(0,0,i,a),d.globalCompositeOperation="source-over";var p=this.getCachedZSortedEles();if(e.full)d.translate(-n.x1*l,-n.y1*l),d.scale(l,l),this.drawElements(d,p),d.scale(1/l,1/l),d.translate(n.x1*l,n.y1*l);else{var g=t.pan(),f={x:g.x*l,y:g.y*l};l*=t.zoom(),d.translate(f.x,f.y),d.scale(l,l),this.drawElements(d,p),d.scale(1/l,1/l),d.translate(-f.x,-f.y)}e.bg&&(d.globalCompositeOperation="destination-over",d.fillStyle=e.bg,d.rect(0,0,i,a),d.fill())}return h},ju.png=function(e){return qu(e,this.bufferCanvasImage(e),"image/png")},ju.jpg=function(e){return qu(e,this.bufferCanvasImage(e),"image/jpeg")};var Wu=Ku,$u=Ku.prototype;function Ku(e){var t=this;t.data={canvases:new Array($u.CANVAS_LAYERS),contexts:new Array($u.CANVAS_LAYERS),canvasNeedsRedraw:new Array($u.CANVAS_LAYERS),bufferCanvases:new Array($u.BUFFER_COUNT),bufferContexts:new Array($u.CANVAS_LAYERS)};var n="-webkit-tap-highlight-color",r="rgba(0,0,0,0)";t.data.canvasContainer=document.createElement("div");var i=t.data.canvasContainer.style;t.data.canvasContainer.style[n]=r,i.position="relative",i.zIndex="0",i.overflow="hidden";var a=e.cy.container();a.appendChild(t.data.canvasContainer),a.style[n]=r;var o={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};u&&u.userAgent.match(/msie|trident|edge/i)&&(o["-ms-touch-action"]="none",o["touch-action"]="none");for(var s=0;s<$u.CANVAS_LAYERS;s++){var l=t.data.canvases[s]=document.createElement("canvas");t.data.contexts[s]=l.getContext("2d"),Object.keys(o).forEach((function(e){l.style[e]=o[e]})),l.style.position="absolute",l.setAttribute("data-id","layer"+s),l.style.zIndex=String($u.CANVAS_LAYERS-s),t.data.canvasContainer.appendChild(l),t.data.canvasNeedsRedraw[s]=!1}for(t.data.topCanvas=t.data.canvases[0],t.data.canvases[$u.NODE].setAttribute("data-id","layer"+$u.NODE+"-node"),t.data.canvases[$u.SELECT_BOX].setAttribute("data-id","layer"+$u.SELECT_BOX+"-selectbox"),t.data.canvases[$u.DRAG].setAttribute("data-id","layer"+$u.DRAG+"-drag"),s=0;s<$u.BUFFER_COUNT;s++)t.data.bufferCanvases[s]=document.createElement("canvas"),t.data.bufferContexts[s]=t.data.bufferCanvases[s].getContext("2d"),t.data.bufferCanvases[s].style.position="absolute",t.data.bufferCanvases[s].setAttribute("data-id","buffer"+s),t.data.bufferCanvases[s].style.zIndex=String(-s-1),t.data.bufferCanvases[s].style.visibility="hidden";t.pathsEnabled=!0;var c=Ot(),h=function(e){return{x:-e.w/2,y:-e.h/2}},d=function(e){return e.boundingBox(),e[0]._private.bodyBounds},p=function(e){return e.boundingBox(),e[0]._private.labelBounds.main||c},g=function(e){return e.boundingBox(),e[0]._private.labelBounds.source||c},f=function(e){return e.boundingBox(),e[0]._private.labelBounds.target||c},v=function(e,t){return t},y=function(e,t,n){var r=e?e+"-":"";return{x:t.x+n.pstyle(r+"text-margin-x").pfValue,y:t.y+n.pstyle(r+"text-margin-y").pfValue}},m=function(e,t,n){var r=e[0]._private.rscratch;return{x:r[t],y:r[n]}},b=t.data.eleTxrCache=new hu(t,{getKey:function(e){return e[0]._private.nodeKey},doesEleInvalidateKey:function(e){var t=e[0]._private;return!(t.oldBackgroundTimestamp===t.backgroundTimestamp)},drawElement:function(e,n,r,i,a){return t.drawElement(e,n,r,!1,!1,a)},getBoundingBox:d,getRotationPoint:function(e){return{x:((t=d(e)).x1+t.x2)/2,y:(t.y1+t.y2)/2};var t},getRotationOffset:function(e){return h(d(e))},allowEdgeTxrCaching:!1,allowParentTxrCaching:!1}),x=t.data.lblTxrCache=new hu(t,{getKey:function(e){return e[0]._private.labelStyleKey},drawElement:function(e,n,r,i,a){return t.drawElementText(e,n,r,i,"main",a)},getBoundingBox:p,getRotationPoint:function(e){return y("",m(e,"labelX","labelY"),e)},getRotationOffset:function(e){var t=p(e),n=h(p(e));if(e.isNode()){switch(e.pstyle("text-halign").value){case"left":n.x=-t.w;break;case"right":n.x=0}switch(e.pstyle("text-valign").value){case"top":n.y=-t.h;break;case"bottom":n.y=0}}return n},isVisible:v}),w=t.data.slbTxrCache=new hu(t,{getKey:function(e){return e[0]._private.sourceLabelStyleKey},drawElement:function(e,n,r,i,a){return t.drawElementText(e,n,r,i,"source",a)},getBoundingBox:g,getRotationPoint:function(e){return y("source",m(e,"sourceLabelX","sourceLabelY"),e)},getRotationOffset:function(e){return h(g(e))},isVisible:v}),E=t.data.tlbTxrCache=new hu(t,{getKey:function(e){return e[0]._private.targetLabelStyleKey},drawElement:function(e,n,r,i,a){return t.drawElementText(e,n,r,i,"target",a)},getBoundingBox:f,getRotationPoint:function(e){return y("target",m(e,"targetLabelX","targetLabelY"),e)},getRotationOffset:function(e){return h(f(e))},isVisible:v}),_=t.data.lyrTxrCache=new pu(t);t.onUpdateEleCalcs((function(e,t){b.invalidateElements(t),x.invalidateElements(t),w.invalidateElements(t),E.invalidateElements(t),_.invalidateElements(t);for(var n=0;nt&&(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)),this.labelHeight>n&&("center"==this.labelPos?this.rect.y-=(this.labelHeight-n)/2:"top"==this.labelPos&&(this.rect.y-=this.labelHeight-n),this.setHeight(this.labelHeight))}}},u.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},u.prototype.transform=function(e){var t=this.rect.x;t>o.WORLD_BOUNDARY?t=o.WORLD_BOUNDARY:t<-o.WORLD_BOUNDARY&&(t=-o.WORLD_BOUNDARY);var n=this.rect.y;n>o.WORLD_BOUNDARY?n=o.WORLD_BOUNDARY:n<-o.WORLD_BOUNDARY&&(n=-o.WORLD_BOUNDARY);var r=new l(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},u.prototype.getLeft=function(){return this.rect.x},u.prototype.getRight=function(){return this.rect.x+this.rect.width},u.prototype.getTop=function(){return this.rect.y},u.prototype.getBottom=function(){return this.rect.y+this.rect.height},u.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},e.exports=u},function(e,t,n){"use strict";function r(e,t){null==e&&null==t?(this.x=0,this.y=0):(this.x=e,this.y=t)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(e){this.x=e},r.prototype.setY=function(e){this.y=e},r.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=r},function(e,t,n){"use strict";var r=n(2),i=n(10),a=n(0),o=n(6),s=n(3),l=n(1),u=n(13),c=n(12),h=n(11);function d(e,t,n){r.call(this,n),this.estimatedSize=i.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,null!=t&&t instanceof o?this.graphManager=t:null!=t&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var p in d.prototype=Object.create(r.prototype),r)d[p]=r[p];d.prototype.getNodes=function(){return this.nodes},d.prototype.getEdges=function(){return this.edges},d.prototype.getGraphManager=function(){return this.graphManager},d.prototype.getParent=function(){return this.parent},d.prototype.getLeft=function(){return this.left},d.prototype.getRight=function(){return this.right},d.prototype.getTop=function(){return this.top},d.prototype.getBottom=function(){return this.bottom},d.prototype.isConnected=function(){return this.isConnected},d.prototype.add=function(e,t,n){if(null==t&&null==n){var r=e;if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(r)>-1)throw"Node already in graph!";return r.owner=this,this.getNodes().push(r),r}var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw"Source or target not in graph!";if(t.owner!=n.owner||t.owner!=this)throw"Both owners must be this graph!";return t.owner!=n.owner?null:(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i)},d.prototype.remove=function(e){var t=e;if(e instanceof s){if(null==t)throw"Node is null!";if(null==t.owner||t.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var n=t.edges.slice(),r=n.length,i=0;i-1&&c>-1))throw"Source and/or target doesn't know this edge!";if(a.source.edges.splice(u,1),a.target!=a.source&&a.target.edges.splice(c,1),-1==(o=a.source.owner.getEdges().indexOf(a)))throw"Not in owner's edge list!";a.source.owner.getEdges().splice(o,1)}},d.prototype.updateLeftTop=function(){for(var e,t,n,r=i.MAX_VALUE,a=i.MAX_VALUE,o=this.getNodes(),s=o.length,l=0;l(e=u.getTop())&&(r=e),a>(t=u.getLeft())&&(a=t)}return r==i.MAX_VALUE?null:(n=null!=o[0].getParent().paddingLeft?o[0].getParent().paddingLeft:this.margin,this.left=a-n,this.top=r-n,new c(this.left,this.top))},d.prototype.updateBounds=function(e){for(var t,n,r,a,o,s=i.MAX_VALUE,l=-i.MAX_VALUE,c=i.MAX_VALUE,h=-i.MAX_VALUE,d=this.nodes,p=d.length,g=0;g(t=f.getLeft())&&(s=t),l<(n=f.getRight())&&(l=n),c>(r=f.getTop())&&(c=r),h<(a=f.getBottom())&&(h=a)}var v=new u(s,c,l-s,h-c);s==i.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),o=null!=d[0].getParent().paddingLeft?d[0].getParent().paddingLeft:this.margin,this.left=v.x-o,this.right=v.x+v.width+o,this.top=v.y-o,this.bottom=v.y+v.height+o},d.calculateBounds=function(e){for(var t,n,r,a,o=i.MAX_VALUE,s=-i.MAX_VALUE,l=i.MAX_VALUE,c=-i.MAX_VALUE,h=e.length,d=0;d(t=p.getLeft())&&(o=t),s<(n=p.getRight())&&(s=n),l>(r=p.getTop())&&(l=r),c<(a=p.getBottom())&&(c=a)}return new u(o,l,s-o,c-l)},d.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},d.prototype.getEstimatedSize=function(){if(this.estimatedSize==i.MIN_VALUE)throw"assert failed";return this.estimatedSize},d.prototype.calcEstimatedSize=function(){for(var e=0,t=this.nodes,n=t.length,r=0;r=this.nodes.length){var l=0;i.forEach((function(t){t.owner==e&&l++})),l==this.nodes.length&&(this.isConnected=!0)}}else this.isConnected=!0},e.exports=d},function(e,t,n){"use strict";var r,i=n(1);function a(e){r=n(5),this.layout=e,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},a.prototype.add=function(e,t,n,r,i){if(null==n&&null==r&&null==i){if(null==e)throw"Graph is null!";if(null==t)throw"Parent node is null!";if(this.graphs.indexOf(e)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(e),null!=e.parent)throw"Already has a parent!";if(null!=t.child)throw"Already has a child!";return e.parent=t,t.child=e,e}i=n,n=e;var a=(r=t).getOwner(),o=i.getOwner();if(null==a||a.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==o||o.getGraphManager()!=this)throw"Target not in this graph mgr!";if(a==o)return n.isInterGraph=!1,a.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(n),null==n.source||null==n.target)throw"Edge source and/or target is null!";if(-1!=n.source.edges.indexOf(n)||-1!=n.target.edges.indexOf(n))throw"Edge already in source and/or target incidency list!";return n.source.edges.push(n),n.target.edges.push(n),n},a.prototype.remove=function(e){if(e instanceof r){var t=e;if(t.getGraphManager()!=this)throw"Graph not in this graph mgr";if(t!=this.rootGraph&&(null==t.parent||t.parent.graphManager!=this))throw"Invalid parent node!";for(var n,a=[],o=(a=a.concat(t.getEdges())).length,s=0;s=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var a=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(a=1);var o=a*n[0],s=n[1]/a;n[0]o)return n[0]=r,n[1]=l,n[2]=a,n[3]=b,!1;if(ia)return n[0]=s,n[1]=i,n[2]=y,n[3]=o,!1;if(ra?(n[0]=c,n[1]=h,_=!0):(n[0]=u,n[1]=l,_=!0):D===N&&(r>a?(n[0]=s,n[1]=l,_=!0):(n[0]=d,n[1]=h,_=!0)),-C===N?a>r?(n[2]=m,n[3]=b,T=!0):(n[2]=y,n[3]=v,T=!0):C===N&&(a>r?(n[2]=f,n[3]=v,T=!0):(n[2]=x,n[3]=b,T=!0)),_&&T)return!1;if(r>a?i>o?(A=this.getCardinalDirection(D,N,4),L=this.getCardinalDirection(C,N,2)):(A=this.getCardinalDirection(-D,N,3),L=this.getCardinalDirection(-C,N,1)):i>o?(A=this.getCardinalDirection(-D,N,1),L=this.getCardinalDirection(-C,N,3)):(A=this.getCardinalDirection(D,N,2),L=this.getCardinalDirection(C,N,4)),!_)switch(A){case 1:S=l,k=r+-g/N,n[0]=k,n[1]=S;break;case 2:k=d,S=i+p*N,n[0]=k,n[1]=S;break;case 3:S=h,k=r+g/N,n[0]=k,n[1]=S;break;case 4:k=c,S=i+-p*N,n[0]=k,n[1]=S}if(!T)switch(L){case 1:M=v,I=a+-E/N,n[2]=I,n[3]=M;break;case 2:I=x,M=o+w*N,n[2]=I,n[3]=M;break;case 3:M=b,I=a+E/N,n[2]=I,n[3]=M;break;case 4:I=m,M=o+-w*N,n[2]=I,n[3]=M}}return!1},i.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},i.getIntersection=function(e,t,n,i){if(null==i)return this.getIntersection2(e,t,n);var a,o,s,l,u,c,h,d=e.x,p=e.y,g=t.x,f=t.y,v=n.x,y=n.y,m=i.x,b=i.y;return 0==(h=(a=f-p)*(l=v-m)-(o=b-y)*(s=d-g))?null:new r((s*(c=m*y-v*b)-l*(u=g*p-d*f))/h,(o*u-a*c)/h)},i.angleOfVector=function(e,t,n,r){var i=void 0;return e!==n?(i=Math.atan((r-t)/(n-e)),n0?1:e<0?-1:0},r.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},r.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=r},function(e,t,n){"use strict";function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,e.exports=r},function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;n0&&t;){for(s.push(u[0]);s.length>0&&t;){var c=s[0];s.splice(0,1),o.add(c);var h=c.getEdges();for(a=0;a-1&&u.splice(f,1)}o=new Set,l=new Map}else e=[]}return e},d.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i0){for(var i=this.edgeToDummyNodes.get(n),a=0;a=0&&t.splice(h,1),c.getNeighborsList().forEach((function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;1==t&&l.push(e),r.set(e,t)}}))}n=n.concat(l),1!=t.length&&2!=t.length||(i=!0,a=t[0])}return a},d.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=d},function(e,t,n){"use strict";function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=1e4*Math.sin(r.seed++),r.x-Math.floor(r.x)},e.exports=r},function(e,t,n){"use strict";var r=n(4);function i(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(e){this.lworldExtX=e},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(e){this.lworldExtY=e},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},i.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return 0!=n&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},i.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return 0!=n&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},i.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return 0!=n&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},i.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return 0!=n&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},i.prototype.inverseTransformPoint=function(e){return new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=i},function(e,t,n){"use strict";var r=n(15),i=n(7),a=n(0),o=n(8),s=n(9);function l(){r.call(this),this.useSmartIdealEdgeLengthCalculation=i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=i.DEFAULT_EDGE_LENGTH,this.springConstant=i.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=i.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=i.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=i.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=i.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=i.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=i.MAX_ITERATIONS}for(var u in l.prototype=Object.create(r.prototype),r)l[u]=r[u];l.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},l.prototype.calcIdealEdgeLengths=function(){for(var e,t,n,r,o,s,l=this.getGraphManager().getAllEdges(),u=0;ui.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(e>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(e-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},l.prototype.calcSpringForces=function(){for(var e,t=this.getAllEdges(),n=0;n0&&void 0!==arguments[0])||arguments[0],s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&o&&this.updateGrid(),a=new Set,e=0;e(l=t.getEstimatedSize()*this.gravityRangeFactor)||s>l)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*a):(o>(l=t.getEstimatedSize()*this.compoundGravityRangeFactor)||s>l)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*a*this.compoundGravityConstant)},l.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement=s.length||u>=s[0].length))for(var c=0;ce}}]),e}();e.exports=a},function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=i,this.gap_penalty=a,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=new Array(this.iMax);for(var o=0;o=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},i.emit=function(e,t){for(var n=0;n{"use strict";n.d(t,{c:()=>u});var r=n(31460),i=n(42946),a=n(18464);function o(e){const t=function(e){const t=e.replace(/\n{2,}/g,"\n");return(0,a.Z)(t)}(e),{children:n}=(0,i.V)(t),r=[[]];let o=0;function s(e,t="normal"){"text"===e.type?e.value.split("\n").forEach(((e,n)=>{0!==n&&(o++,r.push([])),e.split(" ").forEach((e=>{e&&r[o].push({content:e,type:t})}))})):"strong"!==e.type&&"emphasis"!==e.type||e.children.forEach((t=>{s(t,e.type)}))}return n.forEach((e=>{"paragraph"===e.type&&e.children.forEach((e=>{s(e)}))})),r}function s(e,t,n){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*n-.1+"em").attr("dy",n+"em")}function l(e,t){e.text(""),t.forEach(((t,n)=>{const r=e.append("tspan").attr("font-style","em"===t.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===t.type?"bold":"normal");0===n?r.text(t.content):r.text(" "+t.content)}))}const u=(e,t="",{style:n="",isTitle:a=!1,classes:u="",useHtmlLabels:c=!0,isNode:h=!0,width:d,addSvgBackground:p=!1}={})=>{if(r.l.info("createText",t,n,a,u,c,h,p),c){const a=function(e){const{children:t}=(0,i.V)(e);return t.map((function e(t){return"text"===t.type?t.value.replace(/\n/g,"
"):"strong"===t.type?`${t.children.map(e).join("")}`:"emphasis"===t.type?`${t.children.map(e).join("")}`:"paragraph"===t.type?`

${t.children.map(e).join("")}

`:`Unsupported markdown: ${t.type}`})).join("")}(t);let o=function(e,t,n,r,i=!1){const a=e.append("foreignObject"),o=a.append("xhtml:div"),s=t.label,l=t.isNode?"nodeLabel":"edgeLabel";var u,c;o.html(`\n "+s+""),u=o,(c=t.labelStyle)&&u.attr("style",c),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("max-width",n+"px"),o.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&o.attr("class","labelBkg");let h=o.node().getBoundingClientRect();return h.width===n&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",n+"px"),h=o.node().getBoundingClientRect()),a.style("width",h.width),a.style("height",h.height),a.node()}(e,{isNode:h,label:(0,r.H)(a).replace(/fa[blrs]?:fa-[\w-]+/g,(e=>``)),labelStyle:n.replace("fill:","color:")},d,u,p);return o}{const n=function(e,t,n,r=!1){const i=t.append("g");let a=i.insert("rect").attr("class","background");const o=i.append("text").attr("y","-10.1");let u=-1;if(n.forEach((t=>{u++;let n,r=s(o,u,1.1),i=[...t].reverse(),a=[];for(;i.length;)n=i.pop(),a.push(n),l(r,a),r.node().getComputedTextLength()>e&&(a.pop(),i.push(n),l(r,a),a=[],u++,r=s(o,u,1.1))})),r){const e=o.node().getBBox(),t=2;return a.attr("x",-t).attr("y",-t).attr("width",e.width+2*t).attr("height",e.height+2*t),i.node()}return o.node()}(d,e,o(t),p);return n}}},20748:(e,t,n)=>{"use strict";n.d(t,{diagram:()=>C});var r=n(31460),i=n(74309),a=n(87705),o=n(71377),s=n(14607),l=n(46500),u=n(12281),c=n(7201),h=(n(93628),n(17967),n(27856),function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,4],n=[1,13],r=[1,12],i=[1,15],a=[1,16],o=[1,20],s=[1,19],l=[6,7,8],u=[1,26],c=[1,24],h=[1,25],d=[6,7,11],p=[1,6,13,15,16,19,22],g=[1,33],f=[1,34],v=[1,6,7,11,13,15,16,19,22],y={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace("Stop NL ");break;case 9:r.getLogger().trace("Stop EOF ");break;case 11:r.getLogger().trace("Stop NL2 ");break;case 12:r.getLogger().trace("Stop EOF2 ");break;case 15:r.getLogger().info("Node: ",a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace("Icon: ",a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace("SPACELIST");break;case 19:r.getLogger().trace("Node: ",a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace("node found ..",a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace("node found ..",a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])}}},table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},{6:n,9:22,12:11,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},{6:u,7:c,10:23,11:h},e(d,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:o,22:s}),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),e(d,[2,21]),e(d,[2,23]),e(d,[2,24]),e(d,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:c,10:32,11:h},{1:[2,7],6:n,12:21,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},e(p,[2,14],{7:g,11:f}),e(v,[2,8]),e(v,[2,9]),e(v,[2,10]),e(d,[2,15]),e(d,[2,16]),e(d,[2,17]),{20:[1,35]},{21:[1,36]},e(p,[2,13],{7:g,11:f}),e(v,[2,11]),e(v,[2,12]),{21:[1,37]},e(d,[2,25]),e(d,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=[0],n=[],r=[null],i=[],a=this.table,o="",s=0,l=0,u=i.slice.call(arguments,1),c=Object.create(this.lexer),h={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(h.yy[d]=this.yy[d]);c.setInput(e,h.yy),h.yy.lexer=c,h.yy.parser=this,void 0===c.yylloc&&(c.yylloc={});var p=c.yylloc;i.push(p);var g=c.options&&c.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var f,v,y,m,b,x,w,E,_,T={};;){if(v=t[t.length-1],this.defaultActions[v]?y=this.defaultActions[v]:(null==f&&(_=void 0,"number"!=typeof(_=n.pop()||c.lex()||1)&&(_ instanceof Array&&(_=(n=_).pop()),_=this.symbols_[_]||_),f=_),y=a[v]&&a[v][f]),void 0===y||!y.length||!y[0]){var D;for(b in E=[],a[v])this.terminals_[b]&&b>2&&E.push("'"+this.terminals_[b]+"'");D=c.showPosition?"Parse error on line "+(s+1)+":\n"+c.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(D,{text:c.match,token:this.terminals_[f]||f,line:c.yylineno,loc:p,expected:E})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+f);switch(y[0]){case 1:t.push(f),r.push(c.yytext),i.push(c.yylloc),t.push(y[1]),f=null,l=c.yyleng,o=c.yytext,s=c.yylineno,p=c.yylloc;break;case 2:if(x=this.productions_[y[1]][1],T.$=r[r.length-x],T._$={first_line:i[i.length-(x||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(x||1)].first_column,last_column:i[i.length-1].last_column},g&&(T._$.range=[i[i.length-(x||1)].range[0],i[i.length-1].range[1]]),void 0!==(m=this.performAction.apply(T,[o,l,s,h.yy,y[1],r,i].concat(u))))return m;x&&(t=t.slice(0,-1*x*2),r=r.slice(0,-1*x),i=i.slice(0,-1*x)),t.push(this.productions_[y[1]][0]),r.push(T.$),i.push(T._$),w=a[t[t.length-2]][t[t.length-1]],t.push(w);break;case 3:return!0}}return!0}},m={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,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 e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return e.getLogger().trace("Found comment",t.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return e.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace("end icon"),this.popState();break;case 10:return e.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return e.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 24:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return e.getLogger().trace("description:",t.yytext),"NODE_DESCR";case 27:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),e.getLogger().trace("node end ...",t.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return e.getLogger().trace("Long description:",t.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\-\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};function b(){this.yy={}}return y.lexer=m,b.prototype=y,y.Parser=b,new b}());h.parser=h;const d=h,p=e=>(0,r.d)(e,(0,r.c)());let g=[],f=0,v={};const y={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},m=(e,t)=>{v[e]=t},b=e=>{switch(e){case y.DEFAULT:return"no-border";case y.RECT:return"rect";case y.ROUNDED_RECT:return"rounded-rect";case y.CIRCLE:return"circle";case y.CLOUD:return"cloud";case y.BANG:return"bang";case y.HEXAGON:return"hexgon";default:return"no-border"}};let x;const w=e=>v[e],E=Object.freeze(Object.defineProperty({__proto__:null,addNode:(e,t,n,i)=>{r.l.info("addNode",e,t,n,i);const a=(0,r.c)(),o={id:f++,nodeId:p(t),level:e,descr:p(n),type:i,children:[],width:(0,r.c)().mindmap.maxNodeWidth};switch(o.type){case y.ROUNDED_RECT:case y.RECT:case y.HEXAGON:o.padding=2*a.mindmap.padding;break;default:o.padding=a.mindmap.padding}const s=function(e){for(let t=g.length-1;t>=0;t--)if(g[t].level{g=[],f=0,v={}},decorateNode:e=>{const t=g[g.length-1];e&&e.icon&&(t.icon=p(e.icon)),e&&e.class&&(t.class=p(e.class))},getElementById:w,getLogger:()=>r.l,getMindmap:()=>g.length>0?g[0]:null,getNodeById:e=>g[e],getType:(e,t)=>{switch(r.l.debug("In get type",e,t),e){case"[":return y.RECT;case"(":return")"===t?y.ROUNDED_RECT:y.CLOUD;case"((":return y.CIRCLE;case")":return y.CLOUD;case"))":return y.BANG;case"{{":return y.HEXAGON;default:return y.DEFAULT}},nodeType:y,get parseError(){return x},sanitizeText:p,setElementForId:m,setErrorHandler:e=>{x=e},type2Str:b},Symbol.toStringTag,{value:"Module"}));function _(e,t,n,r){(function(e,t,n,r){const i=r.htmlLabels,o=n%11,s=e.append("g");t.section=o;let l="section-"+o;o<0&&(l+=" section-root"),s.attr("class",(t.class?t.class+" ":"")+"mindmap-node "+l);const u=s.append("g"),c=s.append("g"),h=t.descr.replace(/()/g,"\n");(0,a.c)(c,h,{useHtmlLabels:i,width:t.width,classes:"mindmap-node-label"}),i||c.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const d=c.node().getBBox(),p=r.fontSize.replace?r.fontSize.replace("px",""):r.fontSize;if(t.height=d.height+1.1*p*.5+t.padding,t.width=d.width+2*t.padding,t.icon)if(t.type===y.CIRCLE)t.height+=50,t.width+=50,s.append("foreignObject").attr("height","50px").attr("width",t.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+o+" "+t.icon),c.attr("transform","translate("+t.width/2+", "+(t.height/2-1.5*t.padding)+")");else{t.width+=50;const e=t.height;t.height=Math.max(e,60);const n=Math.abs(t.height-e);s.append("foreignObject").attr("width","60px").attr("height",t.height).attr("style","text-align: center;margin-top:"+n/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+o+" "+t.icon),c.attr("transform","translate("+(25+t.width/2)+", "+(n/2+t.padding/2)+")")}else if(i){const e=(t.width-d.width)/2,n=(t.height-d.height)/2;c.attr("transform","translate("+e+", "+n+")")}else{const e=t.width/2,n=t.padding/2;c.attr("transform","translate("+e+", "+n+")")}switch(t.type){case y.DEFAULT:!function(e,t,n){e.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+b(t.type)).attr("d",`M0 ${t.height-5} v${10-t.height} q0,-5 5,-5 h${t.width-10} q5,0 5,5 v${t.height-5} H0 Z`),e.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)}(u,t,o);break;case y.ROUNDED_RECT:!function(e,t){e.append("rect").attr("id","node-"+t.id).attr("class","node-bkg node-"+b(t.type)).attr("height",t.height).attr("rx",t.padding).attr("ry",t.padding).attr("width",t.width)}(u,t);break;case y.RECT:!function(e,t){e.append("rect").attr("id","node-"+t.id).attr("class","node-bkg node-"+b(t.type)).attr("height",t.height).attr("width",t.width)}(u,t);break;case y.CIRCLE:u.attr("transform","translate("+t.width/2+", "+ +t.height/2+")"),function(e,t){e.append("circle").attr("id","node-"+t.id).attr("class","node-bkg node-"+b(t.type)).attr("r",t.width/2)}(u,t);break;case y.CLOUD:!function(e,t){const n=t.width,r=t.height,i=.15*n,a=.25*n,o=.35*n,s=.2*n;e.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+b(t.type)).attr("d",`M0 0 a${i},${i} 0 0,1 ${.25*n},${-1*n*.1}\n a${o},${o} 1 0,1 ${.4*n},${-1*n*.1}\n a${a},${a} 1 0,1 ${.35*n},${1*n*.2}\n\n a${i},${i} 1 0,1 ${.15*n},${1*r*.35}\n a${s},${s} 1 0,1 ${-1*n*.15},${1*r*.65}\n\n a${a},${i} 1 0,1 ${-1*n*.25},${.15*n}\n a${o},${o} 1 0,1 ${-1*n*.5},0\n a${i},${i} 1 0,1 ${-1*n*.25},${-1*n*.15}\n\n a${i},${i} 1 0,1 ${-1*n*.1},${-1*r*.35}\n a${s},${s} 1 0,1 ${.1*n},${-1*r*.65}\n\n H0 V0 Z`)}(u,t);break;case y.BANG:!function(e,t){const n=t.width,r=t.height,i=.15*n;e.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+b(t.type)).attr("d",`M0 0 a${i},${i} 1 0,0 ${.25*n},${-1*r*.1}\n a${i},${i} 1 0,0 ${.25*n},0\n a${i},${i} 1 0,0 ${.25*n},0\n a${i},${i} 1 0,0 ${.25*n},${1*r*.1}\n\n a${i},${i} 1 0,0 ${.15*n},${1*r*.33}\n a${.8*i},${.8*i} 1 0,0 0,${1*r*.34}\n a${i},${i} 1 0,0 ${-1*n*.15},${1*r*.33}\n\n a${i},${i} 1 0,0 ${-1*n*.25},${.15*r}\n a${i},${i} 1 0,0 ${-1*n*.25},0\n a${i},${i} 1 0,0 ${-1*n*.25},0\n a${i},${i} 1 0,0 ${-1*n*.25},${-1*r*.15}\n\n a${i},${i} 1 0,0 ${-1*n*.1},${-1*r*.33}\n a${.8*i},${.8*i} 1 0,0 0,${-1*r*.34}\n a${i},${i} 1 0,0 ${.1*n},${-1*r*.33}\n\n H0 V0 Z`)}(u,t);break;case y.HEXAGON:!function(e,t){const n=t.height,r=n/4,i=t.width-t.padding+2*r;!function(e,t,n,r,i){e.insert("polygon",":first-child").attr("points",r.map((function(e){return e.x+","+e.y})).join(" ")).attr("transform","translate("+(i.width-t)/2+", "+n+")")}(e,i,n,[{x:r,y:0},{x:i-r,y:0},{x:i,y:-n/2},{x:i-r,y:-n},{x:r,y:-n},{x:0,y:-n/2}],t)}(u,t)}m(t.id,s),t.height})(e,t,n,r),t.children&&t.children.forEach(((t,i)=>{_(e,t,n<0?i:n,r)}))}function T(e,t,n,r){t.add({group:"nodes",data:{id:e.id,labelText:e.descr,height:e.height,width:e.width,level:r,nodeId:e.id,padding:e.padding,type:e.type},position:{x:e.x,y:e.y}}),e.children&&e.children.forEach((i=>{T(i,t,n,r+1),t.add({group:"edges",data:{id:`${e.id}_${i.id}`,source:e.id,target:i.id,depth:r,section:i.section}})}))}function D(e,t){return new Promise((n=>{const a=(0,i.Ys)("body").append("div").attr("id","cy").attr("style","display:none"),s=o({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});a.remove(),T(e,s,t,0),s.nodes().forEach((function(e){e.layoutDimensions=()=>{const t=e.data();return{w:t.width,h:t.height}}})),s.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),s.ready((e=>{r.l.info("Ready",e),n(s)}))}))}o.use(s);const C={db:E,renderer:{draw:async(e,t,n,a)=>{const o=(0,r.c)();o.htmlLabels=!1,a.db.clear(),a.parser.parse(e),r.l.debug("Rendering mindmap diagram\n"+e,a.parser);const s=(0,r.c)().securityLevel;let l;"sandbox"===s&&(l=(0,i.Ys)("#i"+t));const u=("sandbox"===s?(0,i.Ys)(l.nodes()[0].contentDocument.body):(0,i.Ys)("body")).select("#"+t);u.append("g");const c=a.db.getMindmap(),h=u.append("g");h.attr("class","mindmap-edges");const d=u.append("g");d.attr("class","mindmap-nodes"),_(d,c,-1,o);const p=await D(c,o);!function(e,t){t.edges().map(((t,n)=>{const i=t.data();if(t[0]._private.bodyBounds){const a=t[0]._private.rscratch;r.l.trace("Edge: ",n,i),e.insert("path").attr("d",`M ${a.startX},${a.startY} L ${a.midX},${a.midY} L${a.endX},${a.endY} `).attr("class","edge section-edge-"+i.section+" edge-depth-"+i.depth)}}))}(h,p),function(e){e.nodes().map(((e,t)=>{const n=e.data();n.x=e.position().x,n.y=e.position().y,function(e){const t=w(e.id),n=e.x||0,r=e.y||0;t.attr("transform","translate("+n+","+r+")")}(n);const i=w(n.nodeId);r.l.info("Id:",t,"Position: (",e.position().x,", ",e.position().y,")",n),i.attr("transform",`translate(${e.position().x-n.width/2}, ${e.position().y-n.height/2})`),i.attr("attr",`apa-${t})`)}))}(p),(0,r.p)(void 0,u,o.mindmap.padding,o.mindmap.useMaxWidth)}},parser:d,styles:e=>`\n .edge {\n stroke-width: 3;\n }\n ${(e=>{let t="";for(let t=0;t{n.r(t),n.d(t,{conf:()=>r,language:()=>i});var r={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},i={defaultToken:"",tokenPostfix:".css",ws:"[ \t\n\r\f]*",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.bracket"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},{include:"@strings"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}}}}]); \ No newline at end of file diff --git a/static/js/75.js.LICENSE.txt b/static/js/75.js.LICENSE.txt deleted file mode 100644 index 8ef59e134..000000000 --- a/static/js/75.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/static/js/778.js b/static/js/778.js deleted file mode 100644 index daa6f110e..000000000 --- a/static/js/778.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 778.js.LICENSE.txt */ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[778],{27778:(E,T,R)=>{R.r(T),R.d(T,{conf:()=>A,language:()=>I});var A={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},I={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT","ABSOLUTE","ACTION","ADA","ADD","AFTER","ALL","ALLOCATE","ALTER","ALWAYS","ANALYZE","AND","ANY","ARE","AS","ASC","ASSERTION","AT","ATTACH","AUTHORIZATION","AUTOINCREMENT","AVG","BACKUP","BEFORE","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BREAK","BROWSE","BULK","BY","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","COMPUTE","CONFLICT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATE","DAY","DBCC","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DETACH","DIAGNOSTICS","DISCONNECT","DISK","DISTINCT","DISTRIBUTED","DO","DOMAIN","DOUBLE","DROP","DUMP","EACH","ELSE","END","END-EXEC","ERRLVL","ESCAPE","EXCEPT","EXCEPTION","EXCLUDE","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTERNAL","EXTRACT","FAIL","FALSE","FETCH","FILE","FILLFACTOR","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FOREIGN","FORTRAN","FOUND","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GENERATED","GET","GLOB","GLOBAL","GO","GOTO","GRANT","GROUP","GROUPS","HAVING","HOLDLOCK","HOUR","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IGNORE","IMMEDIATE","IN","INCLUDE","INDEX","INDEXED","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISNULL","ISOLATION","JOIN","KEY","KILL","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LIMIT","LINENO","LOAD","LOCAL","LOWER","MATCH","MATERIALIZED","MAX","MERGE","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NOCHECK","NONCLUSTERED","NONE","NOT","NOTHING","NOTNULL","NULL","NULLIF","NULLS","NUMERIC","OCTET_LENGTH","OF","OFF","OFFSET","OFFSETS","ON","ONLY","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OTHERS","OUTER","OUTPUT","OVER","OVERLAPS","PAD","PARTIAL","PARTITION","PASCAL","PERCENT","PIVOT","PLAN","POSITION","PRAGMA","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRINT","PRIOR","PRIVILEGES","PROC","PROCEDURE","PUBLIC","QUERY","RAISE","RAISERROR","RANGE","READ","READTEXT","REAL","RECONFIGURE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELATIVE","RELEASE","RENAME","REPLACE","REPLICATION","RESTORE","RESTRICT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","ROLLBACK","ROW","ROWCOUNT","ROWGUIDCOL","ROWS","RULE","SAVE","SAVEPOINT","SCHEMA","SCROLL","SECOND","SECTION","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION","SESSION_USER","SET","SETUSER","SHUTDOWN","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","STATISTICS","SUBSTRING","SUM","SYSTEM_USER","TABLE","TABLESAMPLE","TEMP","TEMPORARY","TEXTSIZE","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOP","TRAILING","TRAN","TRANSACTION","TRANSLATE","TRANSLATION","TRIGGER","TRIM","TRUE","TRUNCATE","TRY_CONVERT","TSEQUAL","UNBOUNDED","UNION","UNIQUE","UNKNOWN","UNPIVOT","UPDATE","UPDATETEXT","UPPER","USAGE","USE","USER","USING","VACUUM","VALUE","VALUES","VARCHAR","VARYING","VIEW","VIRTUAL","WAITFOR","WHEN","WHENEVER","WHERE","WHILE","WINDOW","WITH","WITHIN GROUP","WITHOUT","WORK","WRITE","WRITETEXT","YEAR","ZONE"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}}}}]); \ No newline at end of file diff --git a/static/js/778.js.LICENSE.txt b/static/js/778.js.LICENSE.txt deleted file mode 100644 index 8ef59e134..000000000 --- a/static/js/778.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/static/js/789afb71d327988e2fc8.woff2 b/static/js/789afb71d327988e2fc8.woff2 deleted file mode 100644 index b9cb104b4..000000000 Binary files a/static/js/789afb71d327988e2fc8.woff2 and /dev/null differ diff --git a/static/js/7947224e8a9914fa332b.woff b/static/js/7947224e8a9914fa332b.woff deleted file mode 100644 index e6e9b658d..000000000 Binary files a/static/js/7947224e8a9914fa332b.woff and /dev/null differ diff --git a/static/js/7b2ceb8dc65cbce6ef40.woff b/static/js/7b2ceb8dc65cbce6ef40.woff deleted file mode 100644 index b6e89fb40..000000000 Binary files a/static/js/7b2ceb8dc65cbce6ef40.woff and /dev/null differ diff --git a/static/js/7bbae7f0e9ca13c175ab.woff2 b/static/js/7bbae7f0e9ca13c175ab.woff2 deleted file mode 100644 index 55b718528..000000000 Binary files a/static/js/7bbae7f0e9ca13c175ab.woff2 and /dev/null differ diff --git a/static/js/7d393d382f3e7fb1c637.woff2 b/static/js/7d393d382f3e7fb1c637.woff2 deleted file mode 100644 index 349c06dc6..000000000 Binary files a/static/js/7d393d382f3e7fb1c637.woff2 and /dev/null differ diff --git a/static/js/7e873d3833eb108a0758.ttf b/static/js/7e873d3833eb108a0758.ttf deleted file mode 100644 index f522294ff..000000000 Binary files a/static/js/7e873d3833eb108a0758.ttf and /dev/null differ diff --git a/static/js/807.js b/static/js/807.js deleted file mode 100644 index f6ca5a10d..000000000 --- a/static/js/807.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[807],{61807:(e,t,i)=>{i.d(t,{diagram:()=>k});var r=i(31460),n=i(74309),s=i(29451),a=i(45625),c=(i(93628),i(17967),i(27856),function(){var e=function(e,t,i,r){for(i=i||{},r=e.length;r--;i[e[r]]=t);return i},t=[1,3],i=[1,5],r=[1,6],n=[1,7],s=[1,8],a=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],c=[1,22],l=[2,13],o=[1,26],h=[1,27],u=[1,28],d=[1,29],y=[1,30],p=[1,31],_=[1,24],g=[1,32],E=[1,33],R=[1,36],m=[71,72],f=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],I=[1,56],b=[1,57],k=[1,58],S=[1,59],T=[1,60],N=[1,61],v=[1,62],x=[62,63],A=[1,74],q=[1,70],$=[1,71],O=[1,72],w=[1,73],C=[1,75],D=[1,79],L=[1,80],F=[1,77],M=[1,78],P=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],V={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42:"INTERFACE_REQUIREMENT",43:"PERFORMANCE_REQUIREMENT",44:"PHYSICAL_REQUIREMENT",45:"DESIGN_CONSTRAINT",46:"LOW_RISK",47:"MED_RISK",48:"HIGH_RISK",49:"VERIFY_ANALYSIS",50:"VERIFY_DEMONSTRATION",51:"VERIFY_INSPECTION",52:"VERIFY_TEST",53:"ELEMENT",56:"TYPE",58:"DOCREF",60:"END_ARROW_L",62:"LINE",63:"END_ARROW_R",64:"CONTAINS",65:"COPIES",66:"DERIVES",67:"SATISFIES",68:"VERIFIES",69:"REFINES",70:"TRACES",71:"unqString",72:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function(e,t,i,r,n,s,a){var c=s.length-1;switch(n){case 6:this.$=s[c].trim(),r.setAccTitle(this.$);break;case 7:case 8:this.$=s[c].trim(),r.setAccDescription(this.$);break;case 9:r.parseDirective("%%{","open_directive");break;case 10:r.parseDirective(s[c],"type_directive");break;case 11:s[c]=s[c].trim().replace(/'/g,'"'),r.parseDirective(s[c],"arg_directive");break;case 12:r.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:r.addRequirement(s[c-3],s[c-4]);break;case 20:r.setNewReqId(s[c-2]);break;case 21:r.setNewReqText(s[c-2]);break;case 22:r.setNewReqRisk(s[c-2]);break;case 23:r.setNewReqVerifyMethod(s[c-2]);break;case 26:this.$=r.RequirementType.REQUIREMENT;break;case 27:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=r.RiskLevel.LOW_RISK;break;case 33:this.$=r.RiskLevel.MED_RISK;break;case 34:this.$=r.RiskLevel.HIGH_RISK;break;case 35:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=r.VerifyType.VERIFY_TEST;break;case 39:r.addElement(s[c-3]);break;case 40:r.setNewElementType(s[c-2]);break;case 41:r.setNewElementDocRef(s[c-2]);break;case 44:r.addRelationship(s[c-2],s[c],s[c-4]);break;case 45:r.addRelationship(s[c-2],s[c-4],s[c]);break;case 46:this.$=r.Relationships.CONTAINS;break;case 47:this.$=r.Relationships.COPIES;break;case 48:this.$=r.Relationships.DERIVES;break;case 49:this.$=r.Relationships.SATISFIES;break;case 50:this.$=r.Relationships.VERIFIES;break;case 51:this.$=r.Relationships.REFINES;break;case 52:this.$=r.Relationships.TRACES}},table:[{3:1,4:2,6:t,9:4,14:i,16:r,18:n,19:s},{1:[3]},{3:10,4:2,5:[1,9],6:t,9:4,14:i,16:r,18:n,19:s},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},e(a,[2,8]),{20:[2,9]},{3:16,4:2,6:t,9:4,14:i,16:r,18:n,19:s},{1:[2,2]},{4:21,5:c,7:17,8:l,9:4,14:i,16:r,18:n,19:s,23:18,24:19,25:20,26:23,32:25,40:o,41:h,42:u,43:d,44:y,45:p,53:_,71:g,72:E},{11:34,12:[1,35],22:R},e([12,22],[2,10]),e(a,[2,6]),e(a,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:c,7:38,8:l,9:4,14:i,16:r,18:n,19:s,23:18,24:19,25:20,26:23,32:25,40:o,41:h,42:u,43:d,44:y,45:p,53:_,71:g,72:E},{4:21,5:c,7:39,8:l,9:4,14:i,16:r,18:n,19:s,23:18,24:19,25:20,26:23,32:25,40:o,41:h,42:u,43:d,44:y,45:p,53:_,71:g,72:E},{4:21,5:c,7:40,8:l,9:4,14:i,16:r,18:n,19:s,23:18,24:19,25:20,26:23,32:25,40:o,41:h,42:u,43:d,44:y,45:p,53:_,71:g,72:E},{4:21,5:c,7:41,8:l,9:4,14:i,16:r,18:n,19:s,23:18,24:19,25:20,26:23,32:25,40:o,41:h,42:u,43:d,44:y,45:p,53:_,71:g,72:E},{4:21,5:c,7:42,8:l,9:4,14:i,16:r,18:n,19:s,23:18,24:19,25:20,26:23,32:25,40:o,41:h,42:u,43:d,44:y,45:p,53:_,71:g,72:E},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},e(m,[2,26]),e(m,[2,27]),e(m,[2,28]),e(m,[2,29]),e(m,[2,30]),e(m,[2,31]),e(f,[2,55]),e(f,[2,56]),e(a,[2,4]),{13:51,21:[1,52]},e(a,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]},{28:[2,60]},{61:55,64:I,65:b,66:k,67:S,68:T,69:N,70:v},{61:63,64:I,65:b,66:k,67:S,68:T,69:N,70:v},{11:64,22:R},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},e(x,[2,46]),e(x,[2,47]),e(x,[2,48]),e(x,[2,49]),e(x,[2,50]),e(x,[2,51]),e(x,[2,52]),{63:[1,68]},e(a,[2,5]),{5:A,29:69,30:q,33:$,35:O,37:w,39:C},{5:D,39:L,55:76,56:F,58:M},{32:81,71:g,72:E},{32:82,71:g,72:E},e(P,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:A,29:87,30:q,33:$,35:O,37:w,39:C},e(P,[2,25]),e(P,[2,39]),{31:[1,88]},{31:[1,89]},{5:D,39:L,55:90,56:F,58:M},e(P,[2,43]),e(P,[2,44]),e(P,[2,45]),{32:91,71:g,72:E},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},e(P,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},e(P,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:A,29:116,30:q,33:$,35:O,37:w,39:C},{5:A,29:117,30:q,33:$,35:O,37:w,39:C},{5:A,29:118,30:q,33:$,35:O,37:w,39:C},{5:A,29:119,30:q,33:$,35:O,37:w,39:C},{5:D,39:L,55:120,56:F,58:M},{5:D,39:L,55:121,56:F,58:M},e(P,[2,20]),e(P,[2,21]),e(P,[2,22]),e(P,[2,23]),e(P,[2,40]),e(P,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function(e,t){if(!t.recoverable){var i=new Error(e);throw i.hash=t,i}this.trace(e)},parse:function(e){var t=[0],i=[],r=[null],n=[],s=this.table,a="",c=0,l=0,o=n.slice.call(arguments,1),h=Object.create(this.lexer),u={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(u.yy[d]=this.yy[d]);h.setInput(e,u.yy),u.yy.lexer=h,u.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var y=h.yylloc;n.push(y);var p=h.options&&h.options.ranges;"function"==typeof u.yy.parseError?this.parseError=u.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,g,E,R,m,f,I,b,k,S={};;){if(g=t[t.length-1],this.defaultActions[g]?E=this.defaultActions[g]:(null==_&&(k=void 0,"number"!=typeof(k=i.pop()||h.lex()||1)&&(k instanceof Array&&(k=(i=k).pop()),k=this.symbols_[k]||k),_=k),E=s[g]&&s[g][_]),void 0===E||!E.length||!E[0]){var T;for(m in b=[],s[g])this.terminals_[m]&&m>2&&b.push("'"+this.terminals_[m]+"'");T=h.showPosition?"Parse error on line "+(c+1)+":\n"+h.showPosition()+"\nExpecting "+b.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==_?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[_]||_,line:h.yylineno,loc:y,expected:b})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+_);switch(E[0]){case 1:t.push(_),r.push(h.yytext),n.push(h.yylloc),t.push(E[1]),_=null,l=h.yyleng,a=h.yytext,c=h.yylineno,y=h.yylloc;break;case 2:if(f=this.productions_[E[1]][1],S.$=r[r.length-f],S._$={first_line:n[n.length-(f||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(f||1)].first_column,last_column:n[n.length-1].last_column},p&&(S._$.range=[n[n.length-(f||1)].range[0],n[n.length-1].range[1]]),void 0!==(R=this.performAction.apply(S,[a,l,c,u.yy,E[1],r,n].concat(o))))return R;f&&(t=t.slice(0,-1*f*2),r=r.slice(0,-1*f),n=n.slice(0,-1*f)),t.push(this.productions_[E[1]][0]),r.push(S.$),n.push(S._$),I=s[t[t.length-2]][t[t.length-1]],t.push(I);break;case 3:return!0}}return!0}},Y={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,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 e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.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:i?(i.length===r.length?this.yylloc.first_column:0)+r[r.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var i,r,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var s in n)this[s]=n[s];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,i,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),s=0;st[0].length)){if(t=i,r=s,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,n[s])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,n[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,i,r){switch(i){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 53:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:case 15:case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 54:return"qString";case 55:return t.yytext=t.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,55],inclusive:!0}}};function U(){this.yy={}}return V.lexer=Y,U.prototype=V,V.Parser=U,new U}());c.parser=c;const l=c;let o=[],h={},u={},d={},y={};const p={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},parseDirective:function(e,t,i){r.m.parseDirective(this,e,t,i)},getConfig:()=>(0,r.c)().req,addRequirement:(e,t)=>(void 0===u[e]&&(u[e]={name:e,type:t,id:h.id,text:h.text,risk:h.risk,verifyMethod:h.verifyMethod}),h={},u[e]),getRequirements:()=>u,setNewReqId:e=>{void 0!==h&&(h.id=e)},setNewReqText:e=>{void 0!==h&&(h.text=e)},setNewReqRisk:e=>{void 0!==h&&(h.risk=e)},setNewReqVerifyMethod:e=>{void 0!==h&&(h.verifyMethod=e)},setAccTitle:r.s,getAccTitle:r.g,setAccDescription:r.b,getAccDescription:r.a,addElement:e=>(void 0===y[e]&&(y[e]={name:e,type:d.type,docRef:d.docRef},r.l.info("Added new requirement: ",e)),d={},y[e]),getElements:()=>y,setNewElementType:e=>{void 0!==d&&(d.type=e)},setNewElementDocRef:e=>{void 0!==d&&(d.docRef=e)},addRelationship:(e,t,i)=>{o.push({type:e,src:t,dst:i})},getRelationships:()=>o,clear:()=>{o=[],h={},u={},d={},y={},(0,r.v)()}},_={CONTAINS:"contains",ARROW:"arrow"},g=_;let E={},R=0;const m=(e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",E.rect_min_width+"px").attr("height",E.rect_min_height+"px"),f=(e,t,i)=>{let r=E.rect_min_width/2,n=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",r).attr("y",E.rect_padding).attr("dominant-baseline","hanging"),s=0;i.forEach((e=>{0==s?n.append("tspan").attr("text-anchor","middle").attr("x",E.rect_min_width/2).attr("dy",0).text(e):n.append("tspan").attr("text-anchor","middle").attr("x",E.rect_min_width/2).attr("dy",.75*E.line_height).text(e),s++}));let a=1.5*E.rect_padding+s*E.line_height*.75;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",E.rect_min_width).attr("y1",a).attr("y2",a),{titleNode:n,y:a}},I=(e,t,i,r)=>{let n=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",E.rect_padding).attr("y",r).attr("dominant-baseline","hanging"),s=0,a=[];return i.forEach((e=>{let t=e.length;for(;t>30&&s<3;){let i=e.substring(0,30);t=(e=e.substring(30,e.length)).length,a[a.length]=i,s++}if(3==s){let e=a[a.length-1];a[a.length-1]=e.substring(0,e.length-4)+"..."}else a[a.length]=e;s=0})),a.forEach((e=>{n.append("tspan").attr("x",E.rect_padding).attr("dy",E.line_height).text(e)})),n},b=e=>e.replace(/\s/g,"").replace(/\./g,"_"),k={parser:l,db:p,renderer:{draw:(e,t,i,c)=>{E=(0,r.c)().requirement,c.db.clear(),c.parser.parse(e);const l=E.securityLevel;let o;"sandbox"===l&&(o=(0,n.Ys)("#i"+t));const h=("sandbox"===l?(0,n.Ys)(o.nodes()[0].contentDocument.body):(0,n.Ys)("body")).select(`[id='${t}']`);((e,t)=>{let i=e.append("defs").append("marker").attr("id",_.CONTAINS+"_line_ending").attr("refX",0).attr("refY",t.line_height/2).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("g");i.append("circle").attr("cx",t.line_height/2).attr("cy",t.line_height/2).attr("r",t.line_height/2).attr("fill","none"),i.append("line").attr("x1",0).attr("x2",t.line_height).attr("y1",t.line_height/2).attr("y2",t.line_height/2).attr("stroke-width",1),i.append("line").attr("y1",0).attr("y2",t.line_height).attr("x1",t.line_height/2).attr("x2",t.line_height/2).attr("stroke-width",1),e.append("defs").append("marker").attr("id",_.ARROW+"_line_ending").attr("refX",t.line_height).attr("refY",.5*t.line_height).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("path").attr("d",`M0,0\n L${t.line_height},${t.line_height/2}\n M${t.line_height},${t.line_height/2}\n L0,${t.line_height}`).attr("stroke-width",1)})(h,E);const u=new a.k({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:E.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));let d=c.db.getRequirements(),y=c.db.getElements(),p=c.db.getRelationships();var k,S,T;k=d,S=u,T=h,Object.keys(k).forEach((e=>{let t=k[e];e=b(e),r.l.info("Added new requirement: ",e);const i=T.append("g").attr("id",e),n=m(i,"req-"+e);let s=f(i,e+"_title",[`<<${t.type}>>`,`${t.name}`]);I(i,e+"_body",[`Id: ${t.id}`,`Text: ${t.text}`,`Risk: ${t.risk}`,`Verification: ${t.verifyMethod}`],s.y);const a=n.node().getBBox();S.setNode(e,{width:a.width,height:a.height,shape:"rect",id:e})})),((e,t,i)=>{Object.keys(e).forEach((r=>{let n=e[r];const s=b(r),a=i.append("g").attr("id",s),c="element-"+s,l=m(a,c);let o=f(a,c+"_title",["<>",`${r}`]);I(a,c+"_body",[`Type: ${n.type||"Not Specified"}`,`Doc Ref: ${n.docRef||"None"}`],o.y);const h=l.node().getBBox();t.setNode(s,{width:h.width,height:h.height,shape:"rect",id:s})}))})(y,u,h),((e,t)=>{e.forEach((function(e){let i=b(e.src),r=b(e.dst);t.setEdge(i,r,{relationship:e})}))})(p,u),(0,s.bK)(u),function(e,t){t.nodes().forEach((function(i){void 0!==i&&void 0!==t.node(i)&&(e.select("#"+i),e.select("#"+i).attr("transform","translate("+(t.node(i).x-t.node(i).width/2)+","+(t.node(i).y-t.node(i).height/2)+" )"))}))}(h,u),p.forEach((function(e){!function(e,t,i,s,a){const c=i.edge(b(t.src),b(t.dst)),l=(0,n.jvg)().x((function(e){return e.x})).y((function(e){return e.y})),o=e.insert("path","#"+s).attr("class","er relationshipLine").attr("d",l(c.points)).attr("fill","none");t.type==a.db.Relationships.CONTAINS?o.attr("marker-start","url("+r.e.getUrl(E.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(o.attr("stroke-dasharray","10,7"),o.attr("marker-end","url("+r.e.getUrl(E.arrowMarkerAbsolute)+"#"+g.ARROW+"_line_ending)")),((e,t,i,r)=>{const n=t.node().getTotalLength(),s=t.node().getPointAtLength(.5*n),a="rel"+R;R++;const c=e.append("text").attr("class","req relationshipLabel").attr("id",a).attr("x",s.x).attr("y",s.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(r).node().getBBox();e.insert("rect","#"+a).attr("class","req reqLabelBox").attr("x",s.x-c.width/2).attr("y",s.y-c.height/2).attr("width",c.width).attr("height",c.height).attr("fill","white").attr("fill-opacity","85%")})(e,o,0,`<<${t.type}>>`)}(h,e,u,t,c)}));const N=E.rect_padding,v=h.node().getBBox(),x=v.width+2*N,A=v.height+2*N;(0,r.i)(h,A,x,E.useMaxWidth),h.attr("viewBox",`${v.x-N} ${v.y-N} ${x} ${A}`)}},styles:e=>`\n\n marker {\n fill: ${e.relationColor};\n stroke: ${e.relationColor};\n }\n\n marker.cross {\n stroke: ${e.lineColor};\n }\n\n svg {\n font-family: ${e.fontFamily};\n font-size: ${e.fontSize};\n }\n\n .reqBox {\n fill: ${e.requirementBackground};\n fill-opacity: 1.0;\n stroke: ${e.requirementBorderColor};\n stroke-width: ${e.requirementBorderSize};\n }\n \n .reqTitle, .reqLabel{\n fill: ${e.requirementTextColor};\n }\n .reqLabelBox {\n fill: ${e.relationLabelBackground};\n fill-opacity: 1.0;\n }\n\n .req-title-line {\n stroke: ${e.requirementBorderColor};\n stroke-width: ${e.requirementBorderSize};\n }\n .relationshipLine {\n stroke: ${e.relationColor};\n stroke-width: 1;\n }\n .relationshipLabel {\n fill: ${e.relationLabelColor};\n }\n\n`}}}]); \ No newline at end of file diff --git a/static/js/80f07073e922d2bc65df.woff2 b/static/js/80f07073e922d2bc65df.woff2 deleted file mode 100644 index aec20f619..000000000 Binary files a/static/js/80f07073e922d2bc65df.woff2 and /dev/null differ diff --git a/static/js/8169508bf58f8bd92ad8.ttf b/static/js/8169508bf58f8bd92ad8.ttf deleted file mode 100644 index 4060e627d..000000000 Binary files a/static/js/8169508bf58f8bd92ad8.ttf and /dev/null differ diff --git a/static/js/828abcb200061cffbaae.ttf b/static/js/828abcb200061cffbaae.ttf deleted file mode 100644 index dc007977e..000000000 Binary files a/static/js/828abcb200061cffbaae.ttf and /dev/null differ diff --git a/static/js/853be92419a6c3766b9a.ttf b/static/js/853be92419a6c3766b9a.ttf deleted file mode 100644 index c6f9a5e7c..000000000 Binary files a/static/js/853be92419a6c3766b9a.ttf and /dev/null differ diff --git a/static/js/8684fef6e6411779f0b0.woff2 b/static/js/8684fef6e6411779f0b0.woff2 deleted file mode 100644 index c1c57683d..000000000 Binary files a/static/js/8684fef6e6411779f0b0.woff2 and /dev/null differ diff --git a/static/js/8a5f936332e8028c7278.ttf b/static/js/8a5f936332e8028c7278.ttf deleted file mode 100644 index 70d559b4e..000000000 Binary files a/static/js/8a5f936332e8028c7278.ttf and /dev/null differ diff --git a/static/js/8d593cfaa96238d5e2f8.woff b/static/js/8d593cfaa96238d5e2f8.woff deleted file mode 100644 index 7e02df963..000000000 Binary files a/static/js/8d593cfaa96238d5e2f8.woff and /dev/null differ diff --git a/static/js/8d6b6822586eea3d3b20.ttf b/static/js/8d6b6822586eea3d3b20.ttf deleted file mode 100644 index 00bff3495..000000000 Binary files a/static/js/8d6b6822586eea3d3b20.ttf and /dev/null differ diff --git a/static/js/8f1e0300e8d26fa8919d.woff2 b/static/js/8f1e0300e8d26fa8919d.woff2 deleted file mode 100644 index bc76d107f..000000000 Binary files a/static/js/8f1e0300e8d26fa8919d.woff2 and /dev/null differ diff --git a/static/js/902.js b/static/js/902.js deleted file mode 100644 index 9e2dd970a..000000000 --- a/static/js/902.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 902.js.LICENSE.txt */ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[902],{4902:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>d,language:()=>u});var a=n(1593),o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,c=(e,t,n,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of r(t))m.call(e,c)||c===n||o(e,c,{get:()=>t[c],enumerable:!(a=i(t,c))||a.enumerable});return e},l={};c(l,a,"default");var d={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:l.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:l.languages.IndentAction.Indent}}]},u={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[//,"comment","@pop"],[/|$)/,I.html=m(I.html,"i").replace("comment",I._comment).replace("tag",I._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),I.paragraph=m(I._paragraph).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",I._tag).getRegex(),I.blockquote=m(I.blockquote).replace("paragraph",I.paragraph).getRegex(),I.normal=k({},I),I.gfm=k({},I.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),I.gfm.table=m(I.gfm.table).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",I._tag).getRegex(),I.gfm.paragraph=m(I._paragraph).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",I.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",I._tag).getRegex(),I.pedantic=k({},I.normal,{html:m("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",I._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:S,paragraph:m(I.normal._paragraph).replace("hr",I.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",I.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var A={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:S,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:S,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(i="x"+i.toString(16)),n+="&#"+i+";";return n}A._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",A.punctuation=m(A.punctuation).replace(/punctuation/g,A._punctuation).getRegex(),A.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,A.escapedEmSt=/\\\*|\\_/g,A._comment=m(I._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),A.emStrong.lDelim=m(A.emStrong.lDelim).replace(/punct/g,A._punctuation).getRegex(),A.emStrong.rDelimAst=m(A.emStrong.rDelimAst,"g").replace(/punct/g,A._punctuation).getRegex(),A.emStrong.rDelimUnd=m(A.emStrong.rDelimUnd,"g").replace(/punct/g,A._punctuation).getRegex(),A._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,A._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,A._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,A.autolink=m(A.autolink).replace("scheme",A._scheme).replace("email",A._email).getRegex(),A._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,A.tag=m(A.tag).replace("comment",A._comment).replace("attribute",A._attribute).getRegex(),A._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,A._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,A._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,A.link=m(A.link).replace("label",A._label).replace("href",A._href).replace("title",A._title).getRegex(),A.reflink=m(A.reflink).replace("label",A._label).replace("ref",I._label).getRegex(),A.nolink=m(A.nolink).replace("ref",I._label).getRegex(),A.reflinkSearch=m(A.reflinkSearch,"g").replace("reflink",A.reflink).replace("nolink",A.nolink).getRegex(),A.normal=k({},A),A.pedantic=k({},A.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:m(/^!?\[(label)\]\((.*?)\)/).replace("label",A._label).getRegex(),reflink:m(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",A._label).getRegex()}),A.gfm=k({},A.normal,{escape:m(A.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\0?t[t.length-1].raw+="\n":t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?t.push(i):(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.list(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.def(e))e=e.substring(i.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(n.raw+="\n"+i.raw,n.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else if(o=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,i=e.slice(1),n=void 0;r.options.extensions.startBlock.forEach((function(e){"number"==typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),this.state.top&&(i=this.tokenizer.paragraph(o)))n=t[t.length-1],s&&"paragraph"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i),s=o.length!==e.length,e=e.substring(i.raw.length);else if(i=this.tokenizer.text(e))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return this.state.top=!0,t},s.inline=function(e,t){return void 0===t&&(t=[]),this.inlineQueue.push({src:e,tokens:t}),t},s.inlineTokens=function(e,t){var i,n,o,s=this;void 0===t&&(t=[]);var r,a,l,c=e;if(this.tokens.links){var h=Object.keys(this.tokens.links);if(h.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(c));)h.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,r.index)+"["+N("a",r[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,r.index)+"["+N("a",r[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.escapedEmSt.exec(c));)c=c.slice(0,r.index)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(a||(l=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(i=n.call({lexer:s},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,c,l))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.autolink(e,R))e=e.substring(i.raw.length),t.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(e,R))){if(o=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,i=e.slice(1),n=void 0;s.options.extensions.startInline.forEach((function(e){"number"==typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),i=this.tokenizer.inlineText(o,M))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(l=i.raw.slice(-1)),a=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(e){var d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}throw new Error(d)}}else e=e.substring(i.raw.length),t.push(i);return t},n=i,o=[{key:"rules",get:function(){return{block:I,inline:A}}}],null&&t(n.prototype,null),o&&t(n,o),Object.defineProperty(n,"prototype",{writable:!1}),i}(),P=function(){function t(t){this.options=t||e.defaults}var i=t.prototype;return i.code=function(e,t,i){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,n);null!=o&&o!==e&&(i=!0,e=o)}return e=e.replace(/\n$/,"")+"\n",n?'
'+(i?e:d(e,!0))+"
\n":"
"+(i?e:d(e,!0))+"
\n"},i.blockquote=function(e){return"
\n"+e+"
\n"},i.html=function(e){return e},i.heading=function(e,t,i,n){return this.options.headerIds?"'+e+"\n":""+e+"\n"},i.hr=function(){return this.options.xhtml?"
\n":"
\n"},i.list=function(e,t,i){var n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+e+"\n"},i.listitem=function(e){return"
  • "+e+"
  • \n"},i.checkbox=function(e){return" "},i.paragraph=function(e){return"

    "+e+"

    \n"},i.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},i.tablerow=function(e){return"\n"+e+"\n"},i.tablecell=function(e,t){var i=t.header?"th":"td";return(t.align?"<"+i+' align="'+t.align+'">':"<"+i+">")+e+"\n"},i.strong=function(e){return""+e+""},i.em=function(e){return""+e+""},i.codespan=function(e){return""+e+""},i.br=function(){return this.options.xhtml?"
    ":"
    "},i.del=function(e){return""+e+""},i.link=function(e,t,i){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return i;var n='"+i+""},i.image=function(e,t,i){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return i;var n=''+i+'":">")},i.text=function(e){return e},t}(),F=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,i){return""+i},t.image=function(e,t,i){return""+i},t.br=function(){return""},e}(),B=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var i=e,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[e];do{i=e+"-"+ ++n}while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=n,this.seen[i]=0),i},t.slug=function(e,t){void 0===t&&(t={});var i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)},e}(),H=function(){function t(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new P,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new F,this.slugger=new B}t.parse=function(e,i){return new t(i).parse(e)},t.parseInline=function(e,i){return new t(i).parseInline(e)};var i=t.prototype;return i.parse=function(e,t){void 0===t&&(t=!0);var i,n,o,s,r,a,l,c,h,d,u,p,m,f,_,v,b,C,y,w="",S=e.length;for(i=0;i0&&"paragraph"===_.tokens[0].type?(_.tokens[0].text=C+" "+_.tokens[0].text,_.tokens[0].tokens&&_.tokens[0].tokens.length>0&&"text"===_.tokens[0].tokens[0].type&&(_.tokens[0].tokens[0].text=C+" "+_.tokens[0].tokens[0].text)):_.tokens.unshift({type:"text",text:C}):f+=C),f+=this.parse(_.tokens,m),h+=this.renderer.listitem(f,b,v);w+=this.renderer.list(h,u,p);continue;case"html":w+=this.renderer.html(d.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(h=d.tokens?this.parseInline(d.tokens):d.text;i+1An error occurred:

    "+d(e.message+"",!0)+"
    ";throw e}try{var l=O.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(V.walkTokens(l,t.walkTokens)).then((function(){return H.parse(l,t)})).catch(a);V.walkTokens(l,t.walkTokens)}return H.parse(l,t)}catch(e){a(e)}}V.options=V.setOptions=function(t){var i;return k(V.defaults,t),i=V.defaults,e.defaults=i,V},V.getDefaults=o,V.defaults=e.defaults,V.use=function(){for(var e=arguments.length,t=new Array(e),i=0;iAn error occurred:

    "+d(e.message+"",!0)+"
    ";throw e}},V.Parser=H,V.parser=H.parse,V.Renderer=P,V.TextRenderer=F,V.Lexer=O,V.lexer=O.lex,V.Tokenizer=T,V.Slugger=B,V.parse=V;var W=V.options,z=V.setOptions,U=V.use,j=V.walkTokens,K=V.parseInline,q=V,$=H.parse,G=O.lex;e.Lexer=O,e.Parser=H,e.Renderer=P,e.Slugger=B,e.TextRenderer=F,e.Tokenizer=T,e.getDefaults=o,e.lexer=G,e.marked=V,e.options=W,e.parse=q,e.parseInline=K,e.parser=$,e.setOptions=z,e.use=U,e.walkTokens=j,Object.defineProperty(e,"__esModule",{value:!0})},e.amd?e(0,i):"object"==typeof exports?i(exports):i((t="undefined"!=typeof globalThis?globalThis:t||self).marked={})}(),_.Lexer||exports.Lexer,_.Parser||exports.Parser,_.Renderer||exports.Renderer,_.Slugger||exports.Slugger,_.TextRenderer||exports.TextRenderer,_.Tokenizer||exports.Tokenizer,_.getDefaults||exports.getDefaults,_.lexer||exports.lexer;var v=_.marked||exports.marked,b=(_.options||exports.options,_.parse||exports.parse,_.parseInline||exports.parseInline,_.parser||exports.parser,_.setOptions||exports.setOptions,_.use||exports.use,_.walkTokens||exports.walkTokens,i(23897)),C=i(66663),y=i(36248),w=i(95935),S=i(97295),k=i(70666);const x=Object.freeze({image:(e,t,i)=>{let n=[],o=[];return e&&(({href:e,dimensions:n}=(0,u.v1)(e)),o.push(`src="${(0,u.d9)(e)}"`)),i&&o.push(`alt="${(0,u.d9)(i)}"`),t&&o.push(`title="${(0,u.d9)(t)}"`),n.length&&(o=o.concat(n)),""},paragraph:e=>`

    ${e}

    `,link:(e,t,i)=>"string"!=typeof e?"":(e===i&&(i=(0,u.oR)(i)),t="string"==typeof t?(0,u.d9)((0,u.oR)(t)):"",`/g,">").replace(/"/g,""").replace(/'/g,"'")}" title="${t||e}">${i}`)});function L(e,t={},i={}){var o,u;const m=new f.SL;let _=!1;const w=(0,r.az)(t),L=function(t){let i;try{i=(0,b.Q)(decodeURIComponent(t))}catch(e){}return i?(i=(0,y.rs)(i,(t=>e.uris&&e.uris[t]?k.o.revive(e.uris[t]):void 0)),encodeURIComponent(JSON.stringify(i))):t},T=function(t,i){const n=e.uris&&e.uris[t];let o=k.o.revive(n);return i?t.startsWith(C.lg.data+":")?t:(o||(o=k.o.parse(t)),C.Gi.uriToBrowserUri(o).toString(!0)):o?k.o.parse(t).toString()===o.toString()?t:(o.query&&(o=o.with({query:L(o.query)})),o.toString()):t},I=new v.Renderer;I.image=x.image,I.link=x.link,I.paragraph=x.paragraph;const A=[],M=[];if(t.codeBlockRendererSync?I.code=(e,i)=>{const n=p.a.nextId(),o=t.codeBlockRendererSync(E(i),e);return M.push([n,o]),`
    ${(0,S.YU)(e)}
    `}:t.codeBlockRenderer&&(I.code=(e,i)=>{const n=p.a.nextId(),o=t.codeBlockRenderer(E(i),e);return A.push(o.then((e=>[n,e]))),`
    ${(0,S.YU)(e)}
    `}),t.actionHandler){const i=function(i){let n=i.target;if("A"===n.tagName||(n=n.parentElement,n&&"A"===n.tagName))try{let o=n.dataset.href;o&&(e.baseUri&&(o=N(k.o.from(e.baseUri),o)),t.actionHandler.callback(o,i))}catch(e){(0,h.dL)(e)}finally{i.preventDefault()}},o=t.actionHandler.disposables.add(new s.Y(w,"click")),r=t.actionHandler.disposables.add(new s.Y(w,"auxclick"));t.actionHandler.disposables.add(d.ju.any(o.event,r.event)((e=>{const t=new l.n(e);(t.leftButton||t.middleButton)&&i(t)}))),t.actionHandler.disposables.add(n.nm(w,"keydown",(e=>{const t=new a.y(e);(t.equals(10)||t.equals(3))&&i(t)})))}e.supportHtml||(i.sanitizer=t=>(e.isTrusted?t.match(/^(]+>)|(<\/\s*span>)$/):void 0)?t:"",i.sanitize=!0,i.silent=!0),i.renderer=I;let R,F=null!==(o=e.value)&&void 0!==o?o:"";if(F.length>1e5&&(F=`${F.substr(0,1e5)}…`),e.supportThemeIcons&&(F=(0,g.f$)(F)),t.fillInIncompleteTokens){const e=Object.assign(Object.assign({},v.defaults),i),t=function(e){let t,i;for(t=0;t"string"==typeof e?e:e.outerHTML)).join(""));const H=(new DOMParser).parseFromString(D(e,R),"text/html");if(H.body.querySelectorAll("img").forEach((t=>{const i=t.getAttribute("src");if(i){let n=i;try{e.baseUri&&(n=N(k.o.from(e.baseUri),n))}catch(e){}t.src=T(n,!0)}})),H.body.querySelectorAll("a").forEach((t=>{const i=t.getAttribute("href");if(t.setAttribute("href",""),!i||/^data:|javascript:/i.test(i)||/^command:/i.test(i)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(i))t.replaceWith(...t.childNodes);else{let n=T(i,!1);e.baseUri&&(n=N(k.o.from(e.baseUri),i)),t.dataset.href=n}})),w.innerHTML=D(e,H.body.innerHTML),A.length>0)Promise.all(A).then((e=>{var i,o;if(_)return;const s=new Map(e),r=w.querySelectorAll("div[data-code]");for(const e of r){const t=s.get(null!==(i=e.dataset.code)&&void 0!==i?i:"");t&&n.mc(e,t)}null===(o=t.asyncRenderCallback)||void 0===o||o.call(t)}));else if(M.length>0){const e=new Map(M),t=w.querySelectorAll("div[data-code]");for(const i of t){const t=e.get(null!==(u=i.dataset.code)&&void 0!==u?u:"");t&&n.mc(i,t)}}if(t.asyncRenderCallback)for(const e of w.getElementsByTagName("img")){const i=m.add(n.nm(e,"load",(()=>{i.dispose(),t.asyncRenderCallback()})))}return{element:w,dispose:()=>{_=!0,m.dispose()}}}function E(e){if(!e)return"";const t=e.split(/[\s+|:|,|\{|\?]/,1);return t.length?t[0]:e}function N(e,t){return/^\w[\w\d+.-]*:/.test(t)?t:e.path.endsWith("/")?(0,w.i3)(e,t).toString():(0,w.i3)((0,w.XX)(e),t).toString()}function D(e,t){const{config:i,allowedSchemes:s}=function(e){const t=[C.lg.http,C.lg.https,C.lg.mailto,C.lg.data,C.lg.file,C.lg.vscodeFileResource,C.lg.vscodeRemote,C.lg.vscodeRemoteResource];return e.isTrusted&&t.push(C.lg.command),{config:{ALLOWED_TAGS:[...n.sQ],ALLOWED_ATTR:T,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}(e);o.v5("uponSanitizeAttribute",((e,t)=>{if("style"!==t.attrName&&"class"!==t.attrName);else{if("SPAN"===e.tagName){if("style"===t.attrName)return void(t.keepAttr=/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?$/.test(t.attrValue));if("class"===t.attrName)return void(t.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue))}t.keepAttr=!1}}));const r=n._F(s);try{return o.Nw(t,Object.assign(Object.assign({},i),{RETURN_TRUSTED_TYPE:!0}))}finally{o.ok("uponSanitizeAttribute"),r.dispose()}}const T=["align","autoplay","alt","class","controls","data-code","data-href","height","href","loop","muted","playsinline","poster","src","style","target","title","width","start"];function I(e){return"string"==typeof e?e:function(e){var t;let i=null!==(t=e.value)&&void 0!==t?t:"";return i.length>1e5&&(i=`${i.substr(0,1e5)}…`),D({isTrusted:!1},v.parse(i,{renderer:M.value}).replace(/&(#\d+|[a-zA-Z]+);/g,(e=>{var t;return null!==(t=A.get(e))&&void 0!==t?t:e}))).toString()}(e)}const A=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]),M=new m.o((()=>{const e=new v.Renderer;return e.code=e=>e,e.blockquote=e=>e,e.html=e=>"",e.heading=(e,t,i)=>e+"\n",e.hr=()=>"",e.list=(e,t)=>e,e.listitem=e=>e+"\n",e.paragraph=e=>e+"\n",e.table=(e,t)=>e+t+"\n",e.tablerow=e=>e,e.tablecell=(e,t)=>e+" ",e.strong=e=>e,e.em=e=>e,e.codespan=e=>e,e.br=()=>"\n",e.del=e=>e,e.image=(e,t,i)=>"",e.text=e=>e,e.link=(e,t,i)=>i,e}));function R(e){let t="";return e.forEach((e=>{t+=e.raw})),t}function O(e){const t=e.tokens[0];if("text"===t.type){const i=t.raw.split("\n"),n=i[i.length-1];if(n.includes("`"))return function(e){return F(e,"`")}(e);if(n.includes("**"))return F(e,"**");if(n.match(/\*\w/))return F(e,"*");if(n.match(/(^|\s)__\w/))return function(e){return F(e,"__")}(e);if(n.match(/(^|\s)_\w/))return function(e){return F(e,"_")}(e);if(n.match(/(^|\s)\[.*\]\(\w*/))return function(e){return F(e,")")}(e);if(n.match(/(^|\s)\[\w/))return function(e){return F(e,"](about:blank)")}(e)}}function P(e){const t=R(e);return v.lexer(t+"\n```")}function F(e,t){const i=R(Array.isArray(e)?e:[e]);return v.lexer(i+t)[0]}function B(e){const t=R(e),i=t.split("\n");let n,o=!1;for(let e=0;e0){const e=o?i.slice(0,-1).join("\n"):t,s=!!e.match(/\|\s*$/),r=e+(s?"":"|")+`\n|${" --- |".repeat(n)}`;return v.lexer(r)}}},7448:(e,t,i)=>{"use strict";i.d(t,{n:()=>c,q:()=>h});var n=i(16268);let o=!1,s=null;function r(e){if(!e.parent||e.parent===e)return null;try{const t=e.location,i=e.parent.location;if("null"!==t.origin&&"null"!==i.origin&&t.origin!==i.origin)return o=!0,null}catch(e){return o=!0,null}return e.parent}class a{static getSameOriginWindowChain(){if(!s){s=[];let e,t=window;do{e=r(t),e?s.push({window:t,iframeElement:t.frameElement||null}):s.push({window:t,iframeElement:null}),t=e}while(t)}return s.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,n=0;const o=this.getSameOriginWindowChain();for(const e of o){if(i+=e.window.scrollY,n+=e.window.scrollX,e.window===t)break;if(!e.iframeElement)break;const o=e.iframeElement.getBoundingClientRect();i+=o.top,n+=o.left}return{top:i,left:n}}}var l=i(1432);class c{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,"dblclick"===e.type&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,"number"==typeof e.pageX?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);const t=a.getPositionOfChildWindowRelativeToAncestorWindow(window,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class h{constructor(e,t=0,i=0){if(this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t,e){const t=e,i=e;if(void 0!==t.wheelDeltaY)this.deltaY=t.wheelDeltaY/120;else if(void 0!==i.VERTICAL_AXIS&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?n.isFirefox&&!l.dz?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(void 0!==t.wheelDeltaX)n.isSafari&&l.ED?this.deltaX=-t.wheelDeltaX/120:this.deltaX=t.wheelDeltaX/120;else if(void 0!==i.HORIZONTAL_AXIS&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?n.isFirefox&&!l.dz?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}preventDefault(){var e;null===(e=this.browserEvent)||void 0===e||e.preventDefault()}stopPropagation(){var e;null===(e=this.browserEvent)||void 0===e||e.stopPropagation()}}},50795:(e,t,i)=>{"use strict";var n;i.d(t,{B:()=>n}),function(e){const t={total:0,min:Number.MAX_VALUE,max:0},i=Object.assign({},t),n=Object.assign({},t),o=Object.assign({},t);let s=0;const r={keydown:0,input:0,render:0};function a(){1===r.keydown&&(performance.mark("keydown/end"),r.keydown=2)}function l(){performance.mark("input/start"),r.input=1,d()}function c(){1===r.input&&(performance.mark("input/end"),r.input=2)}function h(){1===r.render&&(performance.mark("render/end"),r.render=2)}function d(){setTimeout(u)}function u(){2===r.keydown&&2===r.input&&2===r.render&&(performance.mark("inputlatency/end"),performance.measure("keydown","keydown/start","keydown/end"),performance.measure("input","input/start","input/end"),performance.measure("render","render/start","render/end"),performance.measure("inputlatency","inputlatency/start","inputlatency/end"),g("keydown",t),g("input",i),g("render",n),g("inputlatency",o),s++,performance.clearMarks("keydown/start"),performance.clearMarks("keydown/end"),performance.clearMarks("input/start"),performance.clearMarks("input/end"),performance.clearMarks("render/start"),performance.clearMarks("render/end"),performance.clearMarks("inputlatency/start"),performance.clearMarks("inputlatency/end"),performance.clearMeasures("keydown"),performance.clearMeasures("input"),performance.clearMeasures("render"),performance.clearMeasures("inputlatency"),r.keydown=0,r.input=0,r.render=0)}function g(e,t){const i=performance.getEntriesByName(e)[0].duration;t.total+=i,t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}function p(e){return{average:e.total/s,max:e.max,min:e.min}}function m(e){e.total=0,e.min=Number.MAX_VALUE,e.max=0}e.onKeyDown=function(){u(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),r.keydown=1,queueMicrotask(a)},e.onBeforeInput=l,e.onInput=function(){0===r.input&&l(),queueMicrotask(c)},e.onKeyUp=function(){u()},e.onSelectionChange=function(){u()},e.onRenderStart=function(){2===r.keydown&&2===r.input&&0===r.render&&(performance.mark("render/start"),r.render=1,queueMicrotask(h),d())},e.getAndClearMeasurements=function(){if(0===s)return;const e={keydown:p(t),input:p(i),render:p(n),total:p(o),sampleCount:s};return m(t),m(i),m(n),m(o),s=0,e}}(n||(n={}))},10553:(e,t,i)=>{"use strict";i.d(t,{o:()=>c,t:()=>n});var n,o=i(65321),s=i(9488),r=i(49898),a=i(5976),l=i(91741);!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(n||(n={}));class c extends a.JT{constructor(){super(),this.dispatched=!1,this.targets=new l.S,this.ignoreTargets=new l.S,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(o.nm(document,"touchstart",(e=>this.onTouchStart(e)),{passive:!1})),this._register(o.nm(document,"touchend",(e=>this.onTouchEnd(e)))),this._register(o.nm(document,"touchmove",(e=>this.onTouchMove(e)),{passive:!1}))}static addTarget(e){if(!c.isTouchDevice())return a.JT.None;c.INSTANCE||(c.INSTANCE=new c);const t=c.INSTANCE.targets.push(e);return(0,a.OF)(t)}static ignoreTarget(e){if(!c.isTouchDevice())return a.JT.None;c.INSTANCE||(c.INSTANCE=new c);const t=c.INSTANCE.ignoreTargets.push(e);return(0,a.OF)(t)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){const t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,o=e.targetTouches.length;i=c.HOLD_DELAY&&Math.abs(a.initialPageX-s.Gb(a.rollingPageX))<30&&Math.abs(a.initialPageY-s.Gb(a.rollingPageY))<30){const e=this.newGestureEvent(n.Contextmenu,a.initialTarget);e.pageX=s.Gb(a.rollingPageX),e.pageY=s.Gb(a.rollingPageY),this.dispatchEvent(e)}else if(1===i){const e=s.Gb(a.rollingPageX),i=s.Gb(a.rollingPageY),n=s.Gb(a.rollingTimestamps)-a.rollingTimestamps[0],o=e-a.rollingPageX[0],r=i-a.rollingPageY[0],l=[...this.targets].filter((e=>a.initialTarget instanceof Node&&e.contains(a.initialTarget)));this.inertia(l,t,Math.abs(o)/n,o>0?1:-1,e,Math.abs(r)/n,r>0?1:-1,i)}this.dispatchEvent(this.newGestureEvent(n.End,a.initialTarget)),delete this.activeTouches[r.identifier]}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){const i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===n.Tap){const t=(new Date).getTime();let i=0;i=t-this._lastSetTapCountTime>c.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=i}else e.type!==n.Change&&e.type!==n.Contextmenu||(this._lastSetTapCountTime=0);if(e.initialTarget instanceof Node){for(const t of this.ignoreTargets)if(t.contains(e.initialTarget))return;for(const t of this.targets)t.contains(e.initialTarget)&&(t.dispatchEvent(e),this.dispatched=!0)}}inertia(e,t,i,s,r,a,l,h){this.handle=o.jL((()=>{const o=Date.now(),d=o-t;let u=0,g=0,p=!0;i+=c.SCROLL_FRICTION*d,a+=c.SCROLL_FRICTION*d,i>0&&(p=!1,u=s*i*d),a>0&&(p=!1,g=l*a*d);const m=this.newGestureEvent(n.Change);m.translationX=u,m.translationY=g,e.forEach((e=>e.dispatchEvent(m))),p||this.inertia(e,o,i,s,r+u,a,l,h+g)}))}onTouchMove(e){const t=Date.now();for(let i=0,o=e.changedTouches.length;i3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(o.pageX),r.rollingPageY.push(o.pageY),r.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}c.SCROLL_FRICTION=-.005,c.HOLD_DELAY=700,c.CLEAR_TAP_COUNT_TIME=400,function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);s>3&&r&&Object.defineProperty(t,i,r)}([r.H],c,"isTouchDevice",null)},88609:(e,t,i)=>{"use strict";i.d(t,{gU:()=>N,YH:()=>E,Lc:()=>D});var n=i(16268),o=i(23547),s=i(65321),r=i(10553),a=i(51433),l=i(4850),c=i(59069),h=i(77352),d=i(43799),u=i(9488),g=i(4669),p=i(22258),m=i(5976),f=i(1432),_=i(63580);const v=s.$,b="selectOption.entry.template";class C{get templateId(){return b}renderTemplate(e){const t=Object.create(null);return t.root=e,t.text=s.R3(e,v(".option-text")),t.detail=s.R3(e,v(".option-detail")),t.decoratorRight=s.R3(e,v(".option-decorator-right")),t}renderElement(e,t,i){const n=i,o=e.text,s=e.detail,r=e.decoratorRight,a=e.isDisabled;n.text.textContent=o,n.detail.textContent=s||"",n.decoratorRight.innerText=r||"",a?n.root.classList.add("option-disabled"):n.root.classList.remove("option-disabled")}disposeTemplate(e){}}class y extends m.JT{constructor(e,t,i,n,o){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.styles=n,this.selectBoxOptions=o||Object.create(null),"number"!=typeof this.selectBoxOptions.minBottomMargin?this.selectBoxOptions.minBottomMargin=y.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding","string"==typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"==typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=new g.Q5,this._register(this._onDidSelect),this.registerListeners(),this.constructSelectDropDown(i),this.selected=t||0,e&&this.setOptions(e,t),this.initStyleSheet()}getHeight(){return 22}getTemplateId(){return b}constructSelectDropDown(e){this.contextViewProvider=e,this.selectDropDownContainer=s.$(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=s.R3(this.selectDropDownContainer,v(".select-box-details-pane"));const t=s.R3(this.selectDropDownContainer,v(".select-box-dropdown-container-width-control")),i=s.R3(t,v(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",s.R3(i,this.widthControlElement),this._dropDownPosition=0,this.styleElement=s.dS(this.selectDropDownContainer),this.selectDropDownContainer.setAttribute("draggable","true"),this._register(s.nm(this.selectDropDownContainer,s.tw.DRAG_START,(e=>{s.zB.stop(e,!0)})))}registerListeners(){let e;this._register(s.mu(this.selectElement,"change",(e=>{this.selected=e.target.selectedIndex,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value}),this.options[this.selected]&&this.options[this.selected].text&&(this.selectElement.title=this.options[this.selected].text)}))),this._register(s.nm(this.selectElement,s.tw.CLICK,(e=>{s.zB.stop(e),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(s.nm(this.selectElement,s.tw.MOUSE_DOWN,(e=>{s.zB.stop(e)}))),this._register(s.nm(this.selectElement,"touchstart",(t=>{e=this._isVisible}))),this._register(s.nm(this.selectElement,"touchend",(t=>{s.zB.stop(t),e?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(s.nm(this.selectElement,s.tw.KEY_DOWN,(e=>{const t=new c.y(e);let i=!1;f.dz?18!==t.keyCode&&16!==t.keyCode&&10!==t.keyCode&&3!==t.keyCode||(i=!0):(18===t.keyCode&&t.altKey||16===t.keyCode&&t.altKey||10===t.keyCode||3===t.keyCode)&&(i=!0),i&&(this.showSelectDropDown(),s.zB.stop(e,!0))})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){u.fS(this.options,e)||(this.options=e,this.selectElement.options.length=0,this._hasDetails=!1,this._cachedMaxDetailsHeight=void 0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled)),"string"==typeof e.description&&(this._hasDetails=!0)}))),void 0!==t&&(this.select(t),this._currentSelection=this.selected)}setOptionsList(){var e;null===(e=this.selectList)||void 0===e||e.splice(0,this.selectList.length,this.options)}select(e){e>=0&&ethis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.options[this.selected]&&this.options[this.selected].text&&(this.selectElement.title=this.options[this.selected].text)}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){this.container=e,e.classList.add("select-container"),e.appendChild(this.selectElement),this.styleSelectElement()}initStyleSheet(){const e=[];this.styles.listFocusBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: ${this.styles.listFocusBackground} !important; }`),this.styles.listFocusForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { color: ${this.styles.listFocusForeground} !important; }`),this.styles.decoratorRightForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.focused) .option-decorator-right { color: ${this.styles.decoratorRightForeground}; }`),this.styles.selectBackground&&this.styles.selectBorder&&this.styles.selectBorder!==this.styles.selectBackground?(e.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectBorder} } `)):this.styles.selectListBorder&&(e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectListBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectListBorder} } `)),this.styles.listHoverForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { color: ${this.styles.listHoverForeground} !important; }`),this.styles.listHoverBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: ${this.styles.listHoverBackground} !important; }`),this.styles.listFocusOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted ${this.styles.listFocusOutline} !important; outline-offset: -1.6px !important; }`),this.styles.listHoverOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { outline: 1.6px dashed ${this.styles.listHoverOutline} !important; outline-offset: -1.6px !important; }`),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled.focused { background-color: transparent !important; color: inherit !important; outline: none !important; }"),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: transparent !important; color: inherit !important; outline: none !important; }"),this.styleElement.textContent=e.join("\n")}styleSelectElement(){var e,t,i;const n=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",o=null!==(t=this.styles.selectForeground)&&void 0!==t?t:"",s=null!==(i=this.styles.selectBorder)&&void 0!==i?i:"";this.selectElement.style.backgroundColor=n,this.selectElement.style.color=o,this.selectElement.style.borderColor=s}styleList(){var e,t;const i=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",n=s.XT(this.styles.selectListBackground,i);this.selectDropDownListContainer.style.backgroundColor=n,this.selectionDetailsPane.style.backgroundColor=n;const o=null!==(t=this.styles.focusBorder)&&void 0!==t?t:"";this.selectDropDownContainer.style.outlineColor=o,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(e,t,i){const n=document.createElement("option");return n.value=e,n.text=e,n.disabled=!!i,n}showSelectDropDown(){this.selectionDetailsPane.innerText="",this.contextViewProvider&&!this._isVisible&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(e){this.contextViewProvider&&this._isVisible&&(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),e&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(e,t){return e.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(t),{dispose:()=>{try{e.removeChild(this.selectDropDownContainer)}catch(e){}}}}measureMaxDetailsHeight(){let e=0;return this.options.forEach(((t,i)=>{this.updateDetail(i),this.selectionDetailsPane.offsetHeight>e&&(e=this.selectionDetailsPane.offsetHeight)})),e}layoutSelectDropDown(e){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");const t=s.i(this.selectElement),i=getComputedStyle(this.selectElement),n=parseFloat(i.getPropertyValue("--dropdown-padding-top"))+parseFloat(i.getPropertyValue("--dropdown-padding-bottom")),o=window.innerHeight-t.top-t.height-(this.selectBoxOptions.minBottomMargin||0),r=t.top-y.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,a=this.selectElement.offsetWidth,l=this.setWidthControlElement(this.widthControlElement),c=Math.max(l,Math.round(a)).toString()+"px";this.selectDropDownContainer.style.width=c,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let h=this.selectList.contentHeight;this._hasDetails&&void 0===this._cachedMaxDetailsHeight&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());const d=this._hasDetails?this._cachedMaxDetailsHeight:0,u=h+n+d,g=Math.floor((o-n-d)/this.getHeight()),p=Math.floor((r-n-d)/this.getHeight());if(e)return!(t.top+t.height>window.innerHeight-22||t.topg&&this.options.length>g?(this._dropDownPosition=1,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectionDetailsPane.classList.remove("border-top"),this.selectionDetailsPane.classList.add("border-bottom")):(this._dropDownPosition=0,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectionDetailsPane.classList.remove("border-bottom"),this.selectionDetailsPane.classList.add("border-top")),0));if(t.top+t.height>window.innerHeight-22||t.topo&&(h=g*this.getHeight())}else u>r&&(h=p*this.getHeight());return this.selectList.layout(h),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=h+n+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=h+n+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=c,this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}return!1}setWidthControlElement(e){let t=0;if(e){let i=0,n=0;this.options.forEach(((e,t)=>{const o=e.detail?e.detail.length:0,s=e.decoratorRight?e.decoratorRight.length:0,r=e.text.length+o+s;r>n&&(i=t,n=r)})),e.textContent=this.options[i].text+(this.options[i].decoratorRight?this.options[i].decoratorRight+" ":""),t=s.w(e)}return t}createSelectList(e){if(this.selectList)return;this.selectDropDownListContainer=s.R3(e,v(".select-box-dropdown-list-container")),this.listRenderer=new C,this.selectList=new d.aV("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:e=>{let t=e.text;return e.detail&&(t+=`. ${e.detail}`),e.decoratorRight&&(t+=`. ${e.decoratorRight}`),e.description&&(t+=`. ${e.description}`),t},getWidgetAriaLabel:()=>(0,_.NC)({key:"selectBox",comment:["Behave like native select dropdown element."]},"Select Box"),getRole:()=>"option",getWidgetRole:()=>"listbox"}}),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);const t=this._register(new l.Y(this.selectDropDownListContainer,"keydown")),i=g.ju.chain(t.event).filter((()=>this.selectList.length>0)).map((e=>new c.y(e)));this._register(i.filter((e=>3===e.keyCode)).on((e=>this.onEnter(e)),this)),this._register(i.filter((e=>2===e.keyCode)).on((e=>this.onEnter(e)),this)),this._register(i.filter((e=>9===e.keyCode)).on((e=>this.onEscape(e)),this)),this._register(i.filter((e=>16===e.keyCode)).on((e=>this.onUpArrow(e)),this)),this._register(i.filter((e=>18===e.keyCode)).on((e=>this.onDownArrow(e)),this)),this._register(i.filter((e=>12===e.keyCode)).on(this.onPageDown,this)),this._register(i.filter((e=>11===e.keyCode)).on(this.onPageUp,this)),this._register(i.filter((e=>14===e.keyCode)).on(this.onHome,this)),this._register(i.filter((e=>13===e.keyCode)).on(this.onEnd,this)),this._register(i.filter((e=>e.keyCode>=21&&e.keyCode<=56||e.keyCode>=85&&e.keyCode<=113)).on(this.onCharacter,this)),this._register(s.nm(this.selectList.getHTMLElement(),s.tw.POINTER_UP,(e=>this.onPointerUp(e)))),this._register(this.selectList.onMouseOver((e=>void 0!==e.index&&this.selectList.setFocus([e.index])))),this._register(this.selectList.onDidChangeFocus((e=>this.onListFocus(e)))),this._register(s.nm(this.selectDropDownContainer,s.tw.FOCUS_OUT,(e=>{this._isVisible&&!s.jg(e.relatedTarget,this.selectDropDownContainer)&&this.onListBlur()}))),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}onPointerUp(e){if(!this.selectList.length)return;s.zB.stop(e);const t=e.target;if(!t)return;if(t.classList.contains("slider"))return;const i=t.closest(".monaco-list-row");if(!i)return;const n=Number(i.getAttribute("data-index")),o=i.classList.contains("option-disabled");n>=0&&n{for(let t=0;tthis.selected+2)this.selected+=2;else{if(t)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(e){this.selected>0&&(s.zB.stop(e,!0),this.options[this.selected-1].isDisabled&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0]))}onPageUp(e){s.zB.stop(e),this.selectList.focusPreviousPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected>0&&(this.selected--,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onHome(e){s.zB.stop(e),this.options.length<2||(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onEnd(e){s.zB.stop(e),this.options.length<2||(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onCharacter(e){const t=p.kL.toString(e.keyCode);let i=-1;for(let n=0;n{this._register(s.nm(this.selectElement,e,(e=>{this.selectElement.focus()})))})),this._register(s.mu(this.selectElement,"click",(e=>{s.zB.stop(e,!0)}))),this._register(s.mu(this.selectElement,"change",(e=>{this.selectElement.title=e.target.value,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value})}))),this._register(s.mu(this.selectElement,"keydown",(e=>{let t=!1;f.dz?18!==e.keyCode&&16!==e.keyCode&&10!==e.keyCode||(t=!0):(18===e.keyCode&&e.altKey||10===e.keyCode||3===e.keyCode)&&(t=!0),t&&e.stopPropagation()})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){this.options&&u.fS(this.options,e)||(this.options=e,this.selectElement.options.length=0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled))}))),void 0!==t&&this.select(t)}select(e){0===this.options.length?this.selected=0:e>=0&&ethis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected{this.element&&this.handleActionChangeEvent(e)})))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new x.Wi)),this._actionRunner}set actionRunner(e){this._actionRunner=e}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(r.o.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,n.isFirefox&&this._register((0,s.nm)(e,s.tw.DRAG_START,(e=>{var t;return null===(t=e.dataTransfer)||void 0===t?void 0:t.setData(o.g.TEXT,this._action.label)})))),this._register((0,s.nm)(t,r.t.Tap,(e=>this.onClick(e,!0)))),this._register((0,s.nm)(t,s.tw.MOUSE_DOWN,(e=>{i||s.zB.stop(e,!0),this._action.enabled&&0===e.button&&t.classList.add("active")}))),f.dz&&this._register((0,s.nm)(t,s.tw.CONTEXT_MENU,(e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)}))),this._register((0,s.nm)(t,s.tw.CLICK,(e=>{s.zB.stop(e,!0),this.options&&this.options.isMenu||this.onClick(e)}))),this._register((0,s.nm)(t,s.tw.DBLCLICK,(e=>{s.zB.stop(e,!0)}))),[s.tw.MOUSE_UP,s.tw.MOUSE_OUT].forEach((e=>{this._register((0,s.nm)(t,e,(e=>{s.zB.stop(e),t.classList.remove("active")})))}))}onClick(e,t=!1){var i;s.zB.stop(e,!0);const n=L.Jp(this._context)?(null===(i=this.options)||void 0===i?void 0:i.useEventAsContext)?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,n)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getTooltip(){return this.action.tooltip}updateTooltip(){var e;if(!this.element)return;const t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.updateAriaLabel(),this.options.hoverDelegate?(this.element.title="",this.customHover?this.customHover.update(t):(this.customHover=(0,a.g)(this.options.hoverDelegate,this.element,t),this._store.add(this.customHover))):this.element.title=t}updateAriaLabel(){var e;if(this.element){const t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.element.setAttribute("aria-label",t)}}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}}class N extends E{constructor(e,t,i){super(e,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass=""}render(e){super.render(e),this.element&&(this.label=(0,s.R3)(this.element,(0,s.$)("a.action-label"))),this.label&&(this._action.id===x.Z0.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&((0,s.R3)(this.element,(0,s.$)("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.action.label)}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:!this.options.label&&this.action.label&&this.options.icon&&(e=this.action.label,this.options.keybinding&&(e=_.NC({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),null!=e?e:void 0}updateClass(){var e;this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.action.class,this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):null===(e=this.label)||void 0===e||e.classList.remove("codicon")}updateEnabled(){var e,t;this.action.enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),null===(e=this.element)||void 0===e||e.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),null===(t=this.element)||void 0===t||t.classList.add("disabled"))}updateAriaLabel(){var e;if(this.label){const t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.label.setAttribute("aria-label",t)}}updateChecked(){this.label&&(this.action.checked?this.label.classList.add("checked"):this.label.classList.remove("checked"))}}class D extends E{constructor(e,t,i,n,o,s,r){super(e,t),this.selectBox=new k(i,n,o,s,r),this.selectBox.setFocusable(!1),this._register(this.selectBox),this.registerListeners()}select(e){this.selectBox.select(e)}registerListeners(){this._register(this.selectBox.onDidSelect((e=>this.runAction(e.selected,e.index))))}runAction(e,t){this.actionRunner.run(this._action,this.getActionContext(e,t))}getActionContext(e,t){return e}setFocusable(e){this.selectBox.setFocusable(e)}focus(){var e;null===(e=this.selectBox)||void 0===e||e.focus()}blur(){var e;null===(e=this.selectBox)||void 0===e||e.blur()}render(e){this.selectBox.render(e)}}},90317:(e,t,i)=>{"use strict";i.d(t,{o:()=>h});var n=i(65321),o=i(59069),s=i(88609),r=i(74741),a=i(4669),l=i(5976),c=i(98401);class h extends l.JT{constructor(e,t={}){var i,c,h,d,u,g;let p,m;switch(super(),this._actionRunnerDisposables=this._register(new l.SL),this.viewItemDisposables=this._register(new l.b2),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new a.Q5),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new a.Q5({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new a.Q5),this.onDidRun=this._onDidRun.event,this._onWillRun=this._register(new a.Q5),this.onWillRun=this._onWillRun.event,this.options=t,this._context=null!==(i=t.context)&&void 0!==i?i:null,this._orientation=null!==(c=this.options.orientation)&&void 0!==c?c:0,this._triggerKeys={keyDown:null!==(d=null===(h=this.options.triggerKeys)||void 0===h?void 0:h.keyDown)&&void 0!==d&&d,keys:null!==(g=null===(u=this.options.triggerKeys)||void 0===u?void 0:u.keys)&&void 0!==g?g:[3,10]},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new r.Wi,this._actionRunnerDisposables.add(this._actionRunner)),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",!1!==t.animated&&this.domNode.classList.add("animated"),this._orientation){case 0:p=[15],m=[17];break;case 1:p=[16],m=[18],this.domNode.className+=" vertical"}this._register(n.nm(this.domNode,n.tw.KEY_DOWN,(e=>{const t=new o.y(e);let i=!0;const n="number"==typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;p&&(t.equals(p[0])||t.equals(p[1]))?i=this.focusPrevious():m&&(t.equals(m[0])||t.equals(m[1]))?i=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?i=this.focusFirst():t.equals(13)?i=this.focusLast():t.equals(2)&&n instanceof s.YH&&n.trapsArrowNavigation?i=this.focusNext():this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:i=!1,i&&(t.preventDefault(),t.stopPropagation())}))),this._register(n.nm(this.domNode,n.tw.KEY_UP,(e=>{const t=new o.y(e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&this.updateFocusedItem()}))),this.focusTracker=this._register(n.go(this.domNode)),this._register(this.focusTracker.onDidBlur((()=>{n.vY()!==this.domNode&&n.jg(n.vY(),this.domNode)||(this._onDidBlur.fire(),this.focusedItem=void 0,this.previouslyFocusedItem=void 0,this.triggerKeyDown=!1)}))),this._register(this.focusTracker.onDidFocus((()=>this.updateFocusedItem()))),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=2?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const e=this.viewItems.find((e=>e instanceof s.YH&&e.isEnabled()));e instanceof s.YH&&e.setFocusable(!0)}else this.viewItems.forEach((e=>{e instanceof s.YH&&e.setFocusable(!1)}))}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach((i=>{t=t||e.equals(i)})),t}updateFocusedItem(){for(let e=0;et.setActionContext(e)))}get actionRunner(){return this._actionRunner}set actionRunner(e){this._actionRunner=e,this._actionRunnerDisposables.clear(),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems.forEach((t=>t.actionRunner=e))}getContainer(){return this.domNode}getAction(e){var t;if("number"==typeof e)return null===(t=this.viewItems[e])||void 0===t?void 0:t.action;if(e instanceof HTMLElement){for(;e.parentElement!==this.actionsList;){if(!e.parentElement)return;e=e.parentElement}for(let t=0;t{const i=document.createElement("li");let r;i.className="action-item",i.setAttribute("role","presentation");const a=Object.assign({hoverDelegate:this.options.hoverDelegate},t);this.options.actionViewItemProvider&&(r=this.options.actionViewItemProvider(e,a)),r||(r=new s.gU(this.context,e,a)),this.options.allowContextMenu||this.viewItemDisposables.set(r,n.nm(i,n.tw.CONTEXT_MENU,(e=>{n.zB.stop(e,!0)}))),r.actionRunner=this._actionRunner,r.setActionContext(this.context),r.render(i),this.focusable&&r instanceof s.YH&&0===this.viewItems.length&&r.setFocusable(!0),null===o||o<0||o>=this.actionsList.children.length?(this.actionsList.appendChild(i),this.viewItems.push(r)):(this.actionsList.insertBefore(i,this.actionsList.children[o]),this.viewItems.splice(o,0,r),o++)})),"number"==typeof this.focusedItem&&this.focus(this.focusedItem),this.refreshRole()}clear(){this.isEmpty()||(this.viewItems=(0,l.B9)(this.viewItems),this.viewItemDisposables.clearAndDisposeAll(),n.PO(this.actionsList),this.refreshRole())}length(){return this.viewItems.length}isEmpty(){return 0===this.viewItems.length}focus(e){let t,i=!1;if(void 0===e?i=!0:"number"==typeof e?t=e:"boolean"==typeof e&&(i=e),i&&void 0===this.focusedItem){const e=this.viewItems.findIndex((e=>e.isEnabled()));this.focusedItem=-1===e?void 0:e,this.updateFocus(void 0,void 0,!0)}else void 0!==t&&(this.focusedItem=t),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e){if(void 0===this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=t,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===r.Z0.ID));return this.updateFocus(),!0}focusPrevious(e){if(void 0===this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===r.Z0.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){var n;void 0===this.focusedItem&&this.actionsList.focus({preventScroll:t}),void 0!==this.previouslyFocusedItem&&this.previouslyFocusedItem!==this.focusedItem&&(null===(n=this.viewItems[this.previouslyFocusedItem])||void 0===n||n.blur());const o=void 0!==this.focusedItem&&this.viewItems[this.focusedItem];if(o){let n=!0;c.mf(o.focus)||(n=!1),this.options.focusOnlyEnabledItems&&c.mf(o.isEnabled)&&!o.isEnabled()&&(n=!1),o.action.id===r.Z0.ID&&(n=!1),n?(i||this.previouslyFocusedItem!==this.focusedItem)&&(o.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0)}}doTrigger(e){if(void 0===this.focusedItem)return;const t=this.viewItems[this.focusedItem];if(t instanceof s.YH){const i=null===t._context||void 0===t._context?e:t._context;this.run(t._action,i)}}run(e,t){return i=this,n=void 0,s=function*(){yield this._actionRunner.run(e,t)},new((o=void 0)||(o=Promise))((function(e,t){function r(e){try{l(s.next(e))}catch(e){t(e)}}function a(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof o?i:new o((function(e){e(i)}))).then(r,a)}l((s=s.apply(i,n||[])).next())}));var i,n,o,s}dispose(){this._context=void 0,this.viewItems=(0,l.B9)(this.viewItems),this.getContainer().remove(),super.dispose()}}},85152:(e,t,i)=>{"use strict";i.d(t,{Z9:()=>u,i7:()=>g,wW:()=>d});var n=i(65321),o=i(1432);const s=2e4;let r,a,l,c,h;function d(e){r=document.createElement("div"),r.className="monaco-aria-container";const t=()=>{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),r.appendChild(e),e};a=t(),l=t();const i=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("role","complementary"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),r.appendChild(e),e};c=i(),h=i(),e.appendChild(r)}function u(e){r&&(a.textContent!==e?(n.PO(l),p(a,e)):(n.PO(a),p(l,e)))}function g(e){r&&(o.dz?u(e):c.textContent!==e?(n.PO(h),p(c,e)):(n.PO(c),p(h,e)))}function p(e,t){n.PO(e),t.length>s&&(t=t.substr(0,s)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},43416:(e,t,i)=>{"use strict";i.d(t,{z:()=>g});var n=i(65321),o=i(70921),s=i(59069),r=i(77352),a=i(10553),l=i(56811),c=i(41264),h=i(4669),d=i(59365),u=i(5976);c.Il.white.toString(),c.Il.white.toString();class g extends u.JT{get onDidClick(){return this._onDidClick.event}constructor(e,t){super(),this._label="",this._onDidClick=this._register(new h.Q5),this.options=t,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button");const i=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,o=t.secondary?t.buttonSecondaryForeground:t.buttonForeground;this._element.style.color=o||"",this._element.style.backgroundColor=i||"",t.supportShortLabel&&(this._labelShortElement=document.createElement("div"),this._labelShortElement.classList.add("monaco-button-label-short"),this._element.appendChild(this._labelShortElement),this._labelElement=document.createElement("div"),this._labelElement.classList.add("monaco-button-label"),this._element.appendChild(this._labelElement),this._element.classList.add("monaco-text-button-with-short-label")),e.appendChild(this._element),this._register(a.o.addTarget(this._element)),[n.tw.CLICK,a.t.Tap].forEach((e=>{this._register((0,n.nm)(this._element,e,(e=>{this.enabled?this._onDidClick.fire(e):n.zB.stop(e)})))})),this._register((0,n.nm)(this._element,n.tw.KEY_DOWN,(e=>{const t=new s.y(e);let i=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._element.blur(),i=!0),i&&n.zB.stop(t,!0)}))),this._register((0,n.nm)(this._element,n.tw.MOUSE_OVER,(e=>{this._element.classList.contains("disabled")||this.updateBackground(!0)}))),this._register((0,n.nm)(this._element,n.tw.MOUSE_OUT,(e=>{this.updateBackground(!1)}))),this.focusTracker=this._register((0,n.go)(this._element)),this._register(this.focusTracker.onDidFocus((()=>{this.enabled&&this.updateBackground(!0)}))),this._register(this.focusTracker.onDidBlur((()=>{this.enabled&&this.updateBackground(!1)})))}getContentElements(e){const t=[];for(let i of(0,l.T)(e))if("string"==typeof i){if(i=i.trim(),""===i)continue;const e=document.createElement("span");e.textContent=i,t.push(e)}else t.push(i);return t}updateBackground(e){let t;t=this.options.secondary?e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:e?this.options.buttonHoverBackground:this.options.buttonBackground,t&&(this._element.style.backgroundColor=t)}get element(){return this._element}set label(e){var t;if(this._label===e)return;if((0,d.Fr)(this._label)&&(0,d.Fr)(e)&&(0,d.g_)(this._label,e))return;this._element.classList.add("monaco-text-button");const i=this.options.supportShortLabel?this._labelElement:this._element;if((0,d.Fr)(e)){const s=(0,r.ap)(e,{inline:!0});s.dispose();const a=null===(t=s.element.querySelector("p"))||void 0===t?void 0:t.innerHTML;if(a){const e=(0,o.Nw)(a,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});i.innerHTML=e}else(0,n.mc)(i)}else this.options.supportIcons?(0,n.mc)(i,...this.getContentElements(e)):i.textContent=e;"string"==typeof this.options.title?this._element.title=this.options.title:this.options.title&&(this._element.title=(0,r.et)(e)),this._label=e}get label(){return this._label}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}}},67488:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(65321),o=i(97295);class s{constructor(e,t,i){this.options=t,this.styles=i,this.count=0,this.element=(0,n.R3)(e,(0,n.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){var e,t;this.element.textContent=(0,o.WU)(this.countFormat,this.count),this.element.title=(0,o.WU)(this.titleFormat,this.count),this.element.style.backgroundColor=null!==(e=this.styles.badgeBackground)&&void 0!==e?e:"",this.element.style.color=null!==(t=this.styles.badgeForeground)&&void 0!==t?t:"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}},61364:(e,t,i)=>{"use strict";i.d(t,{C:()=>d});var n=i(65321),o=i(88609),s=i(59069),r=i(10553),a=i(74741),l=i(4669);class c extends a.Wi{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new l.Q5),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=(0,n.R3)(e,(0,n.$)(".monaco-dropdown")),this._label=(0,n.R3)(this._element,(0,n.$)(".dropdown-label"));let i=t.labelRenderer;i||(i=e=>(e.textContent=t.label||"",null));for(const e of[n.tw.CLICK,n.tw.MOUSE_DOWN,r.t.Tap])this._register((0,n.nm)(this.element,e,(e=>n.zB.stop(e,!0))));for(const e of[n.tw.MOUSE_DOWN,r.t.Tap])this._register((0,n.nm)(this._label,e,(e=>{e instanceof MouseEvent&&(e.detail>1||0!==e.button)||(this.visible?this.hide():this.show())})));this._register((0,n.nm)(this._label,n.tw.KEY_UP,(e=>{const t=new s.y(e);(t.equals(3)||t.equals(10))&&(n.zB.stop(e,!0),this.visible?this.hide():this.show())})));const o=i(this._label);o&&this._register(o),this._register(r.o.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class h extends c{constructor(e,t){super(e,t),this._actions=[],this._contextMenuProvider=t.contextMenuProvider,this.actions=t.actions||[],this.actionProvider=t.actionProvider,this.menuClassName=t.menuClassName||"",this.menuAsChild=!!t.menuAsChild}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this.actionProvider?this.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:(e,t)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e,t):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this.menuClassName,onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this.menuAsChild?this.element:void 0})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}class d extends o.YH{constructor(e,t,i,n=Object.create(null)){super(null,e,n),this.actionItem=null,this._onDidChangeVisibility=this._register(new l.Q5),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=n,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=Array.isArray(this.menuActionsOrProvider),i={contextMenuProvider:this.contextMenuProvider,labelRenderer:e=>{this.element=(0,n.R3)(e,(0,n.$)("a.action-label"));let t=[];return"string"==typeof this.options.classNames?t=this.options.classNames.split(/\s+/g).filter((e=>!!e)):this.options.classNames&&(t=this.options.classNames),t.find((e=>"icon"===e))||t.push("codicon"),this.element.classList.add(...t),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this.element.title=this._action.label||"",this.element.ariaLabel=this._action.label||"",null},menuAsChild:this.options.menuAsChild,actions:t?this.menuActionsOrProvider:void 0,actionProvider:t?void 0:this.menuActionsOrProvider};if(this.dropdownMenu=this._register(new h(e,i)),this._register(this.dropdownMenu.onDidChangeVisibility((e=>{var t;null===(t=this.element)||void 0===t||t.setAttribute("aria-expanded",`${e}`),this._onDidChangeVisibility.fire(e)}))),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const e=this;this.dropdownMenu.menuOptions=Object.assign(Object.assign({},this.dropdownMenu.menuOptions),{get anchorAlignment(){return e.options.anchorAlignmentProvider()}})}this.updateTooltip(),this.updateEnabled()}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:this.action.label&&(e=this.action.label),null!=e?e:void 0}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}show(){var e;null===(e=this.dropdownMenu)||void 0===e||e.show()}updateEnabled(){var e,t;const i=!this.action.enabled;null===(e=this.actionItem)||void 0===e||e.classList.toggle("disabled",i),null===(t=this.element)||void 0===t||t.classList.toggle("disabled",i)}}},3070:(e,t,i)=>{"use strict";i.d(t,{V:()=>d});var n=i(65321),o=i(51307),s=i(77927),r=i(93794),a=i(4669),l=i(63580),c=i(5976);const h=l.NC("defaultLabel","input");class d extends r.${constructor(e,t,i){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=new c.SL,this.additionalToggles=[],this._onDidOptionChange=this._register(new a.Q5),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new a.Q5),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new a.Q5),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new a.Q5),this._onKeyUp=this._register(new a.Q5),this._onCaseSensitiveKeyDown=this._register(new a.Q5),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new a.Q5),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||h,this.showCommonFindToggles=!!i.showCommonFindToggles;const r=i.appendCaseSensitiveLabel||"",l=i.appendWholeWordsLabel||"",d=i.appendRegexLabel||"",u=i.history||[],g=!!i.flexibleHeight,p=!!i.flexibleWidth,m=i.flexibleMaxHeight;if(this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new s.pG(this.domNode,t,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},history:u,showHistoryHint:i.showHistoryHint,flexibleHeight:g,flexibleWidth:p,flexibleMaxHeight:m,inputBoxStyles:i.inputBoxStyles})),this.showCommonFindToggles){this.regex=this._register(new o.eH(Object.assign({appendTitle:d,isChecked:!1},i.toggleStyles))),this._register(this.regex.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.regex.onKeyDown((e=>{this._onRegexKeyDown.fire(e)}))),this.wholeWords=this._register(new o.Qx(Object.assign({appendTitle:l,isChecked:!1},i.toggleStyles))),this._register(this.wholeWords.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this.caseSensitive=this._register(new o.rk(Object.assign({appendTitle:r,isChecked:!1},i.toggleStyles))),this._register(this.caseSensitive.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.caseSensitive.onKeyDown((e=>{this._onCaseSensitiveKeyDown.fire(e)})));const e=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,(t=>{if(t.equals(15)||t.equals(17)||t.equals(9)){const i=e.indexOf(document.activeElement);if(i>=0){let o=-1;t.equals(17)?o=(i+1)%e.length:t.equals(15)&&(o=0===i?e.length-1:i-1),t.equals(9)?(e[i].blur(),this.inputBox.focus()):o>=0&&e[o].focus(),n.zB.stop(t,!0)}}}))}this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this.showCommonFindToggles?"":"none",this.caseSensitive&&this.controls.append(this.caseSensitive.domNode),this.wholeWords&&this.controls.appendChild(this.wholeWords.domNode),this.regex&&this.controls.appendChild(this.regex.domNode),this.setAdditionalToggles(null==i?void 0:i.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),null==e||e.appendChild(this.domNode),this._register(n.nm(this.inputBox.inputElement,"compositionstart",(e=>{this.imeSessionInProgress=!0}))),this._register(n.nm(this.inputBox.inputElement,"compositionend",(e=>{this.imeSessionInProgress=!1,this._onInput.fire()}))),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}get onDidChange(){return this.inputBox.onDidChange}layout(e){this.inputBox.layout(),this.updateInputBoxPadding(e.collapsedFindWidget)}enable(){var e,t,i;this.domNode.classList.remove("disabled"),this.inputBox.enable(),null===(e=this.regex)||void 0===e||e.enable(),null===(t=this.wholeWords)||void 0===t||t.enable(),null===(i=this.caseSensitive)||void 0===i||i.enable();for(const e of this.additionalToggles)e.enable()}disable(){var e,t,i;this.domNode.classList.add("disabled"),this.inputBox.disable(),null===(e=this.regex)||void 0===e||e.disable(),null===(t=this.wholeWords)||void 0===t||t.disable(),null===(i=this.caseSensitive)||void 0===i||i.disable();for(const e of this.additionalToggles)e.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}setAdditionalToggles(e){for(const e of this.additionalToggles)e.domNode.remove();this.additionalToggles=[],this.additionalTogglesDisposables.dispose(),this.additionalTogglesDisposables=new c.SL;for(const t of null!=e?e:[])this.additionalTogglesDisposables.add(t),this.controls.appendChild(t.domNode),this.additionalTogglesDisposables.add(t.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()}))),this.additionalToggles.push(t);this.additionalToggles.length>0&&(this.controls.style.display=""),this.updateInputBoxPadding()}updateInputBoxPadding(e=!1){var t,i,n,o,s,r;this.inputBox.paddingRight=e?0:(null!==(i=null===(t=this.caseSensitive)||void 0===t?void 0:t.width())&&void 0!==i?i:0)+(null!==(o=null===(n=this.wholeWords)||void 0===n?void 0:n.width())&&void 0!==o?o:0)+(null!==(r=null===(s=this.regex)||void 0===s?void 0:s.width())&&void 0!==r?r:0)+this.additionalToggles.reduce(((e,t)=>e+t.width()),0)}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){var e,t;return null!==(t=null===(e=this.caseSensitive)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setCaseSensitive(e){this.caseSensitive&&(this.caseSensitive.checked=e)}getWholeWords(){var e,t;return null!==(t=null===(e=this.wholeWords)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setWholeWords(e){this.wholeWords&&(this.wholeWords.checked=e)}getRegex(){var e,t;return null!==(t=null===(e=this.regex)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setRegex(e){this.regex&&(this.regex.checked=e,this.validate())}focusOnCaseSensitive(){var e;null===(e=this.caseSensitive)||void 0===e||e.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(e){this.inputBox.showMessage(e)}clearMessage(){this.inputBox.hideMessage()}}},51307:(e,t,i)=>{"use strict";i.d(t,{Qx:()=>h,eH:()=>d,rk:()=>c});var n=i(82900),o=i(73046),s=i(63580);const r=s.NC("caseDescription","Match Case"),a=s.NC("wordsDescription","Match Whole Word"),l=s.NC("regexDescription","Use Regular Expression");class c extends n.Z{constructor(e){super({icon:o.l.caseSensitive,title:r+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class h extends n.Z{constructor(e){super({icon:o.l.wholeWord,title:a+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class d extends n.Z{constructor(e){super({icon:o.l.regex,title:l+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}},34650:(e,t,i)=>{"use strict";i.d(t,{q:()=>r});var n=i(65321),o=i(56811),s=i(36248);class r{constructor(e,t){var i;this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=null!==(i=null==t?void 0:t.supportIcons)&&void 0!==i&&i,this.domNode=n.R3(e,n.$("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",n){e||(e=""),n&&(e=r.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===i&&s.fS(this.highlights,t)||(this.text=e,this.title=i,this.highlights=t,this.render())}render(){const e=[];let t=0;for(const i of this.highlights){if(i.end===i.start)continue;if(t{n="\r\n"===e?-1:0,o+=i;for(const e of t)e.end<=o||(e.start>=o&&(e.start+=n),e.end>=o&&(e.end+=n));return i+=n,"⏎"}))}}},30986:(e,t,i)=>{"use strict";i.d(t,{S:()=>c,c:()=>l});var n=i(65321),o=i(59069),s=i(9802),r=i(5976);const a=n.$;class l extends r.JT{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new s.s$(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class c extends r.JT{static render(e,t,i){return new c(e,t,i)}constructor(e,t,i){super(),this.actionContainer=n.R3(e,a("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=n.R3(this.actionContainer,a("a.action")),this.action.setAttribute("role","button"),t.iconClass&&n.R3(this.action,a(`span.icon.${t.iconClass}`)),n.R3(this.action,a("span")).textContent=i?`${t.label} (${i})`:t.label,this._register(n.nm(this.actionContainer,n.tw.CLICK,(e=>{e.stopPropagation(),e.preventDefault(),t.run(this.actionContainer)}))),this._register(n.nm(this.actionContainer,n.tw.KEY_DOWN,(e=>{const i=new o.y(e);(i.equals(3)||i.equals(10))&&(e.stopPropagation(),e.preventDefault(),t.run(this.actionContainer))}))),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}},59834:(e,t,i)=>{"use strict";i.d(t,{g:()=>h});var n=i(65321),o=i(34650),s=i(51433),r=i(5976),a=i(36248),l=i(61134);class c{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class h extends r.JT{constructor(e,t){super(),this.customHovers=new Map,this.creationOptions=t,this.domNode=this._register(new c(n.R3(e,n.$(".monaco-icon-label")))),this.labelContainer=n.R3(this.domNode.element,n.$(".monaco-icon-label-container"));const i=n.R3(this.labelContainer,n.$("span.monaco-icon-name-container"));(null==t?void 0:t.supportHighlights)||(null==t?void 0:t.supportIcons)?this.nameNode=new u(i,!!t.supportIcons):this.nameNode=new d(i),this.hoverDelegate=null==t?void 0:t.hoverDelegate}get element(){return this.domNode.element}setLabel(e,t,i){const n=["monaco-icon-label"],s=["monaco-icon-label-container"];if(i&&(i.extraClasses&&n.push(...i.extraClasses),i.italic&&n.push("italic"),i.strikethrough&&n.push("strikethrough"),i.disabledCommand&&s.push("disabled")),this.domNode.className=n.join(" "),this.labelContainer.className=s.join(" "),this.setupHover((null==i?void 0:i.descriptionTitle)?this.labelContainer:this.element,null==i?void 0:i.title),this.nameNode.setLabel(e,i),t||this.descriptionNode){const e=this.getOrCreateDescriptionNode();e instanceof o.q?(e.set(t||"",i?i.descriptionMatches:void 0,void 0,null==i?void 0:i.labelEscapeNewLines),this.setupHover(e.element,null==i?void 0:i.descriptionTitle)):(e.textContent=t&&(null==i?void 0:i.labelEscapeNewLines)?o.q.escapeNewLines(t,[]):t||"",this.setupHover(e.element,(null==i?void 0:i.descriptionTitle)||""),e.empty=!t)}}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),t)if(this.hoverDelegate){const i=(0,s.g)(this.hoverDelegate,e,t);i&&this.customHovers.set(e,i)}else(0,s.O)(e,t);else e.removeAttribute("title")}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}getOrCreateDescriptionNode(){var e;if(!this.descriptionNode){const t=this._register(new c(n.R3(this.labelContainer,n.$("span.monaco-icon-description-container"))));(null===(e=this.creationOptions)||void 0===e?void 0:e.supportDescriptionHighlights)?this.descriptionNode=new o.q(n.R3(t.element,n.$("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons}):this.descriptionNode=this._register(new c(n.R3(t.element,n.$("span.label-description"))))}return this.descriptionNode}}class d{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,a.fS)(this.options,t))if(this.label=e,this.options=t,"string"==typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=n.R3(this.container,n.$("a.label-name",{id:null==t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i{const o={start:n,end:n+e.length},s=i.map((e=>l.e.intersect(o,e))).filter((e=>!l.e.isEmpty(e))).map((({start:e,end:t})=>({start:e-n,end:t-n})));return n=o.end+t.length,s}))}(e,i,null==t?void 0:t.matches);for(let r=0;r{"use strict";i.d(t,{O:()=>u,g:()=>p});var n=i(65321),o=i(15393),s=i(71050),r=i(59365),a=i(21212),l=i(5976),c=i(98401),h=i(63580),d=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function u(e,t){(0,c.HD)(t)?e.title=(0,a.x$)(t):(null==t?void 0:t.markdownNotSupportedFallback)?e.title=t.markdownNotSupportedFallback:e.removeAttribute("title")}class g{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}update(e,t,i){var n;return d(this,void 0,void 0,(function*(){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let o;if(void 0===e||(0,c.HD)(e)||e instanceof HTMLElement)o=e;else if((0,c.mf)(e.markdown)){this._hoverWidget||this.show((0,h.NC)("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new s.A;const i=this._cancellationTokenSource.token;if(o=yield e.markdown(i),void 0===o&&(o=e.markdownNotSupportedFallback),this.isDisposed||i.isCancellationRequested)return}else o=null!==(n=e.markdown)&&void 0!==n?n:e.markdownNotSupportedFallback;this.show(o,t,i)}))}show(e,t,i){const n=this._hoverWidget;if(this.hasContent(e)){const o=Object.assign({content:e,target:this.target,showPointer:"element"===this.hoverDelegate.placement,hoverPosition:2,skipFadeInAnimation:!this.fadeInAnimation||!!n},i);this._hoverWidget=this.hoverDelegate.showHover(o,t)}null==n||n.dispose()}hasContent(e){return!(!e||(0,r.Fr)(e)&&!e.value)}get isDisposed(){var e;return null===(e=this._hoverWidget)||void 0===e?void 0:e.isDisposed}dispose(){var e,t;null===(e=this._hoverWidget)||void 0===e||e.dispose(),null===(t=this._cancellationTokenSource)||void 0===t||t.dispose(!0),this._cancellationTokenSource=void 0}}function p(e,t,i,s){let r,a;const c=(t,i)=>{var n;const o=void 0!==a;t&&(null==a||a.dispose(),a=void 0),i&&(null==r||r.dispose(),r=void 0),o&&(null===(n=e.onDidHideHover)||void 0===n||n.call(e))},h=(n,r,l)=>new o._F((()=>d(this,void 0,void 0,(function*(){a&&!a.isDisposed||(a=new g(e,l||t,n>0),yield a.update(i,r,s))}))),n),u=n.nm(t,n.tw.MOUSE_OVER,(()=>{if(r)return;const i=new l.SL;i.add(n.nm(t,n.tw.MOUSE_LEAVE,(e=>c(!1,e.fromElement===t)),!0)),i.add(n.nm(t,n.tw.MOUSE_DOWN,(()=>c(!0,!0)),!0));const o={targetElements:[t],dispose:()=>{}};if(void 0===e.placement||"mouse"===e.placement){const e=e=>{o.x=e.x+10,e.target instanceof HTMLElement&&e.target.classList.contains("action-label")&&c(!0,!0)};i.add(n.nm(t,n.tw.MOUSE_MOVE,e,!0))}i.add(h(e.delay,!1,o)),r=i}),!0);return{show:e=>{c(!1,!0),h(0,e)},hide:()=>{c(!0,!0)},update:(e,t)=>d(this,void 0,void 0,(function*(){i=e,yield null==a?void 0:a.update(i,void 0,t)})),dispose:()=>{u.dispose(),c(!0,!0)}}}},56811:(e,t,i)=>{"use strict";i.d(t,{T:()=>r});var n=i(65321),o=i(25670);const s=new RegExp(`(\\\\)?\\$\\((${o.k.iconNameExpression}(?:${o.k.iconModifierExpression})?)\\)`,"g");function r(e){const t=new Array;let i,n=0,o=0;for(;null!==(i=s.exec(e));){o=i.index||0,n{"use strict";i.d(t,{pG:()=>v,g4:()=>f});var n=i(65321),o=i(4850),s=i(48764),r=i(90317),a=i(85152),l=i(9802),c=i(93794),h=i(4669);class d{constructor(e,t=0,i=e.length,n=t-1){this.items=e,this.start=t,this.end=i,this.index=n}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class u{constructor(e=[],t=10){this._initialize(e),this._limit=t,this._onChange()}getHistory(){return this._elements}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._navigator.next()}previous(){return 0!==this._currentPosition()?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}isLast(){return this._currentPosition()>=this._elements.length-1}isNowhere(){return null===this._navigator.current()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new d(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach((t=>e.push(t))),e}}var g=i(36248),p=i(63580);const m=n.$,f={inputBackground:"#3C3C3C",inputForeground:"#CCCCCC",inputValidationInfoBorder:"#55AAFF",inputValidationInfoBackground:"#063B49",inputValidationWarningBorder:"#B89500",inputValidationWarningBackground:"#352A05",inputValidationErrorBorder:"#BE1100",inputValidationErrorBackground:"#5A1D1D",inputBorder:void 0,inputValidationErrorForeground:void 0,inputValidationInfoForeground:void 0,inputValidationWarningForeground:void 0};class _ extends c.${constructor(e,t,i){var s;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new h.Q5),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new h.Q5),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=null!==(s=this.options.tooltip)&&void 0!==s?s:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=n.R3(e,m(".monaco-inputbox.idle"));const a=this.options.flexibleHeight?"textarea":"input",c=n.R3(this.element,m(".ibwrapper"));if(this.input=n.R3(c,m(a+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,(()=>this.element.classList.add("synthetic-focus"))),this.onblur(this.input,(()=>this.element.classList.remove("synthetic-focus"))),this.options.flexibleHeight){this.maxHeight="number"==typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=n.R3(c,m("div.mirror")),this.mirror.innerText=" ",this.scrollableElement=new l.NB(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),n.R3(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll((e=>this.input.scrollTop=e.scrollTop)));const t=this._register(new o.Y(document,"selectionchange")),i=h.ju.filter(t.event,(()=>{const e=document.getSelection();return(null==e?void 0:e.anchorNode)===c}));this._register(i(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,(()=>this.onValueChange())),this.onblur(this.input,(()=>this.onBlur())),this.onfocus(this.input,(()=>this.onFocus())),this._register(this.ignoreGesture(this.input)),setTimeout((()=>this.updateMirror()),0),this.options.actions&&(this.actionbar=this._register(new r.o(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.input.title=e}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return"number"==typeof this.cachedHeight?this.cachedHeight:n.wn(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===this.input}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if("number"!=typeof this.cachedContentHeight||"number"!=typeof this.cachedHeight||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){if("open"===this.state&&(0,g.fS)(this.message,e))return;this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${n.XT(i.border,"transparent")}`,this.message.content&&(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),null==e?void 0:e.type}stylesForType(e){const t=this.options.inputBoxStyles;switch(e){case 1:return{border:t.inputValidationInfoBorder,background:t.inputValidationInfoBackground,foreground:t.inputValidationInfoForeground};case 2:return{border:t.inputValidationWarningBorder,background:t.inputValidationWarningBackground,foreground:t.inputValidationWarningForeground};default:return{border:t.inputValidationErrorBorder,background:t.inputValidationErrorBackground,foreground:t.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e;const t=()=>e.style.width=n.w(this.element)+"px";let i;this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:i=>{var o,r;if(!this.message)return null;e=n.R3(i,m(".monaco-inputbox-container")),t();const a={inline:!0,className:"monaco-inputbox-message"},l=this.message.formatContent?(0,s.BO)(this.message.content,a):(0,s.IY)(this.message.content,a);l.classList.add(this.classForType(this.message.type));const c=this.stylesForType(this.message.type);return l.style.backgroundColor=null!==(o=c.background)&&void 0!==o?o:"",l.style.color=null!==(r=c.foreground)&&void 0!==r?r:"",l.style.border=c.border?`1px solid ${c.border}`:"",n.R3(e,l),null},onHide:()=>{this.state="closed"},layout:t}),i=3===this.message.type?p.NC("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?p.NC("alertWarningMessage","Warning: {0}",this.message.content):p.NC("alertInfoMessage","Info: {0}",this.message.content),a.Z9(i),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";(e+t).replace(/\u000c/g,"")?this.mirror.textContent=e+t:this.mirror.innerText=" ",this.layout()}applyStyles(){var e,t,i;const o=this.options.inputBoxStyles,s=null!==(e=o.inputBackground)&&void 0!==e?e:"",r=null!==(t=o.inputForeground)&&void 0!==t?t:"",a=null!==(i=o.inputBorder)&&void 0!==i?i:"";this.element.style.backgroundColor=s,this.element.style.color=r,this.input.style.backgroundColor="inherit",this.input.style.color=r,this.element.style.border=`1px solid ${n.XT(a,"transparent")}`}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=n.wn(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,o=t.value;null!==i&&null!==n&&(this.value=o.substr(0,i)+e+o.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){var e;this._hideMessage(),this.message=null,null===(e=this.actionbar)||void 0===e||e.dispose(),super.dispose()}}class v extends _{constructor(e,t,i){const n=p.NC({key:"history.inputbox.hint",comment:["Text will be prefixed with ⇅ plus a single space, then used as a hint where input field keeps history"]},"for history"),o=` or ⇅ ${n}`,s=` (⇅ ${n})`;super(e,t,i),this._onDidFocus=this._register(new h.Q5),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new h.Q5),this.onDidBlur=this._onDidBlur.event,this.history=new u(i.history,100);const r=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(o)&&!this.placeholder.endsWith(s)&&this.history.getHistory().length){const e=this.placeholder.endsWith(")")?o:s,t=this.placeholder+e;i.showPlaceholderOnFocus&&document.activeElement!==this.input?this.placeholder=t:this.setPlaceHolder(t)}};this.observer=new MutationObserver(((e,t)=>{e.forEach((e=>{e.target.textContent||r()}))})),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,(()=>r())),this.onblur(this.input,(()=>{const e=e=>{if(this.placeholder.endsWith(e)){const t=this.placeholder.slice(0,this.placeholder.length-e.length);return i.showPlaceholderOnFocus?this.placeholder=t:this.setPlaceHolder(t),!0}return!1};e(s)||e(o)}))}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(e){this.value&&(e||this.value!==this.getCurrentValue())&&this.history.add(this.value)}isAtLastInHistory(){return this.history.isLast()}isNowhereInHistory(){return this.history.isNowhere()}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),this.value=null!=e?e:"",a.i7(this.value?this.value:p.NC("clearedInput","Cleared Input"))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,a.i7(this.value))}onBlur(){super.onBlur(),this._onDidBlur.fire()}onFocus(){super.onFocus(),this._onDidFocus.fire()}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()}}},55496:(e,t,i)=>{"use strict";i.d(t,{F:()=>l,e:()=>c});var n=i(65321),o=i(8030),s=i(36248),r=i(63580);const a=n.$,l={keybindingLabelBackground:void 0,keybindingLabelForeground:void 0,keybindingLabelBorder:void 0,keybindingLabelBottomBorder:void 0,keybindingLabelShadow:void 0};class c{constructor(e,t,i){this.os=t,this.keyElements=new Set,this.options=i||Object.create(null);const o=this.options.keybindingLabelForeground;this.domNode=n.R3(e,a(".monaco-keybinding")),o&&(this.domNode.style.color=o),this.didEverRender=!1,e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t){this.didEverRender&&this.keybinding===e&&c.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())}render(){var e;if(this.clear(),this.keybinding){const t=this.keybinding.getChords();t[0]&&this.renderChord(this.domNode,t[0],this.matches?this.matches.firstPart:null);for(let e=1;e{"use strict";i.d(t,{kX:()=>S,Bv:()=>E});var n=i(23547),o=i(65321),s=i(4850),r=i(10553),a=i(9802),l=i(9488),c=i(15393),h=i(49898),d=i(4669),u=i(5976),g=i(61134),p=i(76633);function m(e,t){const i=[];for(const n of t){if(e.start>=n.range.end)continue;if(e.end({range:f(e.range,n),size:e.size}))),r=i.map(((t,i)=>({range:{start:e+i,end:e+i+1},size:t.size})));this.groups=function(...e){return function(e){const t=[];let i=null;for(const n of e){const e=n.range.start,o=n.range.end,s=n.size;i&&s===i.size?i.range.end=o:(i={range:{start:e,end:o},size:s},t.push(i))}return t}(e.reduce(((e,t)=>e.concat(t)),[]))}(o,r,s),this._size=this.groups.reduce(((e,t)=>e+t.size*(t.range.end-t.range.start)),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;let t=0,i=0;for(const n of this.groups){const o=n.range.end-n.range.start,s=i+o*n.size;if(e{for(const i of e)this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null})),this.cache.clear(),this.transactionNodesPendingRemoval.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var b=i(17301),C=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};const y={CurrentDragAndDropData:void 0},w={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:e=>[e],getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class S{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class k{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class x{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;ti,(null==e?void 0:e.getPosInSet)?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(e,t)=>t+1,(null==e?void 0:e.getRole)?this.getRole=e.getRole.bind(e):this.getRole=e=>"listitem",(null==e?void 0:e.isChecked)?this.isChecked=e.isChecked.bind(e):this.isChecked=e=>{}}}class E{get contentHeight(){return this.rangeMap.size}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,o.FK)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}constructor(e,t,i,n=w){var s,l,h,g,m,f,b,C,y,S,k,x;if(this.virtualDelegate=t,this.domId="list_id_"+ ++E.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new c.vp(50),this.splicing=!1,this.dragOverAnimationStopDisposable=u.JT.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=u.JT.None,this.onDragLeaveTimeout=u.JT.None,this.disposables=new u.SL,this._onDidChangeContentHeight=new d.Q5,this._horizontalScrolling=!1,n.horizontalScrolling&&n.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new _;for(const e of i)this.renderers.set(e.templateId,e);this.cache=this.disposables.add(new v(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!=typeof n.mouseSupport||n.mouseSupport),this._horizontalScrolling=null!==(s=n.horizontalScrolling)&&void 0!==s?s:w.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight=void 0===n.additionalScrollHeight?0:n.additionalScrollHeight,this.accessibilityProvider=new L(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",(null!==(l=n.transformOptimization)&&void 0!==l?l:w.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(r.o.addTarget(this.rowsContainer)),this.scrollable=new p.Rm({forceIntegerValues:!0,smoothScrollDuration:null!==(h=n.smoothScrolling)&&void 0!==h&&h?125:0,scheduleAtNextAnimationFrame:e=>(0,o.jL)(e)}),this.scrollableElement=this.disposables.add(new a.$Z(this.rowsContainer,{alwaysConsumeMouseWheel:null!==(g=n.alwaysConsumeMouseWheel)&&void 0!==g?g:w.alwaysConsumeMouseWheel,horizontal:1,vertical:null!==(m=n.verticalScrollMode)&&void 0!==m?m:w.verticalScrollMode,useShadows:null!==(f=n.useShadows)&&void 0!==f?f:w.useShadows,mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity,scrollByPage:n.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,o.nm)(this.rowsContainer,r.t.Change,(e=>this.onTouchChange(e)))),this.disposables.add((0,o.nm)(this.scrollableElement.getDomNode(),"scroll",(e=>e.target.scrollTop=0))),this.disposables.add((0,o.nm)(this.domNode,"dragover",(e=>this.onDragOver(this.toDragEvent(e))))),this.disposables.add((0,o.nm)(this.domNode,"drop",(e=>this.onDrop(this.toDragEvent(e))))),this.disposables.add((0,o.nm)(this.domNode,"dragleave",(e=>this.onDragLeave(this.toDragEvent(e))))),this.disposables.add((0,o.nm)(this.domNode,"dragend",(e=>this.onDragEnd(e)))),this.setRowLineHeight=null!==(b=n.setRowLineHeight)&&void 0!==b?b:w.setRowLineHeight,this.setRowHeight=null!==(C=n.setRowHeight)&&void 0!==C?C:w.setRowHeight,this.supportDynamicHeights=null!==(y=n.supportDynamicHeights)&&void 0!==y?y:w.supportDynamicHeights,this.dnd=null!==(S=n.dnd)&&void 0!==S?S:w.dnd,this.layout(null===(k=n.initialSize)||void 0===k?void 0:k.height,null===(x=n.initialSize)||void 0===x?void 0:x.width)}updateOptions(e){let t;void 0!==e.additionalScrollHeight&&(this.additionalScrollHeight=e.additionalScrollHeight,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.scrollByPage&&(t=Object.assign(Object.assign({},null!=t?t:{}),{scrollByPage:e.scrollByPage})),void 0!==e.mouseWheelScrollSensitivity&&(t=Object.assign(Object.assign({},null!=t?t:{}),{mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity})),void 0!==e.fastScrollSensitivity&&(t=Object.assign(Object.assign({},null!=t?t:{}),{fastScrollSensitivity:e.fastScrollSensitivity})),t&&this.scrollableElement.updateOptions(t)}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){const n=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),o={start:e,end:e+t},s=g.e.intersect(n,o),r=new Map;for(let e=s.end-1;e>=s.start;e--){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){let i=r.get(t.templateId);i||(i=[],r.set(t.templateId,i));const n=this.renderers.get(t.templateId);n&&n.disposeElement&&n.disposeElement(t.element,e,t.row.templateData,t.size),i.push(t.row)}t.row=null}const a={start:e+t,end:this.items.length},l=g.e.intersect(a,n),c=g.e.relativeComplement(a,n),h=i.map((e=>({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:u.JT.None,checkedDisposable:u.JT.None})));let d;0===e&&t>=this.items.length?(this.rangeMap=new _,this.rangeMap.splice(0,0,h),d=this.items,this.items=h):(this.rangeMap.splice(e,t,h),d=this.items.splice(e,t,...h));const p=i.length-t,m=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),v=f(l,p),b=g.e.intersect(m,v);for(let e=b.start;ef(e,p))),w=[{start:e,end:e+i.length},...y].map((e=>g.e.intersect(m,e))),S=this.getNextToLastElement(w);for(const e of w)for(let t=e.start;te.element))}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,o.jL)((()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null})))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger((()=>this.updateScrollWidth())):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)void 0!==t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10})}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}get firstVisibleIndex(){const e=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),t=this.rangeMap.positionAt(e.start),i=this.rangeMap.positionAt(e.start+1);return-1!==i&&(i-t)/2+t{for(const e of l)for(let t=e.start;tn.row.domNode.setAttribute("aria-checked",String(!!e));e(a.value),n.checkedDisposable=a.onDidChange(e)}!s&&n.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(n.row.domNode,t):this.rowsContainer.appendChild(n.row.domNode)),this.updateItemInDOM(n,e);const l=this.renderers.get(n.templateId);if(!l)throw new Error(`No renderer found for template id ${n.templateId}`);null==l||l.renderElement(n.element,e,n.row.templateData,n.size);const c=this.dnd.getDragURI(n.element);n.dragStartDisposable.dispose(),n.row.domNode.draggable=!!c,c&&(n.dragStartDisposable=(0,o.nm)(n.row.domNode,"dragstart",(e=>this.onDragStart(n.element,c,e)))),this.horizontalScrolling&&(this.measureItemWidth(n),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width="fit-content",e.width=(0,o.FK)(e.row.domNode);const t=window.getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2==0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}get onMouseClick(){return d.ju.map(this.disposables.add(new s.Y(this.domNode,"click")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseDblClick(){return d.ju.map(this.disposables.add(new s.Y(this.domNode,"dblclick")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseMiddleClick(){return d.ju.filter(d.ju.map(this.disposables.add(new s.Y(this.domNode,"auxclick")).event,(e=>this.toMouseEvent(e)),this.disposables),(e=>1===e.browserEvent.button),this.disposables)}get onMouseDown(){return d.ju.map(this.disposables.add(new s.Y(this.domNode,"mousedown")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOver(){return d.ju.map(this.disposables.add(new s.Y(this.domNode,"mouseover")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOut(){return d.ju.map(this.disposables.add(new s.Y(this.domNode,"mouseout")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onContextMenu(){return d.ju.any(d.ju.map(this.disposables.add(new s.Y(this.domNode,"contextmenu")).event,(e=>this.toMouseEvent(e)),this.disposables),d.ju.map(this.disposables.add(new s.Y(this.domNode,r.t.Contextmenu)).event,(e=>this.toGestureEvent(e)),this.disposables))}get onTouchStart(){return d.ju.map(this.disposables.add(new s.Y(this.domNode,"touchstart")).event,(e=>this.toTouchEvent(e)),this.disposables)}get onTap(){return d.ju.map(this.disposables.add(new s.Y(this.rowsContainer,r.t.Tap)).event,(e=>this.toGestureEvent(e)),this.disposables)}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){var s,r;if(!i.dataTransfer)return;const a=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(n.g.TEXT,t),i.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(a,i)),void 0===e&&(e=String(a.length));const t=(0,o.$)(".monaco-drag-image");t.textContent=e;const n=(e=>{for(;e&&!e.classList.contains("monaco-workbench");)e=e.parentElement;return e||document.body})(this.domNode);n.appendChild(t),i.dataTransfer.setDragImage(t,-10,-10),setTimeout((()=>n.removeChild(t)),0)}this.domNode.classList.add("dragging"),this.currentDragData=new S(a),y.CurrentDragAndDropData=new k(a),null===(r=(s=this.dnd).onDragStart)||void 0===r||r.call(s,this.currentDragData,i)}onDragOver(e){var t;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),y.CurrentDragAndDropData&&"vscode-ui"===y.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(y.CurrentDragAndDropData)this.currentDragData=y.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new x}const i=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop="boolean"==typeof i?i:i.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let n;if(e.browserEvent.dataTransfer.dropEffect="boolean"!=typeof i&&0===i.effect?"copy":"move",n="boolean"!=typeof i&&i.feedback?i.feedback:void 0===e.index?[-1]:[e.index],n=(0,l.EB)(n).filter((e=>e>=-1&&ee-t)),n=-1===n[0]?[-1]:n,o=this.currentDragFeedback,s=n,Array.isArray(o)&&Array.isArray(s)?(0,l.fS)(o,s):o===s)return!0;var o,s;if(this.currentDragFeedback=n,this.currentDragFeedbackDisposable.dispose(),-1===n[0])this.domNode.classList.add("drop-target"),this.rowsContainer.classList.add("drop-target"),this.currentDragFeedbackDisposable=(0,u.OF)((()=>{this.domNode.classList.remove("drop-target"),this.rowsContainer.classList.remove("drop-target")}));else{for(const e of n){const i=this.items[e];i.dropTarget=!0,null===(t=i.row)||void 0===t||t.domNode.classList.add("drop-target")}this.currentDragFeedbackDisposable=(0,u.OF)((()=>{var e;for(const t of n){const i=this.items[t];i.dropTarget=!1,null===(e=i.row)||void 0===e||e.domNode.classList.remove("drop-target")}}))}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,c.Vg)((()=>this.clearDragOverFeedback()),100),this.currentDragData&&(null===(i=(t=this.dnd).onDragLeave)||void 0===i||i.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,y.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.browserEvent))}onDragEnd(e){var t,i;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,y.CurrentDragAndDropData=void 0,null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=u.JT.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const e=(0,o.xQ)(this.domNode).top;this.dragOverAnimationDisposable=(0,o.jt)(this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,c.Vg)((()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}),1e3),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;i instanceof HTMLElement&&i!==this.rowsContainer&&t.contains(i);){const e=i.getAttribute("data-index");if(e){const t=Number(e);if(!isNaN(t))return t}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const n=this.getRenderRange(e,t);let o,s;e===this.elementTop(n.start)?(o=n.start,s=0):n.end-n.start>1&&(o=n.start+1,s=this.elementTop(o)-e);let r=0;for(;;){const a=this.getRenderRange(e,t);let l=!1;for(let e=a.start;e{"use strict";i.d(t,{wD:()=>V,aV:()=>G,sx:()=>H,AA:()=>C,iK:()=>I,cK:()=>D,hD:()=>T,wn:()=>F,Zo:()=>P,uZ:()=>W});var n=i(65321),o=i(4850),s=i(59069),r=i(10553),a=i(85152);class l{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach((n=>n.splice(e,t,i)))}}var c=i(9488),h=i(15393),d=i(41264),u=i(49898),g=i(4669),p=i(75392),m=i(5976),f=i(59870),_=i(1432),v=i(98401);class b extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}var C,y,w=i(25707),S=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},k=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class x{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){const n=this.renderedElements.findIndex((e=>e.templateData===i));if(n>=0){const e=this.renderedElements[n];this.trait.unrender(i),e.index=t}else{const e={index:t,templateData:i};this.renderedElements.push(e)}this.trait.renderIndex(t,i)}splice(e,t,i){const n=[];for(const o of this.renderedElements)o.index=e+t&&n.push({index:o.index+i-t,templateData:o.templateData});this.renderedElements=n}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex((t=>t.templateData===e));t<0||this.renderedElements.splice(t,1)}}class L{get name(){return this._trait}get renderer(){return new x(this)}constructor(e){this._trait=e,this.length=0,this.indexes=[],this.sortedIndexes=[],this._onChange=new g.Q5,this.onChange=this._onChange.event}splice(e,t,i){var n;t=Math.max(0,Math.min(t,this.length-e));const o=i.length-t,s=e+t,r=[...this.sortedIndexes.filter((t=>tt?i+e:-1)).filter((e=>-1!==e)),...this.sortedIndexes.filter((e=>e>=s)).map((e=>e+o))],a=this.length+o;if(this.sortedIndexes.length>0&&0===r.length&&a>0){const t=null!==(n=this.sortedIndexes.find((t=>t>=e)))&&void 0!==n?n:a-1;r.push(Math.min(t,a-1))}this.renderer.splice(e,t,i.length),this._set(r,r),this.length=a}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(j),t)}_set(e,t,i){const n=this.indexes,o=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const s=U(o,e);return this.renderer.renderIndexes(s),this._onChange.fire({indexes:e,browserEvent:i}),n}get(){return this.indexes}contains(e){return(0,c.ry)(this.sortedIndexes,e,j)>=0}dispose(){(0,m.B9)(this._onChange)}}S([u.H],L.prototype,"renderer",null);class E extends L{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class N{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,i.map((()=>!1)));const n=this.trait.get().map((e=>this.identityProvider.getId(this.view.element(e)).toString())),o=i.map((e=>n.indexOf(this.identityProvider.getId(e).toString())>-1));this.trait.splice(e,t,o)}}function D(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function T(e){return!!e.classList.contains("monaco-editor")||!e.classList.contains("monaco-list")&&!!e.parentElement&&T(e.parentElement)}function I(e){return!!("A"===e.tagName&&e.classList.contains("monaco-button")||"DIV"===e.tagName&&e.classList.contains("monaco-button-dropdown"))||!e.classList.contains("monaco-list")&&!!e.parentElement&&I(e.parentElement)}class A{get onKeyDown(){return this.disposables.add(g.ju.chain(this.disposables.add(new o.Y(this.view.domNode,"keydown")).event).filter((e=>!D(e.target))).map((e=>new s.y(e))))}constructor(e,t,i){this.list=e,this.view=t,this.disposables=new m.SL,this.multipleSelectionDisposables=new m.SL,this.onKeyDown.filter((e=>3===e.keyCode)).on(this.onEnter,this,this.disposables),this.onKeyDown.filter((e=>16===e.keyCode)).on(this.onUpArrow,this,this.disposables),this.onKeyDown.filter((e=>18===e.keyCode)).on(this.onDownArrow,this,this.disposables),this.onKeyDown.filter((e=>11===e.keyCode)).on(this.onPageUpArrow,this,this.disposables),this.onKeyDown.filter((e=>12===e.keyCode)).on(this.onPageDownArrow,this,this.disposables),this.onKeyDown.filter((e=>9===e.keyCode)).on(this.onEscape,this,this.disposables),!1!==i.multipleSelectionSupport&&this.onKeyDown.filter((e=>(_.dz?e.metaKey:e.ctrlKey)&&31===e.keyCode)).on(this.onCtrlA,this,this.multipleSelectionDisposables)}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionDisposables.clear(),e.multipleSelectionSupport&&this.onKeyDown.filter((e=>(_.dz?e.metaKey:e.ctrlKey)&&31===e.keyCode)).on(this.onCtrlA,this,this.multipleSelectionDisposables))}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection((0,c.w6)(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}S([u.H],A.prototype,"onKeyDown",null),function(e){e[e.Automatic=0]="Automatic",e[e.Trigger=1]="Trigger"}(C||(C={})),function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(y||(y={}));const M=new class{mightProducePrintableCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=98&&e.keyCode<=107||e.keyCode>=85&&e.keyCode<=95)}};class R{constructor(e,t,i,n,o){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=n,this.delegate=o,this.enabled=!1,this.state=y.Idle,this.mode=C.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new m.SL,this.disposables=new m.SL,this.updateOptions(e.options)}updateOptions(e){var t,i;null===(t=e.typeNavigationEnabled)||void 0===t||t?this.enable():this.disable(),this.mode=null!==(i=e.typeNavigationMode)&&void 0!==i?i:C.Automatic}enable(){if(this.enabled)return;let e=!1;const t=this.enabledDisposables.add(g.ju.chain(this.enabledDisposables.add(new o.Y(this.view.domNode,"keydown")).event)).filter((e=>!D(e.target))).filter((()=>this.mode===C.Automatic||this.triggered)).map((e=>new s.y(e))).filter((t=>e||this.keyboardNavigationEventFilter(t))).filter((e=>this.delegate.mightProducePrintableCharacter(e))).forEach((e=>n.zB.stop(e,!0))).map((e=>e.browserEvent.key)).event,i=g.ju.debounce(t,(()=>null),800,void 0,void 0,void 0,this.enabledDisposables);g.ju.reduce(g.ju.any(t,i),((e,t)=>null===t?null:(e||"")+t),void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),i(this.onClear,this,this.enabledDisposables),t((()=>e=!0),void 0,this.enabledDisposables),i((()=>e=!1),void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e;const t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){const i=null===(e=this.list.options.accessibilityProvider)||void 0===e?void 0:e.getAriaLabel(this.list.element(t[0]));i&&(0,a.Z9)(i)}this.previouslyFocused=-1}onInput(e){if(!e)return this.state=y.Idle,void(this.triggered=!1);const t=this.list.getFocus(),i=t.length>0?t[0]:0,n=this.state===y.Idle?1:0;this.state=y.Typing;for(let t=0;t!D(e.target))).map((e=>new s.y(e))).filter((e=>!(2!==e.keyCode||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey))).on(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(0===t.length)return;const i=this.view.domElement(t[0]);if(!i)return;const n=i.querySelector("[tabIndex]");if(!(n&&n instanceof HTMLElement&&-1!==n.tabIndex))return;const o=window.getComputedStyle(n);"hidden"!==o.visibility&&"none"!==o.display&&(e.preventDefault(),e.stopPropagation(),n.focus())}dispose(){this.disposables.dispose()}}function P(e){return _.dz?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function F(e){return e.browserEvent.shiftKey}const B={isSelectionSingleChangeEvent:P,isSelectionRangeChangeEvent:F};class H{constructor(e){this.list=e,this.disposables=new m.SL,this._onPointer=new g.Q5,this.onPointer=this._onPointer.event,!1!==e.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||B),this.mouseSupport=void 0===e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(r.o.addTarget(e.getHTMLElement()))),g.ju.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||B))}isSelectionSingleChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(e)}isSelectionRangeChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(e)}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){T(e.browserEvent.target)||document.activeElement!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(D(e.browserEvent.target)||T(e.browserEvent.target))return;const t=void 0===e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport)return;if(D(e.browserEvent.target)||T(e.browserEvent.target))return;const t=e.index;return void 0===t?(this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),void this.list.setAnchor(void 0)):this.isSelectionRangeChangeEvent(e)||this.isSelectionChangeEvent(e)?this.changeSelection(e):(this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),(i=e.browserEvent)instanceof MouseEvent&&2===i.button||this.list.setSelection([t],e.browserEvent),void this._onPointer.fire(e));var i}onDoubleClick(e){if(D(e.browserEvent.target)||T(e.browserEvent.target))return;if(this.isSelectionChangeEvent(e))return;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if(void 0===i){const e=this.list.getFocus()[0];i=null!=e?e:t,this.list.setAnchor(i)}const n=Math.min(i,t),o=Math.max(i,t),s=(0,c.w6)(n,o+1),r=this.list.getSelection(),a=function(e,t){const i=e.indexOf(t);if(-1===i)return[];const n=[];let o=i-1;for(;o>=0&&e[o]===t-(i-o);)n.push(e[o--]);for(n.reverse(),o=i;o=e.length)i.push(t[o++]);else if(o>=t.length)i.push(e[n++]);else{if(e[n]===t[o]){n++,o++;continue}e[n]e!==t));this.list.setFocus([t]),this.list.setAnchor(t),i.length===n.length?this.list.setSelection([...n,t],e.browserEvent):this.list.setSelection(n,e.browserEvent)}}dispose(){this.disposables.dispose()}}class V{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){var t,i;const o=this.selectorSuffix&&`.${this.selectorSuffix}`,s=[];e.listBackground&&s.push(`.monaco-list${o} .monaco-list-rows { background: ${e.listBackground}; }`),e.listFocusBackground&&(s.push(`.monaco-list${o}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),s.push(`.monaco-list${o}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&s.push(`.monaco-list${o}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(s.push(`.monaco-list${o}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),s.push(`.monaco-list${o}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&s.push(`.monaco-list${o}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&s.push(`.monaco-list${o}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&s.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${o}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }\n\t\t\t`),e.listFocusAndSelectionForeground&&s.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${o}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }\n\t\t\t`),e.listInactiveFocusForeground&&(s.push(`.monaco-list${o} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),s.push(`.monaco-list${o} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&s.push(`.monaco-list${o} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(s.push(`.monaco-list${o} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),s.push(`.monaco-list${o} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(s.push(`.monaco-list${o} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),s.push(`.monaco-list${o} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&s.push(`.monaco-list${o} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&s.push(`.monaco-list${o}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&s.push(`.monaco-list${o}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`);const r=(0,n.XT)(e.listFocusAndSelectionOutline,(0,n.XT)(e.listSelectionOutline,null!==(t=e.listFocusOutline)&&void 0!==t?t:""));r&&s.push(`.monaco-list${o}:focus .monaco-list-row.focused.selected { outline: 1px solid ${r}; outline-offset: -1px;}`),e.listFocusOutline&&s.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${o}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t\t.monaco-workbench.context-menu-visible .monaco-list${o}.last-focused .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t`);const a=(0,n.XT)(e.listSelectionOutline,null!==(i=e.listInactiveFocusOutline)&&void 0!==i?i:"");a&&s.push(`.monaco-list${o} .monaco-list-row.focused.selected { outline: 1px dotted ${a}; outline-offset: -1px; }`),e.listSelectionOutline&&s.push(`.monaco-list${o} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listInactiveFocusOutline&&s.push(`.monaco-list${o} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&s.push(`.monaco-list${o} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropBackground&&s.push(`\n\t\t\t\t.monaco-list${o}.drop-target,\n\t\t\t\t.monaco-list${o} .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list${o} .monaco-list-row.drop-target { background-color: ${e.listDropBackground} !important; color: inherit !important; }\n\t\t\t`),e.tableColumnsBorder&&s.push(`\n\t\t\t\t.monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: ${e.tableColumnsBorder};\n\t\t\t\t}\n\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: transparent;\n\t\t\t\t}\n\t\t\t`),e.tableOddRowsBackgroundColor&&s.push(`\n\t\t\t\t.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {\n\t\t\t\t\tbackground-color: ${e.tableOddRowsBackgroundColor};\n\t\t\t\t}\n\t\t\t`),this.styleElement.textContent=s.join("\n")}}const W={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropBackground:"#383B3D",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:d.Il.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:d.Il.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:d.Il.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0},z={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){}}};function U(e,t){const i=[];let n=0,o=0;for(;n=e.length)i.push(t[o++]);else if(o>=t.length)i.push(e[n++]);else{if(e[n]===t[o]){i.push(e[n]),n++,o++;continue}e[n]e-t;class K{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map((t=>t.renderTemplate(e)))}renderElement(e,t,i,n){let o=0;for(const s of this.renderers)s.renderElement(e,t,i[o++],n)}disposeElement(e,t,i,n){var o;let s=0;for(const r of this.renderers)null===(o=r.disposeElement)||void 0===o||o.call(r,e,t,i[s],n),s+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class q{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return e}renderElement(e,t,i){const n=this.accessibilityProvider.getAriaLabel(e);n?i.setAttribute("aria-label",n):i.removeAttribute("aria-label");const o=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"==typeof o?i.setAttribute("aria-level",`${o}`):i.removeAttribute("aria-level")}disposeTemplate(e){}}class ${constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,e,t)}onDragOver(e,t,i,n){return this.dnd.onDragOver(e,t,i,n)}onDragLeave(e,t,i,n){var o,s;null===(s=(o=this.dnd).onDragLeave)||void 0===s||s.call(o,e,t,i,n)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}drop(e,t,i,n){this.dnd.drop(e,t,i,n)}}class G{get onDidChangeFocus(){return g.ju.map(this.eventBufferer.wrapEvent(this.focus.onChange),(e=>this.toListEvent(e)),this.disposables)}get onDidChangeSelection(){return g.ju.map(this.eventBufferer.wrapEvent(this.selection.onChange),(e=>this.toListEvent(e)),this.disposables)}get domId(){return this.view.domId}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onMouseOut(){return this.view.onMouseOut}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=this.disposables.add(g.ju.chain(this.disposables.add(new o.Y(this.view.domNode,"keydown")).event)).map((e=>new s.y(e))).filter((t=>e=58===t.keyCode||t.shiftKey&&68===t.keyCode)).map((e=>n.zB.stop(e,!0))).filter((()=>!1)).event,i=this.disposables.add(g.ju.chain(this.disposables.add(new o.Y(this.view.domNode,"keyup")).event)).forEach((()=>e=!1)).map((e=>new s.y(e))).filter((e=>58===e.keyCode||e.shiftKey&&68===e.keyCode)).map((e=>n.zB.stop(e,!0))).map((({browserEvent:e})=>{const t=this.getFocus(),i=t.length?t[0]:void 0;return{index:i,element:void 0!==i?this.view.element(i):void 0,anchor:void 0!==i?this.view.domElement(i):this.view.domNode,browserEvent:e}})).event,r=this.disposables.add(g.ju.chain(this.view.onContextMenu)).filter((t=>!e)).map((({element:e,index:t,browserEvent:i})=>({element:e,index:t,anchor:{x:i.pageX+1,y:i.pageY},browserEvent:i}))).event;return g.ju.any(t,i,r)}get onKeyDown(){return this.disposables.add(new o.Y(this.view.domNode,"keydown")).event}get onDidFocus(){return g.ju.signal(this.disposables.add(new o.Y(this.view.domNode,"focus",!0)).event)}constructor(e,t,i,o,s=z){var r,a,c,h;this.user=e,this._options=s,this.focus=new L("focused"),this.anchor=new L("anchor"),this.eventBufferer=new g.E7,this._ariaLabel="",this.disposables=new m.SL,this._onDidDispose=new g.Q5,this.onDidDispose=this._onDidDispose.event;const d=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?null===(r=this._options.accessibilityProvider)||void 0===r?void 0:r.getWidgetRole():"list";this.selection=new E("listbox"!==d);const u=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=s.accessibilityProvider,this.accessibilityProvider&&(u.push(new q(this.accessibilityProvider)),null===(c=(a=this.accessibilityProvider).onDidChangeActiveDescendant)||void 0===c||c.call(a,this.onDidChangeActiveDescendant,this,this.disposables)),o=o.map((e=>new K(e.templateId,[...u,e])));const p=Object.assign(Object.assign({},s),{dnd:s.dnd&&new $(this,s.dnd)});if(this.view=this.createListView(t,i,o,p),this.view.domNode.setAttribute("role",d),s.styleController)this.styleController=s.styleController(this.view.domId);else{const e=(0,n.dS)(this.view.domNode);this.styleController=new V(e,this.view.domId)}if(this.spliceable=new l([new N(this.focus,this.view,s.identityProvider),new N(this.selection,this.view,s.identityProvider),new N(this.anchor,this.view,s.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new O(this,this.view)),("boolean"!=typeof s.keyboardSupport||s.keyboardSupport)&&(this.keyboardController=new A(this,this.view,s),this.disposables.add(this.keyboardController)),s.keyboardNavigationLabelProvider){const e=s.keyboardNavigationDelegate||M;this.typeNavigationController=new R(this,this.view,s.keyboardNavigationLabelProvider,null!==(h=s.keyboardNavigationEventFilter)&&void 0!==h?h:()=>!0,e),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(s),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}createListView(e,t,i,n){return new w.Bv(e,t,i,n)}createMouseController(e){return new H(this)}updateOptions(e={}){var t,i;this._options=Object.assign(Object.assign({},this._options),e),null===(t=this.typeNavigationController)||void 0===t||t.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),null===(i=this.keyboardController)||void 0===i||i.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new b(this.user,`Invalid start index: ${e}`);if(t<0)throw new b(this.user,`Invalid delete count: ${t}`);0===t&&0===i.length||this.eventBufferer.bufferEvents((()=>this.spliceable.splice(e,t,i)))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get scrollHeight(){return this.view.scrollHeight}get firstVisibleIndex(){return this.view.firstVisibleIndex}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const t of e)if(t<0||t>=this.length)throw new b(this.user,`Invalid index ${t}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map((e=>this.view.element(e)))}setAnchor(e){if(void 0!==e){if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);this.anchor.set([e])}else this.anchor.set([])}getAnchor(){return(0,c.Xh)(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return void 0===e?void 0:this.element(e)}setFocus(e,t){for(const t of e)if(t<0||t>=this.length)throw new b(this.user,`Invalid index ${t}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,n){if(0===this.length)return;const o=this.focus.get(),s=this.findNextIndex(o.length>0?o[0]+e:0,t,n);s>-1&&this.setFocus([s],i)}focusPrevious(e=1,t=!1,i,n){if(0===this.length)return;const o=this.focus.get(),s=this.findPreviousIndex(o.length>0?o[0]-e:0,t,n);s>-1&&this.setFocus([s],i)}focusNextPage(e,t){return k(this,void 0,void 0,(function*(){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;const n=this.getFocus()[0];if(n!==i&&(void 0===n||i>n)){const o=this.findPreviousIndex(i,!1,t);o>-1&&n!==o?this.setFocus([o],e):this.setFocus([i],e)}else{const o=this.view.getScrollTop();let s=o+this.view.renderHeight;i>n&&(s-=this.view.elementHeight(i)),this.view.setScrollTop(s),this.view.getScrollTop()!==o&&(this.setFocus([]),yield(0,h.Vs)(0),yield this.focusNextPage(e,t))}}))}focusPreviousPage(e,t){return k(this,void 0,void 0,(function*(){let i;const n=this.view.getScrollTop();i=0===n?this.view.indexAt(n):this.view.indexAfter(n-1);const o=this.getFocus()[0];if(o!==i&&(void 0===o||o>=i)){const n=this.findNextIndex(i,!1,t);n>-1&&o!==n?this.setFocus([n],e):this.setFocus([i],e)}else{const i=n;this.view.setScrollTop(n-this.view.renderHeight),this.view.getScrollTop()!==i&&(this.setFocus([]),yield(0,h.Vs)(0),yield this.focusPreviousPage(e,t))}}))}focusLast(e,t){if(0===this.length)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(0===this.length)return;const n=this.findNextIndex(e,!1,i);n>-1&&this.setFocus([n],t)}findNextIndex(e,t=!1,i){for(let n=0;n=this.length&&!t)return-1;if(e%=this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let n=0;nthis.view.element(e)))}reveal(e,t){if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),n=this.view.elementTop(e),o=this.view.elementHeight(e);if((0,v.hj)(t)){const e=o-this.view.renderHeight;this.view.setScrollTop(e*(0,f.uZ)(t,0,1)+n)}else{const e=n+o,t=i+this.view.renderHeight;n=t||(n=t&&o>=this.view.renderHeight?this.view.setScrollTop(n):e>=t&&this.view.setScrollTop(e-this.view.renderHeight))}}getHTMLElement(){return this.view.domNode}getElementID(e){return this.view.getElementDomId(e)}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map((e=>this.view.element(e))),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;const t=this.focus.get();if(t.length>0){let i;(null===(e=this.accessibilityProvider)||void 0===e?void 0:e.getActiveDescendantId)&&(i=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",i||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===e.length),this.view.domNode.classList.toggle("selection-single",1===e.length),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}S([u.H],G.prototype,"onDidChangeFocus",null),S([u.H],G.prototype,"onDidChangeSelection",null),S([u.H],G.prototype,"onContextMenu",null),S([u.H],G.prototype,"onKeyDown",null),S([u.H],G.prototype,"onDidFocus",null)},96542:(e,t,i)=>{"use strict";i.d(t,{S:()=>n});const n="monaco-mouse-cursor-text"},73098:(e,t,i)=>{"use strict";i.d(t,{g:()=>b,l:()=>n});var n,o=i(65321),s=i(4850),r=i(10553),a=i(15393),l=i(49898),c=i(4669),h=i(5976),d=i(1432),u=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};!function(e){e.North="north",e.South="south",e.East="east",e.West="west"}(n||(n={}));const g=new c.Q5,p=new c.Q5;class m{constructor(){this.disposables=new h.SL}get onPointerMove(){return this.disposables.add(new s.Y(window,"mousemove")).event}get onPointerUp(){return this.disposables.add(new s.Y(window,"mouseup")).event}dispose(){this.disposables.dispose()}}u([l.H],m.prototype,"onPointerMove",null),u([l.H],m.prototype,"onPointerUp",null);class f{get onPointerMove(){return this.disposables.add(new s.Y(this.el,r.t.Change)).event}get onPointerUp(){return this.disposables.add(new s.Y(this.el,r.t.End)).event}constructor(e){this.el=e,this.disposables=new h.SL}dispose(){this.disposables.dispose()}}u([l.H],f.prototype,"onPointerMove",null),u([l.H],f.prototype,"onPointerUp",null);class _{get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}constructor(e){this.factory=e}dispose(){}}u([l.H],_.prototype,"onPointerMove",null),u([l.H],_.prototype,"onPointerUp",null);const v="pointer-events-disabled";class b extends h.JT{get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",0===e),this.el.classList.toggle("minimum",1===e),this.el.classList.toggle("maximum",2===e),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=t=>{this.orthogonalStartDragHandleDisposables.clear(),0!==t&&(this._orthogonalStartDragHandle=(0,o.R3)(this.el,(0,o.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,h.OF)((()=>this._orthogonalStartDragHandle.remove()))),this.orthogonalStartDragHandleDisposables.add(new s.Y(this._orthogonalStartDragHandle,"mouseenter")).event((()=>b.onMouseEnter(e)),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new s.Y(this._orthogonalStartDragHandle,"mouseleave")).event((()=>b.onMouseLeave(e)),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalStartSash=e}set orthogonalEndSash(e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=t=>{this.orthogonalEndDragHandleDisposables.clear(),0!==t&&(this._orthogonalEndDragHandle=(0,o.R3)(this.el,(0,o.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,h.OF)((()=>this._orthogonalEndDragHandle.remove()))),this.orthogonalEndDragHandleDisposables.add(new s.Y(this._orthogonalEndDragHandle,"mouseenter")).event((()=>b.onMouseEnter(e)),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new s.Y(this._orthogonalEndDragHandle,"mouseleave")).event((()=>b.onMouseLeave(e)),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}constructor(e,t,i){super(),this.hoverDelay=300,this.hoverDelayer=this._register(new a.vp(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new c.Q5),this._onDidStart=this._register(new c.Q5),this._onDidChange=this._register(new c.Q5),this._onDidReset=this._register(new c.Q5),this._onDidEnd=this._register(new c.Q5),this.orthogonalStartSashDisposables=this._register(new h.SL),this.orthogonalStartDragHandleDisposables=this._register(new h.SL),this.orthogonalEndSashDisposables=this._register(new h.SL),this.orthogonalEndDragHandleDisposables=this._register(new h.SL),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=(0,o.R3)(e,(0,o.$)(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),d.dz&&this.el.classList.add("mac");const n=this._register(new s.Y(this.el,"mousedown")).event;this._register(n((e=>this.onPointerStart(e,new m)),this));const l=this._register(new s.Y(this.el,"dblclick")).event;this._register(l(this.onPointerDoublePress,this));const u=this._register(new s.Y(this.el,"mouseenter")).event;this._register(u((()=>b.onMouseEnter(this))));const _=this._register(new s.Y(this.el,"mouseleave")).event;this._register(_((()=>b.onMouseLeave(this)))),this._register(r.o.addTarget(this.el));const v=this._register(new s.Y(this.el,r.t.Start)).event;this._register(v((e=>this.onPointerStart(e,new f(this.el))),this));const C=this._register(new s.Y(this.el,r.t.Tap)).event;let y;this._register(C((e=>{if(y)return clearTimeout(y),y=void 0,void this.onPointerDoublePress(e);clearTimeout(y),y=setTimeout((()=>y=void 0),250)}),this)),"number"==typeof i.size?(this.size=i.size,0===i.orientation?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=4,this._register(g.event((e=>{this.size=e,this.layout()})))),this._register(p.event((e=>this.hoverDelay=e))),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,1===this.orientation?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",!1),this.layout()}onPointerStart(e,t){o.zB.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const n=this.getOrthogonalSash(e);n&&(i=!0,e.__orthogonalSashEvent=!0,n.onPointerStart(e,new _(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new _(t))),!this.state)return;const n=document.getElementsByTagName("iframe");for(const e of n)e.classList.add(v);const s=e.pageX,r=e.pageY,a=e.altKey,l={startX:s,currentX:s,startY:r,currentY:r,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(l);const c=(0,o.dS)(this.el),u=()=>{let e="";e=i?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":d.dz?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":d.dz?"col-resize":"ew-resize",c.textContent=`* { cursor: ${e} !important; }`},g=new h.SL;u(),i||this.onDidEnablementChange.event(u,null,g),t.onPointerMove((e=>{o.zB.stop(e,!1);const t={startX:s,currentX:e.pageX,startY:r,currentY:e.pageY,altKey:a};this._onDidChange.fire(t)}),null,g),t.onPointerUp((e=>{o.zB.stop(e,!1),this.el.removeChild(c),this.el.classList.remove("active"),this._onDidEnd.fire(),g.dispose();for(const e of n)e.classList.remove(v)}),null,g),g.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger((()=>e.el.classList.add("hover")),e.hoverDelay).then(void 0,(()=>{})),!t&&e.linkedSash&&b.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&b.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){b.onMouseLeave(this)}layout(){if(0===this.orientation){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(e){var t;const i=null!==(t=e.initialTarget)&&void 0!==t?t:e.target;if(i&&i instanceof HTMLElement)return i.classList.contains("orthogonal-drag-handle")?i.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash:void 0}dispose(){super.dispose(),this.el.remove()}}},9802:(e,t,i)=>{"use strict";i.d(t,{s$:()=>E,Io:()=>S,NB:()=>x,$Z:()=>L});var n=i(16268),o=i(65321),s=i(38626),r=i(7448),a=i(93911),l=i(93794),c=i(15393),h=i(25670);class d extends l.${constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",void 0!==e.top&&(this.bgDomNode.style.top="0px"),void 0!==e.left&&(this.bgDomNode.style.left="0px"),void 0!==e.bottom&&(this.bgDomNode.style.bottom="0px"),void 0!==e.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...h.k.asClassNameArray(e.icon)),this.domNode.style.position="absolute",this.domNode.style.width="11px",this.domNode.style.height="11px",void 0!==e.top&&(this.domNode.style.top=e.top+"px"),void 0!==e.left&&(this.domNode.style.left=e.left+"px"),void 0!==e.bottom&&(this.domNode.style.bottom=e.bottom+"px"),void 0!==e.right&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new a.C),this._register(o.mu(this.bgDomNode,o.tw.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._register(o.mu(this.domNode,o.tw.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._pointerdownRepeatTimer=this._register(new c.zh),this._pointerdownScheduleRepeatTimer=this._register(new c._F)}_arrowPointerDown(e){e.target&&e.target instanceof Element&&(this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet((()=>{this._pointerdownRepeatTimer.cancelAndSet((()=>this._onActivate()),1e3/24)}),200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{}),(()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()})),e.preventDefault())}}var u=i(5976);class g extends u.JT{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new c._F)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((()=>{var e;null===(e=this._domNode)||void 0===e||e.setClassName(this._visibleClassName)}),0))}_hide(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,null===(t=this._domNode)||void 0===t||t.setClassName(this._invisibleClassName+(e?" fade":"")))}}var p=i(1432);class m extends l.${constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new g(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new a.C),this._shouldRender=!0,this.domNode=(0,s.X)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(o.nm(this.domNode.domNode,o.tw.POINTER_DOWN,(e=>this._domNodePointerDown(e))))}_createArrow(e){const t=this._register(new d(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,n){this.slider=(0,s.X)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"==typeof i&&this.slider.setWidth(i),"number"==typeof n&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(o.nm(this.slider.domNode,o.tw.POINTER_DOWN,(e=>{0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}))),this.onclick(this.slider.domNode,(e=>{e.leftButton&&e.stopPropagation()}))}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),n=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),o=this._sliderPointerPosition(e);i<=o&&o<=n?0===e.button&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&"number"==typeof e.offsetX&&"number"==typeof e.offsetY)t=e.offsetX,i=e.offsetY;else{const n=o.i(this.domNode.domNode);t=e.pageX-n.left,i=e.pageY-n.top}const n=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!(e.target&&e.target instanceof Element))return;const t=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),n=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{const o=this._sliderOrthogonalPointerPosition(e),s=Math.abs(o-i);if(p.ED&&s>140)return void this._setDesiredScrollPositionNow(n.getScrollPosition());const r=this._sliderPointerPosition(e)-t;this._setDesiredScrollPositionNow(n.getDesiredScrollPositionFromDelta(r))}),(()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()})),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}class f{constructor(e,t,i,n,o,s){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=o,this._scrollPosition=s,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new f(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,n,o){const s=Math.max(0,i-e),r=Math.max(0,s-2*t),a=n>0&&n>i;if(!a)return{computedAvailableSize:Math.round(s),computedIsNeeded:a,computedSliderSize:Math.round(r),computedSliderRatio:0,computedSliderPosition:0};const l=Math.round(Math.max(20,Math.floor(i*r/n))),c=(r-l)/(n-i),h=o*c;return{computedAvailableSize:Math.round(s),computedIsNeeded:a,computedSliderSize:Math.round(l),computedSliderRatio:c,computedSliderPosition:Math.round(h)}}_refreshComputedValues(){const e=f._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return tthis._host.onMouseWheel(new r.q(null,1,0))}),this._createArrow({className:"scra",icon:_.l.scrollbarButtonRight,top:i,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class b extends m{constructor(e,t,i){const n=e.getScrollDimensions(),o=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new f(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,o.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const e=(t.arrowSize-11)/2,i=(t.verticalScrollbarSize-11)/2;this._createArrow({className:"scra",icon:_.l.scrollbarButtonUp,top:e,left:i,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,0,1))}),this._createArrow({className:"scra",icon:_.l.scrollbarButtonDown,top:void 0,left:i,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}var C=i(4669),y=i(76633);class w{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}}class S{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,i=1,n=this._rear;for(;;){const o=n===this._front?e:Math.pow(2,-i);if(e-=o,t+=this._memory[n].score*o,n===this._front)break;n=(this._capacity+n-1)%this._capacity,i++}return t<=.5}acceptStandardWheelEvent(e){const t=window.devicePixelRatio/(0,n.getZoomFactor)();p.ED||p.IJ?this.accept(Date.now(),e.deltaX/t,e.deltaY/t):this.accept(Date.now(),e.deltaX,e.deltaY)}accept(e,t,i){const n=new w(e,t,i);n.score=this._computeScore(n),-1===this._front&&-1===this._rear?(this._memory[0]=n,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=n)}_computeScore(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let t=.5;return-1===this._front&&-1===this._rear||this._memory[this._rear],this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(t+=.25),Math.min(Math.max(t,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}S.INSTANCE=new S;class k extends l.${get options(){return this._options}constructor(e,t,i){super(),this._onScroll=this._register(new C.Q5),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new C.Q5),e.style.overflow="hidden",this._options=function(e){const t={lazyRender:void 0!==e.lazyRender&&e.lazyRender,className:void 0!==e.className?e.className:"",useShadows:void 0===e.useShadows||e.useShadows,handleMouseWheel:void 0===e.handleMouseWheel||e.handleMouseWheel,flipAxes:void 0!==e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:void 0!==e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:void 0!==e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:void 0!==e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:void 0!==e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:void 0!==e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:void 0===e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:void 0===e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:void 0!==e.arrowSize?e.arrowSize:11,listenOnDomNode:void 0!==e.listenOnDomNode?e.listenOnDomNode:null,horizontal:void 0!==e.horizontal?e.horizontal:1,horizontalScrollbarSize:void 0!==e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:void 0!==e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:void 0!==e.horizontalHasArrows&&e.horizontalHasArrows,vertical:void 0!==e.vertical?e.vertical:1,verticalScrollbarSize:void 0!==e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:void 0!==e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:void 0!==e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:void 0!==e.scrollByPage&&e.scrollByPage};return t.horizontalSliderSize=void 0!==e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=void 0!==e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,p.dz&&(t.className+=" mac"),t}(t),this._scrollable=i,this._register(this._scrollable.onScroll((e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)})));const n={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new b(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new v(this._scrollable,this._options,n)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,s.X)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,s.X)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,s.X)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,(e=>this._onMouseOver(e))),this.onmouseleave(this._listenOnDomNode,(e=>this._onMouseLeave(e))),this._hideTimeout=this._register(new c._F),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=(0,u.B9)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,p.dz&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){void 0!==e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),void 0!==e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),void 0!==e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),void 0!==e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),void 0!==e.horizontal&&(this._options.horizontal=e.horizontal),void 0!==e.vertical&&(this._options.vertical=e.vertical),void 0!==e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),void 0!==e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),void 0!==e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new r.q(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=(0,u.B9)(this._mouseWheelToDispose),e)){const e=e=>{this._onMouseWheel(new r.q(e))};this._mouseWheelToDispose.push(o.nm(this._listenOnDomNode,o.tw.MOUSE_WHEEL,e,{passive:!1}))}}_onMouseWheel(e){const t=S.INSTANCE;t.acceptStandardWheelEvent(e);let i=!1;if(e.deltaY||e.deltaX){let n=e.deltaY*this._options.mouseWheelScrollSensitivity,o=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(n)>=Math.abs(o)?o=0:n=0),this._options.flipAxes&&([n,o]=[o,n]);const s=!p.dz&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!s||o||(o=n,n=0),e.browserEvent&&e.browserEvent.altKey&&(o*=this._options.fastScrollSensitivity,n*=this._options.fastScrollSensitivity);const r=this._scrollable.getFutureScrollPosition();let a={};if(n){const e=50*n,t=r.scrollTop-(e<0?Math.floor(e):Math.ceil(e));this._verticalScrollbar.writeScrollPosition(a,t)}if(o){const e=50*o,t=r.scrollLeft-(e<0?Math.floor(e):Math.ceil(e));this._horizontalScrollbar.writeScrollPosition(a,t)}a=this._scrollable.validateScrollPosition(a),(r.scrollLeft!==a.scrollLeft||r.scrollTop!==a.scrollTop)&&(this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),i=!0)}let n=i;!n&&this._options.alwaysConsumeMouseWheel&&(n=!0),!n&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(n=!0),n&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,n=i?" left":"",o=t?" top":"",s=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${o}`),this._topLeftShadowDomNode.setClassName(`shadow${s}${o}${n}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((()=>this._hide()),500)}}class x extends k{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new y.Rm({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:e=>o.jL(e)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class L extends k{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class E extends k{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new y.Rm({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:e=>o.jL(e)});super(e,t,i),this._register(i),this._element=e,this.onScroll((e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)})),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}},23937:(e,t,i)=>{"use strict";i.d(t,{M:()=>b,z:()=>C});var n=i(65321),o=i(4850),s=i(73098),r=i(9802),a=i(9488),l=i(41264),c=i(4669),h=i(5976),d=i(59870),u=i(76633),g=i(98401);const p={separatorBorder:l.Il.transparent};class m{set size(e){this._size=e}get size(){return this._size}get visible(){return void 0===this._cachedVisibleSize}setVisible(e,t){var i,n;e!==this.visible&&(e?(this.size=(0,d.uZ)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"==typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e),null===(n=(i=this.view).setVisible)||void 0===n||n.call(i,e))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get proportionalLayout(){var e;return null===(e=this.view.proportionalLayout)||void 0===e||e}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,"number"==typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}layout(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)}dispose(){return this.disposable.dispose(),this.view}}class f extends m{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class _ extends m{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var v,b;!function(e){e[e.Idle=0]="Idle",e[e.Busy=1]="Busy"}(v||(v={})),function(e){e.Distribute={type:"distribute"},e.Split=function(e){return{type:"split",index:e}},e.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}}}(b||(b={}));class C extends h.JT{get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e,t={}){var i,s,a,l,h;super(),this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=v.Idle,this._onDidSashChange=this._register(new c.Q5),this._onDidSashReset=this._register(new c.Q5),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=null!==(i=t.orientation)&&void 0!==i?i:0,this.inverseAltBehavior=null!==(s=t.inverseAltBehavior)&&void 0!==s&&s,this.proportionalLayout=null===(a=t.proportionalLayout)||void 0===a||a,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(0===this.orientation?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=(0,n.R3)(this.el,(0,n.$)(".sash-container")),this.viewContainer=(0,n.$)(".split-view-container"),this.scrollable=new u.Rm({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:n.jL}),this.scrollableElement=this._register(new r.$Z(this.viewContainer,{vertical:0===this.orientation?null!==(l=t.scrollbarVisibility)&&void 0!==l?l:1:2,horizontal:1===this.orientation?null!==(h=t.scrollbarVisibility)&&void 0!==h?h:1:2},this.scrollable));const d=this._register(new o.Y(this.viewContainer,"scroll")).event;this._register(d((e=>{const t=this.scrollableElement.getScrollPosition(),i=Math.abs(this.viewContainer.scrollLeft-t.scrollLeft)<=1?void 0:this.viewContainer.scrollLeft,n=Math.abs(this.viewContainer.scrollTop-t.scrollTop)<=1?void 0:this.viewContainer.scrollTop;void 0===i&&void 0===n||this.scrollableElement.setScrollPosition({scrollLeft:i,scrollTop:n})}))),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll((e=>{e.scrollTopChanged&&(this.viewContainer.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this.viewContainer.scrollLeft=e.scrollLeft)}))),(0,n.R3)(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||p),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach(((e,t)=>{const i=g.o8(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},n=e.view;this.doAddView(n,i,t,!0)})),this.contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0),this.saveProportions())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,i=this.viewItems.length,n){this.doAddView(e,t,i,n)}layout(e,t){const i=Math.max(this.size,this.contentSize);if(this.size=e,this.layoutContext=t,this.proportions){let t=0;for(let i=0;i1===this.viewItems[e].priority)),o=t.filter((e=>2===this.viewItems[e].priority));this.resize(this.viewItems.length-1,e-i,void 0,n,o)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map((e=>e.proportionalLayout?e.size/this.contentSize:void 0)))}onSashStart({sash:e,start:t,alt:i}){for(const e of this.viewItems)e.enabled=!1;const o=this.sashItems.findIndex((t=>t.sash===e)),s=(0,h.F8)((0,n.nm)(document.body,"keydown",(e=>r(this.sashDragState.current,e.altKey))),(0,n.nm)(document.body,"keyup",(()=>r(this.sashDragState.current,!1)))),r=(e,t)=>{const i=this.viewItems.map((e=>e.size));let n,r,l=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(t=!t),t)if(o===this.sashItems.length-1){const e=this.viewItems[o];l=(e.minimumSize-e.size)/2,c=(e.maximumSize-e.size)/2}else{const e=this.viewItems[o+1];l=(e.size-e.maximumSize)/2,c=(e.size-e.minimumSize)/2}if(!t){const e=(0,a.w6)(o,-1),t=(0,a.w6)(o+1,this.viewItems.length),s=e.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),l=e.reduce(((e,t)=>e+(this.viewItems[t].viewMaximumSize-i[t])),0),c=0===t.length?Number.POSITIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),h=0===t.length?Number.NEGATIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].viewMaximumSize)),0),d=Math.max(s,h),u=Math.min(c,l),g=this.findFirstSnapIndex(e),p=this.findFirstSnapIndex(t);if("number"==typeof g){const e=this.viewItems[g],t=Math.floor(e.viewMinimumSize/2);n={index:g,limitDelta:e.visible?d-t:d+t,size:e.size}}if("number"==typeof p){const e=this.viewItems[p],t=Math.floor(e.viewMinimumSize/2);r={index:p,limitDelta:e.visible?u+t:u-t,size:e.size}}}this.sashDragState={start:e,current:e,index:o,sizes:i,minDelta:l,maxDelta:c,alt:t,snapBefore:n,snapAfter:r,disposable:s}};r(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:n,alt:o,minDelta:s,maxDelta:r,snapBefore:a,snapAfter:l}=this.sashDragState;this.sashDragState.current=e;const c=e-i,h=this.resize(t,c,n,void 0,void 0,s,r,a,l);if(o){const e=t===this.sashItems.length-1,i=this.viewItems.map((e=>e.size)),n=e?t:t+1,o=this.viewItems[n],s=o.size-o.maximumSize,r=o.size-o.minimumSize,a=e?t-1:t+1;this.resize(a,-h,i,void 0,void 0,s,r)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const e of this.viewItems)e.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t="number"==typeof t?t:e.size,t=(0,d.uZ)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(this.state!==v.Idle)throw new Error("Cant modify splitview");if(this.state=v.Busy,e<0||e>=this.viewItems.length)return;const i=(0,a.w6)(this.viewItems.length).filter((t=>t!==e)),n=[...i.filter((e=>1===this.viewItems[e].priority)),e],o=i.filter((e=>2===this.viewItems[e].priority)),s=this.viewItems[e];t=Math.round(t),t=(0,d.uZ)(t,s.minimumSize,Math.min(s.maximumSize,this.size)),s.size=t,this.relayout(n,o),this.state=v.Idle}distributeViewSizes(){const e=[];let t=0;for(const i of this.viewItems)i.maximumSize-i.minimumSize>0&&(e.push(i),t+=i.size);const i=Math.floor(t/e.length);for(const t of e)t.size=(0,d.uZ)(i,t.minimumSize,t.maximumSize);const n=(0,a.w6)(this.viewItems.length),o=n.filter((e=>1===this.viewItems[e].priority)),s=n.filter((e=>2===this.viewItems[e].priority));this.relayout(o,s)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,o){if(this.state!==v.Idle)throw new Error("Cant modify splitview");this.state=v.Busy;const r=(0,n.$)(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(r):this.viewContainer.insertBefore(r,this.viewContainer.children.item(i));const l=e.onDidChange((e=>this.onViewChange(p,e))),d=(0,h.OF)((()=>this.viewContainer.removeChild(r))),u=(0,h.F8)(l,d);let g;g="number"==typeof t?t:"split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize;const p=0===this.orientation?new f(r,e,g,u):new _(r,e,g,u);if(this.viewItems.splice(i,0,p),this.viewItems.length>1){const e={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},t=0===this.orientation?new s.g(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},Object.assign(Object.assign({},e),{orientation:1})):new s.g(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},Object.assign(Object.assign({},e),{orientation:0})),n=0===this.orientation?e=>({sash:t,start:e.startY,current:e.currentY,alt:e.altKey}):e=>({sash:t,start:e.startX,current:e.currentX,alt:e.altKey}),o=c.ju.map(t.onDidStart,n)(this.onSashStart,this),r=c.ju.map(t.onDidChange,n)(this.onSashChange,this),l=c.ju.map(t.onDidEnd,(()=>this.sashItems.findIndex((e=>e.sash===t)))),d=l(this.onSashEnd,this),u=t.onDidReset((()=>{const e=this.sashItems.findIndex((e=>e.sash===t)),i=(0,a.w6)(e,-1),n=(0,a.w6)(e+1,this.viewItems.length),o=this.findFirstSnapIndex(i),s=this.findFirstSnapIndex(n);("number"!=typeof o||this.viewItems[o].visible)&&("number"!=typeof s||this.viewItems[s].visible)&&this._onDidSashReset.fire(e)})),g=(0,h.F8)(o,r,d,u,t),p={sash:t,disposable:g};this.sashItems.splice(i-1,0,p)}let m;r.appendChild(e.element),"number"!=typeof t&&"split"===t.type&&(m=[t.index]),o||this.relayout([i],m),this.state=v.Idle,o||"number"==typeof t||"distribute"!==t.type||this.distributeViewSizes()}relayout(e,t){const i=this.viewItems.reduce(((e,t)=>e+t.size),0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,i=this.viewItems.map((e=>e.size)),n,o,s=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY,l,c){if(e<0||e>=this.viewItems.length)return 0;const h=(0,a.w6)(e,-1),u=(0,a.w6)(e+1,this.viewItems.length);if(o)for(const e of o)(0,a.zI)(h,e),(0,a.zI)(u,e);if(n)for(const e of n)(0,a.al)(h,e),(0,a.al)(u,e);const g=h.map((e=>this.viewItems[e])),p=h.map((e=>i[e])),m=u.map((e=>this.viewItems[e])),f=u.map((e=>i[e])),_=h.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),v=h.reduce(((e,t)=>e+(this.viewItems[t].maximumSize-i[t])),0),b=0===u.length?Number.POSITIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),C=0===u.length?Number.NEGATIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].maximumSize)),0),y=Math.max(_,C,s),w=Math.min(b,v,r);let S=!1;if(l){const e=this.viewItems[l.index],i=t>=l.limitDelta;S=i!==e.visible,e.setVisible(i,l.size)}if(!S&&c){const e=this.viewItems[c.index],i=te+t.size),0);let i=this.size-t;const n=(0,a.w6)(this.viewItems.length-1,-1),o=n.filter((e=>1===this.viewItems[e].priority)),s=n.filter((e=>2===this.viewItems[e].priority));for(const e of s)(0,a.zI)(n,e);for(const e of o)(0,a.al)(n,e);"number"==typeof e&&(0,a.al)(n,e);for(let e=0;0!==i&&ee+t.size),0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach((e=>e.sash.layout())),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){0===this.orientation?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this.contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this.contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map((t=>e=t.size-t.minimumSize>0||e));e=!1;const i=this.viewItems.map((t=>e=t.maximumSize-t.size>0||e)),n=[...this.viewItems].reverse();e=!1;const o=n.map((t=>e=t.size-t.minimumSize>0||e)).reverse();e=!1;const s=n.map((t=>e=t.maximumSize-t.size>0||e)).reverse();let r=0;for(let e=0;e0||this.startSnappingEnabled)?n.state=1:d&&t[e]&&(r0)return;if(!e.visible&&e.snap)return t}}dispose(){var e;null===(e=this.sashDragState)||void 0===e||e.disposable.dispose(),(0,h.B9)(this.viewItems),this.viewItems=[],this.sashItems.forEach((e=>e.disposable.dispose())),this.sashItems=[],super.dispose()}}},82900:(e,t,i)=>{"use strict";i.d(t,{D:()=>r,Z:()=>a});var n=i(93794),o=i(25670),s=i(4669);const r={inputActiveOptionBorder:"#007ACC00",inputActiveOptionForeground:"#FFFFFF",inputActiveOptionBackground:"#0E639C50"};class a extends n.${constructor(e){super(),this._onChange=this._register(new s.Q5),this.onChange=this._onChange.event,this._onKeyDown=this._register(new s.Q5),this.onKeyDown=this._onKeyDown.event,this._opts=e,this._checked=this._opts.isChecked;const t=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,t.push(...o.k.asClassNameArray(this._icon))),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this.domNode.title=this._opts.title,this.domNode.classList.add(...t),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,(e=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault())})),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,(e=>{if(10===e.keyCode||3===e.keyCode)return this.checked=!this._checked,this._onChange.fire(!0),e.preventDefault(),void e.stopPropagation();this._onKeyDown.fire(e)}))}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled")}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder||"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground||"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground||"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}},93794:(e,t,i)=>{"use strict";i.d(t,{$:()=>l});var n=i(65321),o=i(59069),s=i(7448),r=i(10553),a=i(5976);class l extends a.JT{onclick(e,t){this._register(n.nm(e,n.tw.CLICK,(e=>t(new s.n(e)))))}onmousedown(e,t){this._register(n.nm(e,n.tw.MOUSE_DOWN,(e=>t(new s.n(e)))))}onmouseover(e,t){this._register(n.nm(e,n.tw.MOUSE_OVER,(e=>t(new s.n(e)))))}onmouseleave(e,t){this._register(n.nm(e,n.tw.MOUSE_LEAVE,(e=>t(new s.n(e)))))}onkeydown(e,t){this._register(n.nm(e,n.tw.KEY_DOWN,(e=>t(new o.y(e)))))}onkeyup(e,t){this._register(n.nm(e,n.tw.KEY_UP,(e=>t(new o.y(e)))))}oninput(e,t){this._register(n.nm(e,n.tw.INPUT,t))}onblur(e,t){this._register(n.nm(e,n.tw.BLUR,t))}onfocus(e,t){this._register(n.nm(e,n.tw.FOCUS,t))}ignoreGesture(e){return r.o.ignoreTarget(e)}}},74741:(e,t,i)=>{"use strict";i.d(t,{Wi:()=>l,Z0:()=>c,aU:()=>a,eZ:()=>d,wY:()=>h,xw:()=>u});var n=i(4669),o=i(5976),s=i(63580),r=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class a extends o.JT{constructor(e,t="",i="",o=!0,s){super(),this._onDidChange=this._register(new n.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=o,this._actionCallback=s}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}run(e,t){return r(this,void 0,void 0,(function*(){this._actionCallback&&(yield this._actionCallback(e))}))}}class l extends o.JT{constructor(){super(...arguments),this._onWillRun=this._register(new n.Q5),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new n.Q5),this.onDidRun=this._onDidRun.event}run(e,t){return r(this,void 0,void 0,(function*(){if(!e.enabled)return;let i;this._onWillRun.fire({action:e});try{yield this.runAction(e,t)}catch(e){i=e}this._onDidRun.fire({action:e,error:i})}))}runAction(e,t){return r(this,void 0,void 0,(function*(){yield e.run(t)}))}}class c{constructor(){this.id=c.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(const i of e)i.length&&(t=t.length?[...t,new c,...i]:i);return t}run(){return r(this,void 0,void 0,(function*(){}))}}c.ID="vs.actions.separator";class h{get actions(){return this._actions}constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i}run(){return r(this,void 0,void 0,(function*(){}))}}class d extends a{constructor(){super(d.ID,s.NC("submenu.empty","(empty)"),void 0,!1)}}function u(e){var t,i;return{id:e.id,label:e.label,class:void 0,enabled:null===(t=e.enabled)||void 0===t||t,checked:null!==(i=e.checked)&&void 0!==i&&i,run:()=>r(this,void 0,void 0,(function*(){return e.run()})),tooltip:e.label}}d.ID="vs.actions.empty"},9488:(e,t,i)=>{"use strict";function n(e,t=0){return e[e.length-(1+t)]}function o(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function s(e,t,i=((e,t)=>e===t)){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let n=0,o=e.length;n0))return n;r=n-1}}return-(s+1)}(e.length)}function l(e,t){let i=0,n=e.length;if(0===n)return 0;for(;i=t.length)throw new TypeError("invalid index");const n=t[Math.floor(t.length*Math.random())],o=[],s=[],r=[];for(const e of t){const t=i(e,n);t<0?o.push(e):t>0?s.push(e):r.push(e)}return e!!e))}function u(e){let t=0;for(let i=0;i0}function m(e,t=(e=>e)){const i=new Set;return e.filter((e=>{const n=t(e);return!i.has(n)&&(i.add(n),!0)}))}function f(e,t){const i=function(e,t){for(let i=e.length-1;i>=0;i--)if(t(e[i]))return i;return-1}(e,t);if(-1!==i)return e[i]}function _(e,t){return e.length>0?e[0]:t}function v(e,t){let i="number"==typeof t?e:0;"number"==typeof t?i=e:(i=0,t=e);const n=[];if(i<=t)for(let e=i;et;e--)n.push(e);return n}function b(e,t,i){const n=e.slice(0,t),o=e.slice(t);return n.concat(i,o)}function C(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function y(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function w(e,t){for(const i of t)e.push(i)}function S(e){return Array.isArray(e)?e:[e]}function k(e,t){for(const i of e){const e=t(i);if(void 0!==e)return e}}function x(e,t,i,n){const o=L(e,t),s=e.splice(o,i);return function(e,t,i){const n=L(e,t),o=e.length,s=i.length;e.length=o+s;for(let t=o-1;t>=n;t--)e[t+s]=e[t];for(let t=0;tt(e(i),e(n))}i.d(t,{Dc:()=>T,EB:()=>m,Gb:()=>n,H9:()=>M,HW:()=>c,JH:()=>o,LS:()=>r,Of:()=>p,Rs:()=>u,VJ:()=>A,W$:()=>R,XY:()=>g,Xh:()=>_,Zv:()=>b,_2:()=>S,al:()=>y,bX:()=>k,dF:()=>f,db:()=>x,fS:()=>s,fv:()=>D,jV:()=>I,kX:()=>d,lG:()=>l,ry:()=>a,tT:()=>N,vA:()=>w,vM:()=>h,w6:()=>v,zI:()=>C}),function(e){e.isLessThan=function(e){return e<0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(E||(E={}));const D=(e,t)=>e-t;function T(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n0&&(i=o)}return i}function I(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n=0&&(i=o)}return i}function A(e,t){return T(e,((e,i)=>-t(e,i)))}class M{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class R{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new R((t=>this.iterate((i=>!e(i)||t(i)))))}map(e){return new R((t=>this.iterate((i=>t(e(i))))))}findLast(e){let t;return this.iterate((i=>(e(i)&&(t=i),!0))),t}findLastMaxBy(e){let t,i=!0;return this.iterate((n=>((i||E.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0))),t}}R.empty=new R((e=>{}))},35146:(e,t,i)=>{"use strict";i.d(t,{DM:()=>a,eZ:()=>r,ok:()=>o,vE:()=>s});var n=i(17301);function o(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function s(e,t="Unreachable"){throw new Error(t)}function r(e){e()||(e(),(0,n.dL)(new n.he("Assertion Failed")))}function a(e,t){let i=0;for(;i{"use strict";i.d(t,{Aq:()=>E,CR:()=>x,J8:()=>d,PG:()=>u,Ps:()=>b,To:()=>S,Ue:()=>k,Vg:()=>v,Vs:()=>_,_F:()=>C,eP:()=>g,jT:()=>L,pY:()=>w,rH:()=>f,vp:()=>m,zS:()=>D,zh:()=>y});var n=i(71050),o=i(17301),s=i(4669),r=i(5976),a=i(1432),l=i(5635),c=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))},h=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(t){return new Promise((function(n,o){!function(e,t,i,n){Promise.resolve(n).then((function(t){e({value:t,done:i})}),t)}(n,o,(t=e[i](t)).done,t.value)}))}}};function d(e){return!!e&&"function"==typeof e.then}function u(e){const t=new n.A,i=e(t.token),s=new Promise(((e,n)=>{const s=t.token.onCancellationRequested((()=>{s.dispose(),t.dispose(),n(new o.FU)}));Promise.resolve(i).then((i=>{s.dispose(),t.dispose(),e(i)}),(e=>{s.dispose(),t.dispose(),n(e)}))}));return new class{cancel(){t.cancel()}then(e,t){return s.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return s.finally(e)}}}function g(e,t,i){return new Promise(((n,o)=>{const s=t.onCancellationRequested((()=>{s.dispose(),n(i)}));e.then(n,o).finally((()=>s.dispose()))}))}class p{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{this.queuedPromise=null;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise((t=>{this.activePromise.then(e,e).then(t)}))}return new Promise(((e,t)=>{this.queuedPromise.then(e,t)}))}return this.activePromise=e(),new Promise(((e,t)=>{this.activePromise.then((t=>{this.activePromise=null,e(t)}),(e=>{this.activePromise=null,t(e)}))}))}}class m{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(((e,t)=>{this.doResolve=e,this.doReject=t})).then((()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const e=this.task;return this.task=null,e()}})));const i=()=>{var e;this.deferred=null,null===(e=this.doResolve)||void 0===e||e.call(this,null)};return this.deferred=t===l.n?(e=>{let t=!0;return queueMicrotask((()=>{t&&(t=!1,e())})),{isTriggered:()=>t,dispose:()=>{t=!1}}})(i):((e,t)=>{let i=!0;const n=setTimeout((()=>{i=!1,t()}),e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(n),i=!1}}})(t,i),this.completionPromise}isTriggered(){var e;return!!(null===(e=this.deferred)||void 0===e?void 0:e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&(null===(e=this.doReject)||void 0===e||e.call(this,new o.FU),this.completionPromise=null)}cancelTimeout(){var e;null===(e=this.deferred)||void 0===e||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class f{constructor(e){this.delayer=new m(e),this.throttler=new p}trigger(e,t){return this.delayer.trigger((()=>this.throttler.queue(e)),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}}function _(e,t){return t?new Promise(((i,n)=>{const s=setTimeout((()=>{r.dispose(),i()}),e),r=t.onCancellationRequested((()=>{clearTimeout(s),r.dispose(),n(new o.FU)}))})):u((t=>_(e,t)))}function v(e,t=0){const i=setTimeout(e,t);return(0,r.OF)((()=>clearTimeout(i)))}function b(e,t=(e=>!!e),i=null){let n=0;const o=e.length,s=()=>{if(n>=o)return Promise.resolve(i);const r=e[n++];return Promise.resolve(r()).then((e=>t(e)?Promise.resolve(e):s()))};return s()}class C{constructor(e,t){this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout((()=>{this._token=-1,e()}),t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout((()=>{this._token=-1,e()}),t))}}class y{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval((()=>{e()}),t)}}class w{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;null===(e=this.runner)||void 0===e||e.call(this)}}let S;S="function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback?e=>{(0,a.fn)((()=>{if(t)return;const i=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining:()=>Math.max(0,i-Date.now())}))}));let t=!1;return{dispose(){t||(t=!0)}}}:(e,t)=>{const i=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0);let n=!1;return{dispose(){n||(n=!0,cancelIdleCallback(i))}}};class k{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=S((()=>this._executor()))}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class x{get isRejected(){return this.rejected}get isSettled(){return this.rejected||this.resolved}constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise(((e,t)=>{this.completeCallback=e,this.errorCallback=t}))}complete(e){return new Promise((t=>{this.completeCallback(e),this.resolved=!0,t()}))}cancel(){new Promise((e=>{this.errorCallback(new o.FU),this.rejected=!0,e()}))}}var L;!function(e){e.settled=function(e){return c(this,void 0,void 0,(function*(){let t;const i=yield Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if(void 0!==t)throw t;return i}))},e.withAsyncBody=function(e){return new Promise(((t,i)=>c(this,void 0,void 0,(function*(){try{yield e(t,i)}catch(e){i(e)}}))))}}(L||(L={}));class E{static fromArray(e){return new E((t=>{t.emitMany(e)}))}static fromPromise(e){return new E((t=>c(this,void 0,void 0,(function*(){t.emitMany(yield e)}))))}static fromPromises(e){return new E((t=>c(this,void 0,void 0,(function*(){yield Promise.all(e.map((e=>c(this,void 0,void 0,(function*(){return t.emitOne(yield e)})))))}))))}static merge(e){return new E((t=>c(this,void 0,void 0,(function*(){yield Promise.all(e.map((e=>{var i,n,o;return c(this,void 0,void 0,(function*(){var s,r,a,l;try{for(i=!0,n=h(e);!(s=(o=yield n.next()).done);){l=o.value,i=!1;try{const e=l;t.emitOne(e)}finally{i=!0}}}catch(e){r={error:e}}finally{try{i||s||!(a=n.return)||(yield a.call(n))}finally{if(r)throw r.error}}}))})))}))))}constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new s.Q5,queueMicrotask((()=>c(this,void 0,void 0,(function*(){const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{yield Promise.resolve(e(t)),this.resolve()}catch(e){this.reject(e)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))))}[Symbol.asyncIterator](){let e=0;return{next:()=>c(this,void 0,void 0,(function*(){for(;;){if(2===this._state)throw this._error;if(ec(this,void 0,void 0,(function*(){var n,o,s,r;try{for(var a,l=!0,c=h(e);!(n=(a=yield c.next()).done);){r=a.value,l=!1;try{const e=r;i.emitOne(t(e))}finally{l=!0}}}catch(e){o={error:e}}finally{try{l||n||!(s=c.return)||(yield s.call(c))}finally{if(o)throw o.error}}}))))}map(e){return E.map(this,e)}static filter(e,t){return new E((i=>c(this,void 0,void 0,(function*(){var n,o,s,r;try{for(var a,l=!0,c=h(e);!(n=(a=yield c.next()).done);){r=a.value,l=!1;try{const e=r;t(e)&&i.emitOne(e)}finally{l=!0}}}catch(e){o={error:e}}finally{try{l||n||!(s=c.return)||(yield s.call(c))}finally{if(o)throw o.error}}}))))}filter(e){return E.filter(this,e)}static coalesce(e){return E.filter(e,(e=>!!e))}coalesce(){return E.coalesce(this)}static toPromise(e){var t,i,n,o,s,r,a;return c(this,void 0,void 0,(function*(){const l=[];try{for(t=!0,i=h(e);n=yield i.next(),!(o=n.done);){a=n.value,t=!1;try{const e=a;l.push(e)}finally{t=!0}}}catch(e){s={error:e}}finally{try{t||o||!(r=i.return)||(yield r.call(i))}finally{if(s)throw s.error}}return l}))}toPromise(){return E.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}E.EMPTY=E.fromArray([]);class N extends E{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function D(e){const t=new n.A,i=e(t.token);return new N(t,(e=>c(this,void 0,void 0,(function*(){var n,s,r,a;const l=t.token.onCancellationRequested((()=>{l.dispose(),t.dispose(),e.reject(new o.FU)}));try{try{for(var c,d=!0,u=h(i);!(n=(c=yield u.next()).done);){a=c.value,d=!1;try{const i=a;if(t.token.isCancellationRequested)return;e.emitOne(i)}finally{d=!0}}}catch(e){s={error:e}}finally{try{d||n||!(r=u.return)||(yield r.call(u))}finally{if(s)throw s.error}}l.dispose(),t.dispose()}catch(i){l.dispose(),t.dispose(),e.reject(i)}}))))}},53060:(e,t,i)=>{"use strict";i.d(t,{Ag:()=>l,Cg:()=>d,KN:()=>s,Q$:()=>h,T4:()=>c,mP:()=>r,oq:()=>a});const n="undefined"!=typeof Buffer;let o;class s{static wrap(e){return n&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new s(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return n?this.buffer.toString():(o||(o=new TextDecoder),o.decode(this.buffer))}}function r(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0}function a(e,t,i){e[i+0]=255&t,t>>>=8,e[i+1]=255&t}function l(e,t){return e[t]*Math.pow(2,24)+e[t+1]*Math.pow(2,16)+e[t+2]*Math.pow(2,8)+e[t+3]}function c(e,t,i){e[i+3]=t,t>>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function h(e,t){return e[t]}function d(e,t,i){e[i]=t}},701:(e,t,i)=>{"use strict";i.d(t,{b:()=>o,t:()=>n});class n{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}class o{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);const t=this.fn(e);return this._map.set(e,t),t}}},71050:(e,t,i)=>{"use strict";i.d(t,{A:()=>a,T:()=>s});var n=i(4669);const o=Object.freeze((function(e,t){const i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof r||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.ju.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o})}(s||(s={}));class r{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?o:(this._emitter||(this._emitter=new n.Q5),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new r),this._token}cancel(){this._token?this._token instanceof r&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof r&&this._token.dispose():this._token=s.None}}},73046:(e,t,i)=>{"use strict";i.d(t,{l:()=>a,u:()=>r});var n=i(98401);const o=Object.create(null);function s(e,t){if((0,n.HD)(t)){const i=o[t];if(void 0===i)throw new Error(`${e} references an unknown codicon: ${t}`);t=i}return o[e]=t,{id:e}}function r(){return o}const a={add:s("add",6e4),plus:s("plus",6e4),gistNew:s("gist-new",6e4),repoCreate:s("repo-create",6e4),lightbulb:s("lightbulb",60001),lightBulb:s("light-bulb",60001),repo:s("repo",60002),repoDelete:s("repo-delete",60002),gistFork:s("gist-fork",60003),repoForked:s("repo-forked",60003),gitPullRequest:s("git-pull-request",60004),gitPullRequestAbandoned:s("git-pull-request-abandoned",60004),recordKeys:s("record-keys",60005),keyboard:s("keyboard",60005),tag:s("tag",60006),tagAdd:s("tag-add",60006),tagRemove:s("tag-remove",60006),person:s("person",60007),personFollow:s("person-follow",60007),personOutline:s("person-outline",60007),personFilled:s("person-filled",60007),gitBranch:s("git-branch",60008),gitBranchCreate:s("git-branch-create",60008),gitBranchDelete:s("git-branch-delete",60008),sourceControl:s("source-control",60008),mirror:s("mirror",60009),mirrorPublic:s("mirror-public",60009),star:s("star",60010),starAdd:s("star-add",60010),starDelete:s("star-delete",60010),starEmpty:s("star-empty",60010),comment:s("comment",60011),commentAdd:s("comment-add",60011),alert:s("alert",60012),warning:s("warning",60012),search:s("search",60013),searchSave:s("search-save",60013),logOut:s("log-out",60014),signOut:s("sign-out",60014),logIn:s("log-in",60015),signIn:s("sign-in",60015),eye:s("eye",60016),eyeUnwatch:s("eye-unwatch",60016),eyeWatch:s("eye-watch",60016),circleFilled:s("circle-filled",60017),primitiveDot:s("primitive-dot",60017),closeDirty:s("close-dirty",60017),debugBreakpoint:s("debug-breakpoint",60017),debugBreakpointDisabled:s("debug-breakpoint-disabled",60017),debugHint:s("debug-hint",60017),primitiveSquare:s("primitive-square",60018),edit:s("edit",60019),pencil:s("pencil",60019),info:s("info",60020),issueOpened:s("issue-opened",60020),gistPrivate:s("gist-private",60021),gitForkPrivate:s("git-fork-private",60021),lock:s("lock",60021),mirrorPrivate:s("mirror-private",60021),close:s("close",60022),removeClose:s("remove-close",60022),x:s("x",60022),repoSync:s("repo-sync",60023),sync:s("sync",60023),clone:s("clone",60024),desktopDownload:s("desktop-download",60024),beaker:s("beaker",60025),microscope:s("microscope",60025),vm:s("vm",60026),deviceDesktop:s("device-desktop",60026),file:s("file",60027),fileText:s("file-text",60027),more:s("more",60028),ellipsis:s("ellipsis",60028),kebabHorizontal:s("kebab-horizontal",60028),mailReply:s("mail-reply",60029),reply:s("reply",60029),organization:s("organization",60030),organizationFilled:s("organization-filled",60030),organizationOutline:s("organization-outline",60030),newFile:s("new-file",60031),fileAdd:s("file-add",60031),newFolder:s("new-folder",60032),fileDirectoryCreate:s("file-directory-create",60032),trash:s("trash",60033),trashcan:s("trashcan",60033),history:s("history",60034),clock:s("clock",60034),folder:s("folder",60035),fileDirectory:s("file-directory",60035),symbolFolder:s("symbol-folder",60035),logoGithub:s("logo-github",60036),markGithub:s("mark-github",60036),github:s("github",60036),terminal:s("terminal",60037),console:s("console",60037),repl:s("repl",60037),zap:s("zap",60038),symbolEvent:s("symbol-event",60038),error:s("error",60039),stop:s("stop",60039),variable:s("variable",60040),symbolVariable:s("symbol-variable",60040),array:s("array",60042),symbolArray:s("symbol-array",60042),symbolModule:s("symbol-module",60043),symbolPackage:s("symbol-package",60043),symbolNamespace:s("symbol-namespace",60043),symbolObject:s("symbol-object",60043),symbolMethod:s("symbol-method",60044),symbolFunction:s("symbol-function",60044),symbolConstructor:s("symbol-constructor",60044),symbolBoolean:s("symbol-boolean",60047),symbolNull:s("symbol-null",60047),symbolNumeric:s("symbol-numeric",60048),symbolNumber:s("symbol-number",60048),symbolStructure:s("symbol-structure",60049),symbolStruct:s("symbol-struct",60049),symbolParameter:s("symbol-parameter",60050),symbolTypeParameter:s("symbol-type-parameter",60050),symbolKey:s("symbol-key",60051),symbolText:s("symbol-text",60051),symbolReference:s("symbol-reference",60052),goToFile:s("go-to-file",60052),symbolEnum:s("symbol-enum",60053),symbolValue:s("symbol-value",60053),symbolRuler:s("symbol-ruler",60054),symbolUnit:s("symbol-unit",60054),activateBreakpoints:s("activate-breakpoints",60055),archive:s("archive",60056),arrowBoth:s("arrow-both",60057),arrowDown:s("arrow-down",60058),arrowLeft:s("arrow-left",60059),arrowRight:s("arrow-right",60060),arrowSmallDown:s("arrow-small-down",60061),arrowSmallLeft:s("arrow-small-left",60062),arrowSmallRight:s("arrow-small-right",60063),arrowSmallUp:s("arrow-small-up",60064),arrowUp:s("arrow-up",60065),bell:s("bell",60066),bold:s("bold",60067),book:s("book",60068),bookmark:s("bookmark",60069),debugBreakpointConditionalUnverified:s("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:s("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:s("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:s("debug-breakpoint-data-unverified",60072),debugBreakpointData:s("debug-breakpoint-data",60073),debugBreakpointDataDisabled:s("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:s("debug-breakpoint-log-unverified",60074),debugBreakpointLog:s("debug-breakpoint-log",60075),debugBreakpointLogDisabled:s("debug-breakpoint-log-disabled",60075),briefcase:s("briefcase",60076),broadcast:s("broadcast",60077),browser:s("browser",60078),bug:s("bug",60079),calendar:s("calendar",60080),caseSensitive:s("case-sensitive",60081),check:s("check",60082),checklist:s("checklist",60083),chevronDown:s("chevron-down",60084),dropDownButton:s("drop-down-button",60084),chevronLeft:s("chevron-left",60085),chevronRight:s("chevron-right",60086),chevronUp:s("chevron-up",60087),chromeClose:s("chrome-close",60088),chromeMaximize:s("chrome-maximize",60089),chromeMinimize:s("chrome-minimize",60090),chromeRestore:s("chrome-restore",60091),circle:s("circle",60092),circleOutline:s("circle-outline",60092),debugBreakpointUnverified:s("debug-breakpoint-unverified",60092),circleSlash:s("circle-slash",60093),circuitBoard:s("circuit-board",60094),clearAll:s("clear-all",60095),clippy:s("clippy",60096),closeAll:s("close-all",60097),cloudDownload:s("cloud-download",60098),cloudUpload:s("cloud-upload",60099),code:s("code",60100),collapseAll:s("collapse-all",60101),colorMode:s("color-mode",60102),commentDiscussion:s("comment-discussion",60103),compareChanges:s("compare-changes",60157),creditCard:s("credit-card",60105),dash:s("dash",60108),dashboard:s("dashboard",60109),database:s("database",60110),debugContinue:s("debug-continue",60111),debugDisconnect:s("debug-disconnect",60112),debugPause:s("debug-pause",60113),debugRestart:s("debug-restart",60114),debugStart:s("debug-start",60115),debugStepInto:s("debug-step-into",60116),debugStepOut:s("debug-step-out",60117),debugStepOver:s("debug-step-over",60118),debugStop:s("debug-stop",60119),debug:s("debug",60120),deviceCameraVideo:s("device-camera-video",60121),deviceCamera:s("device-camera",60122),deviceMobile:s("device-mobile",60123),diffAdded:s("diff-added",60124),diffIgnored:s("diff-ignored",60125),diffModified:s("diff-modified",60126),diffRemoved:s("diff-removed",60127),diffRenamed:s("diff-renamed",60128),diff:s("diff",60129),discard:s("discard",60130),editorLayout:s("editor-layout",60131),emptyWindow:s("empty-window",60132),exclude:s("exclude",60133),extensions:s("extensions",60134),eyeClosed:s("eye-closed",60135),fileBinary:s("file-binary",60136),fileCode:s("file-code",60137),fileMedia:s("file-media",60138),filePdf:s("file-pdf",60139),fileSubmodule:s("file-submodule",60140),fileSymlinkDirectory:s("file-symlink-directory",60141),fileSymlinkFile:s("file-symlink-file",60142),fileZip:s("file-zip",60143),files:s("files",60144),filter:s("filter",60145),flame:s("flame",60146),foldDown:s("fold-down",60147),foldUp:s("fold-up",60148),fold:s("fold",60149),folderActive:s("folder-active",60150),folderOpened:s("folder-opened",60151),gear:s("gear",60152),gift:s("gift",60153),gistSecret:s("gist-secret",60154),gist:s("gist",60155),gitCommit:s("git-commit",60156),gitCompare:s("git-compare",60157),gitMerge:s("git-merge",60158),githubAction:s("github-action",60159),githubAlt:s("github-alt",60160),globe:s("globe",60161),grabber:s("grabber",60162),graph:s("graph",60163),gripper:s("gripper",60164),heart:s("heart",60165),home:s("home",60166),horizontalRule:s("horizontal-rule",60167),hubot:s("hubot",60168),inbox:s("inbox",60169),issueClosed:s("issue-closed",60324),issueReopened:s("issue-reopened",60171),issues:s("issues",60172),italic:s("italic",60173),jersey:s("jersey",60174),json:s("json",60175),bracket:s("bracket",60175),kebabVertical:s("kebab-vertical",60176),key:s("key",60177),law:s("law",60178),lightbulbAutofix:s("lightbulb-autofix",60179),linkExternal:s("link-external",60180),link:s("link",60181),listOrdered:s("list-ordered",60182),listUnordered:s("list-unordered",60183),liveShare:s("live-share",60184),loading:s("loading",60185),location:s("location",60186),mailRead:s("mail-read",60187),mail:s("mail",60188),markdown:s("markdown",60189),megaphone:s("megaphone",60190),mention:s("mention",60191),milestone:s("milestone",60192),mortarBoard:s("mortar-board",60193),move:s("move",60194),multipleWindows:s("multiple-windows",60195),mute:s("mute",60196),noNewline:s("no-newline",60197),note:s("note",60198),octoface:s("octoface",60199),openPreview:s("open-preview",60200),package_:s("package",60201),paintcan:s("paintcan",60202),pin:s("pin",60203),play:s("play",60204),run:s("run",60204),plug:s("plug",60205),preserveCase:s("preserve-case",60206),preview:s("preview",60207),project:s("project",60208),pulse:s("pulse",60209),question:s("question",60210),quote:s("quote",60211),radioTower:s("radio-tower",60212),reactions:s("reactions",60213),references:s("references",60214),refresh:s("refresh",60215),regex:s("regex",60216),remoteExplorer:s("remote-explorer",60217),remote:s("remote",60218),remove:s("remove",60219),replaceAll:s("replace-all",60220),replace:s("replace",60221),repoClone:s("repo-clone",60222),repoForcePush:s("repo-force-push",60223),repoPull:s("repo-pull",60224),repoPush:s("repo-push",60225),report:s("report",60226),requestChanges:s("request-changes",60227),rocket:s("rocket",60228),rootFolderOpened:s("root-folder-opened",60229),rootFolder:s("root-folder",60230),rss:s("rss",60231),ruby:s("ruby",60232),saveAll:s("save-all",60233),saveAs:s("save-as",60234),save:s("save",60235),screenFull:s("screen-full",60236),screenNormal:s("screen-normal",60237),searchStop:s("search-stop",60238),server:s("server",60240),settingsGear:s("settings-gear",60241),settings:s("settings",60242),shield:s("shield",60243),smiley:s("smiley",60244),sortPrecedence:s("sort-precedence",60245),splitHorizontal:s("split-horizontal",60246),splitVertical:s("split-vertical",60247),squirrel:s("squirrel",60248),starFull:s("star-full",60249),starHalf:s("star-half",60250),symbolClass:s("symbol-class",60251),symbolColor:s("symbol-color",60252),symbolCustomColor:s("symbol-customcolor",60252),symbolConstant:s("symbol-constant",60253),symbolEnumMember:s("symbol-enum-member",60254),symbolField:s("symbol-field",60255),symbolFile:s("symbol-file",60256),symbolInterface:s("symbol-interface",60257),symbolKeyword:s("symbol-keyword",60258),symbolMisc:s("symbol-misc",60259),symbolOperator:s("symbol-operator",60260),symbolProperty:s("symbol-property",60261),wrench:s("wrench",60261),wrenchSubaction:s("wrench-subaction",60261),symbolSnippet:s("symbol-snippet",60262),tasklist:s("tasklist",60263),telescope:s("telescope",60264),textSize:s("text-size",60265),threeBars:s("three-bars",60266),thumbsdown:s("thumbsdown",60267),thumbsup:s("thumbsup",60268),tools:s("tools",60269),triangleDown:s("triangle-down",60270),triangleLeft:s("triangle-left",60271),triangleRight:s("triangle-right",60272),triangleUp:s("triangle-up",60273),twitter:s("twitter",60274),unfold:s("unfold",60275),unlock:s("unlock",60276),unmute:s("unmute",60277),unverified:s("unverified",60278),verified:s("verified",60279),versions:s("versions",60280),vmActive:s("vm-active",60281),vmOutline:s("vm-outline",60282),vmRunning:s("vm-running",60283),watch:s("watch",60284),whitespace:s("whitespace",60285),wholeWord:s("whole-word",60286),window:s("window",60287),wordWrap:s("word-wrap",60288),zoomIn:s("zoom-in",60289),zoomOut:s("zoom-out",60290),listFilter:s("list-filter",60291),listFlat:s("list-flat",60292),listSelection:s("list-selection",60293),selection:s("selection",60293),listTree:s("list-tree",60294),debugBreakpointFunctionUnverified:s("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:s("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:s("debug-breakpoint-function-disabled",60296),debugStackframeActive:s("debug-stackframe-active",60297),circleSmallFilled:s("circle-small-filled",60298),debugStackframeDot:s("debug-stackframe-dot",60298),debugStackframe:s("debug-stackframe",60299),debugStackframeFocused:s("debug-stackframe-focused",60299),debugBreakpointUnsupported:s("debug-breakpoint-unsupported",60300),symbolString:s("symbol-string",60301),debugReverseContinue:s("debug-reverse-continue",60302),debugStepBack:s("debug-step-back",60303),debugRestartFrame:s("debug-restart-frame",60304),callIncoming:s("call-incoming",60306),callOutgoing:s("call-outgoing",60307),menu:s("menu",60308),expandAll:s("expand-all",60309),feedback:s("feedback",60310),groupByRefType:s("group-by-ref-type",60311),ungroupByRefType:s("ungroup-by-ref-type",60312),account:s("account",60313),bellDot:s("bell-dot",60314),debugConsole:s("debug-console",60315),library:s("library",60316),output:s("output",60317),runAll:s("run-all",60318),syncIgnored:s("sync-ignored",60319),pinned:s("pinned",60320),githubInverted:s("github-inverted",60321),debugAlt:s("debug-alt",60305),serverProcess:s("server-process",60322),serverEnvironment:s("server-environment",60323),pass:s("pass",60324),stopCircle:s("stop-circle",60325),playCircle:s("play-circle",60326),record:s("record",60327),debugAltSmall:s("debug-alt-small",60328),vmConnect:s("vm-connect",60329),cloud:s("cloud",60330),merge:s("merge",60331),exportIcon:s("export",60332),graphLeft:s("graph-left",60333),magnet:s("magnet",60334),notebook:s("notebook",60335),redo:s("redo",60336),checkAll:s("check-all",60337),pinnedDirty:s("pinned-dirty",60338),passFilled:s("pass-filled",60339),circleLargeFilled:s("circle-large-filled",60340),circleLarge:s("circle-large",60341),circleLargeOutline:s("circle-large-outline",60341),combine:s("combine",60342),gather:s("gather",60342),table:s("table",60343),variableGroup:s("variable-group",60344),typeHierarchy:s("type-hierarchy",60345),typeHierarchySub:s("type-hierarchy-sub",60346),typeHierarchySuper:s("type-hierarchy-super",60347),gitPullRequestCreate:s("git-pull-request-create",60348),runAbove:s("run-above",60349),runBelow:s("run-below",60350),notebookTemplate:s("notebook-template",60351),debugRerun:s("debug-rerun",60352),workspaceTrusted:s("workspace-trusted",60353),workspaceUntrusted:s("workspace-untrusted",60354),workspaceUnspecified:s("workspace-unspecified",60355),terminalCmd:s("terminal-cmd",60356),terminalDebian:s("terminal-debian",60357),terminalLinux:s("terminal-linux",60358),terminalPowershell:s("terminal-powershell",60359),terminalTmux:s("terminal-tmux",60360),terminalUbuntu:s("terminal-ubuntu",60361),terminalBash:s("terminal-bash",60362),arrowSwap:s("arrow-swap",60363),copy:s("copy",60364),personAdd:s("person-add",60365),filterFilled:s("filter-filled",60366),wand:s("wand",60367),debugLineByLine:s("debug-line-by-line",60368),inspect:s("inspect",60369),layers:s("layers",60370),layersDot:s("layers-dot",60371),layersActive:s("layers-active",60372),compass:s("compass",60373),compassDot:s("compass-dot",60374),compassActive:s("compass-active",60375),azure:s("azure",60376),issueDraft:s("issue-draft",60377),gitPullRequestClosed:s("git-pull-request-closed",60378),gitPullRequestDraft:s("git-pull-request-draft",60379),debugAll:s("debug-all",60380),debugCoverage:s("debug-coverage",60381),runErrors:s("run-errors",60382),folderLibrary:s("folder-library",60383),debugContinueSmall:s("debug-continue-small",60384),beakerStop:s("beaker-stop",60385),graphLine:s("graph-line",60386),graphScatter:s("graph-scatter",60387),pieChart:s("pie-chart",60388),bracketDot:s("bracket-dot",60389),bracketError:s("bracket-error",60390),lockSmall:s("lock-small",60391),azureDevops:s("azure-devops",60392),verifiedFilled:s("verified-filled",60393),newLine:s("newline",60394),layout:s("layout",60395),layoutActivitybarLeft:s("layout-activitybar-left",60396),layoutActivitybarRight:s("layout-activitybar-right",60397),layoutPanelLeft:s("layout-panel-left",60398),layoutPanelCenter:s("layout-panel-center",60399),layoutPanelJustify:s("layout-panel-justify",60400),layoutPanelRight:s("layout-panel-right",60401),layoutPanel:s("layout-panel",60402),layoutSidebarLeft:s("layout-sidebar-left",60403),layoutSidebarRight:s("layout-sidebar-right",60404),layoutStatusbar:s("layout-statusbar",60405),layoutMenubar:s("layout-menubar",60406),layoutCentered:s("layout-centered",60407),layoutSidebarRightOff:s("layout-sidebar-right-off",60416),layoutPanelOff:s("layout-panel-off",60417),layoutSidebarLeftOff:s("layout-sidebar-left-off",60418),target:s("target",60408),indent:s("indent",60409),recordSmall:s("record-small",60410),errorSmall:s("error-small",60411),arrowCircleDown:s("arrow-circle-down",60412),arrowCircleLeft:s("arrow-circle-left",60413),arrowCircleRight:s("arrow-circle-right",60414),arrowCircleUp:s("arrow-circle-up",60415),heartFilled:s("heart-filled",60420),map:s("map",60421),mapFilled:s("map-filled",60422),circleSmall:s("circle-small",60423),bellSlash:s("bell-slash",60424),bellSlashDot:s("bell-slash-dot",60425),commentUnresolved:s("comment-unresolved",60426),gitPullRequestGoToChanges:s("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:s("git-pull-request-new-changes",60428),searchFuzzy:s("search-fuzzy",60429),commentDraft:s("comment-draft",60430),send:s("send",60431),sparkle:s("sparkle",60432),insert:s("insert",60433),dialogError:s("dialog-error","error"),dialogWarning:s("dialog-warning","warning"),dialogInfo:s("dialog-info","info"),dialogClose:s("dialog-close","close"),treeItemExpanded:s("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:s("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:s("tree-filter-on-type-off","list-selection"),treeFilterClear:s("tree-filter-clear","close"),treeItemLoading:s("tree-item-loading","loading"),menuSelection:s("menu-selection","check"),menuSubmenu:s("menu-submenu","chevron-right"),menuBarMore:s("menubar-more","more"),scrollbarButtonLeft:s("scrollbar-button-left","triangle-left"),scrollbarButtonRight:s("scrollbar-button-right","triangle-right"),scrollbarButtonUp:s("scrollbar-button-up","triangle-up"),scrollbarButtonDown:s("scrollbar-button-down","triangle-down"),toolBarMore:s("toolbar-more","more"),quickInputBack:s("quick-input-back","arrow-left")}},41264:(e,t,i)=>{"use strict";function n(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}i.d(t,{Il:()=>a,Oz:()=>s,VS:()=>o,tx:()=>r});class o{constructor(e,t,i,o=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class s{constructor(e,t,i,o){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.l=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,o=e.a,r=Math.max(t,i,n),a=Math.min(t,i,n);let l=0,c=0;const h=(a+r)/2,d=r-a;if(d>0){switch(c=Math.min(h<=.5?d/(2*h):d/(2-2*h),1),r){case t:l=(i-n)/d+(i1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:n,a:r}=e;let a,l,c;if(0===i)a=l=c=n;else{const e=n<.5?n*(1+i):n+i-n*i,o=2*n-e;a=s._hue2rgb(o,e,t+1/3),l=s._hue2rgb(o,e,t),c=s._hue2rgb(o,e,t-1/3)}return new o(Math.round(255*a),Math.round(255*l),Math.round(255*c),r)}}class r{constructor(e,t,i,o){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.v=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,o=Math.max(t,i,n),s=o-Math.min(t,i,n),a=0===o?0:s/o;let l;return l=0===s?0:o===t?((i-n)/s%6+6)%6:o===i?(n-t)/s+2:(t-i)/s+4,new r(Math.round(60*l),a,o,e.a)}static toRGBA(e){const{h:t,s:i,v:n,a:s}=e,r=n*i,a=r*(1-Math.abs(t/60%2-1)),l=n-r;let[c,h,d]=[0,0,0];return t<60?(c=r,h=a):t<120?(c=a,h=r):t<180?(h=r,d=a):t<240?(h=a,d=r):t<300?(c=a,d=r):t<=360&&(c=r,d=a),c=Math.round(255*(c+l)),h=Math.round(255*(h+l)),d=Math.round(255*(d+l)),new o(c,h,d,s)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:r.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof o)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof r))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=r.toRGBA(e)}}equals(e){return!!e&&o.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&r.equals(this.hsva,e.hsva)}getRelativeLuminance(){return n(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance(){"use strict";i.d(t,{Hl:()=>c,Ix:()=>l,Z0:()=>h,ZO:()=>a});var n=i(9488),o=i(53725),s=i(98e3),r=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function a(e){return{id:(0,s.R)(),asString:()=>r(this,void 0,void 0,(function*(){return e})),asFile:()=>{},value:"string"==typeof e?e:void 0}}function l(e,t,i){return{id:(0,s.R)(),asString:()=>r(this,void 0,void 0,(function*(){return""})),asFile:()=>({name:e,uri:t,data:i}),value:void 0}}class c{constructor(){this._entries=new Map}get size(){let e=0;return this.forEach((()=>e++)),e}has(e){return this._entries.has(this.toKey(e))}matches(e){if(this.has(e))return!0;if("files"===e.toLowerCase())return o.$.some(this.values(),(e=>e.asFile()));if("*/*"===e)return this._entries.size>0;const t=this.toKey(e).match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,s]=t;return"*"===s&&o.$.some(this._entries.keys(),(e=>e.startsWith(n+"/")))}get(e){var t;return null===(t=this._entries.get(this.toKey(e)))||void 0===t?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*entries(){for(const[e,t]of this._entries.entries())for(const i of t)yield[e,i]}values(){return Array.from(this._entries.values()).flat()}forEach(e){for(const[t,i]of this.entries())e(i,t)}toKey(e){return e.toLowerCase()}}const h=Object.freeze({create:e=>(0,n.EB)(e.map((e=>e.toString()))).join("\r\n"),split:e=>e.split("\r\n"),parse:e=>h.split(e).filter((e=>!e.startsWith("#")))})},49898:(e,t,i)=>{"use strict";function n(e,t,i){let n=null,o=null;if("function"==typeof i.value?(n="value",o=i.value,0!==o.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"==typeof i.get&&(n="get",o=i.get),!o)throw new Error("not supported");const s=`$memoize$${t}`;i[n]=function(...e){return this.hasOwnProperty(s)||Object.defineProperty(this,s,{configurable:!1,enumerable:!1,writable:!1,value:o.apply(this,e)}),this[s]}}i.d(t,{H:()=>n})},2484:(e,t,i)=>{"use strict";i.d(t,{Hs:()=>h,a$:()=>r});class n{constructor(e,t,i,n){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=n}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var o=i(89954);class s{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,n=e.length;i0||this.m_modifiedCount>0)&&this.m_changes.push(new n(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class h{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[n,o,s]=h._getElements(e),[r,a,l]=h._getElements(t);this._hasStrings=s&&l,this._originalStringElements=n,this._originalElementsOrHash=o,this._modifiedStringElements=r,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(h._isStringArray(t)){const e=new Int32Array(t.length);for(let i=0,n=t.length;i=e&&o>=i&&this.ElementsAreEqual(t,o);)t--,o--;if(e>t||i>o){let s;return i<=o?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new n(e,0,i,o-i+1)]):e<=t?(a.Assert(i===o+1,"modifiedStart should only be one more than modifiedEnd"),s=[new n(e,t-e+1,i,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(i===o+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const r=[0],l=[0],c=this.ComputeRecursionPoint(e,t,i,o,r,l,s),h=r[0],d=l[0];if(null!==c)return c;if(!s[0]){const r=this.ComputeDiffRecursive(e,h,i,d,s);let a=[];return a=s[0]?[new n(h+1,t-(h+1)+1,d+1,o-(d+1)+1)]:this.ComputeDiffRecursive(h+1,t,d+1,o,s),this.ConcatenateChanges(r,a)}return[new n(e,t-e+1,i,o-i+1)]}WALKTRACE(e,t,i,o,s,r,a,l,h,d,u,g,p,m,f,_,v,b){let C=null,y=null,w=new c,S=t,k=i,x=p[0]-_[0]-o,L=-1073741824,E=this.m_forwardHistory.length-1;do{const t=x+e;t===S||t=0&&(e=(h=this.m_forwardHistory[E])[0],S=1,k=h.length-1)}while(--E>=-1);if(C=w.getReverseChanges(),b[0]){let e=p[0]+1,t=_[0]+1;if(null!==C&&C.length>0){const i=C[C.length-1];e=Math.max(e,i.getOriginalEnd()),t=Math.max(t,i.getModifiedEnd())}y=[new n(e,g-e+1,t,f-t+1)]}else{w=new c,S=r,k=a,x=p[0]-_[0]-l,L=1073741824,E=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=x+s;e===S||e=d[e+1]?(m=(u=d[e+1]-1)-x-l,u>L&&w.MarkNextChange(),L=u+1,w.AddOriginalElement(u+1,m+1),x=e+1-s):(m=(u=d[e-1])-x-l,u>L&&w.MarkNextChange(),L=u,w.AddModifiedElement(u+1,m+1),x=e-1-s),E>=0&&(s=(d=this.m_reverseHistory[E])[0],S=1,k=d.length-1)}while(--E>=-1);y=w.getChanges()}return this.ConcatenateChanges(C,y)}ComputeRecursionPoint(e,t,i,o,s,r,a){let c=0,h=0,d=0,u=0,g=0,p=0;e--,i--,s[0]=0,r[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(o-i),f=m+1,_=new Int32Array(f),v=new Int32Array(f),b=o-i,C=t-e,y=e-i,w=t-o,S=(C-b)%2==0;_[b]=e,v[C]=t,a[0]=!1;for(let k=1;k<=m/2+1;k++){let m=0,x=0;d=this.ClipDiagonalBound(b-k,k,b,f),u=this.ClipDiagonalBound(b+k,k,b,f);for(let e=d;e<=u;e+=2){c=e===d||em+x&&(m=c,x=h),!S&&Math.abs(e-C)<=k-1&&c>=v[e])return s[0]=c,r[0]=h,i<=v[e]&&k<=1448?this.WALKTRACE(b,d,u,y,C,g,p,w,_,v,c,t,s,h,o,r,S,a):null}const L=(m-e+(x-i)-k)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,L))return a[0]=!0,s[0]=m,r[0]=x,L>0&&k<=1448?this.WALKTRACE(b,d,u,y,C,g,p,w,_,v,c,t,s,h,o,r,S,a):(e++,i++,[new n(e,t-e+1,i,o-i+1)]);g=this.ClipDiagonalBound(C-k,k,C,f),p=this.ClipDiagonalBound(C+k,k,C,f);for(let n=g;n<=p;n+=2){c=n===g||n=v[n+1]?v[n+1]-1:v[n-1],h=c-(n-C)-w;const l=c;for(;c>e&&h>i&&this.ElementsAreEqual(c,h);)c--,h--;if(v[n]=c,S&&Math.abs(n-b)<=k&&c<=_[n])return s[0]=c,r[0]=h,l>=_[n]&&k<=1448?this.WALKTRACE(b,d,u,y,C,g,p,w,_,v,c,t,s,h,o,r,S,a):null}if(k<=1447){let e=new Int32Array(u-d+2);e[0]=b-d+1,l.Copy2(_,d,e,1,u-d+1),this.m_forwardHistory.push(e),e=new Int32Array(p-g+2),e[0]=C-g+1,l.Copy2(v,g,e,1,p-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,d,u,y,C,g,p,w,_,v,c,t,s,h,o,r,S,a)}PrettifyChanges(e){for(let t=0;t0,r=i.modifiedLength>0;for(;i.originalStart+i.originalLength=0;t--){const i=e[t];let n=0,o=0;if(t>0){const i=e[t-1];n=i.originalStart+i.originalLength,o=i.modifiedStart+i.modifiedLength}const s=i.originalLength>0,r=i.modifiedLength>0;let a=0,l=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let e=1;;e++){const t=i.originalStart-e,c=i.modifiedStart-e;if(tl&&(l=h,a=e)}i.originalStart-=a,i.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,i=e.length;t0&&i>a&&(a=i,l=t,c=e)}return a>0?[l,c]:null}_contiguousSequenceScore(e,t,i){let n=0;for(let o=0;o=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,n){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(i,n)?1:0)}ConcatenateChanges(e,t){const i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const n=new Array(e.length+t.length-1);return l.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],l.Copy(t,1,n,e.length,t.length-1),n}{const i=new Array(e.length+t.length);return l.Copy(e,0,i,0,e.length),l.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,i){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const o=e.originalStart;let s=e.originalLength;const r=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new n(o,s,r,a),!0}return i[0]=null,!1}ClipDiagonalBound(e,t,i,n){if(e>=0&&e{"use strict";i.d(t,{B8:()=>g,Cp:()=>s,F0:()=>h,FU:()=>c,L6:()=>u,b1:()=>d,dL:()=>o,he:()=>m,n2:()=>l,ri:()=>r});const n=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(p.isErrorNoTelemetry(e))throw new p(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function o(e){l(e)||n.onUnexpectedError(e)}function s(e){l(e)||n.onUnexpectedExternalError(e)}function r(e){if(e instanceof Error){const{name:t,message:i}=e;return{$isError:!0,name:t,message:i,stack:e.stacktrace||e.stack,noTelemetry:p.isErrorNoTelemetry(e)}}return e}const a="Canceled";function l(e){return e instanceof c||e instanceof Error&&e.name===a&&e.message===a}class c extends Error{constructor(){super(a),this.name=this.message}}function h(){const e=new Error(a);return e.name=e.message,e}function d(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function u(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class g extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class p extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof p)return e;const t=new p;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class m extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,m.prototype)}}},4669:(e,t,i)=>{"use strict";i.d(t,{D0:()=>v,E7:()=>y,F3:()=>p,K3:()=>_,Q5:()=>g,SZ:()=>b,ZD:()=>w,ju:()=>n,z5:()=>C});var n,o=i(17301),s=i(88289),r=i(5976),a=i(91741),l=i(84013);!function(e){function t(e){return(t,i=null,n)=>{let o,s=!1;return o=e((e=>{if(!s)return o?o.dispose():s=!0,t.call(i,e)}),null,n),s&&o.dispose(),o}}function i(e,t,i){return a(((i,n=null,o)=>e((e=>i.call(n,t(e))),null,o)),i)}function n(e,t,i){return a(((i,n=null,o)=>e((e=>{t(e),i.call(n,e)}),null,o)),i)}function o(e,t,i){return a(((i,n=null,o)=>e((e=>t(e)&&i.call(n,e)),null,o)),i)}function s(e,t,n,o){let s=n;return i(e,(e=>(s=t(s,e),s)),o)}function a(e,t){let i;const n=new g({onWillAddFirstListener(){i=e(n.fire,n)},onDidRemoveLastListener(){null==i||i.dispose()}});return null==t||t.add(n),n.event}function l(e,t,i=100,n=!1,o=!1,s,r){let a,l,c,h,d=0;const u=new g({leakWarningThreshold:s,onWillAddFirstListener(){a=e((e=>{d++,l=t(l,e),n&&!c&&(u.fire(l),l=void 0),h=()=>{const e=l;l=void 0,c=void 0,(!n||d>1)&&u.fire(e),d=0},"number"==typeof i?(clearTimeout(c),c=setTimeout(h,i)):void 0===c&&(c=0,queueMicrotask(h))}))},onWillRemoveListener(){o&&d>0&&(null==h||h())},onDidRemoveLastListener(){h=void 0,a.dispose()}});return null==r||r.add(u),u.event}function c(e,t=((e,t)=>e===t),i){let n,s=!0;return o(e,(e=>{const i=s||!t(e,n);return s=!1,n=e,i}),i)}e.None=()=>r.JT.None,e.defer=function(e,t){return l(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=t,e.map=i,e.forEach=n,e.filter=o,e.signal=function(e){return e},e.any=function(...e){return(t,i=null,n)=>(0,r.F8)(...e.map((e=>e((e=>t.call(i,e)),null,n))))},e.reduce=s,e.debounce=l,e.accumulate=function(t,i=0,n){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),i,void 0,!0,void 0,n)},e.latch=c,e.split=function(t,i,n){return[e.filter(t,i,n),e.filter(t,(e=>!i(e)),n)]},e.buffer=function(e,t=!1,i=[]){let n=i.slice(),o=e((e=>{n?n.push(e):r.fire(e)}));const s=()=>{null==n||n.forEach((e=>r.fire(e))),n=null},r=new g({onWillAddFirstListener(){o||(o=e((e=>r.fire(e))))},onDidAddFirstListener(){n&&(t?setTimeout(s):s())},onDidRemoveLastListener(){o&&o.dispose(),o=null}});return r.event};class h{constructor(e){this.event=e,this.disposables=new r.SL}map(e){return new h(i(this.event,e,this.disposables))}forEach(e){return new h(n(this.event,e,this.disposables))}filter(e){return new h(o(this.event,e,this.disposables))}reduce(e,t){return new h(s(this.event,e,t,this.disposables))}latch(){return new h(c(this.event,void 0,this.disposables))}debounce(e,t=100,i=!1,n=!1,o){return new h(l(this.event,e,t,i,n,o,this.disposables))}on(e,t,i){return this.event(e,t,i)}once(e,i,n){return t(this.event)(e,i,n)}dispose(){this.disposables.dispose()}}e.chain=function(e){return new h(e)},e.fromNodeEventEmitter=function(e,t,i=(e=>e)){const n=(...e)=>o.fire(i(...e)),o=new g({onWillAddFirstListener:()=>e.on(t,n),onDidRemoveLastListener:()=>e.removeListener(t,n)});return o.event},e.fromDOMEventEmitter=function(e,t,i=(e=>e)){const n=(...e)=>o.fire(i(...e)),o=new g({onWillAddFirstListener:()=>e.addEventListener(t,n),onDidRemoveLastListener:()=>e.removeEventListener(t,n)});return o.event},e.toPromise=function(e){return new Promise((i=>t(e)(i)))},e.runAndSubscribe=function(e,t){return t(void 0),e((e=>t(e)))},e.runAndSubscribeWithStore=function(e,t){let i=null;function n(e){null==i||i.dispose(),i=new r.SL,t(e,i)}n(void 0);const o=e((e=>n(e)));return(0,r.OF)((()=>{o.dispose(),null==i||i.dispose()}))};class d{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;const i={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};this.emitter=new g(i),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new d(e,t).emitter.event},e.fromObservableLight=function(e){return t=>{let i=0,n=!1;const o={beginUpdate(){i++},endUpdate(){i--,0===i&&(e.reportChanges(),n&&(n=!1,t()))},handlePossibleChange(){},handleChange(){n=!0}};return e.addObserver(o),{dispose(){e.removeObserver(o)}}}}}(n||(n={}));class c{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${c._idPool++}`,c.all.add(this)}start(e){this._stopWatch=new l.G(!0),this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}c.all=new Set,c._idPool=0;class h{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){const i=this.threshold;if(i<=0||t{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class d{static create(){var e;return new d(null!==(e=(new Error).stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class u{constructor(e,t,i){this.callback=e,this.callbackThis=t,this.stack=i,this.subscription=new r.dt}invoke(e){this.callback.call(this.callbackThis,e)}}class g{constructor(e){var t,i,n,o,s;this._disposed=!1,this._options=e,this._leakageMon=(null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)?new h(null!==(n=null===(i=this._options)||void 0===i?void 0:i.leakWarningThreshold)&&void 0!==n?n:-1):void 0,this._perfMon=(null===(o=this._options)||void 0===o?void 0:o._profName)?new c(this._options._profName):void 0,this._deliveryQueue=null===(s=this._options)||void 0===s?void 0:s.deliveryQueue}dispose(){var e,t,i,n;this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),null===(e=this._deliveryQueue)||void 0===e||e.clear(this),null===(i=null===(t=this._options)||void 0===t?void 0:t.onDidRemoveLastListener)||void 0===i||i.call(t),null===(n=this._leakageMon)||void 0===n||n.dispose())}get event(){return this._event||(this._event=(e,t,i)=>{var n,o,s;if(this._listeners||(this._listeners=new a.S),this._leakageMon&&this._listeners.size>3*this._leakageMon.threshold)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),r.JT.None;const l=this._listeners.isEmpty();let c,h;l&&(null===(n=this._options)||void 0===n?void 0:n.onWillAddFirstListener)&&this._options.onWillAddFirstListener(this),this._leakageMon&&this._listeners.size>=Math.ceil(.2*this._leakageMon.threshold)&&(h=d.create(),c=this._leakageMon.check(h,this._listeners.size+1));const g=new u(e,t,h),p=this._listeners.push(g);l&&(null===(o=this._options)||void 0===o?void 0:o.onDidAddFirstListener)&&this._options.onDidAddFirstListener(this),(null===(s=this._options)||void 0===s?void 0:s.onDidAddListener)&&this._options.onDidAddListener(this,e,t);const m=g.subscription.set((()=>{var e,t;null==c||c(),!this._disposed&&(null===(t=null===(e=this._options)||void 0===e?void 0:e.onWillRemoveListener)||void 0===t||t.call(e,this),p(),this._options&&this._options.onDidRemoveLastListener)&&(this._listeners&&!this._listeners.isEmpty()||this._options.onDidRemoveLastListener(this))}));return i instanceof r.SL?i.add(m):Array.isArray(i)&&i.push(m),m}),this._event}fire(e){var t,i,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new m(null===(t=this._options)||void 0===t?void 0:t.onListenerError));for(const t of this._listeners)this._deliveryQueue.push(this,t,e);null===(i=this._perfMon)||void 0===i||i.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),null===(n=this._perfMon)||void 0===n||n.stop()}}hasListeners(){return!!this._listeners&&!this._listeners.isEmpty()}}class p{constructor(e=o.dL){this._onListenerError=e,this._queue=new a.S}get size(){return this._queue.size}push(e,t,i){this._queue.push(new f(e,t,i))}clear(e){const t=new a.S;for(const i of this._queue)i.emitter!==e&&t.push(i);this._queue=t}deliver(){for(;this._queue.size>0;){const e=this._queue.shift();try{e.listener.invoke(e.event)}catch(e){this._onListenerError(e)}}}}class m extends p{clear(e){this._queue.clear()}}class f{constructor(e,t,i){this.emitter=e,this.listener=t,this.event=i}}class _ extends g{constructor(e){super(e),this._isPaused=0,this._eventQueue=new a.S,this._mergeFn=null==e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class v extends _{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout((()=>{this._handle=void 0,this.resume()}),this._delay)),super.fire(e)}}class b extends g{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=null==e?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask((()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach((e=>super.fire(e))),this._queuedEvents=[]})))}}class C{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new g({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};return this.events.push(t),this.hasListeners&&this.hook(t),(0,r.OF)((0,s.I)((()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)})))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach((e=>this.hook(e)))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach((e=>this.unhook(e)))}hook(e){e.listener=e.event((e=>this.emitter.fire(e)))}unhook(e){e.listener&&e.listener.dispose(),e.listener=null}dispose(){this.emitter.dispose()}}class y{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e((e=>{const n=this.buffers[this.buffers.length-1];n?n.push((()=>t.call(i,e))):t.call(i,e)}),void 0,n)}bufferEvents(e){const t=[];this.buffers.push(t);const i=e();return this.buffers.pop(),t.forEach((e=>e())),i}}class w{constructor(){this.listening=!1,this.inputEvent=n.None,this.inputEventListener=r.JT.None,this.emitter=new g({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},15527:(e,t,i)=>{"use strict";i.d(t,{KM:()=>h,ej:()=>a,fn:()=>l,oP:()=>u,yj:()=>c});var n=i(88721),o=i(1432),s=i(97295);function r(e){return 47===e||92===e}function a(e){return e.replace(/[\\/]/g,n.KR.sep)}function l(e){return-1===e.indexOf("/")&&(e=a(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function c(e,t=n.KR.sep){if(!e)return"";const i=e.length,o=e.charCodeAt(0);if(r(o)){if(r(e.charCodeAt(1))&&!r(e.charCodeAt(2))){let n=3;const o=n;for(;ne.length)return!1;if(i){if(!(0,s.ok)(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===o&&i--,e.charAt(i)===o}return t.charAt(t.length-1)!==o&&(t+=o),0===e.indexOf(t)}function d(e){return e>=65&&e<=90||e>=97&&e<=122}function u(e,t=o.ED){return!!t&&d(e.charCodeAt(0))&&58===e.charCodeAt(1)}},75392:(e,t,i)=>{"use strict";i.d(t,{CL:()=>j,EW:()=>q,Ji:()=>r,KZ:()=>w,Oh:()=>N,Sy:()=>c,ir:()=>l,jB:()=>D,l7:()=>G,mB:()=>T,mX:()=>K,or:()=>s});var n=i(43702),o=i(97295);function s(...e){return function(t,i){for(let n=0,o=e.length;n0?[{start:0,end:t.length}]:[]:null}function l(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1===i?null:[{start:i,end:i+e.length}]}function c(e,t){return h(e.toLowerCase(),t.toLowerCase(),0,0)}function h(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]===t[n]){let o=null;return(o=h(e,t,i+1,n+1))?v({start:n,end:n+1},o):null}return h(e,t,i,n+1)}function d(e){return 97<=e&&e<=122}function u(e){return 65<=e&&e<=90}function g(e){return 48<=e&&e<=57}function p(e){return 32===e||9===e||10===e||13===e}const m=new Set;function f(e){return p(e)||m.has(e)}function _(e){return d(e)||u(e)||g(e)}function v(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function b(e,t){for(let i=t;i0&&!_(e.charCodeAt(i-1)))return i}return e.length}function C(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]!==t[n].toLowerCase())return null;{let o=null,s=n+1;for(o=C(e,t,i+1,n+1);!o&&(s=b(t,s))60)return null;const i=function(e){let t=0,i=0,n=0,o=0,s=0;for(let r=0;r.2&&t<.8&&n>.6&&o<.2}(i)){if(!function(e){const{upperPercent:t,lowerPercent:i}=e;return 0===i&&t>.6}(i))return null;t=t.toLowerCase()}let n=null,o=0;for(e=e.toLowerCase();o0&&f(e.charCodeAt(i-1)))return i;return e.length}"()[]{}<>`'\"-/;:,.?!".split("").forEach((e=>m.add(e.charCodeAt(0))));const x=s(r,y,l),L=s(r,y,c),E=new n.z6(1e4);function N(e,t,i=!1){if("string"!=typeof e||"string"!=typeof t)return null;let n=E.get(e);n||(n=new RegExp(o.un(e),"i"),E.set(e,n));const s=n.exec(t);return s?[{start:s.index,end:s.index+s[0].length}]:i?L(e,t):x(e,t)}function D(e,t,i,n,o,s){const r=Math.min(13,e.length);for(;i1;n--){const o=e[n]+i,s=t[t.length-1];s&&s.end===o?s.end=o+1:t.push({start:o,end:o+1})}return t}const I=128;function A(){const e=[],t=[];for(let e=0;e<=I;e++)t[e]=0;for(let i=0;i<=I;i++)e.push(t.slice(0));return e}function M(e){const t=[];for(let i=0;i<=e;i++)t[i]=0;return t}const R=M(2*I),O=M(2*I),P=A(),F=A(),B=A(),H=!1;function V(e,t,i,n,o){function s(e,t,i=" "){for(;e.lengths(e,3))).join("|")}\n`;for(let n=0;n<=i;n++)r+=0===n?" |":`${t[n-1]}|`,r+=e[n].slice(0,o+1).map((e=>s(e.toString(),3))).join("|")+"\n";return r}function W(e,t){if(t<0||t>=e.length)return!1;const i=e.codePointAt(t);switch(i){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!o.C8(i)}}function z(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function U(e,t,i){return t[e]!==i[e]}var j;!function(e){e.Default=[-100,0],e.isDefault=function(e){return!e||2===e.length&&-100===e[0]&&0===e[1]}}(j||(j={}));class K{constructor(e,t){this.firstMatchCanBeWeak=e,this.boostFullMatch=t}}function q(e,t,i,n,o,s,r=K.default){const a=e.length>I?I:e.length,l=n.length>I?I:n.length;if(i>=a||s>=l||a-i>l-s)return;if(!function(e,t,i,n,o,s,r=!1){for(;t=i&&a>=n;)o[r]===s[a]&&(O[r]=a,r--),a--}(a,l,i,s,t,o);let c=1,h=1,d=i,u=s;const g=[!1];for(c=1,d=i;dr,v=_?F[c][h-1]+(P[c][h-1]>0?-5:0):0,b=u>r+1&&P[c][h-1]>0,C=b?F[c][h-2]+(P[c][h-2]>0?-5:0):0;if(b&&(!_||C>=v)&&(!m||C>=f))F[c][h]=C,B[c][h]=3,P[c][h]=0;else if(_&&(!m||v>=f))F[c][h]=v,B[c][h]=2,P[c][h]=0;else{if(!m)throw new Error("not possible");F[c][h]=f,B[c][h]=1,P[c][h]=P[c-1][h-1]+1}}}if(H&&function(e,t,i,n){e=e.substr(t),i=i.substr(n),console.log(V(F,e,e.length,i,i.length)),console.log(V(B,e,e.length,i,i.length)),console.log(V(P,e,e.length,i,i.length))}(e,i,n,s),!g[0]&&!r.firstMatchCanBeWeak)return;c--,h--;const p=[F[c][h],s];let m=0,f=0;for(;c>=1;){let e=h;do{const t=B[c][e];if(3===t)e-=2;else{if(2!==t)break;e-=1}}while(e>=1);m>1&&t[i+c-1]===o[s+h-1]&&!U(e+s-1,n,o)&&m+1>P[c][e]&&(e=h),e===h?m++:m=1,f||(f=e),c--,h=e-1,p.push(h)}l===a&&r.boostFullMatch&&(p[0]+=2);const _=f-a;return p[0]-=_,p}function $(e,t,i,n,o,s,r,a,l,c,h){if(t[i]!==s[r])return Number.MIN_SAFE_INTEGER;let d=1,u=!1;return r===i-n?d=e[i]===o[r]?7:5:!U(r,o,s)||0!==r&&U(r-1,o,s)?!W(s,r)||0!==r&&W(s,r-1)?(W(s,r-1)||z(s,r-1))&&(d=5,u=!0):d=5:(d=e[i]===o[r]?7:5,u=!0),d>1&&i===n&&(h[0]=!0),u||(u=U(r,o,s)||W(s,r-1)||z(s,r-1)),i===n?r>l&&(d-=u?3:5):d+=c?u?2:0:u?0:1,r+1===a&&(d-=u?3:5),d}function G(e,t,i,n,o,s,r){return function(e,t,i,n,o,s,r,a){let l=q(e,t,i,n,o,s,a);if(e.length>=3){const t=Math.min(7,e.length-1);for(let r=i+1;rl[0])&&(l=e))}}}return l}(e,t,i,n,o,s,0,r)}function Q(e,t){if(t+1>=e.length)return;const i=e[t],n=e[t+1];return i!==n?e.slice(0,t)+n+i+e.slice(t+2):void 0}K.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}},88289:(e,t,i)=>{"use strict";function n(e){const t=this;let i,n=!1;return function(){return n||(n=!0,i=e.apply(t,arguments)),i}}i.d(t,{I:()=>n})},89954:(e,t,i)=>{"use strict";i.d(t,{Cv:()=>a,SP:()=>s,vp:()=>o,yP:()=>d});var n=i(97295);function o(e){return s(e,0)}function s(e,t){switch(typeof e){case"object":return null===e?r(349,t):Array.isArray(e)?(i=e,n=r(104579,n=t),i.reduce(((e,t)=>s(t,e)),n)):function(e,t){return t=r(181387,t),Object.keys(e).sort().reduce(((t,i)=>(t=a(i,t),s(e[i],t))),t)}(e,t);case"string":return a(e,t);case"boolean":return function(e,t){return r(e?433:863,t)}(e,t);case"number":return r(e,t);case"undefined":return r(937,t);default:return r(617,t)}var i,n}function r(e,t){return(t<<5)-t+e|0}function a(e,t){t=r(149417,t);for(let i=0,n=e.length;i>>n)>>>0}function c(e,t=0,i=e.byteLength,n=0){for(let o=0;oe.toString(16).padStart(2,"0"))).join(""):function(e,t,i="0"){for(;e.length>>0).toString(16),t/4)}class d{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const i=this._buff;let o,s,r=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(o=a,s=-1,a=0):(o=e.charCodeAt(0),s=0);;){let l=o;if(n.ZG(o)){if(!(s+1>>6,e[t++]=128|(63&i)>>>0):i<65536?(e[t++]=224|(61440&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0):(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),h(this._h0)+h(this._h1)+h(this._h2)+h(this._h3)+h(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,c(this._buff,this._buffLen),this._buffLen>56&&(this._step(),c(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=d._bigBlock32,t=this._buffDV;for(let i=0;i<64;i+=4)e.setUint32(i,t.getUint32(i,!1),!1);for(let t=64;t<320;t+=4)e.setUint32(t,l(e.getUint32(t-12,!1)^e.getUint32(t-32,!1)^e.getUint32(t-56,!1)^e.getUint32(t-64,!1),1),!1);let i,n,o,s=this._h0,r=this._h1,a=this._h2,c=this._h3,h=this._h4;for(let t=0;t<80;t++)t<20?(i=r&a|~r&c,n=1518500249):t<40?(i=r^a^c,n=1859775393):t<60?(i=r&a|r&c|a&c,n=2400959708):(i=r^a^c,n=3395469782),o=l(s,5)+i+h+n+e.getUint32(4*t,!1)&4294967295,h=c,c=a,a=l(r,30),r=s,s=o;this._h0=this._h0+s&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+c&4294967295,this._h4=this._h4+h&4294967295}}d._bigBlock32=new DataView(new ArrayBuffer(320))},59365:(e,t,i)=>{"use strict";i.d(t,{CP:()=>c,Fr:()=>h,W5:()=>l,d9:()=>u,g_:()=>d,oR:()=>g,v1:()=>p});var n=i(17301),o=i(21212),s=i(95935),r=i(97295),a=i(70666);class l{constructor(e="",t=!1){var i,o,s;if(this.value=e,"string"!=typeof this.value)throw(0,n.b1)("value");"boolean"==typeof t?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=null!==(i=t.isTrusted)&&void 0!==i?i:void 0,this.supportThemeIcons=null!==(o=t.supportThemeIcons)&&void 0!==o&&o,this.supportHtml=null!==(s=t.supportHtml)&&void 0!==s&&s)}appendText(e,t=0){var i;return this.value+=(i=this.supportThemeIcons?(0,o.Qo)(e):e,i.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")).replace(/([ \t]+)/g,((e,t)=>" ".repeat(t.length))).replace(/\>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+="\n```",this.value+=e,this.value+="\n",this.value+=t,this.value+="\n```\n",this}appendLink(e,t,i){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,t){const i=new RegExp((0,r.ec)(t),"g");return e.replace(i,((t,i)=>"\\"!==e.charAt(i-1)?`\\${t}`:t))}}function c(e){return h(e)?!e.value:!Array.isArray(e)||e.every(c)}function h(e){return e instanceof l||!(!e||"object"!=typeof e)&&!("string"!=typeof e.value||"boolean"!=typeof e.isTrusted&&"object"!=typeof e.isTrusted&&void 0!==e.isTrusted||"boolean"!=typeof e.supportThemeIcons&&void 0!==e.supportThemeIcons)}function d(e,t){return e===t||!(!e||!t)&&e.value===t.value&&e.isTrusted===t.isTrusted&&e.supportThemeIcons===t.supportThemeIcons&&e.supportHtml===t.supportHtml&&(e.baseUri===t.baseUri||!!e.baseUri&&!!t.baseUri&&(0,s.Xy)(a.o.from(e.baseUri),a.o.from(t.baseUri)))}function u(e){return e.replace(/"/g,""")}function g(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1"):e}function p(e){const t=[],i=e.split("|").map((e=>e.trim()));e=i[0];const n=i[1];if(n){const e=/height=(\d+)/.exec(n),i=/width=(\d+)/.exec(n),o=e?e[1]:"",s=i?i[1]:"",r=isFinite(parseInt(s)),a=isFinite(parseInt(o));r&&t.push(`width="${s}"`),a&&t.push(`height="${o}"`)}return{href:e,dimensions:t}}},21212:(e,t,i)=>{"use strict";i.d(t,{Gt:()=>_,Ho:()=>f,JL:()=>p,Qo:()=>c,f$:()=>d,x$:()=>g});var n=i(75392),o=i(97295),s=i(25670);const r="$(",a=new RegExp(`\\$\\(${s.k.iconNameExpression}(?:${s.k.iconModifierExpression})?\\)`,"g"),l=new RegExp(`(\\\\)?${a.source}`,"g");function c(e){return e.replace(l,((e,t)=>t?e:`\\${e}`))}const h=new RegExp(`\\\\${a.source}`,"g");function d(e){return e.replace(h,(e=>`\\${e}`))}const u=new RegExp(`(\\s)?(\\\\)?${a.source}(\\s)?`,"g");function g(e){return-1===e.indexOf(r)?e:e.replace(u,((e,t,i,n)=>i?e:t||n||""))}function p(e){return e?e.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():""}const m=new RegExp(`\\$\\(${s.k.iconNameCharacter}+\\)`,"g");function f(e){m.lastIndex=0;let t="";const i=[];let n=0;for(;;){const o=m.lastIndex,s=m.exec(e),r=e.substring(o,null==s?void 0:s.index);if(r.length>0){t+=r;for(let e=0;e{"use strict";i.d(t,{R:()=>n,a:()=>o});class n{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const o=new n("id#")},77173:(e,t,i)=>{"use strict";i.d(t,{F:()=>o});var n=i(4669);const o=new class{constructor(){this._onDidChange=new n.Q5,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}}},53725:(e,t,i)=>{"use strict";var n;i.d(t,{$:()=>n}),function(e){function t(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;const i=Object.freeze([]);function*n(e){yield e}e.empty=function(){return i},e.single=n,e.wrap=function(e){return t(e)?e:n(e)},e.from=function(e){return e||i},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const i of e)if(t(i))return!0;return!1},e.find=function(e,t){for(const i of e)if(t(i))return i},e.filter=function*(e,t){for(const i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(const n of e)yield t(n,i++)},e.concat=function*(...e){for(const t of e)for(const e of t)yield e},e.reduce=function(e,t,i){let n=i;for(const i of e)n=t(n,i);return n},e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);to}]}}(n||(n={}))},22258:(e,t,i)=>{"use strict";i.d(t,{H_:()=>a,Vd:()=>u,gx:()=>m,kL:()=>p});class n{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const o=new n,s=new n,r=new n,a=new Array(230),l={},c=[],h=Object.create(null),d=Object.create(null),u=[],g=[];for(let e=0;e<=193;e++)u[e]=-1;for(let e=0;e<=132;e++)g[e]=-1;var p;function m(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",0,"VK_F20",e,e],[1,118,"F21",79,"F21",0,"VK_F21",e,e],[1,119,"F22",80,"F22",0,"VK_F22",e,e],[1,120,"F23",81,"F23",0,"VK_F23",e,e],[1,121,"F24",82,"F24",0,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],i=[],n=[];for(const e of t){const[t,p,m,f,_,v,b,C,y]=e;if(n[p]||(n[p]=!0,c[p]=m,h[m]=p,d[m.toLowerCase()]=p,t&&(u[p]=f,0!==f&&3!==f&&5!==f&&4!==f&&6!==f&&57!==f&&(g[f]=p))),!i[f]){if(i[f]=!0,!_)throw new Error(`String representation missing for key code ${f} around scan code ${m}`);o.define(f,_),s.define(f,C||_),r.define(f,y||C||_)}v&&(a[v]=f),b&&(l[b]=f)}g[3]=46}(),function(e){e.toString=function(e){return o.keyCodeToStr(e)},e.fromString=function(e){return o.strToKeyCode(e)},e.toUserSettingsUS=function(e){return s.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return r.keyCodeToStr(e)},e.fromUserSettings=function(e){return s.strToKeyCode(e)||r.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return o.keyCodeToStr(e)}}(p||(p={}))},8030:(e,t,i)=>{"use strict";i.d(t,{X4:()=>r,jC:()=>a,r6:()=>l,xo:()=>s});var n=i(63580);class o{constructor(e,t,i=t){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=i}toLabel(e,t,i){if(0===t.length)return null;const n=[];for(let o=0,s=t.length;o{"use strict";i.d(t,{$M:()=>r,Z9:()=>o,aZ:()=>l,f1:()=>c});var n=i(17301);function o(e,t){if("number"==typeof e){if(0===e)return null;const i=(65535&e)>>>0,n=(4294901760&e)>>>16;return new a(0!==n?[s(i,t),s(n,t)]:[s(i,t)])}{const i=[];for(let n=0;n{"use strict";i.d(t,{o:()=>n});class n{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},5976:(e,t,i)=>{"use strict";i.d(t,{B9:()=>d,F8:()=>u,JT:()=>m,Jz:()=>b,L6:()=>_,OF:()=>g,SL:()=>p,Wf:()=>h,XK:()=>f,b2:()=>C,dk:()=>c,dt:()=>v});var n=i(88289),o=i(53725);let s=null;function r(e){return null==s||s.trackDisposable(e),e}function a(e){null==s||s.markAsDisposed(e)}function l(e,t){null==s||s.setParent(e,t)}function c(e){return null==s||s.markAsSingleton(e),e}function h(e){return"function"==typeof e.dispose&&0===e.dispose.length}function d(e){if(o.$.is(e)){const t=[];for(const i of e)if(i)try{i.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function u(...e){const t=g((()=>d(e)));return function(e,t){if(s)for(const i of e)s.setParent(i,t)}(e,t),t}function g(e){const t=r({dispose:(0,n.I)((()=>{a(t),e()}))});return t}class p{constructor(){this._toDispose=new Set,this._isDisposed=!1,r(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{d(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?p.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}p.DISABLE_DISPOSED_WARNING=!1;class m{constructor(){this._store=new p,r(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}m.None=Object.freeze({dispose(){}});class f{constructor(){this._isDisposed=!1,r(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,a(this),null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}}class _{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0==--this._counter&&this._disposable.dispose(),this}}class v{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,r(this)}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>void 0!==t,this.dispose=()=>{t&&(t(),t=void 0,a(this))},this}}class b{constructor(e){this.object=e}dispose(){}}class C{constructor(){this._store=new Map,this._isDisposed=!1,r(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{d(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){var n;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||null===(n=this._store.get(e))||void 0===n||n.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;null===(t=this._store.get(e))||void 0===t||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},91741:(e,t,i)=>{"use strict";i.d(t,{S:()=>o});class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}}n.Undefined=new n(void 0);class o{constructor(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===n.Undefined}clear(){let e=this._first;for(;e!==n.Undefined;){const t=e.next;e.prev=n.Undefined,e.next=n.Undefined,e=t}this._first=n.Undefined,this._last=n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new n(e);if(this._first===n.Undefined)this._first=i,this._last=i;else if(t){const e=this._last;this._last=i,i.prev=e,e.next=i}else{const e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let o=!1;return()=>{o||(o=!0,this._remove(i))}}shift(){if(this._first!==n.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==n.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==n.Undefined&&e.next!==n.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===n.Undefined&&e.next===n.Undefined?(this._first=n.Undefined,this._last=n.Undefined):e.next===n.Undefined?(this._last=this._last.prev,this._last.next=n.Undefined):e.prev===n.Undefined&&(this._first=this._first.next,this._first.prev=n.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==n.Undefined;)yield e.element,e=e.next}}},43702:(e,t,i)=>{"use strict";var n,o;i.d(t,{Y9:()=>r,z6:()=>l});class s{constructor(e,t){this.uri=e,this.value=t}}class r{constructor(e,t){this[n]="ResourceMap",e instanceof r?(this.map=new Map(e.map),this.toKey=null!=t?t:r.defaultToKey):(this.map=new Map,this.toKey=null!=e?e:r.defaultToKey)}set(e,t){return this.map.set(this.toKey(e),new s(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){void 0!==t&&(e=e.bind(t));for(const[t,i]of this.map)e(i.value,i.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(n=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}r.defaultToKey=e=>e.toString();class a{constructor(){this[o]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,0!==i&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:case 2:default:this.addItemLast(n);break;case 1:this.addItemFirst(n)}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.key,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.value,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:[i.key,i.value],done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}[(o=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,i)=>{e.push([i,t])})),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class l extends a{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},23897:(e,t,i)=>{"use strict";i.d(t,{Q:()=>s});var n=i(53060),o=i(70666);function s(e){let t=JSON.parse(e);return t=r(t),t}function r(e,t=0){if(!e||t>200)return e;if("object"==typeof e){switch(e.$mid){case 1:return o.o.revive(e);case 2:return new RegExp(e.source,e.flags);case 16:return new Date(e.source)}if(e instanceof n.KN||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let i=0;i{"use strict";i.d(t,{v:()=>n});const n=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},66663:(e,t,i)=>{"use strict";i.d(t,{Gi:()=>c,WX:()=>a,lg:()=>n});var n,o=i(17301),s=i(1432),r=i(70666);!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeInteractive="vscode-interactive",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeInteractiveSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm"}(n||(n={}));const a=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._remoteResourcesPath=`/${n.vscodeRemoteResource}`}setPreferredWebSchema(e){this._preferredWebSchema=e}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(t){return o.dL(t),e}const t=e.authority;let i=this._hosts[t];i&&-1!==i.indexOf(":")&&-1===i.indexOf("[")&&(i=`[${i}]`);const a=this._ports[t],l=this._connectionTokens[t];let c=`path=${encodeURIComponent(e.path)}`;return"string"==typeof l&&(c+=`&tkn=${encodeURIComponent(l)}`),r.o.from({scheme:s.$L?this._preferredWebSchema:n.vscodeRemoteResource,authority:`${i}:${a}`,path:this._remoteResourcesPath,query:c})}};class l{uriToBrowserUri(e){return e.scheme===n.vscodeRemote?a.rewrite(e):e.scheme===n.file&&(s.tY||s.n2&&s.li.origin===`${n.vscodeFileResource}://${l.FALLBACK_AUTHORITY}`)?e.with({scheme:n.vscodeFileResource,authority:e.authority||l.FALLBACK_AUTHORITY,query:null,fragment:null}):e}}l.FALLBACK_AUTHORITY="vscode-app";const c=new l;var h;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const i="vscode-coi";e.getHeadersFromQuery=function(e){let n;"string"==typeof e?n=new URL(e).searchParams:e instanceof URL?n=e.searchParams:r.o.isUri(e)&&(n=new URL(e.toString(!0)).searchParams);const o=null==n?void 0:n.get(i);if(o)return t.get(o)},e.addSearchParam=function(e,t,n){if(!globalThis.crossOriginIsolated)return;const o=t&&n?"3":n?"2":"1";e instanceof URLSearchParams?e.set(i,o):e[i]=o}}(h||(h={}))},59870:(e,t,i)=>{"use strict";function n(e,t,i){return Math.min(Math.max(e,t),i)}i.d(t,{N:()=>s,nM:()=>o,uZ:()=>n});class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class s{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n{"use strict";i.d(t,{$E:()=>d,I8:()=>o,IU:()=>u,_A:()=>s,fS:()=>h,jB:()=>c,rs:()=>a});var n=i(98401);function o(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.entries(e).forEach((([e,i])=>{t[e]=i&&"object"==typeof i?o(i):i})),t}function s(e){if(!e||"object"!=typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const i in e)if(r.call(e,i)){const o=e[i];"object"!=typeof o||Object.isFrozen(o)||(0,n.fU)(o)||t.push(o)}}return e}const r=Object.prototype.hasOwnProperty;function a(e,t){return l(e,t,new Set)}function l(e,t,i){if((0,n.Jp)(e))return e;const o=t(e);if(void 0!==o)return o;if(Array.isArray(e)){const n=[];for(const o of e)n.push(l(o,t,i));return n}if((0,n.Kn)(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const n={};for(const o in e)r.call(e,o)&&(n[o]=l(e[o],t,i));return i.delete(e),n}return e}function c(e,t,i=!0){return(0,n.Kn)(e)?((0,n.Kn)(t)&&Object.keys(t).forEach((o=>{o in e?i&&((0,n.Kn)(e[o])&&(0,n.Kn)(t[o])?c(e[o],t[o],i):e[o]=t[o]):e[o]=t[o]})),e):t}function h(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let i,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;ifunction(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(const t of e)n[t]=i(t);return n}},72495:(e,t,i)=>{"use strict";i.d(t,{EH:()=>l,nJ:()=>c,Dz:()=>d,nK:()=>r,rD:()=>g,GN:()=>_,aq:()=>m,uh:()=>n.uh,PS:()=>n.PS});var n=i(29869),o=i(17301),s=i(60536);function r(e,t){return new a(e,t)}(0,n.Qv)(r);class a extends n.hm{get debugName(){return"function"==typeof this._debugName?this._debugName():this._debugName}constructor(e,t){var i;super(),this._debugName=e,this.computeFn=t,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,null===(i=(0,s.jl)())||void 0===i||i.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear()}get(){if(0===this.observers.size){const e=this.computeFn(this);return this.onLastObserverRemoved(),e}do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){var e;if(3===this.state)return;const t=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=t;const i=0!==this.state,n=this.value;this.state=3;try{this.value=this.computeFn(this)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const o=i&&n!==this.value;if(null===(e=(0,s.jl)())||void 0===e||e.handleDerivedRecomputed(this,{oldValue:n,newValue:this.value,change:void 0,didChange:o}),o)for(const e of this.observers)e.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(){this.updateCount++;const e=1===this.updateCount;if(3===this.state&&(this.state=1,!e))for(const e of this.observers)e.handlePossibleChange(this);if(e)for(const e of this.observers)e.beginUpdate(this)}endUpdate(){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}if(this.updateCount<0)throw new o.he}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){const i=3===this.state;if((1===this.state||i)&&this.dependencies.has(e)&&(this.state=2,i))for(const e of this.observers)e.handlePossibleChange(this)}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}function l(e,t){return new h(e,t,void 0)}function c(e,t,i){return new h(e,i,t.handleChange)}class h{constructor(e,t,i){var n;this.debugName=e,this.runFn=t,this._handleChange=i,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,null===(n=(0,s.jl)())||void 0===n||n.handleAutorunCreated(this),this._runIfNeeded()}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear()}_runIfNeeded(){var e;if(3===this.state)return;const t=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=t,this.state=3,null===(e=(0,s.jl)())||void 0===e||e.handleAutorunTriggered(this);try{this.runFn(this)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&(this.state=1)}handleChange(e,t){this.dependencies.has(e)&&(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e}))&&(this.state=2)}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}function d(e){return new u(e)}!function(e){e.Observer=h}(l||(l={}));class u extends n.Nc{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}}function g(e,t){return new p(e,t)}class p extends n.hm{constructor(e,t){super(),this.event=e,this.getValue=t,this.hasValue=!1,this.handleEvent=e=>{var t;const i=this.getValue(e),o=!this.hasValue||this.value!==i;null===(t=(0,s.jl)())||void 0===t||t.handleFromEventObservableTriggered(this,{oldValue:this.value,newValue:i,change:void 0,didChange:o}),o&&(this.value=i,this.hasValue&&(0,n.PS)((e=>{for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")})),this.hasValue=!0)}}getDebugName(){return(0,n.$P)(this.getValue)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){return this.subscription?(this.hasValue||this.handleEvent(void 0),this.value):this.getValue(void 0)}}function m(e,t){return new f(e,t)}!function(e){e.Observer=p}(g||(g={}));class f extends n.hm{constructor(e,t){super(),this.debugName=e,this.event=t,this.handleEvent=()=>{(0,n.PS)((e=>{for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>this.debugName))}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}}function _(e){return new v(e)}class v extends n.hm{constructor(e){super(),this.debugName=e}trigger(e,t){if(e)for(const i of this.observers)e.updateObserver(i,this),i.handleChange(this,t);else(0,n.PS)((e=>{this.trigger(e,t)}),(()=>`Trigger signal ${this.debugName}`))}get(){}}},29869:(e,t,i)=>{"use strict";i.d(t,{$P:()=>h,DN:()=>g,Nc:()=>r,PS:()=>l,Qv:()=>s,hm:()=>a,uh:()=>d});var n=i(60536);let o;function s(e){o=e}class r{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e){return o((()=>{const t=h(e);return void 0!==t?t:`${this.debugName} (mapped)`}),(t=>e(this.read(t),t)))}}class a extends r{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function l(e,t){var i,o;const s=new c(e,t);try{null===(i=(0,n.jl)())||void 0===i||i.handleBeginTransaction(s),e(s)}finally{s.finish(),null===(o=(0,n.jl)())||void 0===o||o.handleEndTransaction()}}class c{constructor(e,t){this.fn=e,this._getDebugName=t,this.updatingObservers=[]}getDebugName(){return this._getDebugName?this._getDebugName():h(this.fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.updatingObservers;this.updatingObservers=null;for(const{observer:t,observable:i}of e)t.endUpdate(i)}}function h(e){const t=e.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),n=i?i[1]:void 0;return null==n?void 0:n.trim()}function d(e,t){return new u(e,t)}class u extends a{constructor(e,t){super(),this.debugName=e,this._value=t}get(){return this._value}set(e,t,i){var o;if(this._value===e)return;let s;t||(t=s=new c((()=>{}),(()=>`Setting ${this.debugName}`)));try{const s=this._value;this._setValue(e),null===(o=(0,n.jl)())||void 0===o||o.handleObservableChanged(this,{oldValue:s,newValue:e,change:i,didChange:!0});for(const e of this.observers)t.updateObserver(e,this),e.handleChange(this,i)}finally{s&&s.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function g(e,t){return new p(e,t)}class p extends u{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){var e;null===(e=this._value)||void 0===e||e.dispose()}}},60536:(e,t,i)=>{"use strict";let n;function o(e){n=e}function s(){return n}i.d(t,{EK:()=>o,Qy:()=>r,jl:()=>s});class r{constructor(){this.indentation=0,this.changedObservablesSets=new WeakMap}textToConsoleArgs(e){return function(e){const t=new Array,i={};let n="";!function e(o){if("length"in o)for(const t of o)t&&e(t);else"text"in o?(n+=`%c${o.text}`,t.push(o.style),o.data&&Object.assign(i,o.data)):"data"in o&&Object.assign(i,o.data)}(e);const o=[n,...t];return Object.keys(i).length>0&&o.push(i),o}([a(d("| ",this.indentation)),e])}formatInfo(e){return e.didChange?[a(" "),c(h(e.oldValue,70),{color:"red",strikeThrough:!0}),a(" "),c(h(e.newValue,60),{color:"green"})]:[a(" (unchanged)")]}handleObservableChanged(e,t){console.log(...this.textToConsoleArgs([l("observable value changed"),c(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t)]))}formatChanges(e){if(0!==e.size)return c(" (changed deps: "+[...e].map((e=>e.debugName)).join(", ")+")",{color:"gray"})}handleDerivedCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,n)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,n]))}handleDerivedRecomputed(e,t){const i=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([l("derived recomputed"),c(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),this.formatChanges(i)])),i.clear()}handleFromEventObservableTriggered(e,t){console.log(...this.textToConsoleArgs([l("observable from event triggered"),c(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t)]))}handleAutorunCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,n)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,n]))}handleAutorunTriggered(e){const t=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([l("autorun"),c(e.debugName,{color:"BlueViolet"}),this.formatChanges(t)])),t.clear()}handleBeginTransaction(e){let t=e.getDebugName();void 0===t&&(t=""),console.log(...this.textToConsoleArgs([l("transaction"),c(t,{color:"BlueViolet"})])),this.indentation++}handleEndTransaction(){this.indentation--}}function a(e){return c(e,{color:"black"})}function l(e){return c(function(e,t){for(;e.length<10;)e+=" ";return e}(`${e}: `),{color:"black",bold:!0})}function c(e,t={color:"black"}){const i={color:t.color};return t.strikeThrough&&(i["text-decoration"]="line-through"),t.bold&&(i["font-weight"]="bold"),{text:e,style:(n=i,Object.entries(n).reduce(((e,[t,i])=>`${e}${t}:${i};`),""))};var n}function h(e,t){switch(typeof e){case"number":default:return""+e;case"string":return e.length+2<=t?`"${e}"`:`"${e.substr(0,t-7)}"+...`;case"boolean":return e?"true":"false";case"undefined":return"undefined";case"object":return null===e?"null":Array.isArray(e)?function(e,t){let i="[ ",n=!0;for(const o of e){if(n||(i+=", "),i.length-5>t){i+="...";break}n=!1,i+=`${h(o,t-i.length)}`}return i+=" ]",i}(e,t):function(e,t){let i="{ ",n=!0;for(const[o,s]of Object.entries(e)){if(n||(i+=", "),i.length-5>t){i+="...";break}n=!1,i+=`${o}: ${h(s,t-i.length)}`}return i+=" }",i}(e,t);case"symbol":return e.toString();case"function":return`[[Function${e.name?" "+e.name:""}]]`}}function d(e,t){let i="";for(let n=1;n<=t;n++)i+=e;return i}},88721:(e,t,i)=>{"use strict";i.d(t,{EZ:()=>E,XX:()=>L,DZ:()=>N,Fv:()=>S,KR:()=>w,Gf:()=>x,DB:()=>k,ir:()=>D,Ku:()=>C});var n=i(1432);let o;if(void 0!==n.li.vscode&&void 0!==n.li.vscode.process){const e=n.li.vscode.process;o={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else o="undefined"!=typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd:()=>process.env.VSCODE_CWD||process.cwd()}:{get platform(){return n.ED?"win32":n.dz?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const s=o.cwd,r=o.env,a=o.platform,l=46,c=47,h=92,d=58;class u extends Error{constructor(e,t,i){let n;"string"==typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";const o=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${o} ${n} of type ${t}`;s+=". Received type "+typeof i,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function g(e,t){if("string"!=typeof e)throw new u(t,"string",e)}const p="win32"===a;function m(e){return e===c||e===h}function f(e){return e===c}function _(e){return e>=65&&e<=90||e>=97&&e<=122}function v(e,t,i,n){let o="",s=0,r=-1,a=0,h=0;for(let d=0;d<=e.length;++d){if(d2){const e=o.lastIndexOf(i);-1===e?(o="",s=0):(o=o.slice(0,e),s=o.length-1-o.lastIndexOf(i)),r=d,a=0;continue}if(0!==o.length){o="",s=0,r=d,a=0;continue}}t&&(o+=o.length>0?`${i}..`:"..",s=2)}else o.length>0?o+=`${i}${e.slice(r+1,d)}`:o=e.slice(r+1,d),s=d-r-1;r=d,a=0}else h===l&&-1!==a?++a:a=-1}return o}function b(e,t){!function(e,t){if(null===e||"object"!=typeof e)throw new u("pathObject","Object",e)}(t);const i=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return i?i===t.root?`${i}${n}`:`${i}${e}${n}`:n}const C={resolve(...e){let t="",i="",n=!1;for(let o=e.length-1;o>=-1;o--){let a;if(o>=0){if(a=e[o],g(a,"path"),0===a.length)continue}else 0===t.length?a=s():(a=r[`=${t}`]||s(),(void 0===a||a.slice(0,2).toLowerCase()!==t.toLowerCase()&&a.charCodeAt(2)===h)&&(a=`${t}\\`));const l=a.length;let c=0,u="",p=!1;const f=a.charCodeAt(0);if(1===l)m(f)&&(c=1,p=!0);else if(m(f))if(p=!0,m(a.charCodeAt(1))){let e=2,t=e;for(;e2&&m(a.charCodeAt(2))&&(p=!0,c=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(n){if(t.length>0)break}else if(i=`${a.slice(c)}\\${i}`,n=p,p&&t.length>0)break}return i=v(i,!n,"\\",m),n?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){g(e,"path");const t=e.length;if(0===t)return".";let i,n=0,o=!1;const s=e.charCodeAt(0);if(1===t)return f(s)?"\\":e;if(m(s))if(o=!0,m(e.charCodeAt(1))){let o=2,s=o;for(;o2&&m(e.charCodeAt(2))&&(o=!0,n=3));let r=n0&&m(e.charCodeAt(t-1))&&(r+="\\"),void 0===i?o?`\\${r}`:r:o?`${i}\\${r}`:`${i}${r}`},isAbsolute(e){g(e,"path");const t=e.length;if(0===t)return!1;const i=e.charCodeAt(0);return m(i)||t>2&&_(i)&&e.charCodeAt(1)===d&&m(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,i;for(let n=0;n0&&(void 0===t?t=i=o:t+=`\\${o}`)}if(void 0===t)return".";let n=!0,o=0;if("string"==typeof i&&m(i.charCodeAt(0))){++o;const e=i.length;e>1&&m(i.charCodeAt(1))&&(++o,e>2&&(m(i.charCodeAt(2))?++o:n=!1))}if(n){for(;o=2&&(t=`\\${t.slice(o)}`)}return C.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";const i=C.resolve(e),n=C.resolve(t);if(i===n)return"";if((e=i.toLowerCase())===(t=n.toLowerCase()))return"";let o=0;for(;oo&&e.charCodeAt(s-1)===h;)s--;const r=s-o;let a=0;for(;aa&&t.charCodeAt(l-1)===h;)l--;const c=l-a,d=rd){if(t.charCodeAt(a+p)===h)return n.slice(a+p+1);if(2===p)return n.slice(a+p)}r>d&&(e.charCodeAt(o+p)===h?u=p:2===p&&(u=3)),-1===u&&(u=0)}let m="";for(p=o+u+1;p<=s;++p)p!==s&&e.charCodeAt(p)!==h||(m+=0===m.length?"..":"\\..");return a+=u,m.length>0?`${m}${n.slice(a,l)}`:(n.charCodeAt(a)===h&&++a,n.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e||0===e.length)return e;const t=C.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===h){if(t.charCodeAt(1)===h){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(_(t.charCodeAt(0))&&t.charCodeAt(1)===d&&t.charCodeAt(2)===h)return`\\\\?\\${t}`;return e},dirname(e){g(e,"path");const t=e.length;if(0===t)return".";let i=-1,n=0;const o=e.charCodeAt(0);if(1===t)return m(o)?e:".";if(m(o)){if(i=n=1,m(e.charCodeAt(1))){let o=2,s=o;for(;o2&&m(e.charCodeAt(2))?3:2,n=i);let s=-1,r=!0;for(let i=t-1;i>=n;--i)if(m(e.charCodeAt(i))){if(!r){s=i;break}}else r=!1;if(-1===s){if(-1===i)return".";s=i}return e.slice(0,s)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let i,n=0,o=-1,s=!0;if(e.length>=2&&_(e.charCodeAt(0))&&e.charCodeAt(1)===d&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){const l=e.charCodeAt(i);if(m(l)){if(!s){n=i+1;break}}else-1===a&&(s=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1==--r&&(o=i):(r=-1,o=a))}return n===o?o=a:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;i>=n;--i)if(m(e.charCodeAt(i))){if(!s){n=i+1;break}}else-1===o&&(s=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){g(e,"path");let t=0,i=-1,n=0,o=-1,s=!0,r=0;e.length>=2&&e.charCodeAt(1)===d&&_(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(m(t)){if(!s){n=a+1;break}}else-1===o&&(s=!1,o=a+1),t===l?-1===i?i=a:1!==r&&(r=1):-1!==i&&(r=-1)}return-1===i||-1===o||0===r||1===r&&i===o-1&&i===n+1?"":e.slice(i,o)},format:b.bind(null,"\\"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.length;let n=0,o=e.charCodeAt(0);if(1===i)return m(o)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(m(o)){if(n=1,m(e.charCodeAt(1))){let t=2,o=t;for(;t0&&(t.root=e.slice(0,n));let s=-1,r=n,a=-1,c=!0,h=e.length-1,u=0;for(;h>=n;--h)if(o=e.charCodeAt(h),m(o)){if(!c){r=h+1;break}}else-1===a&&(c=!1,a=h+1),o===l?-1===s?s=h:1!==u&&(u=1):-1!==s&&(u=-1);return-1!==a&&(-1===s||0===u||1===u&&s===a-1&&s===r+1?t.base=t.name=e.slice(r,a):(t.name=e.slice(r,s),t.base=e.slice(r,a),t.ext=e.slice(s,a))),t.dir=r>0&&r!==n?e.slice(0,r-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},y=(()=>{if(p){const e=/\\/g;return()=>{const t=s().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>s()})(),w={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=-1&&!i;n--){const o=n>=0?e[n]:y();g(o,"path"),0!==o.length&&(t=`${o}/${t}`,i=o.charCodeAt(0)===c)}return t=v(t,!i,"/",f),i?`/${t}`:t.length>0?t:"."},normalize(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c,i=e.charCodeAt(e.length-1)===c;return 0===(e=v(e,!t,"/",f)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(g(e,"path"),e.length>0&&e.charCodeAt(0)===c),join(...e){if(0===e.length)return".";let t;for(let i=0;i0&&(void 0===t?t=n:t+=`/${n}`)}return void 0===t?".":w.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";if((e=w.resolve(e))===(t=w.resolve(t)))return"";const i=e.length,n=i-1,o=t.length-1,s=ns){if(t.charCodeAt(1+a)===c)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else n>s&&(e.charCodeAt(1+a)===c?r=a:0===a&&(r=0));let l="";for(a=1+r+1;a<=i;++a)a!==i&&e.charCodeAt(a)!==c||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+r)}`},toNamespacedPath:e=>e,dirname(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c;let i=-1,n=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===c){if(!n){i=t;break}}else n=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let i,n=0,o=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){const l=e.charCodeAt(i);if(l===c){if(!s){n=i+1;break}}else-1===a&&(s=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1==--r&&(o=i):(r=-1,o=a))}return n===o?o=a:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===c){if(!s){n=i+1;break}}else-1===o&&(s=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){g(e,"path");let t=-1,i=0,n=-1,o=!0,s=0;for(let r=e.length-1;r>=0;--r){const a=e.charCodeAt(r);if(a!==c)-1===n&&(o=!1,n=r+1),a===l?-1===t?t=r:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){i=r+1;break}}return-1===t||-1===n||0===s||1===s&&t===n-1&&t===i+1?"":e.slice(t,n)},format:b.bind(null,"/"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.charCodeAt(0)===c;let n;i?(t.root="/",n=1):n=0;let o=-1,s=0,r=-1,a=!0,h=e.length-1,d=0;for(;h>=n;--h){const t=e.charCodeAt(h);if(t!==c)-1===r&&(a=!1,r=h+1),t===l?-1===o?o=h:1!==d&&(d=1):-1!==o&&(d=-1);else if(!a){s=h+1;break}}if(-1!==r){const n=0===s&&i?1:s;-1===o||0===d||1===d&&o===r-1&&o===s+1?t.base=t.name=e.slice(n,r):(t.name=e.slice(n,o),t.base=e.slice(n,r),t.ext=e.slice(o,r))}return s>0?t.dir=e.slice(0,s-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};w.win32=C.win32=C,w.posix=C.posix=w;const S=p?C.normalize:w.normalize,k=p?C.resolve:w.resolve,x=p?C.relative:w.relative,L=p?C.dirname:w.dirname,E=p?C.basename:w.basename,N=p?C.extname:w.extname,D=p?C.sep:w.sep},1432:(e,t,i)=>{"use strict";i.d(t,{$L:()=>T,ED:()=>L,G6:()=>j,IJ:()=>N,OS:()=>B,dK:()=>O,dz:()=>E,fn:()=>F,gn:()=>A,i7:()=>z,li:()=>y,n2:()=>I,r:()=>W,tY:()=>D,tq:()=>M,un:()=>K,vU:()=>U});var n,o=i(63580);const s="en";let r,a,l=!1,c=!1,h=!1,d=!1,u=!1,g=!1,p=!1,m=!1,f=!1,_=!1,v=s,b=null,C=null;const y="object"==typeof self?self:"object"==typeof i.g?i.g:{};let w;void 0!==y.vscode&&void 0!==y.vscode.process?w=y.vscode.process:"undefined"!=typeof process&&(w=process);const S="string"==typeof(null===(n=null==w?void 0:w.versions)||void 0===n?void 0:n.electron),k=S&&"renderer"===(null==w?void 0:w.type);if("object"!=typeof navigator||k)if("object"==typeof w){l="win32"===w.platform,c="darwin"===w.platform,h="linux"===w.platform,d=h&&!!w.env.SNAP&&!!w.env.SNAP_REVISION,p=S,f=!!w.env.CI||!!w.env.BUILD_ARTIFACTSTAGINGDIRECTORY,r=s,v=s;const e=w.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),i=t.availableLanguages["*"];r=t.locale,b=t.osLocale,v=i||s,C=t._translationsConfigFile}catch(e){}u=!0}else console.error("Unable to resolve platform.");else a=navigator.userAgent,l=a.indexOf("Windows")>=0,c=a.indexOf("Macintosh")>=0,m=(a.indexOf("Macintosh")>=0||a.indexOf("iPad")>=0||a.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h=a.indexOf("Linux")>=0,_=(null==a?void 0:a.indexOf("Mobi"))>=0,g=!0,r=o.aj(o.NC({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"))||s,v=r,b=navigator.language;let x=0;c?x=1:l?x=3:h&&(x=2);const L=l,E=c,N=h,D=u,T=g,I=g&&"function"==typeof y.importScripts,A=m,M=_,R=a,O=v,P="function"==typeof y.postMessage&&!y.importScripts,F=(()=>{if(P){const e=[];y.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=e.length;i{const n=++t;e.push({id:n,callback:i}),y.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})(),B=c||m?2:l?1:3;let H=!0,V=!1;function W(){if(!V){V=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);H=513===t[0]}return H}const z=!!(R&&R.indexOf("Chrome")>=0),U=!!(R&&R.indexOf("Firefox")>=0),j=!!(!z&&R&&R.indexOf("Safari")>=0),K=!!(R&&R.indexOf("Edg/")>=0);R&&R.indexOf("Android")},61134:(e,t,i)=>{"use strict";var n;i.d(t,{e:()=>n}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};const i=Math.max(e.start,t.start),n=Math.min(e.end,t.end);return n-i<=0?{start:0,end:0}:{start:i,end:n}}function i(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=i,e.intersects=function(e,n){return!i(t(e,n))},e.relativeComplement=function(e,t){const n=[],o={start:e.start,end:Math.min(t.start,e.end)},s={start:Math.max(t.end,e.start),end:e.end};return i(o)||n.push(o),i(s)||n.push(s),n}}(n||(n={}))},95935:(e,t,i)=>{"use strict";i.d(t,{AH:()=>v,DZ:()=>m,EZ:()=>p,Hx:()=>g,SF:()=>d,Vb:()=>S,Vo:()=>_,XX:()=>f,Xy:()=>u,i3:()=>C,lX:()=>b,z_:()=>c});var n=i(15527),o=i(66663),s=i(88721),r=i(1432),a=i(97295),l=i(70666);function c(e){return(0,l.q)(e,!0)}class h{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:(0,a.qu)(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,i=!1){if(e.scheme===t.scheme){if(e.scheme===o.lg.file)return n.KM(c(e),c(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(y(e.authority,t.authority))return n.KM(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.o.joinPath(e,...t)}basenameOrAuthority(e){return p(e)||e.authority}basename(e){return s.KR.basename(e.path)}extname(e){return s.KR.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===o.lg.file?t=l.o.file(s.XX(c(e))).path:(t=s.KR.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===o.lg.file?l.o.file(s.Fv(c(e))).path:s.KR.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!y(e.authority,t.authority))return;if(e.scheme===o.lg.file){const i=s.Gf(c(e),c(t));return r.ED?n.ej(i):i}let i=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(i.length,a.length);en.yj(i).length&&i[i.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=s.ir){return w(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=s.ir){let i=!1;if(e.scheme===o.lg.file){const o=c(e);i=void 0!==o&&o.length===n.yj(o).length&&o[o.length-1]===t}else{t="/";const n=e.path;i=1===n.length&&47===n.charCodeAt(n.length-1)}return i||w(e,t)?e:e.with({path:e.path+"/"})}}const d=new h((()=>!1)),u=(new h((e=>e.scheme!==o.lg.file||!r.IJ)),new h((e=>!0)),d.isEqual.bind(d)),g=(d.isEqualOrParent.bind(d),d.getComparisonKey.bind(d),d.basenameOrAuthority.bind(d)),p=d.basename.bind(d),m=d.extname.bind(d),f=d.dirname.bind(d),_=d.joinPath.bind(d),v=d.normalizePath.bind(d),b=d.relativePath.bind(d),C=d.resolvePath.bind(d),y=(d.isAbsolutePath.bind(d),d.isEqualAuthority.bind(d)),w=d.hasTrailingPathSeparator.bind(d);var S;d.removeTrailingPathSeparator.bind(d),d.addTrailingPathSeparator.bind(d),function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,n]=e.split(":");t&&n&&i.set(t,n)}));const n=t.path.substring(0,t.path.indexOf(";"));return n&&i.set(e.META_DATA_MIME,n),i}}(S||(S={}))},76633:(e,t,i)=>{"use strict";i.d(t,{Rm:()=>r});var n=i(4669),o=i(5976);class s{constructor(e,t,i,n,o,s,r){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t|=0,i|=0,n|=0,o|=0,s|=0,r|=0),this.rawScrollLeft=n,this.rawScrollTop=r,t<0&&(t=0),n+t>i&&(n=i-t),n<0&&(n=0),o<0&&(o=0),r+o>s&&(r=s-o),r<0&&(r=0),this.width=t,this.scrollWidth=i,this.scrollLeft=n,this.height=o,this.scrollHeight=s,this.scrollTop=r}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new s(this._forceIntegerValues,void 0!==e.width?e.width:this.width,void 0!==e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,void 0!==e.height?e.height:this.height,void 0!==e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new s(this._forceIntegerValues,this.width,this.scrollWidth,void 0!==e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,void 0!==e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,o=this.scrollLeft!==e.scrollLeft,s=this.height!==e.height,r=this.scrollHeight!==e.scrollHeight,a=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:n,scrollLeftChanged:o,heightChanged:s,scrollHeightChanged:r,scrollTopChanged:a}}}class r extends o.JT{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new n.Q5),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new s(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){var i;const n=this._state.withScrollDimensions(e,t);this._setState(n,Boolean(this._smoothScrolling)),null===(i=this._smoothScrolling)||void 0===i||i.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:void 0===e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:void 0===e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let n;n=t?new c(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const t=this._state.withScrollPosition(e);this._smoothScrolling=c.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))}hasPendingScrollAnimation(){return Boolean(this._smoothScrolling)}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);return this._setState(t,!0),this._smoothScrolling?e.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))):void 0}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class a{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function l(e,t){const i=t-e;return function(t){return e+i*(1-(n=1-t,Math.pow(n,3)));var n}}class c{constructor(e,t,i,n){this.from=e,this.to=t,this.duration=n,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,i){if(Math.abs(e-t)>2.5*i){let r,a;return e{"use strict";i.d(t,{Z:()=>s});var n,o=i(97295);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(n||(n={})),function(e){const t="error",i="warning",n="info";e.fromValue=function(s){return s?o.qq(t,s)?e.Error:o.qq(i,s)||o.qq("warn",s)?e.Warning:o.qq(n,s)?e.Info:e.Ignore:e.Ignore},e.toString=function(o){switch(o){case e.Error:return t;case e.Warning:return i;case e.Info:return n;default:return"ignore"}}}(n||(n={}));const s=n},84013:(e,t,i)=>{"use strict";i.d(t,{G:()=>s});var n=i(1432);const o=n.li.performance&&"function"==typeof n.li.performance.now;class s{static create(e=!0){return new s(e)}constructor(e){this._highResolution=o&&e,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?n.li.performance.now():Date.now()}}},97295:(e,t,i)=>{"use strict";i.d(t,{$i:()=>q,B4:()=>se,C8:()=>Y,GF:()=>f,HO:()=>W,IO:()=>_,J_:()=>z,K7:()=>Q,Kw:()=>J,LC:()=>C,Mh:()=>A,P1:()=>M,PJ:()=>ee,Qe:()=>$,R1:()=>m,T5:()=>E,TT:()=>k,Ut:()=>j,V8:()=>y,W1:()=>H,WU:()=>l,YK:()=>O,YU:()=>c,ZG:()=>R,ZH:()=>F,ZK:()=>re,ab:()=>G,c1:()=>Z,df:()=>D,ec:()=>h,fy:()=>d,j3:()=>u,j_:()=>L,m5:()=>r,mK:()=>N,mr:()=>v,oH:()=>ne,oL:()=>g,ok:()=>I,ow:()=>w,qq:()=>T,qu:()=>S,rL:()=>P,uS:()=>X,un:()=>p,uq:()=>b,vH:()=>V,vU:()=>ae,zY:()=>x});var n,o=i(701),s=i(79579);function r(e){return!e||"string"!=typeof e||0===e.trim().length}const a=/{(\d+)}/g;function l(e,...t){return 0===t.length?e:e.replace(a,(function(e,i){const n=parseInt(i,10);return isNaN(n)||n<0||n>=t.length?e:t[n]}))}function c(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function h(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function d(e,t=" "){return g(u(e,t),t)}function u(e,t){if(!e||!t)return e;const i=t.length;if(0===i||0===e.length)return e;let n=0;for(;e.indexOf(t,n)===n;)n+=i;return e.substring(n)}function g(e,t){if(!e||!t)return e;const i=t.length,n=e.length;if(0===i||0===n)return e;let o=n,s=-1;for(;s=e.lastIndexOf(t,o-1),-1!==s&&s+i===o;){if(0===s)return"";o=s}return e.substring(0,o)}function p(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function m(e){return e.replace(/\*/g,"")}function f(e,t,i={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=h(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(e,n)}function _(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)}function v(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function b(e){return e.split(/\r\n|\r|\n/)}function C(e){for(let t=0,i=e.length;t=0;i--){const t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return-1}function S(e,t){return et?1:0}function k(e,t,i=0,n=e.length,o=0,s=t.length){for(;is)return 1}const r=n-i,a=s-o;return ra?1:0}function x(e,t){return L(e,t,0,e.length,0,t.length)}function L(e,t,i=0,n=e.length,o=0,s=t.length){for(;i=128||a>=128)return k(e.toLowerCase(),t.toLowerCase(),i,n,o,s);N(r)&&(r-=32),N(a)&&(a-=32);const l=r-a;if(0!==l)return l}const r=n-i,a=s-o;return ra?1:0}function E(e){return e>=48&&e<=57}function N(e){return e>=97&&e<=122}function D(e){return e>=65&&e<=90}function T(e,t){return e.length===t.length&&0===L(e,t)}function I(e,t){const i=t.length;return!(t.length>e.length)&&0===L(e,t,0,i)}function A(e,t){const i=Math.min(e.length,t.length);let n;for(n=0;n1){const n=e.charCodeAt(t-2);if(R(n))return P(n,i)}return i}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=F(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class H{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new B(e,t)}nextGraphemeLength(){const e=ie.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const i=t.offset,o=e.getGraphemeBreakType(t.nextCodePoint());if(te(n,o)){t.setOffset(i);break}n=o}return t.offset-i}prevGraphemeLength(){const e=ie.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const i=t.offset,o=e.getGraphemeBreakType(t.prevCodePoint());if(te(o,n)){t.setOffset(i);break}n=o}return i-t.offset}eol(){return this._iterator.eol()}}function V(e,t){return new H(e,t).nextGraphemeLength()}function W(e,t){return new H(e,t).prevGraphemeLength()}function z(e,t){t>0&&O(e.charCodeAt(t))&&t--;const i=t+V(e,t);return[i-W(e,i),i]}let U;function j(e){return U||(U=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),U.test(e)}const K=/^[\t\n\r\x20-\x7E]*$/;function q(e){return K.test(e)}const $=/[\u2028\u2029]/;function G(e){return $.test(e)}function Q(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function Y(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const Z=String.fromCharCode(65279);function X(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function J(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function ee(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function te(e,t){return 0===e?5!==t&&7!==t:!(2===e&&3===t||4!==e&&2!==e&&3!==e&&4!==t&&2!==t&&3!==t&&(8===e&&(8===t||9===t||11===t||12===t)||!(11!==e&&9!==e||9!==t&&10!==t)||(12===e||10===e)&&10===t||5===t||13===t||7===t||1===e||13===e&&14===t||6===e&&6===t))}class ie{static getInstance(){return ie._INSTANCE||(ie._INSTANCE=new ie),ie._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let n=1;for(;n<=i;)if(et[3*n+1]))return t[3*n+2];n=2*n+1}return 0}}function ne(e,t){if(0===e)return 0;const i=function(e,t){const i=new B(t,e);let n=i.prevCodePoint();for(;oe(n)||65039===n||8419===n;){if(0===i.offset)return;n=i.prevCodePoint()}if(!Y(n))return;let o=i.offset;return o>0&&8205===i.prevCodePoint()&&(o=i.offset),o}(e,t);if(void 0!==i)return i;const n=new B(t,e);return n.prevCodePoint(),n.offset}function oe(e){return 127995<=e&&e<=127999}ie._INSTANCE=null;const se=" ";class re{static getInstance(e){return re.cache.get(Array.from(e))}static getLocales(){return re._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}n=re,re.ambiguousCharacterData=new s.o((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))),re.cache=new o.t((e=>{function t(e){const t=new Map;for(let i=0;i!e.startsWith("_")&&e in o));0===r.length&&(r=["_default"]);for(const e of r)s=i(s,t(o[e]));const a=function(e,t){const i=new Map(e);for(const[e,n]of t)i.set(e,n);return i}(t(o._common),s);return new re(a)})),re._locales=new s.o((()=>Object.keys(re.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))));class ae{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(ae.getRawData())),this._data}static isInvisibleCharacter(e){return ae.getData().has(e)}static get codePoints(){return ae.getData()}}ae._data=void 0},5635:(e,t,i)=>{"use strict";i.d(t,{n:()=>n});const n=Symbol("MicrotaskDelay")},4767:(e,t,i)=>{"use strict";i.d(t,{Id:()=>c});var n=i(97295);class o{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos=0;t--,this._valueLen--){const e=this._value.charCodeAt(t);if(!(47===e||this._splitOnBackslash&&92===e))break}return this.next()}hasNext(){return this._to!1),t=(()=>!1)){return new c(new a(e,t))}static forStrings(){return new c(new o)}static forConfigKeys(){return new c(new s)}constructor(e){this._iter=e}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let n;this._root||(this._root=new l,this._root.segment=i.value());const o=[];for(n=this._root;;){const e=i.cmp(n.segment);if(e>0)n.left||(n.left=new l,n.left.segment=i.value()),o.push([-1,n]),n=n.left;else if(e<0)n.right||(n.right=new l,n.right.segment=i.value()),o.push([1,n]),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new l,n.mid.segment=i.value()),o.push([0,n]),n=n.mid}}const s=n.value;n.value=t,n.key=e;for(let e=o.length-1;e>=0;e--){const t=o[e][1];t.updateHeight();const i=t.balanceFactor();if(i<-1||i>1){const i=o[e][0],n=o[e+1][0];if(1===i&&1===n)o[e][1]=t.rotateLeft();else if(-1===i&&-1===n)o[e][1]=t.rotateRight();else if(1===i&&-1===n)t.right=o[e+1][1]=o[e+1][1].rotateRight(),o[e][1]=t.rotateLeft();else{if(-1!==i||1!==n)throw new Error;t.left=o[e+1][1]=o[e+1][1].rotateLeft(),o[e][1]=t.rotateRight()}if(e>0)switch(o[e-1][0]){case-1:o[e-1][1].left=o[e][1];break;case 1:o[e-1][1].right=o[e][1];break;case 0:o[e-1][1].mid=o[e][1]}else this._root=o[0][1]}}return s}get(e){var t;return null===(t=this._getNode(e))||void 0===t?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else{if(!t.hasNext())break;t.next(),i=i.mid}}return i}has(e){const t=this._getNode(e);return!(void 0===(null==t?void 0:t.value)&&void 0===(null==t?void 0:t.mid))}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var i;const n=this._iter.reset(e),o=[];let s=this._root;for(;s;){const e=n.cmp(s.segment);if(e>0)o.push([-1,s]),s=s.left;else if(e<0)o.push([1,s]),s=s.right;else{if(!n.hasNext())break;n.next(),o.push([0,s]),s=s.mid}}if(s){if(t?(s.left=void 0,s.mid=void 0,s.right=void 0,s.height=1):(s.key=void 0,s.value=void 0),!s.mid&&!s.value)if(s.left&&s.right){const e=this._min(s.right);if(e.key){const{key:t,value:i,segment:n}=e;this._delete(e.key,!1),s.key=t,s.value=i,s.segment=n}}else{const e=null!==(i=s.left)&&void 0!==i?i:s.right;if(o.length>0){const[t,i]=o[o.length-1];switch(t){case-1:i.left=e;break;case 0:i.mid=e;break;case 1:i.right=e}}else this._root=e}for(let e=o.length-1;e>=0;e--){const t=o[e][1];t.updateHeight();const i=t.balanceFactor();if(i>1?(t.right.balanceFactor()>=0||(t.right=t.right.rotateRight()),o[e][1]=t.rotateLeft()):i<-1&&(t.left.balanceFactor()<=0||(t.left=t.left.rotateLeft()),o[e][1]=t.rotateRight()),e>0)switch(o[e-1][0]){case-1:o[e-1][1].left=o[e][1];break;case 1:o[e-1][1].right=o[e][1];break;case 0:o[e-1][1].mid=o[e][1]}else this._root=o[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i,n=this._root;for(;n;){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,t){const i=this._iter.reset(e);let n=this._root;for(;n;){const e=i.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!i.hasNext())return n.mid?this._entries(n.mid):t?n.value:void 0;i.next(),n=n.mid}}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}}},25670:(e,t,i)=>{"use strict";i.d(t,{k:()=>o});var n,o,s=i(73046);!function(e){e.isThemeColor=function(e){return e&&"object"==typeof e&&"string"==typeof e.id}}(n||(n={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function i(e){const n=t.exec(e.id);if(!n)return i(s.l.error);const[,o,r]=n,a=["codicon","codicon-"+o];return r&&a.push("codicon-modifier-"+r.substring(1)),a}e.asClassNameArray=i,e.asClassName=function(e){return i(e).join(" ")},e.asCSSSelector=function(e){return"."+i(e).join(".")},e.isThemeIcon=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&(void 0===e.color||n.isThemeColor(e.color))};const o=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=o.exec(e);if(!t)return;const[,i]=t;return{id:i}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let i=e.id;const n=i.lastIndexOf("~");return-1!==n&&(i=i.substring(0,n)),t&&(i=`${i}~${t}`),{id:i}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){var i,n;return e.id===t.id&&(null===(i=e.color)||void 0===i?void 0:i.id)===(null===(n=t.color)||void 0===n?void 0:n.id)}}(o||(o={}))},98401:(e,t,i)=>{"use strict";function n(e){return"string"==typeof e}function o(e){return!("object"!=typeof e||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function s(e){const t=Object.getPrototypeOf(Uint8Array);return"object"==typeof e&&e instanceof t}function r(e){return"number"==typeof e&&!isNaN(e)}function a(e){return!!e&&"function"==typeof e[Symbol.iterator]}function l(e){return!0===e||!1===e}function c(e){return void 0===e}function h(e){return!d(e)}function d(e){return c(e)||null===e}function u(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function g(e){if(d(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function p(e){return"function"==typeof e}function m(e,t){const i=Math.min(e.length,t.length);for(let n=0;nh,D8:()=>m,HD:()=>n,Jp:()=>d,Kn:()=>o,M2:()=>v,TW:()=>a,cW:()=>g,f6:()=>_,fU:()=>s,hj:()=>r,jn:()=>l,mf:()=>p,o8:()=>c,p_:()=>u})},85427:(e,t,i)=>{"use strict";function n(e){return e<0?0:e>255?255:0|e}function o(e){return e<0?0:e>4294967295?4294967295:0|e}i.d(t,{A:()=>o,K:()=>n})},70666:(e,t,i)=>{"use strict";i.d(t,{o:()=>u,q:()=>v});var n=i(88721),o=i(1432);const s=/^\w[\w\d+.-]*$/,r=/^\//,a=/^\/\//;function l(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!r.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const c="",h="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class u{static isUri(e){return e instanceof u||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}constructor(e,t,i,n,o,s=!1){"object"==typeof e?(this.scheme=e.scheme||c,this.authority=e.authority||c,this.path=e.path||c,this.query=e.query||c,this.fragment=e.fragment||c):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||c,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,i||c),this.query=n||c,this.fragment=o||c,l(this,s))}get fsPath(){return v(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:o,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=c),void 0===i?i=this.authority:null===i&&(i=c),void 0===n?n=this.path:null===n&&(n=c),void 0===o?o=this.query:null===o&&(o=c),void 0===s?s=this.fragment:null===s&&(s=c),t===this.scheme&&i===this.authority&&n===this.path&&o===this.query&&s===this.fragment?this:new p(t,i,n,o,s)}static parse(e,t=!1){const i=d.exec(e);return i?new p(i[2]||c,w(i[4]||c),w(i[5]||c),w(i[7]||c),w(i[9]||c),t):new p(c,c,c,c,c)}static file(e){let t=c;if(o.ED&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){const i=e.indexOf(h,2);-1===i?(t=e.substring(2),e=h):(t=e.substring(2,i),e=e.substring(i)||h)}return new p("file",t,e,c,c)}static from(e){const t=new p(e.scheme,e.authority,e.path,e.query,e.fragment);return l(t,!0),t}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return i=o.ED&&"file"===e.scheme?u.file(n.Ku.join(v(e,!0),...t)).path:n.KR.join(e.path,...t),e.with({path:i})}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof u)return e;{const t=new p(e);return t._formatted=e.external,t._fsPath=e._sep===g?e.fsPath:null,t}}return e}}const g=o.ED?1:void 0;class p extends u{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=v(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=g),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const m={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function f(e,t,i){let n,o=-1;for(let s=0;s=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||45===r||46===r||95===r||126===r||t&&47===r||i&&91===r||i&&93===r||i&&58===r)-1!==o&&(n+=encodeURIComponent(e.substring(o,s)),o=-1),void 0!==n&&(n+=e.charAt(s));else{void 0===n&&(n=e.substr(0,s));const t=m[r];void 0!==t?(-1!==o&&(n+=encodeURIComponent(e.substring(o,s)),o=-1),n+=t):-1===o&&(o=s)}}return-1!==o&&(n+=encodeURIComponent(e.substring(o))),void 0!==n?n:e}function _(e){let t;for(let i=0;i1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,o.ED&&(i=i.replace(/\//g,"\\")),i}function b(e,t){const i=t?_:f;let n="",{scheme:o,authority:s,path:r,query:a,fragment:l}=e;if(o&&(n+=o,n+=":"),(s||"file"===o)&&(n+=h,n+=h),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?n+=i(t,!1,!1):(n+=i(t.substr(0,e),!1,!1),n+=":",n+=i(t.substr(e+1),!1,!0)),n+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?n+=i(s,!1,!0):(n+=i(s.substr(0,e),!1,!0),n+=s.substr(e))}if(r){if(r.length>=3&&47===r.charCodeAt(0)&&58===r.charCodeAt(2)){const e=r.charCodeAt(1);e>=65&&e<=90&&(r=`/${String.fromCharCode(e+32)}:${r.substr(3)}`)}else if(r.length>=2&&58===r.charCodeAt(1)){const e=r.charCodeAt(0);e>=65&&e<=90&&(r=`${String.fromCharCode(e+32)}:${r.substr(2)}`)}n+=i(r,!0,!1)}return a&&(n+="?",n+=i(a,!1,!1)),l&&(n+="#",n+=t?l:f(l,!1,!1)),n}function C(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+C(e.substr(3)):e}}const y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function w(e){return e.match(y)?e.replace(y,(e=>C(e))):e}},98e3:(e,t,i)=>{"use strict";i.d(t,{R:()=>n});const n=function(){if("object"==typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID.bind(crypto);let e;e="object"==typeof crypto&&"function"==typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t{"use strict";i.d(t,{H:()=>g});var n=i(1593),o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of r(t))a.call(e,l)||l===i||o(e,l,{get:()=>t[l],enumerable:!(n=s(t,l))||n.enumerable});return e},c={};l(c,n,"default");var h={},d={},u=class{static getOrCreate(e){return d[e]||(d[e]=new u(e)),d[e]}_languageId;_loadingTriggered;_lazyLoadPromise;_lazyLoadPromiseResolve;_lazyLoadPromiseReject;constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t}))}load(){return this._loadingTriggered||(this._loadingTriggered=!0,h[this._languageId].loader().then((e=>this._lazyLoadPromiseResolve(e)),(e=>this._lazyLoadPromiseReject(e)))),this._lazyLoadPromise}};function g(e){const t=e.id;h[t]=e,c.languages.register(e);const i=u.getOrCreate(t);c.languages.registerTokensProviderFactory(t,{create:async()=>(await i.load()).language}),c.languages.onLanguageEncountered(t,(async()=>{const e=await i.load();c.languages.setLanguageConfiguration(t,e.conf)}))}},56292:(e,t,i)=>{"use strict";i.r(t),(0,i(25552).H)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>i.e(75).then(i.bind(i,62075))})},43814:(e,t,i)=>{"use strict";i.r(t),(0,i(25552).H)({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>i.e(240).then(i.bind(i,92240))})},40902:(e,t,i)=>{"use strict";i.r(t),(0,i(25552).H)({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>i.e(571).then(i.bind(i,2571))})},43763:(e,t,i)=>{"use strict";i.r(t),(0,i(25552).H)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>i.e(295).then(i.bind(i,62295))})},77365:(e,t,i)=>{"use strict";i.r(t),(0,i(25552).H)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>i.e(954).then(i.bind(i,42954))})},96337:(e,t,i)=>{"use strict";i.r(t),(0,i(25552).H)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>i.e(778).then(i.bind(i,27778))})},81905:(e,t,i)=>{"use strict";i.r(t),(0,i(25552).H)({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\i.e(902).then(i.bind(i,4902))})},52136:(e,t,i)=>{"use strict";i.d(t,{N:()=>o});var n=i(38626);function o(e,t){e instanceof n.Z?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}},54534:(e,t,i)=>{"use strict";i.d(t,{I:()=>s});var n=i(5976),o=i(4669);class s extends n.JT{constructor(e,t){super(),this._onDidChange=this._register(new o.Q5),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){!this._resizeObserver&&this._referenceDomElement&&(this._resizeObserver=new ResizeObserver((e=>{e&&e[0]&&e[0].contentRect?this.observe({width:e[0].contentRect.width,height:e[0].contentRect.height}):this.observe()})),this._resizeObserver.observe(this._referenceDomElement))}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,n=0;t?(i=t.width,n=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,n=this._referenceDomElement.clientHeight),i=Math.max(5,i),n=Math.max(5,n),this._width===i&&this._height===n||(this._width=i,this._height=n,e&&this._onDidChange.fire())}}},27231:(e,t,i)=>{"use strict";i.d(t,{g:()=>g});var n=i(16268),o=i(4669),s=i(5976),r=i(52136);class a{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class l{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");(0,r.N)(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");(0,r.N)(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const n=document.createElement("div");(0,r.N)(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);const o=[];for(const e of this._requests){let s;0===e.type&&(s=t),2===e.type&&(s=i),1===e.type&&(s=n),s.appendChild(document.createElement("br"));const r=document.createElement("span");l._render(r,e),s.appendChild(r),o.push(r)}this._container=e,this._testElements=o}static _render(e,t){if(" "===t.chr){let t=" ";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;e{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()}),5e3))}_evictUntrustedReadings(){const e=this._cache.getValues();let t=!1;for(const i of e)i.isTrusted||(t=!0,this._cache.remove(i));t&&this._onDidChange.fire()}readFontInfo(e){if(!this._cache.has(e)){let t=this._actualReadFontInfo(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new h.pR({pixelRatio:n.PixelRatio.value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}_createRequest(e,t,i,n){const o=new a(e,t);return i.push(o),null==n||n.push(o),o}_actualReadFontInfo(e){const t=[],i=[],o=this._createRequest("n",0,t,i),s=this._createRequest("m",0,t,null),r=this._createRequest(" ",0,t,i),a=this._createRequest("0",0,t,i),d=this._createRequest("1",0,t,i),u=this._createRequest("2",0,t,i),g=this._createRequest("3",0,t,i),p=this._createRequest("4",0,t,i),m=this._createRequest("5",0,t,i),f=this._createRequest("6",0,t,i),_=this._createRequest("7",0,t,i),v=this._createRequest("8",0,t,i),b=this._createRequest("9",0,t,i),C=this._createRequest("→",0,t,i),y=this._createRequest("→",0,t,null),w=this._createRequest("·",0,t,i),S=this._createRequest(String.fromCharCode(11825),0,t,null),k="|/-_ilm%";for(let e=0,n=8;e.001){L=!1;break}}let N=!0;return L&&y.width!==E&&(N=!1),y.width>C.width&&(N=!1),new h.pR({pixelRatio:n.PixelRatio.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,fontVariationSettings:e.fontVariationSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:L,typicalHalfwidthCharacterWidth:o.width,typicalFullwidthCharacterWidth:s.width,canUseHalfwidthRightwardsArrow:N,spaceWidth:r.width,middotWidth:w.width,wsmiddotWidth:S.width,maxDigitWidth:x},!0)}}class u{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map((e=>this._values[e]))}}const g=new d},37940:(e,t,i)=>{"use strict";i.d(t,{n:()=>o});var n=i(4669);const o=new class{constructor(){this._tabFocusTerminal=!1,this._tabFocusEditor=!1,this._onDidChangeTabFocus=new n.Q5,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(e){return"terminalFocus"===e?this._tabFocusTerminal:this._tabFocusEditor}setTabFocusMode(e,t){"terminalFocus"===t?this._tabFocusTerminal=e:this._tabFocusEditor=e,this._onDidChangeTabFocus.fire()}}},35715:(e,t,i)=>{"use strict";i.d(t,{Fz:()=>b,Nl:()=>_,RA:()=>f,Tj:()=>y,pd:()=>n});var n,o=i(16268),s=i(65321),r=i(4850),a=i(59069),l=i(50795),c=i(15393),h=i(4669),d=i(5976),u=i(81170),g=i(97295),p=i(15887),m=i(3860);!function(e){e.Tap="-monaco-textarea-synthetic-tap"}(n||(n={}));const f={forceCopyWithSyntaxHighlighting:!1};class _{constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}_.INSTANCE=new _;class v{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(e){const t={text:e=e||"",replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}class b extends d.JT{get textAreaState(){return this._textAreaState}constructor(e,t,i,n){super(),this._host=e,this._textArea=t,this._OS=i,this._browser=n,this._onFocus=this._register(new h.Q5),this.onFocus=this._onFocus.event,this._onBlur=this._register(new h.Q5),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new h.Q5),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new h.Q5),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new h.Q5),this.onCut=this._onCut.event,this._onPaste=this._register(new h.Q5),this.onPaste=this._onPaste.event,this._onType=this._register(new h.Q5),this.onType=this._onType.event,this._onCompositionStart=this._register(new h.Q5),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new h.Q5),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new h.Q5),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new h.Q5),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncTriggerCut=this._register(new c.pY((()=>this._onCut.fire()),0)),this._asyncFocusGainWriteScreenReaderContent=this._register(new c.pY((()=>this.writeScreenReaderContent("asyncFocusGain")),0)),this._textAreaState=p.un.EMPTY,this._selectionChangeListener=null,this.writeScreenReaderContent("ctor"),this._hasFocus=!1,this._currentComposition=null;let o=null;this._register(this._textArea.onKeyDown((e=>{const t=new a.y(e);(114===t.keyCode||this._currentComposition&&1===t.keyCode)&&t.stopPropagation(),t.equals(9)&&t.preventDefault(),o=t,this._onKeyDown.fire(t)}))),this._register(this._textArea.onKeyUp((e=>{const t=new a.y(e);this._onKeyUp.fire(t)}))),this._register(this._textArea.onCompositionStart((e=>{p.al&&console.log("[compositionstart]",e);const t=new v;if(this._currentComposition)this._currentComposition=t;else{if(this._currentComposition=t,2===this._OS&&o&&o.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===e.data&&("ArrowRight"===o.code||"ArrowLeft"===o.code))return p.al&&console.log("[compositionstart] Handling long press case on macOS + arrow key",e),t.handleCompositionUpdate("x"),void this._onCompositionStart.fire({data:e.data});this._browser.isAndroid,this._onCompositionStart.fire({data:e.data})}}))),this._register(this._textArea.onCompositionUpdate((e=>{p.al&&console.log("[compositionupdate]",e);const t=this._currentComposition;if(!t)return;if(this._browser.isAndroid){const t=p.un.readFromTextArea(this._textArea,this._textAreaState),i=p.un.deduceAndroidCompositionInput(this._textAreaState,t);return this._textAreaState=t,this._onType.fire(i),void this._onCompositionUpdate.fire(e)}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p.un.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionUpdate.fire(e)}))),this._register(this._textArea.onCompositionEnd((e=>{p.al&&console.log("[compositionend]",e);const t=this._currentComposition;if(!t)return;if(this._currentComposition=null,this._browser.isAndroid){const e=p.un.readFromTextArea(this._textArea,this._textAreaState),t=p.un.deduceAndroidCompositionInput(this._textAreaState,e);return this._textAreaState=e,this._onType.fire(t),void this._onCompositionEnd.fire()}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p.un.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionEnd.fire()}))),this._register(this._textArea.onInput((e=>{if(p.al&&console.log("[input]",e),this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const t=p.un.readFromTextArea(this._textArea,this._textAreaState),i=p.un.deduceInput(this._textAreaState,t,2===this._OS);(0!==i.replacePrevCharCnt||1!==i.text.length||!g.ZG(i.text.charCodeAt(0))&&127!==i.text.charCodeAt(0))&&(this._textAreaState=t,""===i.text&&0===i.replacePrevCharCnt&&0===i.replaceNextCharCnt&&0===i.positionDelta||this._onType.fire(i))}))),this._register(this._textArea.onCut((e=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(e),this._asyncTriggerCut.schedule()}))),this._register(this._textArea.onCopy((e=>{this._ensureClipboardGetsEditorSelection(e)}))),this._register(this._textArea.onPaste((e=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),e.preventDefault(),!e.clipboardData)return;let[t,i]=C.getTextData(e.clipboardData);t&&(i=i||_.INSTANCE.get(t),this._onPaste.fire({text:t,metadata:i}))}))),this._register(this._textArea.onFocus((()=>{const e=this._hasFocus;this._setHasFocus(!0),this._browser.isSafari&&!e&&this._hasFocus&&this._asyncFocusGainWriteScreenReaderContent.schedule()}))),this._register(this._textArea.onBlur((()=>{this._currentComposition&&(this._currentComposition=null,this.writeScreenReaderContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)}))),this._register(this._textArea.onSyntheticTap((()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeScreenReaderContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())})))}_installSelectionChangeListener(){let e=0;return s.nm(document,"selectionchange",(t=>{if(l.B.onSelectionChange(),!this._hasFocus)return;if(this._currentComposition)return;if(!this._browser.isChrome)return;const i=Date.now(),n=i-e;if(e=i,n<5)return;const o=i-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),o<100)return;if(!this._textAreaState.selection)return;const s=this._textArea.getValue();if(this._textAreaState.value!==s)return;const r=this._textArea.getSelectionStart(),a=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===r&&this._textAreaState.selectionEnd===a)return;const c=this._textAreaState.deduceEditorPosition(r),h=this._host.deduceModelPosition(c[0],c[1],c[2]),d=this._textAreaState.deduceEditorPosition(a),u=this._host.deduceModelPosition(d[0],d[1],d[2]),g=new m.Y(h.lineNumber,h.column,u.lineNumber,u.column);this._onSelectionChangeRequest.fire(g)}))}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeScreenReaderContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeScreenReaderContent(e){this._currentComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent())}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};_.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,"\n"):t.text,i),e.preventDefault(),e.clipboardData&&C.setTextData(e.clipboardData,t.text,t.html,i)}}class C{static getTextData(e){const t=e.getData(u.v.text);let i=null;const n=e.getData("vscode-editor-data");if("string"==typeof n)try{i=JSON.parse(n),1!==i.version&&(i=null)}catch(e){}return 0===t.length&&null===i&&e.files.length>0?[Array.prototype.slice.call(e.files,0).map((e=>e.name)).join("\n"),null]:[t,i]}static setTextData(e,t,i,n){e.setData(u.v.text,t),"string"==typeof i&&e.setData("text/html",i),e.setData("vscode-editor-data",JSON.stringify(n))}}class y extends d.JT{constructor(e){super(),this._actual=e,this.onKeyDown=this._register(new r.Y(this._actual,"keydown")).event,this.onKeyUp=this._register(new r.Y(this._actual,"keyup")).event,this.onCompositionStart=this._register(new r.Y(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(new r.Y(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(new r.Y(this._actual,"compositionend")).event,this.onBeforeInput=this._register(new r.Y(this._actual,"beforeinput")).event,this.onInput=this._register(new r.Y(this._actual,"input")).event,this.onCut=this._register(new r.Y(this._actual,"cut")).event,this.onCopy=this._register(new r.Y(this._actual,"copy")).event,this.onPaste=this._register(new r.Y(this._actual,"paste")).event,this.onFocus=this._register(new r.Y(this._actual,"focus")).event,this.onBlur=this._register(new r.Y(this._actual,"blur")).event,this._onSyntheticTap=this._register(new h.Q5),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(this.onKeyDown((()=>l.B.onKeyDown()))),this._register(this.onBeforeInput((()=>l.B.onBeforeInput()))),this._register(this.onInput((()=>l.B.onInput()))),this._register(this.onKeyUp((()=>l.B.onKeyUp()))),this._register(s.nm(this._actual,n.Tap,(()=>this._onSyntheticTap.fire())))}hasFocus(){const e=s.Ay(this._actual);return e?e.activeElement===this._actual:!!s.Uw(this._actual)&&document.activeElement===this._actual}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(e,t){const i=this._actual;i.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=t)}getSelectionStart(){return"backward"===this._actual.selectionDirection?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return"backward"===this._actual.selectionDirection?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(e,t,i){const n=this._actual;let r=null;const a=s.Ay(n);r=a?a.activeElement:document.activeElement;const l=r===n,c=n.selectionStart,h=n.selectionEnd;if(l&&c===t&&h===i)o.isFirefox&&window.parent!==window&&n.focus();else{if(l)return this.setIgnoreSelectionChangeTime("setSelectionRange"),n.setSelectionRange(t,i),void(o.isFirefox&&window.parent!==window&&n.focus());try{const e=s.vL(n);this.setIgnoreSelectionChangeTime("setSelectionRange"),n.focus(),n.setSelectionRange(t,i),s._0(n,e)}catch(e){}}}}},15887:(e,t,i)=>{"use strict";i.d(t,{al:()=>s,ee:()=>a,un:()=>r});var n=i(97295),o=i(24314);const s=!1;class r{constructor(e,t,i,n,o){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selection=n,this.newlineCountBeforeSelection=o}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(e,t){const i=e.getValue(),n=e.getSelectionStart(),o=e.getSelectionEnd();let s;return t&&i.substring(0,n)===t.value.substring(0,t.selectionStart)&&(s=t.newlineCountBeforeSelection),new r(i,n,o,null,s)}collapseSelection(){return this.selectionStart===this.value.length?this:new r(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(e,t,i){s&&console.log(`writeToTextArea ${e}: ${this.toString()}`),t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){var t,i,n,o,s,r,a,l;if(e<=this.selectionStart){const n=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(null!==(i=null===(t=this.selection)||void 0===t?void 0:t.getStartPosition())&&void 0!==i?i:null,n,-1)}if(e>=this.selectionEnd){const t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(null!==(o=null===(n=this.selection)||void 0===n?void 0:n.getEndPosition())&&void 0!==o?o:null,t,1)}const c=this.value.substring(this.selectionStart,e);if(-1===c.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(null!==(r=null===(s=this.selection)||void 0===s?void 0:s.getStartPosition())&&void 0!==r?r:null,c,1);const h=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(null!==(l=null===(a=this.selection)||void 0===a?void 0:a.getEndPosition())&&void 0!==l?l:null,h,-1)}_finishDeduceEditorPosition(e,t,i){let n=0,o=-1;for(;-1!==(o=t.indexOf("\n",o+1));)n++;return[e,i*t.length,n]}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};s&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`));const o=Math.min(n.Mh(e.value,t.value),e.selectionStart,t.selectionStart),r=Math.min(n.P1(e.value,t.value),e.value.length-e.selectionEnd,t.value.length-t.selectionEnd),a=e.value.substring(o,e.value.length-r),l=t.value.substring(o,t.value.length-r),c=e.selectionStart-o,h=e.selectionEnd-o,d=t.selectionStart-o,u=t.selectionEnd-o;if(s&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${a}>, selectionStart: ${c}, selectionEnd: ${h}`),console.log(`AFTER DIFFING CURRENT STATE: <${l}>, selectionStart: ${d}, selectionEnd: ${u}`)),d===u){const t=e.selectionStart-o;return s&&console.log(`REMOVE PREVIOUS: ${t} chars`),{text:l,replacePrevCharCnt:t,replaceNextCharCnt:0,positionDelta:0}}return{text:l,replacePrevCharCnt:h-c,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(s&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`)),e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const i=Math.min(n.Mh(e.value,t.value),e.selectionEnd),o=Math.min(n.P1(e.value,t.value),e.value.length-e.selectionEnd),r=e.value.substring(i,e.value.length-o),a=t.value.substring(i,t.value.length-o),l=e.selectionStart-i,c=e.selectionEnd-i,h=t.selectionStart-i,d=t.selectionEnd-i;return s&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${r}>, selectionStart: ${l}, selectionEnd: ${c}`),console.log(`AFTER DIFFING CURRENT STATE: <${a}>, selectionStart: ${h}, selectionEnd: ${d}`)),{text:a,replacePrevCharCnt:c,replaceNextCharCnt:r.length-c,positionDelta:d-a.length}}}r.EMPTY=new r("",0,0,null,void 0);class a{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const i=e*t,n=i+1,s=i+t;return new o.e(n,1,s+1,1)}static fromEditorSelection(e,t,i,n){const s=500,l=a._getPageOfLine(t.startLineNumber,i),c=a._getRangeForPage(l,i),h=a._getPageOfLine(t.endLineNumber,i),d=a._getRangeForPage(h,i);let u=c.intersectRanges(new o.e(1,1,t.startLineNumber,t.startColumn));if(n&&e.getValueLengthInRange(u,1)>s){const t=e.modifyPosition(u.getEndPosition(),-500);u=o.e.fromPositions(t,u.getEndPosition())}const g=e.getValueInRange(u,1),p=e.getLineCount(),m=e.getLineMaxColumn(p);let f=d.intersectRanges(new o.e(t.endLineNumber,t.endColumn,p,m));if(n&&e.getValueLengthInRange(f,1)>s){const t=e.modifyPosition(f.getStartPosition(),s);f=o.e.fromPositions(f.getStartPosition(),t)}const _=e.getValueInRange(f,1);let v;if(l===h||l+1===h)v=e.getValueInRange(t,1);else{const i=c.intersectRanges(t),n=d.intersectRanges(t);v=e.getValueInRange(i,1)+String.fromCharCode(8230)+e.getValueInRange(n,1)}return n&&v.length>1e3&&(v=v.substring(0,s)+String.fromCharCode(8230)+v.substring(v.length-s,v.length)),new r(g+v+_,g.length,g.length+v.length,t,u.endLineNumber-u.startLineNumber)}}},69317:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CoreEditingCommands:()=>E,CoreEditorCommand:()=>w,CoreNavigationCommands:()=>m,EditorScroll_:()=>g,RevealLine_:()=>p});var n=i(63580),o=i(16268),s=i(98401),r=i(85152),a=i(16830),l=i(11640),c=i(55343),h=i(50187),d=i(24314);class u{static columnSelect(e,t,i,n,o,s){const r=Math.abs(o-i)+1,a=i>o,l=n>s,u=ns)continue;if(_n)continue;if(f0&&n--,u.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,n)}static columnSelectRight(e,t,i){let n=0;const o=Math.min(i.fromViewLineNumber,i.toViewLineNumber),s=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let i=o;i<=s;i++){const o=t.getLineMaxColumn(i),s=e.visibleColumnFromColumn(t,new h.L(i,o));n=Math.max(n,s)}let r=i.toViewVisualColumn;return r{const i=e.get(l.$).getFocusedCodeEditor();return!(!i||!i.hasTextFocus())&&this._runEditorCommand(e,i,t)})),e.addImplementation(1e3,"generic-dom-input-textarea",((e,t)=>{const i=document.activeElement;return!!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)&&(this.runDOMCommand(),!0)})),e.addImplementation(0,"generic-dom",((e,t)=>{const i=e.get(l.$).getActiveCodeEditor();return!!i&&(i.focus(),this._runEditorCommand(e,i,t))}))}_runEditorCommand(e,t,i){return this.runEditorCommand(e,t,i)||!0}}!function(e){class t extends w{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[_.P.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)])&&2!==t.revealType&&e.revealPrimaryCursor(t.source,!0,!0))}}e.MoveTo=(0,a.fK)(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=(0,a.fK)(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class i extends w{runCoreEditorCommand(e,t){e.model.pushStackElement();const i=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);null!==i&&(e.setCursorStates(t.source,3,i.viewStates.map((e=>c.Vi.fromViewState(e)))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:i.fromLineNumber,fromViewVisualColumn:i.fromVisualColumn,toViewLineNumber:i.toLineNumber,toViewVisualColumn:i.toVisualColumn}),i.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source))}}e.ColumnSelect=(0,a.fK)(new class extends i{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,i,n){if(void 0===n.position||void 0===n.viewPosition||void 0===n.mouseColumn)return null;const o=e.model.validatePosition(n.position),s=e.coordinatesConverter.validateViewPosition(new h.L(n.viewPosition.lineNumber,n.viewPosition.column),o),r=n.doColumnSelect?i.fromViewLineNumber:s.lineNumber,a=n.doColumnSelect?i.fromViewVisualColumn:n.mouseColumn-1;return u.columnSelect(e.cursorConfig,e,r,a,s.lineNumber,n.mouseColumn-1)}}),e.CursorColumnSelectLeft=(0,a.fK)(new class extends i{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return u.columnSelectLeft(e.cursorConfig,e,i)}}),e.CursorColumnSelectRight=(0,a.fK)(new class extends i{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return u.columnSelectRight(e.cursorConfig,e,i)}});class s extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return u.columnSelectUp(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectUp=(0,a.fK)(new s({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=(0,a.fK)(new s({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:3595,linux:{primary:0}}}));class l extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return u.columnSelectDown(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectDown=(0,a.fK)(new l({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=(0,a.fK)(new l({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:3596,linux:{primary:0}}}));class m extends w{constructor(){super({id:"cursorMove",precondition:void 0,description:_.N.description})}runCoreEditorCommand(e,t){const i=_.N.parse(t);i&&this._runCursorMove(e,t.source,i)}_runCursorMove(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,m._move(e,e.getCursorStates(),i)),e.revealPrimaryCursor(t,!0)}static _move(e,t,i){const n=i.select,o=i.value;switch(i.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return _.P.simpleMove(e,t,i.direction,n,o,i.unit);case 11:case 13:case 12:case 14:return _.P.viewportMove(e,t,i.direction,n,o);default:return null}}}e.CursorMoveImpl=m,e.CursorMove=(0,a.fK)(new m);class f extends w{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.pageSize||e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,_.P.simpleMove(e,e.getCursorStates(),i.direction,i.select,i.value,i.unit)),e.revealPrimaryCursor(t.source,!0)}}e.CursorLeft=(0,a.fK)(new f({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=(0,a.fK)(new f({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:1039}})),e.CursorRight=(0,a.fK)(new f({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=(0,a.fK)(new f({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:1041}})),e.CursorUp=(0,a.fK)(new f({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=(0,a.fK)(new f({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=(0,a.fK)(new f({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:11}})),e.CursorPageUpSelect=(0,a.fK)(new f({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:1035}})),e.CursorDown=(0,a.fK)(new f({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=(0,a.fK)(new f({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=(0,a.fK)(new f({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:12}})),e.CursorPageDownSelect=(0,a.fK)(new f({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:1036}})),e.CreateCursor=(0,a.fK)(new class extends w{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;let i;i=t.wholeLine?_.P.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):_.P.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);const n=e.getCursorStates();if(n.length>1){const o=i.modelState?i.modelState.position:null,s=i.viewState?i.viewState.position:null;for(let i=0,r=n.length;is&&(o=s);const r=new d.e(o,1,o,e.model.getLineMaxColumn(o));let a=0;if(i.at)switch(i.at){case p.RawAtArgument.Top:a=3;break;case p.RawAtArgument.Center:a=1;break;case p.RawAtArgument.Bottom:a=4}const l=e.coordinatesConverter.convertModelRangeToViewRange(r);e.revealRange(t.source,!1,l,a,0)}}),e.SelectAll=new class extends S{constructor(){super(a.Sq)}runDOMCommand(){o.isFirefox&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditorCommand(n,i)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[_.P.selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=(0,a.fK)(new class extends w{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){t.selection&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[c.Vi.fromModelSelection(t.selection)]))}})}(m||(m={}));const k=C.Ao.and(b.u.textInputFocus,b.u.columnSelection);function x(e,t){y.W.registerKeybindingRule({id:e,primary:t,when:k,weight:1})}function L(e){return e.register(),e}var E;x(m.CursorColumnSelectLeft.id,1039),x(m.CursorColumnSelectRight.id,1041),x(m.CursorColumnSelectUp.id,1040),x(m.CursorColumnSelectPageUp.id,1035),x(m.CursorColumnSelectDown.id,1042),x(m.CursorColumnSelectPageDown.id,1036),function(e){class t extends a._l{runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditingCommand(t,n,i||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=(0,a.fK)(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:b.u.writable,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,v.u6.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection))))}}),e.Outdent=(0,a.fK)(new class extends t{constructor(){super({id:"outdent",precondition:b.u.writable,kbOpts:{weight:0,kbExpr:C.Ao.and(b.u.editorTextFocus,b.u.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,v.u6.outdent(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.Tab=(0,a.fK)(new class extends t{constructor(){super({id:"tab",precondition:b.u.writable,kbOpts:{weight:0,kbExpr:C.Ao.and(b.u.editorTextFocus,b.u.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,v.u6.tab(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.DeleteLeft=(0,a.fK)(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,i){const[n,o]=f.A.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)),t.getCursorAutoClosedCharacters());n&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(2)}}),e.DeleteRight=(0,a.fK)(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:b.u.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,i){const[n,o]=f.A.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)));n&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(3)}}),e.Undo=new class extends S{constructor(){super(a.n_)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(87))return t.getModel().undo()}},e.Redo=new class extends S{constructor(){super(a.kz)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(87))return t.getModel().redo()}}}(E||(E={}));class N extends a.mY{constructor(e,t,i){super({id:e,precondition:void 0,description:i}),this._handlerId=t}runCommand(e,t){const i=e.get(l.$).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,t)}}function D(e,t){L(new N("default:"+e,e)),L(new N(e,e,t))}D("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),D("replacePreviousChar"),D("compositionType"),D("compositionStart"),D("compositionEnd"),D("paste"),D("cut")},92944:(e,t,i)=>{"use strict";i.d(t,{B:()=>c,d:()=>u});var n=i(23547),o=i(73278),s=i(81170),r=i(70666),a=i(16021),l=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function c(e){const t=new o.Hl;for(const i of e.items){const e=i.type;if("string"===i.kind){const n=new Promise((e=>i.getAsString(e)));t.append(e,(0,o.ZO)(n))}else if("file"===i.kind){const n=i.getAsFile();n&&t.append(e,h(n))}}return t}function h(e){const t=e.path?r.o.parse(e.path):void 0;return(0,o.Ix)(e.name,t,(()=>l(this,void 0,void 0,(function*(){return new Uint8Array(yield e.arrayBuffer())}))))}const d=Object.freeze([a.Km.EDITORS,a.Km.FILES,n.g.RESOURCES]);function u(e,t,i=!1){var n;if(t.dataTransfer&&(i||!e.has(s.v.uriList))){const i=(0,a.GR)(t).filter((e=>e.resource)).map((e=>e.resource.toString()));for(const e of null===(n=t.dataTransfer)||void 0===n?void 0:n.items){const t=e.getAsFile();t&&i.push(t.path?r.o.file(t.path).toString():t.name)}i.length&&e.replace(s.v.uriList,(0,o.ZO)(o.Z0.create(i)))}for(const t of d)e.delete(t)}},65520:(e,t,i)=>{"use strict";i.d(t,{CL:()=>o,Pi:()=>r,QI:()=>s});var n=i(96518);function o(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===n.g.ICodeEditor}function s(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===n.g.IDiffEditor}function r(e){return o(e)?e:s(e)?e.getModifiedEditor():function(e){return!!e&&"object"==typeof e&&"function"==typeof e.onDidChangeActiveEditor}(e)&&o(e.activeCodeEditor)?e.activeCodeEditor:null}},29994:(e,t,i)=>{"use strict";i.d(t,{AL:()=>v,N5:()=>f,Pp:()=>p,YN:()=>c,gy:()=>m,kG:()=>g,rU:()=>h,t7:()=>b,tC:()=>_});var n=i(65321),o=i(93911),s=i(7448),r=i(15393),a=i(5976),l=i(73910);class c{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(){return new h(this.x-window.scrollX,this.y-window.scrollY)}}class h{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(){return new c(this.clientX+window.scrollX,this.clientY+window.scrollY)}}class d{constructor(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n,this._editorPagePositionBrand=void 0}}class u{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0}}function g(e){const t=n.i(e);return new d(t.left,t.top,t.width,t.height)}function p(e,t,i){const n=t.width/e.offsetWidth,o=t.height/e.offsetHeight,s=(i.x-t.x)/n,r=(i.y-t.y)/o;return new u(s,r)}class m extends s.n{constructor(e,t,i){super(e),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=t,this.pos=new c(this.posx,this.posy),this.editorPos=g(i),this.relativePos=p(i,this.editorPos,this.pos)}}class f{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onContextMenu(e,t){return n.nm(e,"contextmenu",(e=>{t(this._create(e))}))}onMouseUp(e,t){return n.nm(e,"mouseup",(e=>{t(this._create(e))}))}onMouseDown(e,t){return n.nm(e,n.tw.MOUSE_DOWN,(e=>{t(this._create(e))}))}onPointerDown(e,t){return n.nm(e,n.tw.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onMouseLeave(e,t){return n.nm(e,n.tw.MOUSE_LEAVE,(e=>{t(this._create(e))}))}onMouseMove(e,t){return n.nm(e,"mousemove",(e=>t(this._create(e))))}}class _{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onPointerUp(e,t){return n.nm(e,"pointerup",(e=>{t(this._create(e))}))}onPointerDown(e,t){return n.nm(e,n.tw.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onPointerLeave(e,t){return n.nm(e,n.tw.POINTER_LEAVE,(e=>{t(this._create(e))}))}onPointerMove(e,t){return n.nm(e,"pointermove",(e=>t(this._create(e))))}}class v extends a.JT{constructor(e){super(),this._editorViewDomNode=e,this._globalPointerMoveMonitor=this._register(new o.C),this._keydownListener=null}startMonitoring(e,t,i,o,s){this._keydownListener=n.mu(document,"keydown",(e=>{e.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,e.browserEvent)}),!0),this._globalPointerMoveMonitor.startMonitoring(e,t,i,(e=>{o(new m(e,!0,this._editorViewDomNode))}),(e=>{this._keydownListener.dispose(),s(e)}))}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}class b{constructor(e){this._editor=e,this._instanceId=++b._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new r.pY((()=>this.garbageCollect()),1e3)}createClassNameRef(e){const t=this.getOrCreateRule(e);return t.increaseRefCount(),{className:t.className,dispose:()=>{t.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(e){const t=this.computeUniqueKey(e);let i=this._rules.get(t);if(!i){const o=this._counter++;i=new C(t,`dyn-rule-${this._instanceId}-${o}`,n.OO(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(t,i)}return i}computeUniqueKey(e){return JSON.stringify(e)}garbageCollect(){for(const e of this._rules.values())e.hasReferences()||(this._rules.delete(e.key),e.dispose())}}b._idPool=0;class C{constructor(e,t,i,o){this.key=e,this.className=t,this.properties=o,this._referenceCount=0,this._styleElement=n.dS(i),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(e,t){let i=`.${e} {`;for(const e in t){const n=t[e];let o;o="object"==typeof n?(0,l.n_1)(n.id):n,i+=`\n\t${y(e)}: ${o};`}return i+="\n}",i}dispose(){this._styleElement.remove()}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function y(e){return e.replace(/(^[A-Z])/,(([e])=>e.toLowerCase())).replace(/([A-Z])/g,(([e])=>`-${e.toLowerCase()}`))}},16830:(e,t,i)=>{"use strict";i.d(t,{AJ:()=>C,QG:()=>T,Qr:()=>N,R6:()=>S,Sq:()=>P,Uc:()=>n,_K:()=>I,_l:()=>w,fK:()=>E,jY:()=>k,kz:()=>O,mY:()=>b,n_:()=>R,rn:()=>D,sb:()=>L,x1:()=>x});var n,o=i(63580),s=i(70666),r=i(11640),a=i(50187),l=i(73733),c=i(88216),h=i(84144),d=i(94565),u=i(93983),g=i(72065),p=i(49989),m=i(89872),f=i(10829),_=i(98401),v=i(43557);class b{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this._description=e.description}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let e=t.kbExpr;this.precondition&&(e=e?u.Ao.and(e,this.precondition):this.precondition);const i={id:this.id,weight:t.weight,args:t.args,when:e,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};p.W.registerKeybindingRule(i)}}d.P.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),description:this._description})}_registerMenuItem(e){h.BH.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}class C extends b{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i){return this._implementations.push({priority:e,name:t,implementation:i}),this._implementations.sort(((e,t)=>t.priority-e.priority)),{dispose:()=>{for(let e=0;e{if(e.get(u.i6).contextMatchesRules((0,_.f6)(i)))return n(e,s,t)}))}runCommand(e,t){return w.runEditorCommand(e,t,this.precondition,((e,t,i)=>this.runEditorCommand(e,t,i)))}}class S extends w{static convertOptions(e){let t;function i(t){return t.menuId||(t.menuId=h.eH.EditorContext),t.title||(t.title=e.label),t.when=u.Ao.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}constructor(e){super(S.convertOptions(e)),this.label=e.label,this.alias=e.alias}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(f.b).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class k extends S{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort(((e,t)=>t[0]-e[0])),{dispose:()=>{for(let e=0;e{if(e.get(u.i6).contextMatchesRules((0,_.f6)(this.desc.precondition)))return this.runEditorCommand(e,n,...t)}))}}function L(e,t){d.P.registerCommand(e,(function(e,...i){const n=e.get(g.TG),[o,r]=i;(0,_.p_)(s.o.isUri(o)),(0,_.p_)(a.L.isIPosition(r));const h=e.get(l.q).getModel(o);if(h){const e=a.L.lift(r);return n.invokeFunction(t,h,e,...i.slice(2))}return e.get(c.S).createModelReference(o).then((e=>new Promise(((o,s)=>{try{o(n.invokeFunction(t,e.object.textEditorModel,a.L.lift(r),i.slice(2)))}catch(e){s(e)}})).finally((()=>{e.dispose()}))))}))}function E(e){return A.INSTANCE.registerEditorCommand(e),e}function N(e){const t=new e;return A.INSTANCE.registerEditorAction(t),t}function D(e){return A.INSTANCE.registerEditorAction(e),e}function T(e){A.INSTANCE.registerEditorAction(e)}function I(e,t,i){A.INSTANCE.registerEditorContribution(e,t,i)}!function(e){e.getEditorCommand=function(e){return A.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return A.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return A.INSTANCE.getEditorContributions()},e.getSomeEditorContributions=function(e){return A.INSTANCE.getEditorContributions().filter((t=>e.indexOf(t.id)>=0))},e.getDiffEditorContributions=function(){return A.INSTANCE.getDiffEditorContributions()}}(n||(n={}));class A{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t,i){this.editorContributions.push({id:e,ctor:t,instantiation:i})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}function M(e){return e.register(),e}A.INSTANCE=new A,m.B.add("editor.contributions",A.INSTANCE);const R=M(new C({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:h.eH.MenubarEditMenu,group:"1_do",title:o.NC({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:h.eH.CommandPalette,group:"",title:o.NC("undo","Undo"),order:1}]}));M(new y(R,{id:"default:undo",precondition:void 0}));const O=M(new C({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:h.eH.MenubarEditMenu,group:"1_do",title:o.NC({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:h.eH.CommandPalette,group:"",title:o.NC("redo","Redo"),order:1}]}));M(new y(O,{id:"default:redo",precondition:void 0}));const P=M(new C({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:h.eH.MenubarSelectionMenu,group:"1_basic",title:o.NC({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:h.eH.CommandPalette,group:"",title:o.NC("selectAll","Select All"),order:1}]}))},66007:(e,t,i)=>{"use strict";i.d(t,{Gl:()=>l,fo:()=>a,vu:()=>r});var n=i(72065),o=i(70666),s=i(98401);const r=(0,n.yh)("IWorkspaceEditService");class a{constructor(e){this.metadata=e}static convert(e){return e.edits.map((e=>{if(l.is(e))return l.lift(e);if(c.is(e))return c.lift(e);throw new Error("Unsupported edit")}))}}class l extends a{static is(e){return e instanceof l||(0,s.Kn)(e)&&o.o.isUri(e.resource)&&(0,s.Kn)(e.textEdit)}static lift(e){return e instanceof l?e:new l(e.resource,e.textEdit,e.versionId,e.metadata)}constructor(e,t,i=void 0,n){super(n),this.resource=e,this.textEdit=t,this.versionId=i}}class c extends a{static is(e){return e instanceof c||(0,s.Kn)(e)&&(Boolean(e.newResource)||Boolean(e.oldResource))}static lift(e){return e instanceof c?e:new c(e.oldResource,e.newResource,e.options,e.metadata)}constructor(e,t,i={},n){super(n),this.oldResource=e,this.newResource=t,this.options=i}}},11640:(e,t,i)=>{"use strict";i.d(t,{$:()=>n});const n=(0,i(72065).yh)("codeEditorService")},82573:(e,t,i)=>{"use strict";i.d(t,{Q8:()=>$e,eu:()=>We});var n=i(15393),o=i(5976),s=i(17301),r=i(4669),a=i(36248),l=i(1432),c=i(97295);let h=!1;function d(e){l.$L&&(h||(h=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class u{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.method=i,this.args=n,this.type=0}}class g{constructor(e,t,i,n){this.vsWorker=e,this.seq=t,this.res=i,this.err=n,this.type=1}}class p{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.eventName=i,this.arg=n,this.type=2}}class m{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class f{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class _{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const i=String(++this._lastSentReq);return new Promise(((n,o)=>{this._pendingReplies[i]={resolve:n,reject:o},this._send(new u(this._workerId,i,e,t))}))}listen(e,t){let i=null;const n=new r.Q5({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,n),this._send(new p(this._workerId,i,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new f(this._workerId,i)),i=null}});return n.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;return e.err.$isError&&(i=new Error,i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),void t.reject(i)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new g(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,s.ri)(e.detail)),this._send(new g(this._workerId,t,void 0,(0,s.ri)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new m(this._workerId,t,e))}));this._pendingEvents.set(t,i)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let i=0;i{this._protocol.handleMessage(e)}),(e=>{null==n||n(e)}))),this._protocol=new _({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t)=>{if("function"!=typeof i[e])return Promise.reject(new Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(i[e].apply(i,t))}catch(e){return Promise.reject(e)}},handleEvent:(e,t)=>{if(C(e)){const n=i[e].call(i,t);if("function"!=typeof n)throw new Error(`Missing dynamic event ${e} on main thread host.`);return n}if(b(e)){const t=i[e];if("function"!=typeof t)throw new Error(`Missing event ${e} on main thread host.`);return t}throw new Error(`Malformed event name ${e}`)}}),this._protocol.setWorkerId(this._worker.getId());let o=null;const s=globalThis.require;void 0!==s&&"function"==typeof s.getConfig?o=s.getConfig():void 0!==globalThis.requirejs&&(o=globalThis.requirejs.s.contexts._.config);const r=(0,a.$E)(i);this._onModuleLoaded=this._protocol.sendMessage("$initialize",[this._worker.getId(),JSON.parse(JSON.stringify(o)),t,r]);const l=(e,t)=>this._request(e,t),c=(e,t)=>this._protocol.listen(e,t);this._lazyProxy=new Promise(((e,i)=>{n=i,this._onModuleLoaded.then((t=>{e(function(e,t,i){const n=e=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},o=e=>function(t){return i(e,t)},s={};for(const t of e)C(t)?s[t]=o(t):b(t)?s[t]=i(t,void 0):s[t]=n(t);return s}(t,l,c))}),(e=>{i(e),this._onError("Worker failed to load "+t,e)}))}))}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise(((i,n)=>{this._onModuleLoaded.then((()=>{this._protocol.sendMessage(e,t).then(i,n)}),n)}))}_onError(e,t){console.error(e),console.info(t)}}function b(e){return"o"===e[0]&&"n"===e[1]&&c.df(e.charCodeAt(2))}function C(e){return/^onDynamic/.test(e)&&c.df(e.charCodeAt(9))}var y;const w=null===(y=window.trustedTypes)||void 0===y?void 0:y.createPolicy("defaultWorkerFactory",{createScriptURL:e=>e});class S{constructor(e,t,i,n,o){this.id=t;const s=function(e){const t=globalThis.MonacoEnvironment;if(t){if("function"==typeof t.getWorker)return t.getWorker("workerMain.js",e);if("function"==typeof t.getWorkerUrl){const i=t.getWorkerUrl("workerMain.js",e);return new Worker(w?w.createScriptURL(i):i,{name:e})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}(i);"function"==typeof s.then?this.worker=s:this.worker=Promise.resolve(s),this.postMessage(e,[]),this.worker.then((e=>{e.onmessage=function(e){n(e.data)},e.onmessageerror=o,"function"==typeof e.addEventListener&&e.addEventListener("error",o)}))}getId(){return this.id}postMessage(e,t){var i;null===(i=this.worker)||void 0===i||i.then((i=>i.postMessage(e,t)))}dispose(){var e;null===(e=this.worker)||void 0===e||e.then((e=>e.terminate())),this.worker=null}}class k{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){const n=++k.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new S(e,n,this._label||"anonymous"+n,t,(e=>{d(e),this._webWorkerFailedBeforeError=e,i(e)}))}}k.LAST_WORKER_ID=0;var x=i(24314),L=i(51381),E=i(2484),N=i(70666),D=i(50187),T=i(90310);class I{constructor(e,t,i,n){this._uri=e,this._lines=t,this._eol=i,this._versionId=n,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new D.L(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,i=new Uint32Array(t);for(let n=0;nt&&(t=s),o>i&&(i=o),r>i&&(i=r)}t++,i++;const n=new R(i,t,0);for(let t=0,i=e.length;t=this._maxCharCode?0:this._states.get(e,t)}}let P=null,F=null;class B{static _createLink(e,t,i,n,o){let s=o-1;do{const i=t.charCodeAt(s);if(2!==e.get(i))break;s--}while(s>n);if(n>0){const e=t.charCodeAt(n-1),i=t.charCodeAt(s);(40===e&&41===i||91===e&&93===i||123===e&&125===i)&&s--}return{range:{startLineNumber:i,startColumn:n+1,endLineNumber:i,endColumn:s+2},url:t.substring(n,s+1)}}static computeLinks(e,t=function(){return null===P&&(P=new O([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),P}()){const i=function(){if(null===F){F=new M.N(0);const e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let t=0;t=0?(n+=i?1:-1,n<0?n=e.length-1:n%=e.length,e[n]):null}}H.INSTANCE=new H;var V=i(20927),W=i(84013),z=i(31446),U=i(60652),j=i(35146),K=i(45463);function q(e,t,i,n){return new E.Hs(e,t,i).ComputeDiff(n)}class ${constructor(e){const t=[],i=[];for(let n=0,o=e.length;n(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class Q{constructor(e,t,i,n,o,s,r,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=n,this.modifiedStartLineNumber=o,this.modifiedStartColumn=s,this.modifiedEndLineNumber=r,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){const n=t.getStartLineNumber(e.originalStart),o=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),r=t.getEndColumn(e.originalStart+e.originalLength-1),a=i.getStartLineNumber(e.modifiedStart),l=i.getStartColumn(e.modifiedStart),c=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new Q(n,o,s,r,a,l,c,h)}}class Y{constructor(e,t,i,n,o){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=n,this.charChanges=o}static createFromDiffResult(e,t,i,n,o,s,r){let a,l,c,h,d;if(0===t.originalLength?(a=i.getStartLineNumber(t.originalStart)-1,l=0):(a=i.getStartLineNumber(t.originalStart),l=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(c=n.getStartLineNumber(t.modifiedStart)-1,h=0):(c=n.getStartLineNumber(t.modifiedStart),h=n.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&o()){const s=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=n.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=q(s,a,o,!0).changes;r&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let i=t[0];for(let n=1,o=e.length;n1&&r>1&&e.charCodeAt(i-2)===t.charCodeAt(r-2);)i--,r--;(i>1||r>1)&&this._pushTrimWhitespaceCharChange(n,o+1,1,i,s+1,1,r)}{let i=J(e,1),r=J(t,1);const a=e.length+1,l=t.length+1;for(;i!0;const t=Date.now();return()=>Date.now()-t ${this.seq2Range}`}join(e){return new ne(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}}class oe{isValid(){return!0}}oe.instance=new oe;class se{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new s.he("timeout must be positive")}isValid(){return!(Date.now()-this.startTime0&&l>0&&3===s.get(a-1,l-1)&&(d+=r.get(a-1,l-1)),d+=n?n(a,l):1):d=-1;const u=Math.max(c,h,d);if(u===d){const e=a>0&&l>0?r.get(a-1,l-1):0;r.set(a,l,e+1),s.set(a,l,3)}else u===c?(r.set(a,l,0),s.set(a,l,1)):u===h&&(r.set(a,l,0),s.set(a,l,2));o.set(a,l,u)}const a=[];let l=e.length,c=t.length;function h(e,t){e+1===l&&t+1===c||a.push(new ne(new te.q(e+1,l),new te.q(t+1,c))),l=e,c=t}let d=e.length-1,u=t.length-1;for(;d>=0&&u>=0;)3===s.get(d,u)?(h(d,u),d--,u--):1===s.get(d,u)?d--:u--;return h(-1,-1),a.reverse(),new ie(a,!1)}}function le(e,t,i){let n=i;return n=function(e,t,i){const n=[];i.length>0&&n.push(i[0]);for(let e=1;e0?i[n-1].seq2Range.endExclusive:-1,r=n+10?i[n-1].seq1Range.endExclusive:-1,r=n+1o&&i.getElement(e.seq2Range.start-s)===i.getElement(e.seq2Range.endExclusive-s)&&s<20;)s++;s--;let r=0;for(;e.seq2Range.start+rl&&(l=c,a=n)}return 0!==a?new ne(e.seq1Range.delta(a),e.seq2Range.delta(a)):e}class he{compute(e,t,i=oe.instance){if(0===e.length||0===t.length)return ie.trivial(e,t);function n(i,n){for(;i=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class ge{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}class pe{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:me(this.lines[e-1]))+(e===this.lines.length?0:me(this.lines[e])))}}function me(e){let t=0;for(;t0&&t.endExclusive>=e.length&&(t=new te.q(t.start-1,t.endExclusive),n=!0),this.lineRange=t;for(let t=this.lineRange.start;tString.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=Ce(e>0?this.elements[e-1]:-1),i=Ce(ee?i=n:t=n+1}const n=0===t?0:this.firstCharOffsetByLineMinusOne[t-1];return new D.L(this.lineRange.start+t+1,e-n+1+this.offsetByLine[t])}translateRange(e){return x.e.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!_e(this.elements[e]))return;let t=e;for(;t>0&&_e(this.elements[t-1]);)t--;let i=e;for(;i=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const ve={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function be(e){return ve[e]}function Ce(e){return 10===e?7:13===e?6:function(e){return 32===e||9===e}(e)?5:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:4}const ye={legacy:new class{computeDiff(e,t,i){var n;const o=new Z(e,t,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),s=[];let r=null;for(const e of o.changes){let t,i;t=0===e.originalEndLineNumber?new K.z(e.originalStartLineNumber+1,e.originalStartLineNumber+1):new K.z(e.originalStartLineNumber,e.originalEndLineNumber+1),i=0===e.modifiedEndLineNumber?new K.z(e.modifiedStartLineNumber+1,e.modifiedStartLineNumber+1):new K.z(e.modifiedStartLineNumber,e.modifiedEndLineNumber+1);let o=new U.f0(t,i,null===(n=e.charChanges)||void 0===n?void 0:n.map((e=>new U.iy(new x.e(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new x.e(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));r&&(r.modifiedRange.endLineNumberExclusive!==o.modifiedRange.startLineNumber&&r.originalRange.endLineNumberExclusive!==o.originalRange.startLineNumber||(o=new U.f0(r.originalRange.join(o.originalRange),r.modifiedRange.join(o.modifiedRange),r.innerChanges&&o.innerChanges?r.innerChanges.concat(o.innerChanges):void 0),s.pop())),s.push(o),r=o}return(0,j.eZ)((()=>(0,j.DM)(s,((e,t)=>t.originalRange.startLineNumber-e.originalRange.endLineNumberExclusive==t.modifiedRange.startLineNumber-e.modifiedRange.endLineNumberExclusive&&e.originalRange.endLineNumberExclusiver(e.trim()))),l=t.map((e=>r(e.trim()))),c=new pe(a,e),h=new pe(l,t),d=(()=>c.length+h.length<1500?this.dynamicProgrammingDiffing.compute(c,h,n,((i,n)=>e[i]===t[n]?0===t[n].length?.1:1+Math.log(1+t[n].length):.99)):this.myersDiffingAlgorithm.compute(c,h))();let u=d.diffs,g=d.hitTimeout;u=le(c,h,u);const p=[],m=i=>{if(o)for(let s=0;si.seq1Range.start-f==i.seq2Range.start-_)),m(i.seq1Range.start-f),f=i.seq1Range.endExclusive,_=i.seq2Range.endExclusive;const s=this.refineDiff(e,t,i,n,o);s.hitTimeout&&(g=!0);for(const e of s.mappings)p.push(e)}m(e.length-f);const v=function(e,t,i){const n=[];for(const o of function*(e,t){let i,n;for(const t of e)void 0!==n&&(s=t,(o=n).originalRange.overlapOrTouch(s.originalRange)||o.modifiedRange.overlapOrTouch(s.modifiedRange))?i.push(t):(i&&(yield i),i=[t]),n=t;var o,s;i&&(yield i)}(e.map((e=>function(e,t,i){let n=0,o=0;e.modifiedRange.startColumn-1>=i[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&(n=1),1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+n<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+n<=e.modifiedRange.endLineNumber&&(o=-1);const s=new K.z(e.originalRange.startLineNumber+n,e.originalRange.endLineNumber+1+o),r=new K.z(e.modifiedRange.startLineNumber+n,e.modifiedRange.endLineNumber+1+o);return new U.f0(s,r,[e])}(e,t,i))))){const e=o[0],t=o[o.length-1];n.push(new U.f0(e.originalRange.join(t.originalRange),e.modifiedRange.join(t.modifiedRange),o.map((e=>e.innerChanges[0]))))}return(0,j.eZ)((()=>(0,j.DM)(n,((e,t)=>t.originalRange.startLineNumber-e.originalRange.endLineNumberExclusive==t.modifiedRange.startLineNumber-e.modifiedRange.endLineNumberExclusive&&e.originalRange.endLineNumberExclusivee&&n.push(new ne(o.s1Range,o.s2Range)),o=void 0}for(const r of i){function a(e,t){var i,n,a,l;if(!o||!o.s1Range.containsRange(e)||!o.s2Range.containsRange(t))if(!o||o.s1Range.endExclusive0||t.length>0;){const n=e[0],o=t[0];let s;s=n&&(!o||n.seq1Range.start0&&i[i.length-1].seq1Range.endExclusive>=s.seq1Range.start?i[i.length-1]=i[i.length-1].join(s):i.push(s)}return i}(i,n)}(s,r,l),l=function(e,t,i){const n=[];for(const e of i){const t=n[n.length-1];t&&(e.seq1Range.start-t.seq1Range.endExclusive<=2||e.seq2Range.start-t.seq2Range.endExclusive<=2)?n[n.length-1]=new ne(t.seq1Range.join(e.seq1Range),t.seq2Range.join(e.seq2Range)):n.push(e)}return n}(0,0,l),{mappings:l.map((e=>new U.iy(s.translateRange(e.seq1Range),r.translateRange(e.seq2Range)))),hitTimeout:a.hitTimeout}}}};var we=i(41264);function Se(e){const t=[];for(const i of e){const e=Number(i);(e||0===e&&""!==i.replace(/\s/g,""))&&t.push(e)}return t}function ke(e,t,i,n){return{red:e/255,blue:i/255,green:t/255,alpha:n}}function xe(e,t){const i=t.index,n=t[0].length;if(!i)return;const o=e.positionAt(i);return{startLineNumber:o.lineNumber,startColumn:o.column,endLineNumber:o.lineNumber,endColumn:o.column+n}}function Le(e,t){if(!e)return;const i=we.Il.Format.CSS.parseHex(t);return i?{range:e,color:ke(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}:void 0}function Ee(e,t,i){if(!e||1!==t.length)return;const n=Se(t[0].values());return{range:e,color:ke(n[0],n[1],n[2],i?n[3]:1)}}function Ne(e,t,i){if(!e||1!==t.length)return;const n=Se(t[0].values()),o=new we.Il(new we.Oz(n[0],n[1]/100,n[2]/100,i?n[3]:1));return{range:e,color:ke(o.rgba.r,o.rgba.g,o.rgba.b,o.rgba.a)}}function De(e,t){return"string"==typeof e?[...e.matchAll(t)]:e.findMatches(t)}var Te=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class Ie extends I{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let i=0;ithis._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,n=!0;else{const e=this._lines[t-1].length+1;i<1?(i=1,n=!0):i>e&&(i=e,n=!0)}return n?{lineNumber:t,column:i}:e}}class Ae{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}acceptNewModel(e){this._models[e.url]=new Ie(N.o.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeUnicodeHighlights(e,t,i){return Te(this,void 0,void 0,(function*(){const n=this._getModel(e);return n?z.a.computeUnicodeHighlights(n,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}))}computeDiff(e,t,i,n){return Te(this,void 0,void 0,(function*(){const o=this._getModel(e),s=this._getModel(t);return o&&s?Ae.computeDiff(o,s,i,n):null}))}static computeDiff(e,t,i,n){const o="advanced"===n?ye.advanced:ye.legacy,s=e.getLinesContent(),r=t.getLinesContent(),a=o.computeDiff(s,r,i);return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:a.changes.map((e=>{var t;return[e.originalRange.startLineNumber,e.originalRange.endLineNumberExclusive,e.modifiedRange.startLineNumber,e.modifiedRange.endLineNumberExclusive,null===(t=e.innerChanges)||void 0===t?void 0:t.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]}))}}static _modelsAreIdentical(e,t){const i=e.getLineCount();if(i!==t.getLineCount())return!1;for(let n=1;n<=i;n++)if(e.getLineContent(n)!==t.getLineContent(n))return!1;return!0}computeMoreMinimalEdits(e,t,i){return Te(this,void 0,void 0,(function*(){const n=this._getModel(e);if(!n)return t;const o=[];let s;t=t.slice(0).sort(((e,t)=>e.range&&t.range?x.e.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)));for(let{range:e,text:r,eol:a}of t){if("number"==typeof a&&(s=a),x.e.isEmpty(e)&&!r)continue;const t=n.getValueInRange(e);if(r=r.replace(/\r\n|\n|\r/g,n.eol),t===r)continue;if(Math.max(r.length,t.length)>Ae._diffLimit){o.push({range:e,text:r});continue}const l=(0,E.a$)(t,r,i),c=n.offsetAt(x.e.lift(e).getStartPosition());for(const e of l){const t=n.positionAt(c+e.originalStart),i=n.positionAt(c+e.originalStart+e.originalLength),s={text:r.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}};n.getValueInRange(s.range)!==s.text&&o.push(s)}}return"number"==typeof s&&o.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o}))}computeLinks(e){return Te(this,void 0,void 0,(function*(){const t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?B.computeLinks(e):[]}(t):null}))}computeDefaultDocumentColors(e){return Te(this,void 0,void 0,(function*(){const t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getValue&&"function"==typeof e.positionAt?function(e){const t=[],i=De(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(i.length>0)for(const n of i){const i=n.filter((e=>void 0!==e)),o=i[1],s=i[2];if(!s)continue;let r;if("rgb"===o){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;r=Ee(xe(e,n),De(s,t),!1)}else if("rgba"===o){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;r=Ee(xe(e,n),De(s,t),!0)}else if("hsl"===o){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;r=Ne(xe(e,n),De(s,t),!1)}else if("hsla"===o){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;r=Ne(xe(e,n),De(s,t),!0)}else"#"===o&&(r=Le(xe(e,n),o+s));r&&t.push(r)}return t}(e):[]}(t):null}))}textualSuggest(e,t,i,n){return Te(this,void 0,void 0,(function*(){const o=new W.G(!0),s=new RegExp(i,n),r=new Set;e:for(const i of e){const e=this._getModel(i);if(e)for(const i of e.words(s))if(i!==t&&isNaN(Number(i))&&(r.add(i),r.size>Ae._suggestionsLimit))break e}return{words:Array.from(r),duration:o.elapsed()}}))}computeWordRanges(e,t,i,n){return Te(this,void 0,void 0,(function*(){const o=this._getModel(e);if(!o)return Object.create(null);const s=new RegExp(i,n),r=Object.create(null);for(let e=t.startLineNumber;ethis._host.fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(n,t),Promise.resolve((0,a.$E)(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}Ae._diffLimit=1e5,Ae._suggestionsLimit=1e4,"function"==typeof importScripts&&(globalThis.monaco=(0,V.O)());var Me=i(73733),Re=i(71765),Oe=i(9488),Pe=i(43557),Fe=i(71922),Be=function(e,t){return function(i,n){t(i,n,e)}},He=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function Ve(e,t){const i=e.getModel(t);return!!i&&!i.isTooLargeForSyncing()}let We=class extends o.JT{constructor(e,t,i,n,o){super(),this._modelService=e,this._workerManager=this._register(new Ue(this._modelService,n)),this._logService=i,this._register(o.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(e,t)=>Ve(this._modelService,e.uri)?this._workerManager.withWorker().then((t=>t.computeLinks(e.uri))).then((e=>e&&{links:e})):Promise.resolve({links:[]})})),this._register(o.completionProvider.register("*",new ze(this._workerManager,t,this._modelService,n)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return Ve(this._modelService,e)}computedUnicodeHighlights(e,t,i){return this._workerManager.withWorker().then((n=>n.computedUnicodeHighlights(e,t,i)))}computeDiff(e,t,i,n){return He(this,void 0,void 0,(function*(){const o=yield this._workerManager.withWorker().then((o=>o.computeDiff(e,t,i,n)));if(!o)return null;const s={identical:o.identical,quitEarly:o.quitEarly,changes:o.changes.map((e=>{var t;return new U.f0(new K.z(e[0],e[1]),new K.z(e[2],e[3]),null===(t=e[4])||void 0===t?void 0:t.map((e=>new U.iy(new x.e(e[0],e[1],e[2],e[3]),new x.e(e[4],e[5],e[6],e[7])))))}))};return s}))}computeMoreMinimalEdits(e,t,i=!1){if((0,Oe.Of)(t)){if(!Ve(this._modelService,e))return Promise.resolve(t);const o=W.G.create(!0),s=this._workerManager.withWorker().then((n=>n.computeMoreMinimalEdits(e,t,i)));return s.finally((()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),o.elapsed()))),Promise.race([s,(0,n.Vs)(1e3).then((()=>t))])}return Promise.resolve(void 0)}canNavigateValueSet(e){return Ve(this._modelService,e)}navigateValueSet(e,t,i){return this._workerManager.withWorker().then((n=>n.navigateValueSet(e,t,i)))}canComputeWordRanges(e){return Ve(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then((i=>i.computeWordRanges(e,t)))}};We=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Be(0,Me.q),Be(1,Re.V),Be(2,Pe.VZ),Be(3,L.c_),Be(4,Fe.p)],We);class ze{constructor(e,t,i,n){this.languageConfigurationService=n,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}provideCompletionItems(e,t){return He(this,void 0,void 0,(function*(){const i=this._configurationService.getValue(e.uri,t,"editor");if(!i.wordBasedSuggestions)return;const n=[];if("currentDocument"===i.wordBasedSuggestionsMode)Ve(this._modelService,e.uri)&&n.push(e.uri);else for(const t of this._modelService.getModels())Ve(this._modelService,t.uri)&&(t===e?n.unshift(t.uri):"allDocuments"!==i.wordBasedSuggestionsMode&&t.getLanguageId()!==e.getLanguageId()||n.push(t.uri));if(0===n.length)return;const o=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),s=e.getWordAtPosition(t),r=s?new x.e(t.lineNumber,s.startColumn,t.lineNumber,s.endColumn):x.e.fromPositions(t),a=r.setEndPosition(t.lineNumber,t.column),l=yield this._workerManager.withWorker(),c=yield l.textualSuggest(n,null==s?void 0:s.word,o);return c?{duration:c.duration,suggestions:c.words.map((e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:r}})))}:void 0}))}}class Ue extends o.JT{constructor(e,t){super(),this.languageConfigurationService=t,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=(new Date).getTime(),this._register(new n.zh).cancelAndSet((()=>this._checkStopIdleWorker()),Math.round(15e4)),this._register(this._modelService.onModelRemoved((e=>this._checkStopEmptyWorker())))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){this._editorWorkerClient&&0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){this._editorWorkerClient&&(new Date).getTime()-this._lastWorkerUsedTime>3e5&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new $e(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class je extends o.JT{constructor(e,t,i){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){const e=new n.zh;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(3e4)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,o.B9)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t){for(const i of e){const e=i.toString();this._syncedModels[e]||this._beginModelSync(i,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const i in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[i]>6e4&&t.push(i);for(const e of t)this._stopModelSync(e)}_beginModelSync(e,t){const i=this._modelService.getModel(e);if(!i)return;if(!t&&i.isTooLargeForSyncing())return;const n=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});const s=new o.SL;s.add(i.onDidChangeContent((e=>{this._proxy.acceptModelChanged(n.toString(),e)}))),s.add(i.onWillDispose((()=>{this._stopModelSync(n)}))),s.add((0,o.OF)((()=>{this._proxy.acceptRemovedModel(n)}))),this._syncedModels[n]=s}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,o.B9)(t)}}class Ke{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class qe{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class $e extends o.JT{constructor(e,t,i,n){super(),this.languageConfigurationService=n,this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new k(i),this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new v(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new qe(this)))}catch(e){d(e),this._worker=new Ke(new Ae(new qe(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,(e=>(d(e),this._worker=new Ke(new Ae(new qe(this),null)),this._getOrCreateWorker().getProxyObject())))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new je(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e,t=!1){return He(this,void 0,void 0,(function*(){return this._disposed?Promise.reject((0,s.F0)()):this._getProxy().then((i=>(this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i)))}))}computedUnicodeHighlights(e,t,i){return this._withSyncedResources([e]).then((n=>n.computeUnicodeHighlights(e.toString(),t,i)))}computeDiff(e,t,i,n){return this._withSyncedResources([e,t],!0).then((o=>o.computeDiff(e.toString(),t.toString(),i,n)))}computeMoreMinimalEdits(e,t,i){return this._withSyncedResources([e]).then((n=>n.computeMoreMinimalEdits(e.toString(),t,i)))}computeLinks(e){return this._withSyncedResources([e]).then((t=>t.computeLinks(e.toString())))}computeDefaultDocumentColors(e){return this._withSyncedResources([e]).then((t=>t.computeDefaultDocumentColors(e.toString())))}textualSuggest(e,t,i){return He(this,void 0,void 0,(function*(){const n=yield this._withSyncedResources(e),o=i.source,s=(0,c.mr)(i);return n.textualSuggest(e.map((e=>e.toString())),t,o,s)}))}computeWordRanges(e,t){return this._withSyncedResources([e]).then((i=>{const n=this._modelService.getModel(e);if(!n)return Promise.resolve(null);const o=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId()).getWordDefinition(),s=o.source,r=(0,c.mr)(o);return i.computeWordRanges(e.toString(),t,s,r)}))}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then((n=>{const o=this._modelService.getModel(e);if(!o)return null;const s=this.languageConfigurationService.getLanguageConfiguration(o.getLanguageId()).getWordDefinition(),r=s.source,a=(0,c.mr)(s);return n.navigateValueSet(e.toString(),t,i,r,a)}))}dispose(){super.dispose(),this._disposed=!0}}},43407:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});class n{static capture(e){if(0===e.getScrollTop()||e.hasPendingScrollAnimation())return new n(e.getScrollTop(),e.getContentHeight(),null,0,null);let t=null,i=0;const o=e.getVisibleRanges();if(o.length>0){t=o[0].getStartPosition();const n=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-n}return new n(e.getScrollTop(),e.getContentHeight(),t,i,e.getPosition())}constructor(e,t,i,n,o){this._initialScrollTop=e,this._initialContentHeight=t,this._visiblePosition=i,this._visiblePositionScrollDelta=n,this._cursorPosition=o}restore(e){if((this._initialContentHeight!==e.getContentHeight()||this._initialScrollTop!==e.getScrollTop())&&this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){if(this._initialContentHeight===e.getContentHeight()&&this._initialScrollTop===e.getScrollTop())return;const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i)}}},51998:(e,t,i)=>{"use strict";i.d(t,{Gm:()=>Ko});var n=i(36357),o=i(16830);let s=class{constructor(e,t){}dispose(){}};var r,a;s.ID="editor.contrib.markerDecorations",s=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(r=1,a=n.i,function(e,t){a(e,t,r)})],s),(0,o._K)(s.ID,s,0);var l=i(63580),c=i(65321),h=i(17301),d=i(4669),u=i(5976),g=i(66663),p=i(16268),m=i(9488),f=i(36248),_=i(1432),v=i(54534),b=i(27231);class C{constructor(e,t){this.key=e,this.migrate=t}apply(e){const t=C._read(e,this.key);this.migrate(t,(t=>C._read(e,t)),((t,i)=>C._write(e,t,i)))}static _read(e,t){if(void 0===e)return;const i=t.indexOf(".");if(i>=0){const n=t.substring(0,i);return this._read(e[n],t.substring(i+1))}return e[t]}static _write(e,t,i){const n=t.indexOf(".");if(n>=0){const o=t.substring(0,n);return e[o]=e[o]||{},void this._write(e[o],t.substring(n+1),i)}e[t]=i}}function y(e,t){C.items.push(new C(e,t))}function w(e,t){y(e,((i,n,o)=>{if(void 0!==i)for(const[n,s]of t)if(i===n)return void o(e,s)}))}C.items=[],w("wordWrap",[[!0,"on"],[!1,"off"]]),w("lineNumbers",[[!0,"on"],[!1,"off"]]),w("cursorBlinking",[["visible","solid"]]),w("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),w("renderLineHighlight",[[!0,"line"],[!1,"none"]]),w("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),w("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),w("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),w("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),w("autoIndent",[[!1,"advanced"],[!0,"full"]]),w("matchBrackets",[[!0,"always"],[!1,"never"]]),w("renderFinalNewline",[[!0,"on"],[!1,"off"]]),w("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]),y("autoClosingBrackets",((e,t,i)=>{!1===e&&(i("autoClosingBrackets","never"),void 0===t("autoClosingQuotes")&&i("autoClosingQuotes","never"),void 0===t("autoSurround")&&i("autoSurround","never"))})),y("renderIndentGuides",((e,t,i)=>{void 0!==e&&(i("renderIndentGuides",void 0),void 0===t("guides.indentation")&&i("guides.indentation",!!e))})),y("highlightActiveIndentGuide",((e,t,i)=>{void 0!==e&&(i("highlightActiveIndentGuide",void 0),void 0===t("guides.highlightActiveIndentation")&&i("guides.highlightActiveIndentation",!!e))}));const S={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};y("suggest.filteredTypes",((e,t,i)=>{if(e&&"object"==typeof e){for(const n of Object.entries(S))!1===e[n[0]]&&void 0===t(`suggest.${n[1]}`)&&i(`suggest.${n[1]}`,!1);i("suggest.filteredTypes",void 0)}})),y("quickSuggestions",((e,t,i)=>{if("boolean"==typeof e){const t=e?"on":"off";i("quickSuggestions",{comments:t,strings:t,other:t})}})),y("experimental.stickyScroll.enabled",((e,t,i)=>{"boolean"==typeof e&&(i("experimental.stickyScroll.enabled",void 0),void 0===t("stickyScroll.enabled")&&i("stickyScroll.enabled",e))})),y("experimental.stickyScroll.maxLineCount",((e,t,i)=>{"number"==typeof e&&(i("experimental.stickyScroll.maxLineCount",void 0),void 0===t("stickyScroll.maxLineCount")&&i("stickyScroll.maxLineCount",e))}));var k=i(37940),x=i(64141),L=i(82334),E=i(27374),N=i(31106);let D=class extends u.JT{constructor(e,t,i,n){super(),this._accessibilityService=n,this._onDidChange=this._register(new d.Q5),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new d.Q5),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new x.LJ,this.isSimpleWidget=e,this._containerObserver=this._register(new v.I(i,t.dimension)),this._rawOptions=R(t),this._validatedOptions=M.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(11)&&this._containerObserver.startObserving(),this._register(L.C.onDidChangeZoomLevel((()=>this._recomputeOptions()))),this._register(k.n.onDidChangeTabFocus((()=>this._recomputeOptions()))),this._register(this._containerObserver.onDidChange((()=>this._recomputeOptions()))),this._register(b.g.onDidChange((()=>this._recomputeOptions()))),this._register(p.PixelRatio.onDidChange((()=>this._recomputeOptions()))),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized((()=>this._recomputeOptions())))}_recomputeOptions(){const e=this._computeOptions(),t=M.checkEquals(this.options,e);null!==t&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}_computeOptions(){const e=this._readEnvConfiguration(),t=E.E4.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),i=this._readFontInfo(t),n={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:i,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:k.n.getTabFocusMode("editorFocus"),accessibilitySupport:e.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return M.computeOptions(this._validatedOptions,n)}_readEnvConfiguration(){return{extraEditorClassName:T(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:p.isWebKit||p.isFirefox,pixelRatio:p.PixelRatio.value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return b.g.readFontInfo(e)}getRawOptions(){return this._rawOptions}updateOptions(e){const t=R(e);M.applyUpdate(this._rawOptions,t)&&(this._validatedOptions=M.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(e){this._containerObserver.observe(e)}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}setModelLineCount(e){const t=function(e){let t=0;for(;e;)e=Math.floor(e/10),t++;return t||1}(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}setReservedHeight(e){this._reservedHeight!==e&&(this._reservedHeight=e,this._recomputeOptions())}setGlyphMarginDecorationLaneCount(e){this._glyphMarginDecorationLaneCount!==e&&(this._glyphMarginDecorationLaneCount=e,this._recomputeOptions())}};function T(){let e="";return p.isSafari||p.isWebkitWebView||(e+="no-user-select "),p.isSafari&&(e+="no-minimap-shadow ",e+="enable-user-select "),_.dz&&(e+="mac "),e}D=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(3,N.F)],D);class I{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class A{constructor(){this._values=[]}_read(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}get(e){return this._read(e)}_write(e,t){this._values[e]=t}}class M{static validateOptions(e){const t=new I;for(const i of x.Bc){const n="_never_"===i.name?void 0:e[i.name];t._write(i.id,i.validate(n))}return t}static computeOptions(e,t){const i=new A;for(const n of x.Bc)i._write(n.id,n.compute(t,i,e._read(n.id)));return i}static _deepEquals(e,t){if("object"!=typeof e||"object"!=typeof t||!e||!t)return e===t;if(Array.isArray(e)||Array.isArray(t))return!(!Array.isArray(e)||!Array.isArray(t))&&m.fS(e,t);if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!M._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){const i=[];let n=!1;for(const o of x.Bc){const s=!M._deepEquals(e._read(o.id),t._read(o.id));i[o.id]=s,s&&(n=!0)}return n?new x.Bb(i):null}static applyUpdate(e,t){let i=!1;for(const n of x.Bc)if(t.hasOwnProperty(n.name)){const o=n.applyUpdate(e[n.name],t[n.name]);e[n.name]=o.newValue,i=i||o.didChange}return i}}function R(e){const t=f.I8(e);return function(e){C.items.forEach((t=>t.apply(e)))}(t),t}var O=i(11640),P=i(3860),F=i(38626),B=i(10553),H=i(7448),V=i(29994);class W extends u.JT{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let i=0,n=e.length;i=s.left?n.width=Math.max(n.width,s.left+s.width-n.left):(t[i++]=n,n=s)}return t[i++]=n,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||0===e.length)return null;const n=[];for(let o=0,s=e.length;or)return null;if((t=Math.min(r,Math.max(0,t)))===(n=Math.min(r,Math.max(0,n)))&&i===o&&0===i&&!e.children[t].firstChild){const i=e.children[t].getClientRects();return s.markDidDomLayout(),this._createHorizontalRangesFromClientRects(i,s.clientRectDeltaLeft,s.clientRectScale)}t!==n&&n>0&&0===o&&(n--,o=1073741824);let a=e.children[t].firstChild,l=e.children[n].firstChild;if(a&&l||(!a&&0===i&&t>0&&(a=e.children[t-1].firstChild,i=1073741824),!l&&0===o&&n>0&&(l=e.children[n-1].firstChild,o=1073741824)),!a||!l)return null;i=Math.min(a.textContent.length,Math.max(0,i)),o=Math.min(l.textContent.length,Math.max(0,o));const c=this._readClientRects(a,i,l,o,s.endNode);return s.markDidDomLayout(),this._createHorizontalRangesFromClientRects(c,s.clientRectDeltaLeft,s.clientRectScale)}}var X=i(92550),J=i(91557),ee=i(92321);const te=!!_.tY||!(_.IJ||p.isFirefox||p.isSafari);let ie=!0;class ne{constructor(e,t){this.themeType=t;const i=e.options,n=i.get(48),o=i.get(36);this.renderWhitespace="off"===o?i.get(94):"none",this.renderControlCharacters=i.get(89),this.spaceWidth=n.spaceWidth,this.middotWidth=n.middotWidth,this.wsmiddotWidth=n.wsmiddotWidth,this.useMonospaceOptimizations=n.isMonospace&&!i.get(31),this.canUseHalfwidthRightwardsArrow=n.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(64),this.stopRenderingLineAfter=i.get(112),this.fontLigatures=i.get(49)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class oe{constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=(0,F.X)(e)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return!(!(0,ee.c3)(this._options.themeType)&&"selection"!==this._options.renderWhitespace||(this._isMaybeInvalid=!0,0))}renderLine(e,t,i,n){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;const o=i.getViewLineRenderingData(e),s=this._options,r=X.Kp.filter(o.inlineDecorations,e,o.minColumn,o.maxColumn);let a=null;if((0,ee.c3)(s.themeType)||"selection"===this._options.renderWhitespace){const t=i.selections;for(const i of t){if(i.endLineNumbere)continue;const t=i.startLineNumber===e?i.startColumn:o.minColumn,n=i.endLineNumber===e?i.endColumn:o.maxColumn;t');const c=(0,J.d1)(l,n);n.appendString("");let h=null;return ie&&te&&o.isBasicASCII&&s.useMonospaceOptimizations&&0===c.containsForeignElements&&(h=new se(this._renderedViewLine?this._renderedViewLine.domNode:null,l,c.characterMapping)),h||(h=le(this._renderedViewLine?this._renderedViewLine.domNode:null,l,c.characterMapping,c.containsRTL,c.containsForeignElements)),this._renderedViewLine=h,!0}layoutLine(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))}getWidth(e){return this._renderedViewLine?this._renderedViewLine.getWidth(e):0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof se}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof se?this._renderedViewLine.monospaceAssumptionsAreValid():ie}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof se&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,n){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));const o=this._renderedViewLine.input.stopRenderingLineAfter;if(-1!==o&&t>o+1&&i>o+1)return new Y(!0,[new G(this.getWidth(n),0)]);-1!==o&&t>o+1&&(t=o+1),-1!==o&&i>o+1&&(i=o+1);const s=this._renderedViewLine.getVisibleRangesForRange(e,t,i,n);return s&&s.length>0?new Y(!1,s):null}getColumnOfNodeOffset(e,t,i){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,i):1}}oe.CLASS_NAME="view-line";class se{constructor(e,t,i){this._cachedWidth=-1,this.domNode=e,this.input=t;const n=Math.floor(t.lineContent.length/300);if(n>0){this._keyColumnPixelOffsetCache=new Float32Array(n);for(let e=0;e=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),ie=!1)}return ie}toSlowRenderedLine(){return le(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,n){const o=this._getColumnPixelOffset(e,t,n),s=this._getColumnPixelOffset(e,i,n);return[new G(o,s-o)]}_getColumnPixelOffset(e,t,i){if(t<=300){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const n=Math.floor((t-1)/300)-1,o=300*(n+1)+1;let s=-1;if(this._keyColumnPixelOffsetCache&&(s=this._keyColumnPixelOffsetCache[n],-1===s&&(s=this._actualReadPixelOffset(e,o,i),this._keyColumnPixelOffsetCache[n]=s)),-1===s){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const r=this._characterMapping.getHorizontalOffset(o),a=this._characterMapping.getHorizontalOffset(t);return s+this._charWidth*(a-r)}_getReadingTarget(e){return e.domNode.firstChild}_actualReadPixelOffset(e,t,i){if(!this.domNode)return-1;const n=this._characterMapping.getDomPosition(t),o=Z.readHorizontalRanges(this._getReadingTarget(this.domNode),n.partIndex,n.charIndex,n.partIndex,n.charIndex,i);return o&&0!==o.length?o[0].left:-1}getColumnOfNodeOffset(e,t,i){const n=t.textContent.length;let o=-1;for(;t;)t=t.previousSibling,o++;return this._characterMapping.getColumn(new J.Nd(o,i),n)}}class re{constructor(e,t,i,n,o){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!n||0===this._characterMapping.length){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let e=0,t=this._characterMapping.length;e<=t;e++)this._pixelOffsetCache[e]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(e){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,null==e||e.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return-1!==this._cachedWidth}getVisibleRangesForRange(e,t,i,n){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){const o=this._readPixelOffset(this.domNode,e,t,n);if(-1===o)return null;const s=this._readPixelOffset(this.domNode,e,i,n);return-1===s?null:[new G(o,s-o)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,n)}_readVisibleRangesForRange(e,t,i,n,o){if(i===n){const n=this._readPixelOffset(e,t,i,o);return-1===n?null:[new G(n,0)]}return this._readRawVisibleRangesForRange(e,i,n,o)}_readPixelOffset(e,t,i,n){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth(n);const t=this._getReadingTarget(e);return t.firstChild?(n.markDidDomLayout(),t.firstChild.offsetWidth):0}if(null!==this._pixelOffsetCache){const o=this._pixelOffsetCache[i];if(-1!==o)return o;const s=this._actualReadPixelOffset(e,t,i,n);return this._pixelOffsetCache[i]=s,s}return this._actualReadPixelOffset(e,t,i,n)}_actualReadPixelOffset(e,t,i,n){if(0===this._characterMapping.length){const t=Z.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n);return t&&0!==t.length?t[0].left:-1}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth(n);const o=this._characterMapping.getDomPosition(i),s=Z.readHorizontalRanges(this._getReadingTarget(e),o.partIndex,o.charIndex,o.partIndex,o.charIndex,n);if(!s||0===s.length)return-1;const r=s[0].left;if(this.input.isBasicASCII){const e=this._characterMapping.getHorizontalOffset(i),t=Math.round(this.input.spaceWidth*e);if(Math.abs(t-r)<=1)return t}return r}_readRawVisibleRangesForRange(e,t,i,n){if(1===t&&i===this._characterMapping.length)return[new G(0,this.getWidth(n))];const o=this._characterMapping.getDomPosition(t),s=this._characterMapping.getDomPosition(i);return Z.readHorizontalRanges(this._getReadingTarget(e),o.partIndex,o.charIndex,s.partIndex,s.charIndex,n)}getColumnOfNodeOffset(e,t,i){const n=t.textContent.length;let o=-1;for(;t;)t=t.previousSibling,o++;return this._characterMapping.getColumn(new J.Nd(o,i),n)}}class ae extends re{_readVisibleRangesForRange(e,t,i,n,o){const s=super._readVisibleRangesForRange(e,t,i,n,o);if(!s||0===s.length||i===n||1===i&&n===this._characterMapping.length)return s;if(!this.input.containsRTL){const i=this._readPixelOffset(e,t,n,o);if(-1!==i){const e=s[s.length-1];e.left=4&&3===e[0]&&7===e[3]}static isStrictChildOfViewLines(e){return e.length>4&&3===e[0]&&7===e[3]}static isChildOfScrollableElement(e){return e.length>=2&&3===e[0]&&5===e[1]}static isChildOfMinimap(e){return e.length>=2&&3===e[0]&&8===e[1]}static isChildOfContentWidgets(e){return e.length>=4&&3===e[0]&&1===e[3]}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&2===e[0]}static isChildOfOverlayWidgets(e){return e.length>=2&&3===e[0]&&4===e[1]}}class be{constructor(e,t,i){this.viewModel=e.viewModel;const n=e.configuration.options;this.layoutInfo=n.get(139),this.viewDomNode=t.viewDomNode,this.lineHeight=n.get(64),this.stickyTabStops=n.get(111),this.typicalHalfwidthCharacterWidth=n.get(48).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return be.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){const n=i.verticalOffset+i.height/2,o=e.viewModel.getLineCount();let s,r=null,a=null;return i.afterLineNumber!==o&&(a=new he.L(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(r=new he.L(i.afterLineNumber,e.viewModel.getLineMaxColumn(i.afterLineNumber))),s=null===a?r:null===r?a:t=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,ke._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class ye extends Ce{constructor(e,t,i,n,o){super(e,t,i,n),this._ctx=e,o?(this.target=o,this.targetPath=U.collect(o,e.viewDomNode)):(this.target=null,this.targetPath=new Uint8Array(0))}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}\n\ttarget: ${this.target?this.target.outerHTML:null}`}_getMouseColumn(e=null){return e&&e.columns.contentLeft+s.width)continue;const i=e.getVerticalOffsetForLineNumber(s.position.lineNumber);if(i<=o&&o<=i+s.height)return t.fulfillContentText(s.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(e,t){const i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){const e=t.isInContentArea?8:5;return t.fulfillViewZone(e,i.position,i)}return null}static _hitTestTextArea(e,t){return ve.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea():null}static _hitTestMargin(e,t){if(t.isInMarginArea){const i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),n=i.range.getStartPosition();let o=Math.abs(t.relativePos.x);const s={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:o};return o-=e.layoutInfo.glyphMarginLeft,o<=e.layoutInfo.glyphMarginWidth?t.fulfillMargin(2,n,i.range,s):(o-=e.layoutInfo.glyphMarginWidth,o<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,n,i.range,s):(o-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,n,i.range,s)))}return null}static _hitTestViewLines(e,t,i){if(!ve.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfillContentEmpty(new he.L(1,1),we);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const i=e.viewModel.getLineCount(),n=e.viewModel.getLineMaxColumn(i);return t.fulfillContentEmpty(new he.L(i,n),we)}if(i){if(ve.isStrictChildOfViewLines(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.viewModel.getLineLength(i)){const n=e.getLineWidth(i),o=Se(t.mouseContentHorizontalOffset-n);return t.fulfillContentEmpty(new he.L(i,1),o)}const n=e.getLineWidth(i);if(t.mouseContentHorizontalOffset>=n){const o=Se(t.mouseContentHorizontalOffset-n),s=new he.L(i,e.viewModel.getLineMaxColumn(i));return t.fulfillContentEmpty(s,o)}}return t.fulfillUnknown()}const n=ke._doHitTest(e,t);return 1===n.type?ke.createMouseTargetFromHitTestPosition(e,t,n.spanNode,n.position,n.injectedText):this._createMouseTarget(e,t.withTarget(n.hitTarget),!0)}static _hitTestMinimap(e,t){if(ve.isChildOfMinimap(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new he.L(i,n))}return null}static _hitTestScrollbarSlider(e,t){if(ve.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){const i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new he.L(i,n))}}return null}static _hitTestScrollbar(e,t){if(ve.isChildOfScrollableElement(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new he.L(i,n))}return null}getMouseColumn(e){const t=this._context.configuration.options,i=t.get(139),n=this._context.viewLayout.getCurrentScrollLeft()+e.x-i.contentLeft;return ke._getMouseColumn(n,t.get(48).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){return e<0?1:Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,n,o){const s=n.lineNumber,r=n.column,a=e.getLineWidth(s);if(t.mouseContentHorizontalOffset>a){const e=Se(t.mouseContentHorizontalOffset-a);return t.fulfillContentEmpty(n,e)}const l=e.visibleRangeForPosition(s,r);if(!l)return t.fulfillUnknown(n);const c=l.left;if(Math.abs(t.mouseContentHorizontalOffset-c)<1)return t.fulfillContentText(n,null,{mightBeForeignElement:!!o,injectedText:o});const h=[];if(h.push({offset:l.left,column:r}),r>1){const t=e.visibleRangeForPosition(s,r-1);t&&h.push({offset:t.left,column:r-1})}if(re.offset-t.offset));const d=t.pos.toClientCoordinates(),u=i.getBoundingClientRect(),g=u.left<=d.clientX&&d.clientX<=u.right;let p=null;for(let e=1;eo)){const i=Math.floor((n+o)/2);let s=t.pos.y+(i-t.mouseVerticalOffset);s<=t.editorPos.y&&(s=t.editorPos.y+1),s>=t.editorPos.y+t.editorPos.height&&(s=t.editorPos.y+t.editorPos.height-1);const r=new V.YN(t.pos.x,s),a=this._actualDoHitTestWithCaretRangeFromPoint(e,r.toClientCoordinates());if(1===a.type)return a}return this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=c.Ay(e.viewDomNode);let n;if(n=i?void 0===i.caretRangeFromPoint?function(e,t,i){const n=document.createRange();let o=e.elementFromPoint(t,i);if(null!==o){for(;o&&o.firstChild&&o.firstChild.nodeType!==o.firstChild.TEXT_NODE&&o.lastChild&&o.lastChild.firstChild;)o=o.lastChild;const e=o.getBoundingClientRect(),i=`${window.getComputedStyle(o,null).getPropertyValue("font-style")} ${window.getComputedStyle(o,null).getPropertyValue("font-variant")} ${window.getComputedStyle(o,null).getPropertyValue("font-weight")} ${window.getComputedStyle(o,null).getPropertyValue("font-size")}/${window.getComputedStyle(o,null).getPropertyValue("line-height")} ${window.getComputedStyle(o,null).getPropertyValue("font-family")}`,s=o.innerText;let r,a=e.left,l=0;if(t>e.left+e.width)l=s.length;else{const e=xe.getInstance();for(let n=0;nthis._createMouseTarget(e,t)),(e=>this._getMouseColumn(e)))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(139).height;const n=new V.N5(this.viewHelper.viewDomNode);this._register(n.onContextMenu(this.viewHelper.viewDomNode,(e=>this._onContextMenu(e,!0)))),this._register(n.onMouseMove(this.viewHelper.viewDomNode,(e=>{this._onMouseMove(e),this._mouseLeaveMonitor||(this._mouseLeaveMonitor=c.nm(document,"mousemove",(e=>{this.viewHelper.viewDomNode.contains(e.target)||this._onMouseLeave(new V.gy(e,!1,this.viewHelper.viewDomNode))})))}))),this._register(n.onMouseUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(n.onMouseLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e))));let o=0;this._register(n.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>{o=t}))),this._register(c.nm(this.viewHelper.viewDomNode,c.tw.POINTER_UP,(e=>{this._mouseDownOperation.onPointerUp()}))),this._register(n.onMouseDown(this.viewHelper.viewDomNode,(e=>this._onMouseDown(e,o)))),this._setupMouseWheelZoomListener(),this._context.addEventHandler(this)}_setupMouseWheelZoomListener(){const e=Le.Io.INSTANCE;let t=0,i=L.C.getZoomLevel(),n=!1,o=0;function s(e){return _.dz?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey}this._register(c.nm(this.viewHelper.viewDomNode,c.tw.MOUSE_WHEEL,(r=>{if(this.viewController.emitMouseWheel(r),!this._context.configuration.options.get(73))return;const a=new H.q(r);if(e.acceptStandardWheelEvent(a),e.isPhysicalMouseWheel()){if(s(r)){const e=L.C.getZoomLevel(),t=a.deltaY>0?1:-1;L.C.setZoomLevel(e+t),a.preventDefault(),a.stopPropagation()}}else Date.now()-t>50&&(i=L.C.getZoomLevel(),n=s(r),o=0),t=Date.now(),o+=a.deltaY,n&&(L.C.setZoomLevel(i+o/5),a.preventDefault(),a.stopPropagation())}),{capture:!0,passive:!1}))}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(139)){const e=this._context.configuration.options.get(139).height;this._height!==e&&(this._height=e,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}getTargetAtClientPoint(e,t){const i=new V.rU(e,t).toPageCoordinates(),n=(0,V.kG)(this.viewHelper.viewDomNode);if(i.yn.y+n.height||i.xn.x+n.width)return null;const o=(0,V.Pp)(this.viewHelper.viewDomNode,n,i);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),n,i,o,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){const t=c.Ay(this.viewHelper.viewDomNode);t&&(i=t.elementsFromPoint(e.posx,e.posy).find((e=>this.viewHelper.viewDomNode.contains(e))))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){this.mouseTargetFactory.mouseTargetIsWidget(e)||e.preventDefault(),this._mouseDownOperation.isActive()||e.timestamp{e.preventDefault(),this.viewHelper.focusTextArea()};if(c&&(n||s&&r))h(),this._mouseDownOperation.start(i.type,e,t);else if(o)e.preventDefault();else if(a){const n=i.detail;c&&this.viewHelper.shouldSuppressMouseDownOnViewZone(n.viewZoneId)&&(h(),this._mouseDownOperation.start(i.type,e,t),e.preventDefault())}else l&&this.viewHelper.shouldSuppressMouseDownOnWidget(i.detail)&&(h(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:i})}}class Ne extends u.JT{constructor(e,t,i,n,o,s){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._mouseTargetFactory=n,this._createMouseTarget=o,this._getMouseColumn=s,this._mouseMoveMonitor=this._register(new V.AL(this._viewHelper.viewDomNode)),this._topBottomDragScrolling=this._register(new De(this._context,this._viewHelper,this._mouseTargetFactory,((e,t,i)=>this._dispatchMouse(e,t,i)))),this._mouseState=new Ie,this._currentSelection=new P.Y(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!1);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):13!==t.type||"above"!==t.outsidePosition&&"below"!==t.outsidePosition?(this._topBottomDragScrolling.stop(),this._dispatchMouse(t,!0,1)):this._topBottomDragScrolling.start(t,e))}start(e,t,i){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const n=this._findMousePosition(t,!0);if(!n||!n.position)return;this._mouseState.trySetCount(t.detail,n.position),t.detail=this._mouseState.count;const o=this._context.configuration.options;if(!o.get(87)&&o.get(33)&&!o.get(20)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===n.type&&n.position&&this._currentSelection.containsPosition(n.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(e=>{const t=this._findMousePosition(this._lastMouseEvent,!1);e&&e instanceof KeyboardEvent?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()}));this._mouseState.isDragAndDrop=!1,this._dispatchMouse(n,t.shiftKey,1),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(()=>this._stop())))}_stop(){this._isActive=!1,this._topBottomDragScrolling.stop()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,i=this._context.viewModel,n=this._context.viewLayout,o=this._getMouseColumn(e);if(e.posyt.y+t.height){const s=e.posy-t.y-t.height,r=n.getCurrentScrollTop()+e.relativePos.y,a=be.getZoneAtCoord(this._context,r);if(a){const e=this._helpPositionJumpOverViewZone(a);if(e)return _e.createOutsideEditor(o,e,"below",s)}const l=n.getLineNumberAtVerticalOffset(r);return _e.createOutsideEditor(o,new he.L(l,i.getLineMaxColumn(l)),"below",s)}const s=n.getLineNumberAtVerticalOffset(n.getCurrentScrollTop()+e.relativePos.y);if(e.posxt.x+t.width){const n=e.posx-t.x-t.width;return _e.createOutsideEditor(o,new he.L(s,i.getLineMaxColumn(s)),"right",n)}return null}_findMousePosition(e,t){const i=this._getPositionOutsideEditor(e);if(i)return i;const n=this._createMouseTarget(e,t);if(!n.position)return null;if(8===n.type||5===n.type){const e=this._helpPositionJumpOverViewZone(n.detail);if(e)return _e.createViewZone(n.type,n.element,n.mouseColumn,e,n.detail)}return n}_helpPositionJumpOverViewZone(e){const t=new he.L(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,n=e.positionAfter;return i&&n?i.isBefore(t)?i:n:null}_dispatchMouse(e,t,i){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,revealType:i,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:6===e.type&&null!==e.detail.injectedText})}}class De extends u.JT{constructor(e,t,i,n){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=n,this._operation=null}dispose(){super.dispose(),this.stop()}start(e,t){this._operation?this._operation.setPosition(e,t):this._operation=new Te(this._context,this._viewHelper,this._mouseTargetFactory,this._dispatchMouse,e,t)}stop(){this._operation&&(this._operation.dispose(),this._operation=null)}}class Te extends u.JT{constructor(e,t,i,n,o,s){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=n,this._position=o,this._mouseEvent=s,this._lastTime=Date.now(),this._animationFrameDisposable=c.jL((()=>this._execute()))}dispose(){this._animationFrameDisposable.dispose()}setPosition(e,t){this._position=e,this._mouseEvent=t}_tick(){const e=Date.now(),t=e-this._lastTime;return this._lastTime=e,t}_getScrollSpeed(){const e=this._context.configuration.options.get(64),t=this._context.configuration.options.get(139).height/e,i=this._position.outsideDistance/e;return i<=1.5?Math.max(30,t*(1+i)):i<=3?Math.max(60,t*(2+i)):Math.max(200,t*(7+i))}_execute(){const e=this._context.configuration.options.get(64),t=this._getScrollSpeed()*(this._tick()/1e3)*e,i="above"===this._position.outsidePosition?-t:t;this._context.viewModel.viewLayout.deltaScrollNow(0,i),this._viewHelper.renderNow();const n=this._context.viewLayout.getLinesViewportData(),o="above"===this._position.outsidePosition?n.startLineNumber:n.endLineNumber;let s;{const e=(0,V.kG)(this._viewHelper.viewDomNode),t=this._context.configuration.options.get(139).horizontalScrollbarHeight,i=new V.YN(this._mouseEvent.pos.x,e.y+e.height-t-.1),n=(0,V.Pp)(this._viewHelper.viewDomNode,e,i);s=this._mouseTargetFactory.createMouseTarget(this._viewHelper.getLastRenderData(),e,i,n,null)}s.position&&s.position.lineNumber===o||(s="above"===this._position.outsidePosition?_e.createOutsideEditor(this._position.mouseColumn,new he.L(o,1),"above",this._position.outsideDistance):_e.createOutsideEditor(this._position.mouseColumn,new he.L(o,this._context.viewModel.getLineMaxColumn(o)),"below",this._position.outsideDistance)),this._dispatchMouse(s,!0,2),this._animationFrameDisposable=c.jL((()=>this._execute()))}}class Ie{get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const i=(new Date).getTime();i-this._lastSetMouseDownCountTime>Ie.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}Ie.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var Ae=i(10161),Me=i(35715);class Re extends Ee{constructor(e,t,i){super(e,t,i),this._register(B.o.addTarget(this.viewHelper.linesContentDomNode)),this._register(c.nm(this.viewHelper.linesContentDomNode,B.t.Tap,(e=>this.onTap(e)))),this._register(c.nm(this.viewHelper.linesContentDomNode,B.t.Change,(e=>this.onChange(e)))),this._register(c.nm(this.viewHelper.linesContentDomNode,B.t.Contextmenu,(e=>this._onContextMenu(new V.gy(e,!1,this.viewHelper.viewDomNode),!1)))),this._lastPointerType="mouse",this._register(c.nm(this.viewHelper.linesContentDomNode,"pointerdown",(e=>{const t=e.pointerType;this._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));const n=new V.tC(this.viewHelper.viewDomNode);this._register(n.onPointerMove(this.viewHelper.viewDomNode,(e=>this._onMouseMove(e)))),this._register(n.onPointerUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(n.onPointerLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e)))),this._register(n.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>this._onMouseDown(e,t))))}onTap(e){if(!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget))return;e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new V.gy(e,!1,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.dispatchMouse({position:t.position,mouseColumn:t.position.column,startedOnLineNumbers:!1,revealType:1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:6===t.type&&null!==t.detail.injectedText})}onChange(e){"touch"===this._lastPointerType&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}_onMouseDown(e,t){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e,t)}}class Oe extends Ee{constructor(e,t,i){super(e,t,i),this._register(B.o.addTarget(this.viewHelper.linesContentDomNode)),this._register(c.nm(this.viewHelper.linesContentDomNode,B.t.Tap,(e=>this.onTap(e)))),this._register(c.nm(this.viewHelper.linesContentDomNode,B.t.Change,(e=>this.onChange(e)))),this._register(c.nm(this.viewHelper.linesContentDomNode,B.t.Contextmenu,(e=>this._onContextMenu(new V.gy(e,!1,this.viewHelper.viewDomNode),!1))))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new V.gy(e,!1,this.viewHelper.viewDomNode),!1);if(t.position){const e=document.createEvent("CustomEvent");e.initEvent(Me.pd.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position,1)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class Pe extends u.JT{constructor(e,t,i){super(),_.gn&&Ae.D.pointerEvents?this.handler=this._register(new Re(e,t,i)):window.TouchEvent?this.handler=this._register(new Oe(e,t,i)):this.handler=this._register(new Ee(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}var Fe=i(97295),Be=i(52136),He=i(15887);class Ve extends W{}var We=i(97781),ze=i(8625);class Ue extends Ve{constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new he.L(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(64);const t=e.get(65);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(90);const i=e.get(139);this._lineNumbersLeft=i.lineNumbersLeft,this._lineNumbersWidth=i.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t);let i=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,i=!0),2!==this._renderLineNumbers&&3!==this._renderLineNumbers||(i=!0),i}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getLineRenderLineNumber(e){const t=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new he.L(e,1));if(1!==t.column)return"";const i=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(i);if(2===this._renderLineNumbers){const e=Math.abs(this._lastCursorModelPosition.lineNumber-i);return 0===e?''+i+"":String(e)}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===i||i%10==0?String(i):"":String(i)}prepareRender(e){if(0===this._renderLineNumbers)return void(this._renderResult=null);const t=_.IJ?this._lineHeight%2==0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,o=this._context.viewModel.getLineCount(),s=[];for(let e=i;e<=n;e++){const n=e-i,r=this._getLineRenderLineNumber(e);if(!r){s[n]="";continue}let a="";if(e===o&&0===this._context.viewModel.getLineLength(e)){if("off"===this._renderFinalNewline){s[n]="";continue}"dimmed"===this._renderFinalNewline&&(a=" dimmed-line-number")}e===this._activeLineNumber&&(a=" active-line-number"),s[n]=`
    ${r}
    `}this._renderResult=s}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}Ue.CLASS_NAME="line-numbers",(0,We.Ic)(((e,t)=>{const i=e.getColor(ze.hw),n=e.getColor(ze.Bj);n?t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${n}; }`):i&&t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${i.transparent(.4)}; }`)}));class je extends z{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(139);this._canUseLayerHinting=!t.get(30),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._domNode=(0,F.X)(document.createElement("div")),this._domNode.setClassName(je.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=(0,F.X)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(je.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(139);return this._canUseLayerHinting=!t.get(30),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const i=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(i),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(i)}}je.CLASS_NAME="glyph-margin",je.OUTER_CLASS_NAME="margin";var Ke=i(24929),qe=i(96542),$e=i(96887),Ge=i(41264),Qe=i(77173);class Ye{constructor(e,t,i,n,o){this._context=e,this.modelLineNumber=t,this.distanceToModelLineStart=i,this.widthOfHiddenLineTextBefore=n,this.distanceToModelLineEnd=o,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(e){const t=new he.L(this.modelLineNumber,this.distanceToModelLineStart+1),i=new he.L(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=e.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=e.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(e){return this._previousPresentation||(this._previousPresentation=e||{foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}const Ze=p.isFirefox;class Xe extends z{constructor(e,t,i){super(e),this._primaryCursorPosition=new he.L(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._visibleRangeProvider=i,this._scrollLeft=0,this._scrollTop=0;const n=this._context.configuration.options,o=n.get(139);this._setAccessibilityOptions(n),this._contentLeft=o.contentLeft,this._contentWidth=o.contentWidth,this._contentHeight=o.height,this._fontInfo=n.get(48),this._lineHeight=n.get(64),this._emptySelectionClipboard=n.get(35),this._copyWithSyntaxHighlighting=n.get(23),this._visibleTextArea=null,this._selections=[new P.Y(1,1,1,1)],this._modelSelections=[new P.Y(1,1,1,1)],this._lastRenderPosition=null,this.textArea=(0,F.X)(document.createElement("textarea")),U.write(this.textArea,6),this.textArea.setClassName(`inputarea ${qe.S}`),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:s}=this._context.viewModel.model.getOptions();this.textArea.domNode.style.tabSize=s*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(n)),this.textArea.setAttribute("tabindex",String(n.get(119))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",l.NC("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this._ensureReadOnlyAttribute(),this.textAreaCover=(0,F.X)(document.createElement("div")),this.textAreaCover.setPosition("absolute");const r={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:e=>this._context.viewModel.getLineMaxColumn(e),getValueInRange:(e,t)=>this._context.viewModel.getValueInRange(e,t),getValueLengthInRange:(e,t)=>this._context.viewModel.getValueLengthInRange(e,t),modifyPosition:(e,t)=>this._context.viewModel.modifyPosition(e,t)},a={getDataToCopy:()=>{const e=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,_.ED),t=this._context.viewModel.model.getEOL(),i=this._emptySelectionClipboard&&1===this._modelSelections.length&&this._modelSelections[0].isEmpty(),n=Array.isArray(e)?e:null,o=Array.isArray(e)?e.join(t):e;let s,r=null;if(Me.RA.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&o.length<65536){const e=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);e&&(s=e.html,r=e.mode)}return{isFromEmptySelection:i,multicursorText:n,text:o,html:s,mode:r}},getScreenReaderContent:()=>{if(1===this._accessibilitySupport){const e=this._selections[0];if(_.dz&&e.isEmpty()){const t=e.getStartPosition();let i=this._getWordBeforePosition(t);if(0===i.length&&(i=this._getCharacterBeforePosition(t)),i.length>0)return new He.un(i,i.length,i.length,de.e.fromPositions(t),0)}const t=500;if(_.dz&&!e.isEmpty()&&r.getValueLengthInRange(e,0)0)return new He.un(i,n,n,de.e.fromPositions(t),0)}return He.un.EMPTY}return He.ee.fromEditorSelection(r,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(e,t,i)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(e,t,i)},c=this._register(new Me.Tj(this.textArea.domNode));this._textAreaInput=this._register(new Me.Fz(a,c,_.OS,p)),this._register(this._textAreaInput.onKeyDown((e=>{this._viewController.emitKeyDown(e)}))),this._register(this._textAreaInput.onKeyUp((e=>{this._viewController.emitKeyUp(e)}))),this._register(this._textAreaInput.onPaste((e=>{let t=!1,i=null,n=null;e.metadata&&(t=this._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,i=void 0!==e.metadata.multicursorText?e.metadata.multicursorText:null,n=e.metadata.mode),this._viewController.paste(e.text,t,i,n)}))),this._register(this._textAreaInput.onCut((()=>{this._viewController.cut()}))),this._register(this._textAreaInput.onType((e=>{e.replacePrevCharCnt||e.replaceNextCharCnt||e.positionDelta?(He.al&&console.log(` => compositionType: <<${e.text}>>, ${e.replacePrevCharCnt}, ${e.replaceNextCharCnt}, ${e.positionDelta}`),this._viewController.compositionType(e.text,e.replacePrevCharCnt,e.replaceNextCharCnt,e.positionDelta)):(He.al&&console.log(` => type: <<${e.text}>>`),this._viewController.type(e.text))}))),this._register(this._textAreaInput.onSelectionChangeRequest((e=>{this._viewController.setSelection(e)}))),this._register(this._textAreaInput.onCompositionStart((e=>{const t=this.textArea.domNode,i=this._modelSelections[0],{distanceToModelLineStart:n,widthOfHiddenTextBefore:o}=(()=>{const e=t.value.substring(0,Math.min(t.selectionStart,t.selectionEnd)),n=e.lastIndexOf("\n"),o=e.substring(n+1),s=o.lastIndexOf("\t"),r=o.length-s-1,a=i.getStartPosition(),l=Math.min(a.column-1,r),c=a.column-1-l,h=o.substring(0,o.length-l),{tabSize:d}=this._context.viewModel.model.getOptions(),u=function(e,t,i){if(0===e.length)return 0;const n=document.createElement("div");n.style.position="absolute",n.style.top="-50000px",n.style.width="50000px";const o=document.createElement("span");(0,Be.N)(o,t),o.style.whiteSpace="pre",o.style.tabSize=i*t.spaceWidth+"px",o.append(e),n.appendChild(o),document.body.appendChild(n);const s=o.offsetWidth;return document.body.removeChild(n),s}(h,this._fontInfo,d);return{distanceToModelLineStart:c,widthOfHiddenTextBefore:u}})(),{distanceToModelLineEnd:s}=(()=>{const e=t.value.substring(Math.max(t.selectionStart,t.selectionEnd)),n=e.indexOf("\n"),o=-1===n?e:e.substring(0,n),s=o.indexOf("\t"),r=-1===s?o.length:o.length-s-1,a=i.getEndPosition(),l=Math.min(this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column,r);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column-l}})();this._context.viewModel.revealRange("keyboard",!0,de.e.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new Ye(this._context,i.startLineNumber,n,o,s),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${qe.S} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()}))),this._register(this._textAreaInput.onCompositionUpdate((e=>{this._visibleTextArea&&(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())}))),this._register(this._textAreaInput.onCompositionEnd((()=>{this._visibleTextArea=null,this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._render(),this.textArea.setClassName(`inputarea ${qe.S}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()}))),this._register(this._textAreaInput.onFocus((()=>{this._context.viewModel.setHasFocus(!0)}))),this._register(this._textAreaInput.onBlur((()=>{this._context.viewModel.setHasFocus(!1)}))),this._register(Qe.F.onDidChange((()=>{this._ensureReadOnlyAttribute()})))}writeScreenReaderContent(e){this._textAreaInput.writeScreenReaderContent(e)}dispose(){super.dispose()}_getAndroidWordAtPosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Ke.u)('`~!@#$%^&*()-=+[{]}\\|;:",.<>/?');let n=!0,o=e.column,s=!0,r=e.column,a=0;for(;a<50&&(n||s);){if(n&&o<=1&&(n=!1),n){const e=t.charCodeAt(o-2);0!==i.get(e)?n=!1:o--}if(s&&r>t.length&&(s=!1),s){const e=t.charCodeAt(r-1);0!==i.get(e)?s=!1:r++}a++}return[t.substring(o-1,r-1),e.column-o]}_getWordBeforePosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Ke.u)(this._context.configuration.options.get(125));let n=e.column,o=0;for(;n>1;){const s=t.charCodeAt(n-2);if(0!==i.get(s)||o>50)return t.substring(n-1,e.column-1);o++,n--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const t=this._context.viewModel.getLineContent(e.lineNumber).charAt(e.column-2);if(!Fe.ZG(t.charCodeAt(0)))return t}return""}_getAriaLabel(e){return 1===e.get(2)?l.NC("accessibilityOffAriaLabel","The editor is not accessible at this time. Press {0} for options.",_.IJ?"Shift+Alt+F1":"Alt+F1"):e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);2===this._accessibilitySupport&&t===x.BH.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t;const i=e.get(139).wrappingColumn;if(-1!==i&&1!==this._accessibilitySupport){const t=e.get(48);this._textAreaWrapping=!0,this._textAreaWidth=Math.round(i*t.typicalHalfwidthCharacterWidth)}else this._textAreaWrapping=!1,this._textAreaWidth=Ze?0:1}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(139);this._setAccessibilityOptions(t),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=t.get(48),this._lineHeight=t.get(64),this._emptySelectionClipboard=t.get(35),this._copyWithSyntaxHighlighting=t.get(23),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:n}=this._context.viewModel.model.getOptions();return this.textArea.domNode.style.tabSize=n*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("tabindex",String(t.get(119))),(e.hasChanged(32)||e.hasChanged(87))&&this._ensureReadOnlyAttribute(),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}_ensureReadOnlyAttribute(){const e=this._context.configuration.options;!Qe.F.enabled||e.get(32)&&e.get(87)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")}prepareRender(e){var t;this._primaryCursorPosition=new he.L(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition),null===(t=this._visibleTextArea)||void 0===t||t.prepareRender(e)}render(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()}_render(){var e;if(this._visibleTextArea){const e=this._visibleTextArea.visibleTextareaStart,t=this._visibleTextArea.visibleTextareaEnd,i=this._visibleTextArea.startPosition,n=this._visibleTextArea.endPosition;if(i&&n&&e&&t&&t.left>=this._scrollLeft&&e.left<=this._scrollLeft+this._contentWidth){const o=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,s=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let r=this._visibleTextArea.widthOfHiddenLineTextBefore,a=this._contentLeft+e.left-this._scrollLeft,l=t.left-e.left+1;if(athis._contentWidth&&(l=this._contentWidth);const c=this._context.viewModel.getViewLineData(i.lineNumber),h=c.tokens.findTokenIndexAtOffset(i.column-1),d=h===c.tokens.findTokenIndexAtOffset(n.column-1),u=this._visibleTextArea.definePresentation(d?c.tokens.getPresentation(h):null);this.textArea.domNode.scrollTop=s*this._lineHeight,this.textArea.domNode.scrollLeft=r,this._doRender({lastRenderPosition:null,top:o,left:a,width:l,height:this._lineHeight,useCover:!1,color:($e.RW.getColorMap()||[])[u.foreground],italic:u.italic,bold:u.bold,underline:u.underline,strikethrough:u.strikethrough})}return}if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();const t=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(tthis._contentLeft+this._contentWidth)return void this._renderAtTopLeft();const i=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(i<0||i>this._contentHeight)this._renderAtTopLeft();else if(_.dz){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:i,left:this._textAreaWrapping?this._contentLeft:t,width:this._textAreaWidth,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;const n=null!==(e=this._textAreaInput.textAreaState.newlineCountBeforeSelection)&&void 0!==e?e:this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=n*this._lineHeight}else this._doRender({lastRenderPosition:this._primaryCursorPosition,top:i,left:this._textAreaWrapping?this._contentLeft:t,width:this._textAreaWidth,height:Ze?0:1,useCover:!1})}_newlinecount(e){let t=0,i=-1;for(;i=e.indexOf("\n",i+1),-1!==i;)t++;return t}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:this._textAreaWidth,height:Ze?0:1,useCover:!0})}_doRender(e){this._lastRenderPosition=e.lastRenderPosition;const t=this.textArea,i=this.textAreaCover;(0,Be.N)(t,this._fontInfo),t.setTop(e.top),t.setLeft(e.left),t.setWidth(e.width),t.setHeight(e.height),t.setColor(e.color?Ge.Il.Format.CSS.formatHex(e.color):""),t.setFontStyle(e.italic?"italic":""),e.bold&&t.setFontWeight("bold"),t.setTextDecoration(`${e.underline?" underline":""}${e.strikethrough?" line-through":""}`),i.setTop(e.useCover?e.top:0),i.setLeft(e.useCover?e.left:0),i.setWidth(e.useCover?e.width:0),i.setHeight(e.useCover?e.height:0);const n=this._context.configuration.options;n.get(55)?i.setClassName("monaco-editor-background textAreaCover "+je.OUTER_CLASS_NAME):0!==n.get(65).renderType?i.setClassName("monaco-editor-background textAreaCover "+Ue.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")}}var Je=i(69317);class et{constructor(e,t,i,n){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=n}paste(e,t,i,n){this.commandDelegate.paste(e,t,i,n)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,n){this.commandDelegate.compositionType(e,t,i,n)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){Je.CoreNavigationCommands.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position,e.revealType):this._lastCursorLineSelect(e.position,e.revealType):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):2===e.mouseDownCount?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position,e.revealType):e.inSelectionMode?this._wordSelectDrag(e.position,e.revealType):this._wordSelect(e.position,e.revealType)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position,e.revealType):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey||n?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position,e.revealType):this.moveTo(e.position,e.revealType)}_usualArgs(e,t){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,revealType:t}}moveTo(e,t){Je.CoreNavigationCommands.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_moveToSelect(e,t){Je.CoreNavigationCommands.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_columnSelect(e,t,i){e=this._validateViewColumn(e),Je.CoreNavigationCommands.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),Je.CoreNavigationCommands.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e,t){Je.CoreNavigationCommands.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelect(e,t){Je.CoreNavigationCommands.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelectDrag(e,t){Je.CoreNavigationCommands.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorWordSelect(e,t){Je.CoreNavigationCommands.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelect(e,t){Je.CoreNavigationCommands.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelectDrag(e,t){Je.CoreNavigationCommands.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelect(e,t){Je.CoreNavigationCommands.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelectDrag(e,t){Je.CoreNavigationCommands.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_selectAll(){Je.CoreNavigationCommands.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}class tt{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){var t;null===(t=this.onKeyDown)||void 0===t||t.call(this,e)}emitKeyUp(e){var t;null===(t=this.onKeyUp)||void 0===t||t.call(this,e)}emitContextMenu(e){var t;null===(t=this.onContextMenu)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseMove(e){var t;null===(t=this.onMouseMove)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){var t;null===(t=this.onMouseLeave)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDown(e){var t;null===(t=this.onMouseDown)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseUp(e){var t;null===(t=this.onMouseUp)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){var t;null===(t=this.onMouseDrag)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){var t;null===(t=this.onMouseDrop)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){var e;null===(e=this.onMouseDropCanceled)||void 0===e||e.call(this)}emitMouseWheel(e){var t;null===(t=this.onMouseWheel)||void 0===t||t.call(this,e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return tt.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){const i=Object.assign({},e);return i.position&&(i.position=t.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=t.convertViewRangeToModelRange(i.range)),5!==i.type&&8!==i.type||(i.detail=this.convertViewToModelViewZoneData(i.detail,t)),i}static convertViewToModelViewZoneData(e,t){return{viewZoneId:e.viewZoneId,positionBefore:e.positionBefore?t.convertViewPositionToModelPosition(e.positionBefore):e.positionBefore,positionAfter:e.positionAfter?t.convertViewPositionToModelPosition(e.positionAfter):e.positionAfter,position:t.convertViewPositionToModelPosition(e.position),afterLineNumber:t.convertViewPositionToModelPosition(new he.L(e.afterLineNumber,1)).lineNumber}}}var it,nt=i(50072);class ot{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(0===this.getCount())return null;const i=this.getStartLineNumber(),n=this.getEndLineNumber();if(tn)return null;let o=0,s=0;for(let r=i;r<=n;r++){const i=r-this._rendLineNumberStart;e<=r&&r<=t&&(0===s?(o=i,s=1):s++)}if(e=n&&t<=o&&(this._lines[t-this._rendLineNumberStart].onContentChanged(),s=!0);return s}onLinesInserted(e,t){if(0===this.getCount())return null;const i=t-e+1,n=this.getStartLineNumber(),o=this.getEndLineNumber();if(e<=n)return this._rendLineNumberStart+=i,null;if(e>o)return null;if(i+e>o)return this._lines.splice(e-this._rendLineNumberStart,o-e+1);const s=[];for(let e=0;ei)continue;const r=Math.max(t,s.fromLineNumber),a=Math.min(i,s.toLineNumber);for(let e=r;e<=a;e++){const t=e-this._rendLineNumberStart;this._lines[t].onTokensChanged(),n=!0}}return n}}class st{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new ot((()=>this._host.createVisibleLine()))}_createDomNode(){const e=(0,F.X)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(139)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let e=0,i=t.length;et){const e=t,s=Math.min(i,o.rendLineNumberStart-1);e<=s&&(this._insertLinesBefore(o,e,s,n,t),o.linesLength+=s-e+1)}else if(o.rendLineNumberStart0&&(this._removeLinesBefore(o,e),o.linesLength-=e)}if(o.rendLineNumberStart=t,o.rendLineNumberStart+o.linesLength-1i){const e=Math.max(0,i-o.rendLineNumberStart+1),t=o.linesLength-1-e+1;t>0&&(this._removeLinesAfter(o,t),o.linesLength-=t)}return this._finishRendering(o,!1,n),o}_renderUntouchedLines(e,t,i,n,o){const s=e.rendLineNumberStart,r=e.lines;for(let e=t;e<=i;e++){const t=s+e;r[e].layoutLine(t,n[t-o])}}_insertLinesBefore(e,t,i,n,o){const s=[];let r=0;for(let e=t;e<=i;e++)s[r++]=this.host.createVisibleLine();e.lines=s.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i=0;t--){const i=e.lines[t];n[t]&&(i.setDomNode(s),s=s.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const n=document.createElement("div");rt._ttPolicy&&(t=rt._ttPolicy.createHTML(t)),n.innerHTML=t;for(let t=0;te}),rt._sb=new nt.HT(1e5);class at extends z{constructor(e){super(e),this._visibleLines=new st(this),this.domNode=this._visibleLines.domNode;const t=this._context.configuration.options.get(48);(0,Be.N)(this.domNode,t),this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;ee.shouldRender()));for(let i=0,n=t.length;i'),n.appendString(o),n.appendString(""),!0)}layoutLine(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))}}class ct extends at{constructor(e){super(e);const t=this._context.configuration.options.get(139);this._contentWidth=t.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const t=this._context.configuration.options.get(139);return this._contentWidth=t.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class ht extends at{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(139);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),(0,Be.N)(this.domNode,t.get(48))}onConfigurationChanged(e){const t=this._context.configuration.options;(0,Be.N)(this.domNode,t.get(48));const i=t.get(139);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class dt extends z{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=(0,F.X)(document.createElement("div")),U.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=(0,F.X)(document.createElement("div")),U.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesChanged(e){return this._updateAnchorsViewPositions(),!0}onLinesDeleted(e){return this._updateAnchorsViewPositions(),!0}onLinesInserted(e){return this._updateAnchorsViewPositions(),!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}_updateAnchorsViewPositions(){const e=Object.keys(this._widgets);for(const t of e)this._widgets[t].updateAnchorViewPosition()}addWidget(e){const t=new ut(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,i,n,o){this._widgets[e.getId()].setPosition(t,i,n,o),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t];delete this._widgets[t];const i=e.domNode.domNode;i.parentNode.removeChild(i),i.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown}onBeforeRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].render(e)}}class ut{constructor(e,t,i){this._primaryAnchor=new gt(null,null),this._secondaryAnchor=new gt(null,null),this._context=e,this._viewDomNode=t,this._actual=i,this.domNode=(0,F.X)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const n=this._context.configuration.options,o=n.get(139);this._fixedOverflowWidgets=n.get(40),this._contentWidth=o.contentWidth,this._contentLeft=o.contentLeft,this._lineHeight=n.get(64),this._affinity=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(64),e.hasChanged(139)){const e=t.get(139);this._contentLeft=e.contentLeft,this._contentWidth=e.contentWidth,this._maxWidth=this._getMaxWidth()}}updateAnchorViewPosition(){this._setPosition(this._affinity,this._primaryAnchor.modelPosition,this._secondaryAnchor.modelPosition)}_setPosition(e,t,i){function n(e,t,i){if(!e)return new gt(null,null);const n=t.model.validatePosition(e);if(t.coordinatesConverter.modelPositionIsVisible(n)){const o=t.coordinatesConverter.convertModelPositionToViewPosition(n,null!=i?i:void 0);return new gt(e,o)}return new gt(e,null)}this._affinity=e,this._primaryAnchor=n(t,this._context.viewModel,this._affinity),this._secondaryAnchor=n(i,this._context.viewModel,this._affinity)}_getMaxWidth(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.offsetWidth||document.body.offsetWidth:this._contentWidth}setPosition(e,t,i,n){this._setPosition(n,e,t),this._preference=i,this._primaryAnchor.viewPosition&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,i,n){const o=e.top,s=o,r=e.top+e.height,a=o-i,l=s>=i,c=r,h=n.viewportHeight-r>=i;let d=e.left;return d+t>n.scrollLeft+n.viewportWidth&&(d=n.scrollLeft+n.viewportWidth-t),ds){const e=r-(s-n);r-=e,i-=e}if(r=22,p=l+i<=h.height-22;return this._fixedOverflowWidgets?{fitsAbove:g,aboveTop:Math.max(a,22),fitsBelow:p,belowTop:l,left:u}:{fitsAbove:g,aboveTop:o,fitsBelow:p,belowTop:s,left:d}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new pt(e.top,e.left+this._contentLeft)}_getAnchorsCoordinates(e){var t,i;return{primary:n(this._primaryAnchor.viewPosition,this._affinity,this._lineHeight),secondary:n((null===(t=this._secondaryAnchor.viewPosition)||void 0===t?void 0:t.lineNumber)===(null===(i=this._primaryAnchor.viewPosition)||void 0===i?void 0:i.lineNumber)?this._secondaryAnchor.viewPosition:null,this._affinity,this._lineHeight)};function n(t,i,n){if(!t)return null;const o=e.visibleRangeForPosition(t);if(!o)return null;const s=1===t.column&&3===i?0:o.left,r=e.getVerticalOffsetForLineNumber(t.lineNumber)-e.scrollTop;return new mt(r,s,n)}}_reduceAnchorCoordinates(e,t,i){if(!t)return e;const n=this._context.configuration.options.get(48);let o=t.left;return o=oe.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData)return this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),void("function"==typeof this._actual.afterRender&&ft(this._actual.afterRender,this._actual,null));this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),"function"==typeof this._actual.afterRender&&ft(this._actual.afterRender,this._actual,this._renderData.position)}}class gt{constructor(e,t){this.modelPosition=e,this.viewPosition=t}}class pt{constructor(e,t){this.top=e,this.left=t,this._coordinateBrand=void 0}}class mt{constructor(e,t,i){this.top=e,this.left=t,this.height=i,this._anchorCoordinateBrand=void 0}}function ft(e,t,...i){try{return e.call(t,...i)}catch(e){return null}}class _t extends Ve{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(139);this._lineHeight=t.get(64),this._renderLineHighlight=t.get(91),this._renderLineHighlightOnlyWhenFocus=t.get(92),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new P.Y(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=this._selections.map((e=>e.positionLineNumber));t.sort(((e,t)=>e-t)),m.fS(this._cursorLineNumbers,t)||(this._cursorLineNumbers=t,e=!0);const i=this._selections.every((e=>e.isEmpty()));return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(139);return this._lineHeight=t.get(64),this._renderLineHighlight=t.get(91),this._renderLineHighlightOnlyWhenFocus=t.get(92),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return!!this._renderLineHighlightOnlyWhenFocus&&(this._focused=e.isFocused,!0)}prepareRender(e){if(!this._shouldRenderThis())return void(this._renderData=null);const t=this._renderOne(e),i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,o=this._cursorLineNumbers.length;let s=0;const r=[];for(let e=i;e<=n;e++){const n=e-i;for(;s=this._renderData.length?"":this._renderData[i]}_shouldRenderInMargin(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class vt extends _t{_renderOne(e){return`
    `}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class bt extends _t{_renderOne(e){return`
    `}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}(0,We.Ic)(((e,t)=>{const i=e.getColor(ze.Kh);if(i&&(t.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${i}; border: none; }`)),!i||i.isTransparent()||e.defines(ze.Mm)){const i=e.getColor(ze.Mm);i&&(t.addRule(`.monaco-editor .view-overlays .current-line { border: 2px solid ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ${i}; }`),(0,ee.c3)(e.type)&&(t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}}));class Ct extends Ve{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(64),this._typicalHalfwidthCharacterWidth=t.get(48).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(64),this._typicalHalfwidthCharacterWidth=t.get(48).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],n=0;for(let e=0,o=t.length;e{if(e.options.zIndext.options.zIndex)return 1;const i=e.options.className,n=t.options.className;return in?1:de.e.compareRangesUsingStarts(e.range,t.range)}));const o=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,r=[];for(let e=o;e<=s;e++)r[e-o]="";this._renderWholeLineDecorations(e,i,r),this._renderNormalDecorations(e,i,r),this._renderResult=r}_renderWholeLineDecorations(e,t,i){const n=String(this._lineHeight),o=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber;for(let e=0,r=t.length;e',l=Math.max(r.range.startLineNumber,o),c=Math.min(r.range.endLineNumber,s);for(let e=l;e<=c;e++)i[e-o]+=a}}_renderNormalDecorations(e,t,i){const n=String(this._lineHeight),o=e.visibleRange.startLineNumber;let s=null,r=!1,a=null;for(let l=0,c=t.length;l';r[l]+=s}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class yt extends z{constructor(e,t,i,n){super(e);const o=this._context.configuration.options,s=o.get(98),r=o.get(72),a=o.get(38),l=o.get(101),h={listenOnDomNode:i.domNode,className:"editor-scrollable "+(0,We.m6)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:s.vertical,horizontal:s.horizontal,verticalHasArrows:s.verticalHasArrows,horizontalHasArrows:s.horizontalHasArrows,verticalScrollbarSize:s.verticalScrollbarSize,verticalSliderSize:s.verticalSliderSize,horizontalScrollbarSize:s.horizontalScrollbarSize,horizontalSliderSize:s.horizontalSliderSize,handleMouseWheel:s.handleMouseWheel,alwaysConsumeMouseWheel:s.alwaysConsumeMouseWheel,arrowSize:s.arrowSize,mouseWheelScrollSensitivity:r,fastScrollSensitivity:a,scrollPredominantAxis:l,scrollByPage:s.scrollByPage};this.scrollbar=this._register(new Le.$Z(t.domNode,h,this._context.viewLayout.getScrollable())),U.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=(0,F.X)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const d=(e,t,i)=>{const n={};if(t){const t=e.scrollTop;t&&(n.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0)}if(i){const t=e.scrollLeft;t&&(n.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(n,1)};this._register(c.nm(i.domNode,"scroll",(e=>d(i.domNode,!0,!0)))),this._register(c.nm(t.domNode,"scroll",(e=>d(t.domNode,!0,!1)))),this._register(c.nm(n.domNode,"scroll",(e=>d(n.domNode,!0,!1)))),this._register(c.nm(this.scrollbarDomNode.domNode,"scroll",(e=>d(this.scrollbarDomNode.domNode,!0,!1))))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(139);this.scrollbarDomNode.setLeft(t.contentLeft),"right"===e.get(70).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this.scrollbar.delegateScrollFromMouseWheelEvent(e)}onConfigurationChanged(e){if(e.hasChanged(98)||e.hasChanged(72)||e.hasChanged(38)){const e=this._context.configuration.options,t=e.get(98),i=e.get(72),n=e.get(38),o=e.get(101),s={vertical:t.vertical,horizontal:t.horizontal,verticalScrollbarSize:t.verticalScrollbarSize,horizontalScrollbarSize:t.horizontalScrollbarSize,scrollByPage:t.scrollByPage,handleMouseWheel:t.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:n,scrollPredominantAxis:o};this.scrollbar.updateOptions(s)}return e.hasChanged(139)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+(0,We.m6)(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}class wt{constructor(e,t,i,n,o){this._decorationToRenderBrand=void 0,this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(i),this.zIndex=null!=n?n:0,this.decorationLane=null!=o?o:1}}class St{constructor(e,t){this.className=e,this.zIndex=t}}class kt{constructor(){this.lanes=[]}add(e,t){for(;e>=this.lanes.length;)this.lanes.push([]);this.lanes[e].push(t)}getLaneDecorations(e){return e0)return!1;return!0}}class xt extends Ve{_render(e,t,i,n){const o=[];for(let i=e;i<=t;i++)o[i-e]=new kt;if(0===i.length)return o;i.sort(((e,t)=>e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.classNamet.zIndex-e.zIndex));const o=i[0],s=[o.className];for(let e=1;e'}a[i]=e}}this._renderResult=a}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}var Et=i(98401),Nt=i(1516),Dt=i(65094);class Tt extends Ve{constructor(e){super(),this._context=e,this._primaryPosition=null;const t=this._context.configuration.options,i=t.get(140),n=t.get(48);this._lineHeight=t.get(64),this._spaceWidth=n.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*n.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(14),this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(140),n=t.get(48);return this._lineHeight=t.get(64),this._spaceWidth=n.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*n.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(14),!0}onCursorStateChanged(e){var t;const i=e.selections[0].getPosition();return!(null===(t=this._primaryPosition)||void 0===t?void 0:t.equals(i))&&(this._primaryPosition=i,!0)}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onLanguageConfigurationChanged(e){return!0}prepareRender(e){var t,i,n,o;if(!this._bracketPairGuideOptions.indentation&&!1===this._bracketPairGuideOptions.bracketPairs)return void(this._renderResult=null);const s=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,a=e.scrollWidth,l=this._lineHeight,c=this._primaryPosition,h=this.getGuidesByLine(s,Math.min(r+1,this._context.viewModel.getLineCount()),c),d=[];for(let c=s;c<=r;c++){const r=c-s,u=h[r];let g="";const p=null!==(i=null===(t=e.visibleRangeForPosition(new he.L(c,1)))||void 0===t?void 0:t.left)&&void 0!==i?i:0;for(const t of u){const i=-1===t.column?p+(t.visibleColumn-1)*this._spaceWidth:e.visibleRangeForPosition(new he.L(c,t.column)).left;if(i>a||this._maxIndentLeft>0&&i>this._maxIndentLeft)break;const s=t.horizontalLine?t.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",r=t.horizontalLine?(null!==(o=null===(n=e.visibleRangeForPosition(new he.L(c,t.horizontalLine.endColumn)))||void 0===n?void 0:n.left)&&void 0!==o?o:i+this._spaceWidth)-i:this._spaceWidth;g+=`
    `}d[r]=g}this._renderResult=d}getGuidesByLine(e,t,i){const n=!1!==this._bracketPairGuideOptions.bracketPairs?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:!0===this._bracketPairGuideOptions.bracketPairsHorizontal?Dt.s6.Enabled:"active"===this._bracketPairGuideOptions.bracketPairsHorizontal?Dt.s6.EnabledForActive:Dt.s6.Disabled,includeInactive:!0===this._bracketPairGuideOptions.bracketPairs}):null,o=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let s=0,r=0,a=0;if(!1!==this._bracketPairGuideOptions.highlightActiveIndentation&&i){const n=this._context.viewModel.getActiveIndentGuide(i.lineNumber,e,t);s=n.startLineNumber,r=n.endLineNumber,a=n.indent}const{indentSize:l}=this._context.viewModel.model.getOptions(),c=[];for(let i=e;i<=t;i++){const t=new Array;c.push(t);const h=n?n[i-e]:[],d=new m.H9(h),u=o?o[i-e]:0;for(let e=1;e<=u;e++){const n=(e-1)*l+1,o=("always"===this._bracketPairGuideOptions.highlightActiveIndentation||0===h.length)&&s<=i&&i<=r&&e===a;t.push(...d.takeWhile((e=>e.visibleColumn!0))||[])}return c}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function It(e){if(!e||!e.isTransparent())return e}(0,We.Ic)(((e,t)=>{const i=[{bracketColor:ze.zJ,guideColor:ze.oV,guideColorActive:ze.Qb},{bracketColor:ze.Vs,guideColor:ze.m$,guideColorActive:ze.m3},{bracketColor:ze.CE,guideColor:ze.DS,guideColorActive:ze.To},{bracketColor:ze.UP,guideColor:ze.lS,guideColorActive:ze.L7},{bracketColor:ze.r0,guideColor:ze.Jn,guideColorActive:ze.HV},{bracketColor:ze.m1,guideColor:ze.YF,guideColorActive:ze.f9}],n=new Nt.W,o=i.map((t=>{var i,n;const o=e.getColor(t.bracketColor),s=e.getColor(t.guideColor),r=e.getColor(t.guideColorActive),a=It(null!==(i=It(s))&&void 0!==i?i:null==o?void 0:o.transparent(.3)),l=It(null!==(n=It(r))&&void 0!==n?n:o);if(a&&l)return{guideColor:a,guideColorActive:l}})).filter(Et.$K);if(o.length>0){for(let e=0;e<30;e++){const i=o[e%o.length];t.addRule(`.monaco-editor .${n.getInlineClassNameOfLevel(e).replace(/ /g,".")} { --guide-color: ${i.guideColor}; --guide-color-active: ${i.guideColorActive}; }`)}t.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),t.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),t.addRule(`.monaco-editor .vertical.${n.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),t.addRule(`.monaco-editor .horizontal-top.${n.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),t.addRule(`.monaco-editor .horizontal-bottom.${n.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}}));var At=i(15393);class Mt{get didDomLayout(){return this._didDomLayout}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;const e=this._domNode.getBoundingClientRect();this.markDidDomLayout(),this._clientRectDeltaLeft=e.left,this._clientRectScale=e.width/this._domNode.offsetWidth}}get clientRectDeltaLeft(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}get clientRectScale(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}constructor(e,t){this._domNode=e,this.endNode=t,this._didDomLayout=!1,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1}markDidDomLayout(){this._didDomLayout=!0}}class Rt{constructor(){this._currentVisibleRange=new de.e(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class Ot{constructor(e,t,i,n,o,s,r){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=n,this.startScrollTop=o,this.stopScrollTop=s,this.scrollType=r,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class Pt{constructor(e,t,i,n,o){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=n,this.scrollType=o,this.type="selections";let s=t[0].startLineNumber,r=t[0].endLineNumber;for(let e=1,i=t.length;e{this._updateLineWidthsSlow()}),200),this._asyncCheckMonospaceFontAssumptions=new At.pY((()=>{this._checkMonospaceFontAssumptions()}),2e3),this._lastRenderedData=new Rt,this._horizontalRevealRequest=null,this._stickyScrollEnabled=n.get(110).enabled,this._maxNumberStickyLines=n.get(110).maxLineCount}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new oe(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(140)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(48),n=t.get(140);return this._lineHeight=t.get(64),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=n.isViewportWrapping,this._revealHorizontalRightPadding=t.get(95),this._cursorSurroundingLines=t.get(27),this._cursorSurroundingLinesStyle=t.get(28),this._canUseLayerHinting=!t.get(30),this._stickyScrollEnabled=t.get(110).enabled,this._maxNumberStickyLines=t.get(110).maxLineCount,(0,Be.N)(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(139)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new ne(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const e=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let t=e;t<=i;t++)this._visibleLines.getVisibleLine(t).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=!1;for(let e=t;e<=i;e++)n=this._visibleLines.getVisibleLine(e).onSelectionChanged()||n;return n}onDecorationsChanged(e){{const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(-1===t)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new Ot(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new Pt(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const n=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,n),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopi)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(null===i)return null;const n=this._getLineNumberFor(i);if(-1===n)return null;if(n<1||n>this._context.viewModel.getLineCount())return null;if(1===this._context.viewModel.getLineMaxColumn(n))return new he.L(n,1);const o=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber();if(ns)return null;let r=this._visibleLines.getVisibleLine(n).getColumnOfNodeOffset(n,e,t);const a=this._context.viewModel.getLineMinColumn(n);return ri)return-1;const n=new Mt(this.domNode.domNode,this._textRangeRestingSpot),o=this._visibleLines.getVisibleLine(e).getWidth(n);return this._updateLineWidthsSlowIfDomDidLayout(n),o}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,n=de.e.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!n)return null;const o=[];let s=0;const r=new Mt(this.domNode.domNode,this._textRangeRestingSpot);let a=0;t&&(a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new he.L(n.startLineNumber,1)).lineNumber);const l=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber();for(let e=n.startLineNumber;e<=n.endLineNumber;e++){if(ec)continue;const h=e===n.startLineNumber?n.startColumn:1,d=e===n.endLineNumber?n.endColumn:this._context.viewModel.getLineMaxColumn(e),u=this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,h,d,r);if(u){if(t&&ethis._visibleLines.getEndLineNumber())return null;const n=new Mt(this.domNode.domNode,this._textRangeRestingSpot),o=this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,n);return this._updateLineWidthsSlowIfDomDidLayout(n),o}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new Q(t.outsideRenderedLine,t.ranges[0].left):null}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidthsSlowIfDomDidLayout(e){e.didDomLayout&&(this._asyncUpdateLineWidths.isScheduled()||(this._asyncUpdateLineWidths.cancel(),this._updateLineWidthsSlow()))}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=1,o=!0;for(let s=t;s<=i;s++){const t=this._visibleLines.getVisibleLine(s);!e||t.getWidthIsFast()?n=Math.max(n,t.getWidth(null)):o=!1}return o&&1===t&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(n),o}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let o=i;o<=n;o++){const i=this._visibleLines.getVisibleLine(o);if(i.needsMonospaceFontCheck()){const n=i.getWidth(null);n>t&&(t=n,e=o)}}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let e=i;e<=n;e++)this._visibleLines.getVisibleLine(e).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const t=this._horizontalRevealRequest;if(e.startLineNumber<=t.minLineNumber&&t.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const e=this._computeScrollLeftToReveal(t);e&&(this._isViewportWrapping||this._ensureMaxLineWidth(e.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},t.scrollType))}}if(this._updateLineWidthsFast()?this._asyncUpdateLineWidths.cancel():this._asyncUpdateLineWidths.schedule(),_.IJ&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)if(this._visibleLines.getVisibleLine(i).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth0){let e=o[0].startLineNumber,t=o[0].endLineNumber;for(let i=1,n=o.length;ia){if(!c)return-1;u=h}else if(5===s||6===s)if(6===s&&r<=h&&d<=l)u=r;else{const e=h-Math.max(5*this._lineHeight,.2*a),t=d-a;u=Math.max(t,e)}else if(1===s||2===s)if(2===s&&r<=h&&d<=l)u=r;else{const e=(h+d)/2;u=Math.max(0,e-a/2)}else u=this._computeMinimumScrolling(r,l,h,d,3===s,4===s);return u}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=this._context.configuration.options.get(139),n=t.left,o=n+t.width-i.verticalScrollbarWidth;let s=1073741824,r=0;if("range"===e.type){const t=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!t)return null;for(const e of t.ranges)s=Math.min(s,Math.round(e.left)),r=Math.max(r,Math.round(e.left+e.width))}else for(const t of e.selections){if(t.startLineNumber!==t.endLineNumber)return null;const e=this._visibleRangesForLineRange(t.startLineNumber,t.startColumn,t.endColumn);if(!e)return null;for(const t of e.ranges)s=Math.min(s,Math.round(t.left)),r=Math.max(r,Math.round(t.left+t.width))}return e.minimalReveal||(s=Math.max(0,s-Ft.HORIZONTAL_EXTRA_PX),r+=this._revealHorizontalRightPadding),"selections"===e.type&&r-s>t.width?null:{scrollLeft:this._computeMinimumScrolling(n,o,s,r),maxHorizontalOffset:r}}_computeMinimumScrolling(e,t,i,n,o,s){o=!!o,s=!!s;const r=(t|=0)-(e|=0);return(n|=0)-(i|=0)t?Math.max(0,n-r):e:i}}Ft.HORIZONTAL_EXTRA_PX=30;class Bt extends xt{constructor(e){super(),this._context=e;const t=this._context.configuration.options.get(139);this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options.get(139);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport(),i=[];let n=0;for(let e=0,o=t.length;e',s=[];for(let e=t;e<=i;e++){const i=e-t,r=n[i].getLaneDecorations(1);let a="";for(const e of r)a+='
    ';o[i]=r}this._renderResult=o}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}var Vt=i(93911);class Wt{constructor(e,t,i,n){this._rgba8Brand=void 0,this.r=Wt._clamp(e),this.g=Wt._clamp(t),this.b=Wt._clamp(i),this.a=Wt._clamp(n)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:0|e}}Wt.Empty=new Wt(0,0,0,0);class zt extends u.JT{static getInstance(){return this._INSTANCE||(this._INSTANCE=(0,u.dk)(new zt)),this._INSTANCE}constructor(){super(),this._onDidChange=new d.Q5,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register($e.RW.onDidChange((e=>{e.changedColorMap&&this._updateColorMap()})))}_updateColorMap(){const e=$e.RW.getColorMap();if(!e)return this._colors=[Wt.Empty],void(this._backgroundIsLight=!0);this._colors=[Wt.Empty];for(let t=1;t=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}zt._INSTANCE=null;var Ut=i(1118),jt=i(73910);const Kt=(()=>{const e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})();var qt=i(85427);class $t{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=$t.soften(e,.8),this.charDataLight=$t.soften(e,50/60)}static soften(e,t){const i=new Uint8ClampedArray(e.length);for(let n=0,o=e.length;ne.width||i+g>e.height)return void console.warn("bad render request outside image data");const p=c?this.charDataLight:this.charDataNormal,m=((e,t)=>(e-=32)<0||e>96?t<=2?(e+96)%96:95:e)(n,l),f=4*e.width,_=r.r,v=r.g,b=r.b,C=o.r-_,y=o.g-v,w=o.b-b,S=Math.max(s,a),k=e.data;let x=m*d*u,L=i*f+4*t;for(let e=0;ee.width||i+h>e.height)return void console.warn("bad render request outside image data");const d=4*e.width,u=o/255*.5,g=s.r,p=s.g,m=s.b,f=g+(n.r-g)*u,_=p+(n.g-p)*u,v=m+(n.b-m)*u,b=Math.max(o,r),C=e.data;let y=i*d+4*t;for(let e=0;e{const t=new Uint8ClampedArray(e.length/2);for(let i=0;i>1]=Qt[e[i]]<<4|15&Qt[e[i+1]];return t},Zt={1:(0,Gt.I)((()=>Yt("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792"))),2:(0,Gt.I)((()=>Yt("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")))};class Xt{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return i=Zt[e]?new $t(Zt[e](),e):Xt.createFromSampleData(Xt.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",i.fillStyle="#ffffff",i.font=`bold 16px ${e}`,i.textBaseline="middle";let n=0;for(const e of Kt)i.fillText(String.fromCharCode(e),n,8),n+=10;return i.getImageData(0,0,960,16)}static createFromSampleData(e,t){if(61440!==e.length)throw new Error("Unexpected source in MinimapCharRenderer");const i=Xt._downsample(e,t);return new $t(i,t)}static _downsampleChar(e,t,i,n,o){const s=1*o,r=2*o;let a=n,l=0;for(let n=0;n0){const e=255/a;for(let t=0;tXt.create(this.fontScale,a.fontFamily))),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=ei._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=ei._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(jt.kVY);return i?new Wt(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(jt.Itd);return t?Wt._clamp(Math.round(255*t.rgba.a)):255}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.paddingTop===e.paddingTop&&this.paddingBottom===e.paddingBottom&&this.showSlider===e.showSlider&&this.autohide===e.autohide&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class ti{constructor(e,t,i,n,o,s,r,a,l){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=n,this.sliderTop=o,this.sliderHeight=s,this.topPaddingLineCount=r,this.startLineNumber=a,this.endLineNumber=l}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}intersectWithViewport(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumber,e.endLineNumber);return t>i?null:[t,i]}getYForLineNumber(e,t){return+(e-this.startLineNumber+this.topPaddingLineCount)*t}static create(e,t,i,n,o,s,r,a,l,c,h){const d=e.pixelRatio,u=e.minimapLineHeight,g=Math.floor(e.canvasInnerHeight/u),p=e.lineHeight;if(e.minimapHeightIsEditorHeight){let t=a*e.lineHeight+e.paddingTop+e.paddingBottom;e.scrollBeyondLastLine&&(t+=Math.max(0,o-e.lineHeight-e.paddingBottom));const i=Math.max(1,Math.floor(o*o/t)),n=Math.max(0,e.minimapHeight-i),s=n/(c-o),h=l*s,d=n>0,u=Math.floor(e.canvasInnerHeight/e.minimapLineHeight),g=Math.floor(e.paddingTop/e.lineHeight);return new ti(l,c,d,s,h,i,g,1,Math.min(r,u))}let m;if(s&&i!==r){const e=i-t+1;m=Math.floor(e*u/d)}else{const e=o/p;m=Math.floor(e*u/d)}const f=Math.floor(e.paddingTop/p);let _,v=Math.floor(e.paddingBottom/p);if(e.scrollBeyondLastLine){const e=o/p;v=Math.max(v,e-1)}_=v>0?(f+r+v-o/p-1)*u/d:Math.max(0,(f+r)*u/d-m),_=Math.min(e.minimapHeight-m,_);const b=_/(c-o),C=l*b;if(g>=f+r+v)return new ti(l,c,_>0,b,C,m,f,1,r);{let i,o;i=t>1?t+f:Math.max(1,l/p);let s=Math.max(1,Math.floor(i-C*d/u));sl&&(s=Math.min(s,h.startLineNumber),o=Math.max(o,h.topPaddingLineCount)),h.scrollTope.paddingTop?(t-s+o+_)*u/d:l/e.paddingTop*(o+_)*u/d,new ti(l,c,!0,b,v,m,o,s,a)}}}class ii{constructor(e){this.dy=e}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}ii.INVALID=new ii(-1);class ni{constructor(e,t,i){this.renderedLayout=e,this._imageData=t,this._renderedLines=new ot((()=>ii.INVALID)),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const t=this._renderedLines._get().lines;for(let e=0,i=t.length;e1){for(let t=0,i=n-1;t0&&this.minimapLines[i-1]>=e;)i--;let n=this.modelLineToMinimapLine(t)-1;for(;n+1t)return null}return[i+1,n+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),n=this.modelLineToMinimapLine(t);return e!==t&&n===i&&(n===this.minimapLines.length?i>1&&i--:n++),[i,n]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,n=0;for(let o=this.minimapLines.length-1;o>=0&&!(this.minimapLines[o]=0&&!(this.minimapLines[i]0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(n)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,i]=si.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const e of i)switch(e.type){case"deleted":this._actual.onLinesDeleted(e.deleteFromLineNumber,e.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(e.insertFromLineNumber,e.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){const n=[];for(let o=0,s=t-e+1;o{if(e.preventDefault(),0===this._model.options.renderMinimap)return;if(!this._lastRenderData)return;if("proportional"!==this._model.options.size){if(0===e.button&&this._lastRenderData){const t=c.i(this._slider.domNode),i=t.top+t.height/2;this._startSliderDragging(e,i,this._lastRenderData.renderedLayout)}return}const t=this._model.options.minimapLineHeight,i=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*e.offsetY;let n=Math.floor(i/t)+this._lastRenderData.renderedLayout.startLineNumber-this._lastRenderData.renderedLayout.topPaddingLineCount;n=Math.min(n,this._model.getLineCount()),this._model.revealLineNumber(n)})),this._sliderPointerMoveMonitor=new Vt.C,this._sliderPointerDownListener=c.mu(this._slider.domNode,c.tw.POINTER_DOWN,(e=>{e.preventDefault(),e.stopPropagation(),0===e.button&&this._lastRenderData&&this._startSliderDragging(e,e.pageY,this._lastRenderData.renderedLayout)})),this._gestureDisposable=B.o.addTarget(this._domNode.domNode),this._sliderTouchStartListener=c.nm(this._domNode.domNode,B.t.Start,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(e))}),{passive:!1}),this._sliderTouchMoveListener=c.nm(this._domNode.domNode,B.t.Change,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)}),{passive:!1}),this._sliderTouchEndListener=c.mu(this._domNode.domNode,B.t.End,(e=>{e.preventDefault(),e.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)}))}_startSliderDragging(e,t,i){if(!(e.target&&e.target instanceof Element))return;const n=e.pageX;this._slider.toggleClassName("active",!0);const o=(e,o)=>{const s=c.i(this._domNode.domNode),r=Math.min(Math.abs(o-n),Math.abs(o-s.left),Math.abs(o-s.left-s.width));if(_.ED&&r>140)return void this._model.setScrollTop(i.scrollTop);const a=e-t;this._model.setScrollTop(i.getDesiredScrollTopFromDelta(a))};e.pageY!==t&&o(e.pageY,n),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>o(e.pageY,e.pageX)),(()=>{this._slider.toggleClassName("active",!1)}))}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){const e=["minimap"];return"always"===this._model.options.showSlider?e.push("slider-always"):e.push("slider-mouseover"),this._model.options.autohide&&e.push("autohide"),e.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new oi(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}onLinesDeleted(e,t){var i;return null===(i=this._lastRenderData)||void 0===i||i.onLinesDeleted(e,t),!0}onLinesInserted(e,t){var i;return null===(i=this._lastRenderData)||void 0===i||i.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(jt.ov3),this._renderDecorations=!0,!0}onTokensChanged(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(0===this._model.options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const t=ti.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(t.sliderNeeded?"block":"none"),this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(de.e.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort(((e,t)=>(e.options.zIndex||0)-(t.options.zIndex||0)));const{canvasInnerWidth:n,canvasInnerHeight:o}=this._model.options,s=this._model.options.minimapLineHeight,r=this._model.options.minimapCharWidth,a=this._model.getOptions().tabSize,l=this._decorationsCanvas.domNode.getContext("2d");l.clearRect(0,0,n,o);const c=new li(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(l,t,c,e,s),this._renderDecorationsLineHighlights(l,i,c,e,s);const h=new li(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(l,t,h,e,s,a,r,n),this._renderDecorationsHighlights(l,i,h,e,s,a,r,n)}}_renderSelectionLineHighlights(e,t,i,n,o){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let s=0,r=0;for(const a of t){const t=n.intersectWithViewport(a);if(!t)continue;const[l,c]=t;for(let e=l;e<=c;e++)i.set(e,!0);const h=n.getYForLineNumber(l,o),d=n.getYForLineNumber(c,o);r>=h||(r>s&&e.fillRect(x.y0,s,e.canvas.width,r-s),s=h),r=d}r>s&&e.fillRect(x.y0,s,e.canvas.width,r-s)}_renderDecorationsLineHighlights(e,t,i,n,o){const s=new Map;for(let r=t.length-1;r>=0;r--){const a=t[r],l=a.options.minimap;if(!l||l.position!==Jt.F5.Inline)continue;const c=n.intersectWithViewport(a.range);if(!c)continue;const[h,d]=c,u=l.getColor(this._theme.value);if(!u||u.isTransparent())continue;let g=s.get(u.toString());g||(g=u.transparent(.5).toString(),s.set(u.toString(),g)),e.fillStyle=g;for(let t=h;t<=d;t++){if(i.has(t))continue;i.set(t,!0);const s=n.getYForLineNumber(h,o);e.fillRect(x.y0,s,e.canvas.width,o)}}}_renderSelectionsHighlights(e,t,i,n,o,s,r,a){if(this._selectionColor&&!this._selectionColor.isTransparent())for(const l of t){const t=n.intersectWithViewport(l);if(!t)continue;const[c,h]=t;for(let t=c;t<=h;t++)this.renderDecorationOnLine(e,i,l,this._selectionColor,n,t,o,o,s,r,a)}}_renderDecorationsHighlights(e,t,i,n,o,s,r,a){for(const l of t){const t=l.options.minimap;if(!t)continue;const c=n.intersectWithViewport(l.range);if(!c)continue;const[h,d]=c,u=t.getColor(this._theme.value);if(u&&!u.isTransparent())for(let c=h;c<=d;c++)switch(t.position){case Jt.F5.Inline:this.renderDecorationOnLine(e,i,l.range,u,n,c,o,o,s,r,a);continue;case Jt.F5.Gutter:{const t=n.getYForLineNumber(c,o),i=2;this.renderDecoration(e,u,i,t,2,o);continue}}}}renderDecorationOnLine(e,t,i,n,o,s,r,a,l,c,h){const d=o.getYForLineNumber(s,a);if(d+r<0||d>this._model.options.canvasInnerHeight)return;const{startLineNumber:u,endLineNumber:g}=i,p=u===s?i.startColumn:1,m=g===s?i.endColumn:this._model.getLineMaxColumn(s),f=this.getXOffsetForPosition(t,s,p,l,c,h),_=this.getXOffsetForPosition(t,s,m,l,c,h);this.renderDecoration(e,n,f,d,_-f,r)}getXOffsetForPosition(e,t,i,n,o,s){if(1===i)return x.y0;if((i-1)*o>=s)return s;let r=e.get(t);if(!r){const i=this._model.getLineContent(t);r=[x.y0];let a=x.y0;for(let e=1;e=s){r[e]=s;break}r[e]=l,a=l}e.set(t,r)}return i-1b?Math.floor((n-b)/2):0,y=d.a/255,w=new Wt(Math.round((d.r-h.r)*y+h.r),Math.round((d.g-h.g)*y+h.g),Math.round((d.b-h.b)*y+h.b),255);let S=e.topPaddingLineCount*n;const k=[];for(let e=0,s=i-t+1;e=0&&n_)return;const r=m.charCodeAt(C);if(9===r){const e=d-(C+y)%d;y+=e-1,b+=e*s}else if(32===r)b+=s;else{const d=Fe.K7(r)?2:1;for(let u=0;u_)return}}}}}class li{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let e=0,t=this._endLineNumber-this._startLineNumber+1;ethis._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return ethis._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}class ci extends z{constructor(e){super(e);const t=this._context.configuration.options.get(139);this._widgets={},this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,this._domNode=(0,F.X)(document.createElement("div")),U.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options.get(139);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0}addWidget(e){const t=(0,F.X)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return i.preference!==t&&(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.parentNode.removeChild(e),this.setShouldRender()}}_renderWidget(e){const t=e.domNode;if(null!==e.preference)if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){const e=t.domNode.clientHeight;t.setTop(this._editorHeight-e-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else 2===e.preference&&(t.setTop(0),t.domNode.style.right="50%");else t.setTop("")}prepareRender(e){}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets);for(let e=0,i=t.length;e=3){const t=Math.floor(n/3),i=Math.floor(n/3),o=n-t-i,s=e+t;return[[0,e,s,e,e+t+o,e,s,e],[0,t,o,t+o,i,t+o+i,o+i,t+o+i]]}if(2===i){const t=Math.floor(n/2),i=n-t;return[[0,e,e,e,e+t,e,e,e],[0,t,t,t,i,t+i,t+i,t+i]]}return[[0,e,e,e,e,e,e,e],[0,n,n,n,n,n,n,n]]}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&Ge.Il.equals(this.backgroundColor,e.backgroundColor)&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class di extends z{constructor(e){super(e),this._domNode=(0,F.X)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=$e.RW.onDidChange((e=>{e.changedColorMap&&this._updateSettings(!0)})),this._cursorPositions=[]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new hi(this._context.configuration,this._context.theme);return!(this._settings&&this._settings.equals(t)||(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),0))}onConfigurationChanged(e){return this._updateSettings(!1)}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;ti&&(e=i-l),_=e-l,v=e+l}_>p+1||t!==u?(0!==e&&c.fillRect(h[u],g,d[u],p-g),u=t,g=_,p=v):v>p&&(p=v)}c.fillRect(h[u],g,d[u],p-g)}if(!this._settings.hideCursor&&this._settings.cursorColor){const e=2*this._settings.pixelRatio|0,t=e/2|0,n=this._settings.x[7],r=this._settings.w[7];c.fillStyle=this._settings.cursorColor;let a=-100,l=-100;for(let h=0,d=this._cursorPositions.length;hi&&(u=i-t);const g=u-t,p=g+e;g>l+1?(0!==h&&c.fillRect(n,a,r,l-a),a=g,l=p):p>l&&(l=p)}c.fillRect(n,a,r,l-a)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(c.beginPath(),c.lineWidth=1,c.strokeStyle=this._settings.borderColor,c.moveTo(0,0),c.lineTo(0,i),c.stroke(),c.moveTo(0,0),c.lineTo(t,0),c.stroke())}}var ui=i(30665);class gi extends W{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=(0,F.X)(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new ui.Tj((e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e))),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(64)),this._zoneManager.setPixelRatio(i.get(137)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(64)&&(this._zoneManager.setLineHeight(t.get(64)),this._render()),e.hasChanged(137)&&(this._zoneManager.setPixelRatio(t.get(137)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),n=this._zoneManager.getId2Color(),o=this._domNode.domNode.getContext("2d");return o.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(o,i,n,e),!0}_renderOneLane(e,t,i,n){let o=0,s=0,r=0;for(const a of t){const t=a.colorId,l=a.from,c=a.to;t!==o?(e.fillRect(0,s,n,r-s),o=t,e.fillStyle=i[o],s=l,r=c):r>=l?r=Math.max(r,c):(e.fillRect(0,s,n,r-s),s=l,r=c)}e.fillRect(0,s,n,r-s)}}class pi extends z{constructor(e){super(e),this.domNode=(0,F.X)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(97),this._typicalHalfwidthCharacterWidth=t.get(48).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(97),this._typicalHalfwidthCharacterWidth=t.get(48).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e0;){const e=(0,F.X)(document.createElement("div"));e.setClassName("view-ruler"),e.setWidth(n),this.domNode.appendChild(e),this._renderedRulers.push(e),o--}return}let i=e-t;for(;i>0;){const e=this._renderedRulers.pop();this.domNode.removeChild(e),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t0;return this._shouldShow!==e&&(this._shouldShow=e,!0)}getDomNode(){return this._domNode}_updateWidth(){const e=this._context.configuration.options.get(139);0===e.minimap.renderMinimap||e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?this._width=e.width:this._width=e.width-e.verticalScrollbarWidth}onConfigurationChanged(e){const t=this._context.configuration.options.get(98);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}class fi{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class _i{constructor(e,t){this.lineNumber=e,this.ranges=t}}function vi(e){return new fi(e)}function bi(e){return new _i(e.lineNumber,e.ranges.map(vi))}class Ci extends Ve{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(64),this._roundedSelection=t.get(96),this._typicalHalfwidthCharacterWidth=t.get(48).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(64),this._roundedSelection=t.get(96),this._typicalHalfwidthCharacterWidth=t.get(48).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t1)return!0;return!1}_enrichVisibleRangesWithStyle(e,t,i){const n=this._typicalHalfwidthCharacterWidth/4;let o=null,s=null;if(i&&i.length>0&&t.length>0){const n=t[0].lineNumber;if(n===e.startLineNumber)for(let e=0;!o&&e=0;e--)i[e].lineNumber===r&&(s=i[e].ranges[0]);o&&!o.startStyle&&(o=null),s&&!s.startStyle&&(s=null)}for(let e=0,i=t.length;e0){const i=t[e-1].ranges[0].left,o=t[e-1].ranges[0].left+t[e-1].ranges[0].width;yi(a-i)i&&(c.top=1),yi(l-o)'}_actualRenderOneSelection(e,t,i,n){if(0===n.length)return;const o=!!n[0].ranges[0].startStyle,s=this._lineHeight.toString(),r=(this._lineHeight-1).toString(),a=n[0].lineNumber,l=n[n.length-1].lineNumber;for(let c=0,h=n.length;c1,r)}this._previousFrameVisibleRangesWithStyle=o,this._renderResult=t.map((([e,t])=>e+t))}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function yi(e){return e<0?-e:e}Ci.SELECTION_CLASS_NAME="selected-text",Ci.SELECTION_TOP_LEFT="top-left-radius",Ci.SELECTION_BOTTOM_LEFT="bottom-left-radius",Ci.SELECTION_TOP_RIGHT="top-right-radius",Ci.SELECTION_BOTTOM_RIGHT="bottom-right-radius",Ci.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",Ci.ROUNDED_PIECE_WIDTH=10,(0,We.Ic)(((e,t)=>{const i=e.getColor(jt.yb5);i&&!i.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${i}; }`)}));class wi{constructor(e,t,i,n,o,s,r){this.top=e,this.left=t,this.paddingLeft=i,this.width=n,this.height=o,this.textContent=s,this.textContentClassName=r}}class Si{constructor(e){this._context=e;const t=this._context.configuration.options,i=t.get(48);this._cursorStyle=t.get(26),this._lineHeight=t.get(64),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(29),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,F.X)(document.createElement("div")),this._domNode.setClassName(`cursor ${qe.S}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),(0,Be.N)(this._domNode,i),this._domNode.setDisplay("none"),this._position=new he.L(1,1),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(48);return this._cursorStyle=t.get(26),this._lineHeight=t.get(64),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(29),this._typicalHalfwidthCharacterWidth),(0,Be.N)(this._domNode,i),!0}onCursorPositionChanged(e,t){return this._domNode.domNode.style.transitionProperty=t?"none":"",this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,i=this._context.viewModel.getLineContent(e),[n,o]=Fe.J_(i,t-1);return[new he.L(e,n+1),i.substring(n,o)]}_prepareRender(e){let t="",i="";const[n,o]=this._getGraphemeAwarePosition();if(this._cursorStyle===x.d2.Line||this._cursorStyle===x.d2.LineThin){const s=e.visibleRangeForPosition(n);if(!s||s.outsideRenderedLine)return null;let r;this._cursorStyle===x.d2.Line?(r=c.Uh(this._lineCursorWidth>0?this._lineCursorWidth:2),r>2&&(t=o,i=this._getTokenClassName(n))):r=c.Uh(1);let a=s.left,l=0;r>=2&&a>=1&&(l=1,a-=l);const h=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.bigNumbersDelta;return new wi(h,a,l,r,this._lineHeight,t,i)}const s=e.linesVisibleRangesForRange(new de.e(n.lineNumber,n.column,n.lineNumber,n.column+o.length),!1);if(!s||0===s.length)return null;const r=s[0];if(r.outsideRenderedLine||0===r.ranges.length)return null;const a=r.ranges[0],l="\t"===o||a.width<1?this._typicalHalfwidthCharacterWidth:a.width;this._cursorStyle===x.d2.Block&&(t=o,i=this._getTokenClassName(n));let h=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.bigNumbersDelta,d=this._lineHeight;return this._cursorStyle!==x.d2.Underline&&this._cursorStyle!==x.d2.UnderlineThin||(h+=this._lineHeight-2,d=2),new wi(h,a.left,0,l,d,t,i)}_getTokenClassName(e){const t=this._context.viewModel.getViewLineData(e.lineNumber),i=t.tokens.findTokenIndexAtOffset(e.column-1);return t.tokens.getClassName(i)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${qe.S} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setPaddingLeft(this._renderData.paddingLeft),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class ki extends z{constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(87),this._cursorBlinking=t.get(24),this._cursorStyle=t.get(26),this._cursorSmoothCaretAnimation=t.get(25),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new Si(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,F.X)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new At._F,this._cursorFlatBlinkInterval=new At.zh,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(87),this._cursorBlinking=t.get(24),this._cursorStyle=t.get(26),this._cursorSmoothCaretAnimation=t.get(25),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let t=0,i=this._secondaryCursors.length;tt.length){const e=this._secondaryCursors.length-t.length;for(let t=0;t{for(let i=0,n=e.ranges.length;i{this._isVisible?this._hide():this._show()}),ki.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet((()=>{this._blinkingEnabled=!0,this._updateDomClassName()}),ki.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case x.d2.Line:e+=" cursor-line-style";break;case x.d2.Block:e+=" cursor-block-style";break;case x.d2.Underline:e+=" cursor-underline-style";break;case x.d2.LineThin:e+=" cursor-line-thin-style";break;case x.d2.BlockOutline:e+=" cursor-block-outline-style";break;case x.d2.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return"on"!==this._cursorSmoothCaretAnimation&&"explicit"!==this._cursorSmoothCaretAnimation||(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e{const i=e.getColor(ze.n0);if(i){let n=e.getColor(ze.fY);n||(n=i.opposite()),t.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${i}; border-color: ${i}; color: ${n}; }`),(0,ee.c3)(e.type)&&t.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${n}; border-right: 1px solid ${n}; }`)}}));const xi=()=>{throw new Error("Invalid change accessor")};class Li extends z{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(139);this._lineHeight=t.get(64),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=(0,F.X)(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=(0,F.X)(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const i of e)t.set(i.id,i);let i=!1;return this._context.viewModel.changeWhitespace((e=>{const n=Object.keys(this._zones);for(let o=0,s=n.length;o{const n={addZone:e=>(t=!0,this._addZone(i,e)),removeZone:e=>{e&&(t=this._removeZone(i,e)||t)},layoutZone:e=>{e&&(t=this._layoutZone(i,e)||t)}};!function(e,t){try{return e(t)}catch(e){(0,h.dL)(e)}}(e,n),n.addZone=xi,n.removeZone=xi,n.layoutZone=xi})),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),n={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:(0,F.X)(t.domNode),marginDomNode:t.marginDomNode?(0,F.X)(t.marginDomNode):null};return this._safeCallOnComputedHeight(n.delegate,i.heightInPx),n.domNode.setPosition("absolute"),n.domNode.domNode.style.width="100%",n.domNode.setDisplay("none"),n.domNode.setAttribute("monaco-view-zone",n.whitespaceId),this.domNode.appendChild(n.domNode),n.marginDomNode&&(n.marginDomNode.setPosition("absolute"),n.marginDomNode.domNode.style.width="100%",n.marginDomNode.setDisplay("none"),n.marginDomNode.setAttribute("monaco-view-zone",n.whitespaceId),this.marginDomNode.appendChild(n.marginDomNode)),this._zones[n.whitespaceId]=n,this.setShouldRender(),n.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.parentNode.removeChild(i.domNode.domNode),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.parentNode.removeChild(i.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],n=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=n.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,n.afterViewLineNumber,n.heightInPx),this._safeCallOnComputedHeight(i.delegate,n.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return"number"==typeof e.heightInPx?e.heightInPx:"number"==typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return"number"==typeof e.minWidthInPx?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if("function"==typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(e){(0,h.dL)(e)}}_safeCallOnDomNodeTop(e,t){if("function"==typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(e){(0,h.dL)(e)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let n=!1;for(const e of t)this._zones[e.id].isInHiddenArea||(i[e.id]=e,n=!0);const o=Object.keys(this._zones);for(let t=0,n=o.length;tt)continue;const e=i.startLineNumber===t?i.startColumn:n.minColumn,o=i.endLineNumber===t?i.endColumn:n.maxColumn;e=S.endOffset&&(w++,S=i&&i[w]),9!==o&&32!==o)continue;if(d&&!C&&n<=v)continue;if(h&&n>=y&&n<=v&&32===o){const e=n-1>=0?r.charCodeAt(n-1):0,t=n+1=0?r.charCodeAt(n-1):0;if(32===o&&32!==e&&9!==e)continue}if(i&&(!S||S.startOffset>n||S.endOffset<=n))continue;const c=e.visibleRangeForPosition(new he.L(t,n+1));c&&(s?(k=Math.max(k,c.left),b+=9===o?this._renderArrow(u,m,c.left):``):b+=9===o?`
    ${_?String.fromCharCode(65515):String.fromCharCode(8594)}
    `:`
    ${String.fromCharCode(f)}
    `)}return s?(k=Math.round(k+m),``+b+""):b}_renderArrow(e,t,i){const n=e/2,o=i,s={x:0,y:t/7/2},r={x:.8*t,y:s.y},a={x:r.x-.2*r.x,y:r.y+.2*r.x},l={x:a.x+.1*r.x,y:a.y+.1*r.x},c={x:l.x+.35*r.x,y:l.y-.35*r.x};return``}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class Mi{constructor(e){const t=e.options,i=t.get(48),n=t.get(36);"off"===n?(this.renderWhitespace="none",this.renderWithSVG=!1):"svg"===n?(this.renderWhitespace=t.get(94),this.renderWithSVG=!0):(this.renderWhitespace=t.get(94),this.renderWithSVG=!1),this.spaceWidth=i.spaceWidth,this.middotWidth=i.middotWidth,this.wsmiddotWidth=i.wsmiddotWidth,this.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,this.lineHeight=t.get(64),this.stopRenderingLineAfter=t.get(112)}equals(e){return this.renderWhitespace===e.renderWhitespace&&this.renderWithSVG===e.renderWithSVG&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter}}class Ri extends W{constructor(e,t,i,n,o,s){super(),this._selections=[new P.Y(1,1,1,1)],this._renderAnimationFrame=null;const r=new et(t,n,o,e);this._context=new Ni(t,i,n),this._context.addEventHandler(this),this._viewParts=[],this._textAreaHandler=new Xe(this._context,r,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=(0,F.X)(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=(0,F.X)(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=(0,F.X)(document.createElement("div")),U.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new yt(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new Ft(this._context,this._linesContent),this._viewZones=new Li(this._context),this._viewParts.push(this._viewZones);const a=new di(this._context);this._viewParts.push(a);const l=new mi(this._context);this._viewParts.push(l);const c=new ct(this._context);this._viewParts.push(c),c.addDynamicOverlay(new vt(this._context)),c.addDynamicOverlay(new Ci(this._context)),c.addDynamicOverlay(new Tt(this._context)),c.addDynamicOverlay(new Ct(this._context)),c.addDynamicOverlay(new Ai(this._context));const h=new ht(this._context);this._viewParts.push(h),h.addDynamicOverlay(new bt(this._context)),h.addDynamicOverlay(new Lt(this._context)),h.addDynamicOverlay(new Ht(this._context)),h.addDynamicOverlay(new Bt(this._context)),h.addDynamicOverlay(new Ue(this._context));const d=new je(this._context);d.getDomNode().appendChild(this._viewZones.marginDomNode),d.getDomNode().appendChild(h.getDomNode()),this._viewParts.push(d),this._contentWidgets=new dt(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new ki(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new ci(this._context),this._viewParts.push(this._overlayWidgets);const u=new pi(this._context);this._viewParts.push(u);const g=new Ti(this._context);this._viewParts.push(g);const p=new ri(this._context);if(this._viewParts.push(p),a){const e=this._scrollbar.getOverviewRulerLayoutInfo();e.parent.insertBefore(a.getDomNode(),e.insertBefore)}this._linesContent.appendChild(c.getDomNode()),this._linesContent.appendChild(u.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(d.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(l.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(p.getDomNode()),this._overflowGuardContainer.appendChild(g.domNode),this.domNode.appendChild(this._overflowGuardContainer),s?s.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode):this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this._applyLayout(),this._pointerHandler=this._register(new Pe(this._context,r,this._createPointerHandlerHelper()))}_flushAccumulatedAndRenderNow(){Ii.B.onRenderStart(),this._renderNow()}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,viewLinesDomNode:this._viewLines.getDomNode().domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new fe(e,t)},renderNow:()=>{this.render(!0,!1)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new he.L(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){const e=this._context.configuration.options.get(139);this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this._overflowGuardContainer.setWidth(e.width),this._overflowGuardContainer.setHeight(e.height),this._linesContent.setWidth(1e6),this._linesContent.setHeight(1e6)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(136)+" "+(0,We.m6)(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this._context.theme.update(e.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){null===this._renderAnimationFrame&&(this._renderAnimationFrame=c.lI(this._onRenderScheduled.bind(this),100))}_onRenderScheduled(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()}_renderNow(){!function(e){try{return e()}catch(e){(0,h.dL)(e)}}((()=>this._actualRender()))}_getViewPartsToRender(){const e=[];let t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_actualRender(){if(!c.Uw(this.domNode.domNode))return;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&0===e.length)return;const t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new Di(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender());const n=new K(this._context.viewLayout,i,this._viewLines);for(const t of e)t.prepareRender(n);for(const t of e)t.render(n),t.onDidRender()}delegateVerticalScrollbarPointerDown(e){this._scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._scrollbar.delegateScrollFromMouseWheelEvent(e)}restoreState(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft},1),this._context.viewModel.visibleLinesStabilized()}getOffsetForColumn(e,t){const i=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),n=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const o=this._viewLines.visibleRangeForPosition(new he.L(n.lineNumber,n.column));return o?o.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?tt.convertViewToModelMouseTarget(i,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new gi(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const e of this._viewParts)e.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}writeScreenReaderContent(e){this._textAreaHandler.writeScreenReaderContent(e)}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){var t,i,n,o,s,r,a,l;this._contentWidgets.setWidgetPosition(e.widget,null!==(i=null===(t=e.position)||void 0===t?void 0:t.position)&&void 0!==i?i:null,null!==(o=null===(n=e.position)||void 0===n?void 0:n.secondaryPosition)&&void 0!==o?o:null,null!==(r=null===(s=e.position)||void 0===s?void 0:s.preference)&&void 0!==r?r:null,null!==(l=null===(a=e.position)||void 0===a?void 0:a.positionAffinity)&&void 0!==l?l:null),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){const t=e.position?e.position.preference:null;this._overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}}var Oi=i(30653),Pi=i(96518),Fi=i(29102),Bi=i(1231),Hi=i(55343);class Vi{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new Hi.rS(new de.e(1,1,1,1),0,0,new he.L(1,1),0),new Hi.rS(new de.e(1,1,1,1),0,0,new he.L(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new Hi.Vi(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.isEmpty()&&!t.isEmpty()?P.Y.fromRange(t.collapseToEnd(),this.modelState.selection.getDirection()):P.Y.fromRange(t,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,n){return t.equals(i)?n:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,n=t.selectionStart.getStartPosition(),o=t.selectionStart.getEndPosition(),s=e.normalizePosition(i,2),r=this._validatePositionWithCache(e,n,i,s),a=this._validatePositionWithCache(e,o,n,r);return i.equals(s)&&n.equals(r)&&o.equals(a)?t:new Hi.rS(de.e.fromPositions(r,a),t.selectionStartKind,t.selectionStartLeftoverVisibleColumns+n.column-r.column,s,t.leftoverVisibleColumns+i.column-s.column)}_setState(e,t,i){if(i&&(i=Vi._validateViewState(e.viewModel,i)),t){const i=e.model.validateRange(t.selectionStart),n=t.selectionStart.equalsRange(i)?t.selectionStartLeftoverVisibleColumns:0,o=e.model.validatePosition(t.position),s=t.position.equals(o)?t.leftoverVisibleColumns:0;t=new Hi.rS(i,t.selectionStartKind,n,o,s)}else{if(!i)return;const n=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),o=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new Hi.rS(n,i.selectionStartKind,i.selectionStartLeftoverVisibleColumns,o,i.leftoverVisibleColumns)}if(i){const n=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),o=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new Hi.rS(n,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,o,t.leftoverVisibleColumns)}else{const n=e.coordinatesConverter.convertModelPositionToViewPosition(new he.L(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),o=e.coordinatesConverter.convertModelPositionToViewPosition(new he.L(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),s=new de.e(n.lineNumber,n.column,o.lineNumber,o.column),r=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new Hi.rS(s,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,r,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class Wi{constructor(e){this.context=e,this.cursors=[new Vi(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map((e=>e.readSelectionFromMarkers(this.context)))}getAll(){return this.cursors.map((e=>e.asCursorState()))}getViewPositions(){return this.cursors.map((e=>e.viewState.position))}getTopMostViewPosition(){return(0,m.VJ)(this.cursors,(0,m.tT)((e=>e.viewState.position),he.L.compare)).viewState.position}getBottomMostViewPosition(){return(0,m.jV)(this.cursors,(0,m.tT)((e=>e.viewState.position),he.L.compare)).viewState.position}getSelections(){return this.cursors.map((e=>e.modelState.selection))}getViewSelections(){return this.cursors.map((e=>e.viewState.selection))}setSelections(e){this.setStates(Hi.Vi.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){null!==e&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,i=e.length;if(ti){const e=t-i;for(let t=0;t=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(1===this.cursors.length)return;const e=this.cursors.slice(0),t=[];for(let i=0,n=e.length;ie.selection),de.e.compareRangesUsingStarts));for(let i=0;ia&&e.index--;e.splice(a,1),t.splice(r,1),this._removeSecondaryCursor(a-1),i--}}}}class zi{constructor(e,t,i,n){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=n}}var Ui=i(29436),ji=i(51336),Ki=i(14706);class qi{constructor(){this.type=0}}class $i{constructor(){this.type=1}}class Gi{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class Qi{constructor(e,t,i){this.selections=e,this.modelSelections=t,this.reason=i,this.type=3}}class Yi{constructor(e){this.type=4,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler,this.affectsGlyphMargin=e.affectsGlyphMargin):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0,this.affectsGlyphMargin=!0)}}class Zi{constructor(){this.type=5}}class Xi{constructor(e){this.type=6,this.isFocused=e}}class Ji{constructor(){this.type=7}}class en{constructor(){this.type=8}}class tn{constructor(e,t){this.fromLineNumber=e,this.count=t,this.type=9}}class nn{constructor(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}}class on{constructor(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}}class sn{constructor(e,t,i,n,o,s,r){this.source=e,this.minimalReveal=t,this.range=i,this.selections=n,this.verticalType=o,this.revealHorizontal=s,this.scrollType=r,this.type=12}}class rn{constructor(e){this.type=13,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}}class an{constructor(e){this.theme=e,this.type=14}}class ln{constructor(e){this.type=15,this.ranges=e}}class cn{constructor(){this.type=16}}class hn{constructor(){this.type=17}}class dn extends u.JT{constructor(){super(),this._onEvent=this._register(new d.Q5),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOutgoingEvents()}_addOutgoingEvent(e){for(let t=0,i=this._outgoingEvents.length;t0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class un{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class gn{constructor(e,t,i,n){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=n,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(e){return e.kind!==this.kind?null:new gn(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class pn{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(e){return e.kind!==this.kind?null:new pn(this.oldHasFocus,e.hasFocus)}}class mn{constructor(e,t,i,n,o,s,r,a){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=n,this.scrollWidth=o,this.scrollLeft=s,this.scrollHeight=r,this.scrollTop=a,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!(this.scrollWidthChanged||this.scrollLeftChanged||this.scrollHeightChanged||this.scrollTopChanged)}attemptToMerge(e){return e.kind!==this.kind?null:new mn(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class fn{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class _n{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class vn{constructor(e,t,i,n,o,s,r){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=n,this.source=o,this.reason=s,this.reachedMaxCursorCount=r}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length;if(i!==t.length)return!1;for(let n=0;n0){const e=this._cursors.getSelections();for(let t=0;ts&&(n=n.slice(0,s),o=!0);const r=En.from(this._model,this);return this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,r,o)}setCursorColumnSelectData(e){this._columnSelectData=e}revealPrimary(e,t,i,n,o,s){const r=this._cursors.getViewPositions();let a=null,l=null;r.length>1?l=this._cursors.getViewSelections():a=de.e.fromPositions(r[0],r[0]),e.emitViewEvent(new sn(t,i,a,l,n,o,s))}saveState(){const e=[],t=this._cursors.getSelections();for(let i=0,n=t.length;i0){const t=Hi.Vi.fromModelSelections(i.resultingSelection);this.setStates(e,"modelChange",i.isUndoing?5:i.isRedoing?6:2,t)&&this.revealPrimary(e,"modelChange",!1,0,!0,0)}else{const t=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,Hi.Vi.fromModelSelections(t))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,n){this.setStates(e,t,n,Hi.Vi.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const i=[],n=[];for(let o=0,s=e.length;o0&&this._pushAutoClosedAction(i,n),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,n,o){const s=En.from(this._model,this);if(s.equals(n))return!1;const r=this._cursors.getSelections(),a=this._cursors.getViewSelections();if(e.emitViewEvent(new Qi(a,r,i)),!n||n.cursorState.length!==s.cursorState.length||s.cursorState.some(((e,t)=>!e.modelState.equals(n.cursorState[t].modelState)))){const a=n?n.cursorState.map((e=>e.modelState.selection)):null,l=n?n.modelVersionId:0;e.emitOutgoingEvent(new vn(a,r,l,s.modelVersionId,t||"keyboard",i,o))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let i=0,n=e.length;i=0)return null;const o=n.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!o)return null;const s=o[1],r=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(s);if(!r||1!==r.length)return null;const a=r[0].open,l=n.text.length-o[2].length-1,c=n.text.lastIndexOf(a,l-1);if(-1===c)return null;t.push([c,l])}return t}executeEdits(e,t,i,n){let o=null;"snippet"===t&&(o=this._findAutoClosingPairs(i)),o&&(i[0]._isTracked=!0);const s=[],r=[],a=this._model.pushEditOperations(this.getSelections(),i,(e=>{if(o)for(let t=0,i=o.length;t0&&this._pushAutoClosedAction(s,r)}_executeEdit(e,t,i,n=0){if(this.context.cursorConfig.readOnly)return;const o=En.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(e){(0,h.dL)(e)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,n,o,!1)&&this.revealPrimary(t,i,!1,0,!0,0)}getAutoClosedCharacters(){return Nn.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._compositionState=new In(this._model,this.getSelections())}endComposition(e,t){const i=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit((()=>{"keyboard"===t&&this._executeEditOperation(ji.u6.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,i,this.getSelections(),this.getAutoClosedCharacters()))}),e,t)}type(e,t,i){this._executeEdit((()=>{if("keyboard"===i){const e=t.length;let i=0;for(;i{this._executeEditOperation(ji.u6.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,n,o))}),e,s);else if(0!==o){const t=this.getSelections().map((e=>{const t=e.getPosition();return new P.Y(t.lineNumber,t.column+o,t.lineNumber,t.column+o)}));this.setSelections(e,s,t,0)}}paste(e,t,i,n,o){this._executeEdit((()=>{this._executeEditOperation(ji.u6.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,n||[]))}),e,o,4)}cut(e,t){this._executeEdit((()=>{this._executeEditOperation(Ui.A.cut(this.context.cursorConfig,this._model,this.getSelections()))}),e,t)}executeCommand(e,t,i){this._executeEdit((()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new Hi.Tp(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}executeCommands(e,t,i){this._executeEdit((()=>{this._executeEditOperation(new Hi.Tp(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}}class En{static from(e,t){return new En(e.getVersionId(),t.getCursorStates())}constructor(e,t){this.modelVersionId=e,this.cursorState=t}equals(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t=t.length)return!1;if(!t[i].strictContainsRange(e[i]))return!1}return!0}}class Dn{static executeCommands(e,t,i){const n={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},o=this._innerExecuteCommands(n,i);for(let e=0,t=n.trackedRanges.length;e0&&(s[0]._isTracked=!0);let r=e.model.pushEditOperations(e.selectionsBefore,s,(i=>{const n=[];for(let t=0;te.identifier.minor-t.identifier.minor,s=[];for(let i=0;i0?(n[i].sort(o),s[i]=t[i].computeCursorState(e.model,{getInverseEditOperations:()=>n[i],getTrackedSelection:t=>{const i=parseInt(t,10),n=e.model._getTrackedRange(e.trackedRanges[i]);return 0===e.trackedRangesDirection[i]?new P.Y(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):new P.Y(n.endLineNumber,n.endColumn,n.startLineNumber,n.startColumn)}})):s[i]=e.selectionsBefore[i];return s}));r||(r=e.selectionsBefore);const a=[];for(const e in o)o.hasOwnProperty(e)&&a.push(parseInt(e,10));a.sort(((e,t)=>t-e));for(const e of a)r.splice(e,1);return r}static _arrayIsEmpty(e){for(let t=0,i=e.length;t{de.e.isEmpty(e)&&""===s||n.push({identifier:{major:t,minor:o++},range:e,text:s,forceMoveMarkers:r,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let r=!1;const a={addEditOperation:s,addTrackedEditOperation:(e,t,i)=>{r=!0,s(e,t,i)},trackSelection:(t,i)=>{const n=P.Y.liftSelection(t);let o;if(n.isEmpty())if("boolean"==typeof i)o=i?2:3;else{const t=e.model.getLineMaxColumn(n.startLineNumber);o=n.startColumn===t?2:3}else o=1;const s=e.trackedRanges.length,r=e.model._setTrackedRange(null,n,o);return e.trackedRanges[s]=r,e.trackedRangesDirection[s]=n.getDirection(),s.toString()}};try{i.getEditOperations(e.model,a)}catch(e){return(0,h.dL)(e),{operations:[],hadTrackedEditOperation:!1}}return{operations:n,hadTrackedEditOperation:r}}static _getLoserCursorMap(e){(e=e.slice(0)).sort(((e,t)=>-de.e.compareRangesUsingEnds(e.range,t.range)));const t={};for(let i=1;io.identifier.major?n.identifier.major:o.identifier.major,t[s.toString()]=!0;for(let t=0;t0&&i--}}return t}}class Tn{constructor(e,t,i){this.text=e,this.startSelection=t,this.endSelection=i}}class In{static _capture(e,t){const i=[];for(const n of t){if(n.startLineNumber!==n.endLineNumber)return null;i.push(new Tn(e.getLineContent(n.startLineNumber),n.startColumn-1,n.endColumn-1))}return i}constructor(e,t){this._original=In._capture(e,t)}deduceOutcome(e,t){if(!this._original)return null;const i=In._capture(e,t);if(!i)return null;if(this._original.length!==i.length)return null;const n=[];for(let e=0,t=this._original.length;e>>1;t===e[s].afterLineNumber?i{t=!0,e|=0,i|=0,n|=0,o|=0;const s=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new Pn(s,e,i,n,o)),s},changeOneWhitespace:(e,i,n)=>{t=!0,i|=0,n|=0,this._pendingChanges.change({id:e,newAfterLineNumber:i,newHeight:n})},removeWhitespace:e=>{t=!0,this._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const t of e)this._insertWhitespace(t);for(const e of t)this._changeOneWhitespace(e.id,e.newAfterLineNumber,e.newHeight);for(const e of i){const t=this._findWhitespaceIndex(e.id);-1!==t&&this._removeWhitespace(t)}return}const n=new Set;for(const e of i)n.add(e.id);const o=new Map;for(const e of t)o.set(e.id,e);const s=e=>{const t=[];for(const i of e)if(!n.has(i.id)){if(o.has(i.id)){const e=o.get(i.id);i.afterLineNumber=e.newAfterLineNumber,i.height=e.newHeight}t.push(i)}return t},r=s(this._arr).concat(s(e));r.sort(((e,t)=>e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber)),this._arr=r,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=Fn.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,n=t.length;it&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(let i=0,n=this._arr.length;i=t.length||t[o+1].afterLineNumber>=e)return o;i=o+1|0}else n=o-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t1?this._lineHeight*(e-1):0,i+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(t?1:0))+this._paddingTop}getVerticalOffsetAfterLineNumber(e,t=!1){return this._checkPendingChanges(),e|=0,this._lineHeight*e+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e+(t?1:0))+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let e=0;for(let t=0,i=this._arr.length;tthis.getLinesTotalHeight()}isInTopPadding(e){return 0!==this._paddingTop&&(this._checkPendingChanges(),e=this.getLinesTotalHeight()-this._paddingBottom)}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;const t=0|this._lineCount,i=this._lineHeight;let n=1,o=t;for(;n=s+i)n=t+1;else{if(e>=s)return t;o=t}}return n>t?t:n}getLinesViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this._lineHeight,n=0|this.getLineNumberAtOrAfterVerticalOffset(e),o=0|this.getVerticalOffsetForLineNumber(n);let s=0|this._lineCount,r=0|this.getFirstWhitespaceIndexAfterLineNumber(n);const a=0|this.getWhitespacesCount();let l,c;-1===r?(r=a,c=s+1,l=0):(c=0|this.getAfterLineNumberForWhitespaceIndex(r),l=0|this.getHeightForWhitespaceIndex(r));let h=o,d=h;const u=5e5;let g=0;o>=u&&(g=Math.floor(o/u)*u,g=Math.floor(g/i)*i,d-=g);const p=[],m=e+(t-e)/2;let f=-1;for(let e=n;e<=s;e++){for(-1===f&&(h<=m&&mm)&&(f=e),h+=i,p[e-n]=d,d+=i;c===e;)d+=l,h+=l,r++,r>=a?c=s+1:(c=0|this.getAfterLineNumberForWhitespaceIndex(r),l=0|this.getHeightForWhitespaceIndex(r));if(h>=t){s=e;break}}-1===f&&(f=s);const _=0|this.getVerticalOffsetForLineNumber(s);let v=n,b=s;return vt&&b--,{bigNumbersDelta:g,startLineNumber:n,endLineNumber:s,relativeVerticalOffset:p,centeredLineNumber:f,completelyVisibleStartLineNumber:v,completelyVisibleEndLineNumber:b}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e|=0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i,n;return i=t>=1?this._lineHeight*t:0,n=e>0?this.getWhitespacesAccumulatedHeight(e-1):0,i+n+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e|=0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(i)+this.getHeightForWhitespaceIndex(i))return-1;for(;t=o+this.getHeightForWhitespaceIndex(n))t=n+1;else{if(e>=o)return n;i=n}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e|=0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const n=this.getHeightForWhitespaceIndex(t);return{id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:i,height:n}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),n=this.getWhitespacesCount()-1;if(i<0)return[];const o=[];for(let e=i;e<=n;e++){const i=this.getVerticalOffsetForWhitespaceIndex(e),n=this.getHeightForWhitespaceIndex(e);if(i>=t)break;o.push({id:this.getIdForWhitespaceIndex(e),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(e),verticalOffset:i,height:n})}return o}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].height}}Fn.INSTANCE_COUNT=0;class Bn{constructor(e,t,i,n){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(i|=0)<0&&(i=0),(n|=0)<0&&(n=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=n,this.scrollHeight=Math.max(i,n)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class Hn extends u.JT{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new d.Q5),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new Bn(0,0,0,0),this._scrollable=this._register(new Rn.Rm({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,n=t.contentHeight!==e.contentHeight;(i||n)&&this._onDidContentSizeChange.fire(new gn(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}}class Vn extends u.JT{constructor(e,t,i){super(),this._configuration=e;const n=this._configuration.options,o=n.get(139),s=n.get(81);this._linesLayout=new Fn(t,n.get(64),s.top,s.bottom),this._scrollable=this._register(new Hn(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new Bn(o.contentWidth,0,o.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(109)?125:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(64)&&this._linesLayout.setLineHeight(t.get(64)),e.hasChanged(81)){const e=t.get(81);this._linesLayout.setPadding(e.top,e.bottom)}if(e.hasChanged(139)){const e=t.get(139),i=e.contentWidth,n=e.height,o=this._scrollable.getScrollDimensions(),s=o.contentWidth;this._scrollable.setScrollDimensions(new Bn(i,o.contentWidth,n,this._getContentHeight(i,n,s)))}else this._updateHeight();e.hasChanged(109)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const i=this._configuration.options.get(98);return 2===i.horizontal||e>=t?0:i.horizontalScrollbarSize}_getContentHeight(e,t,i){const n=this._configuration.options;let o=this._linesLayout.getLinesTotalHeight();return n.get(100)?o+=Math.max(0,t-n.get(64)-n.get(81).bottom):o+=this._getHorizontalScrollbarHeight(e,i),o}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,n=e.contentWidth;this._scrollable.setScrollDimensions(new Bn(t,e.contentWidth,i,this._getContentHeight(t,i,n)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new Ut.l_(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new Ut.l_(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(e){const t=this._configuration.options,i=t.get(140),n=t.get(48),o=t.get(139);if(i.isViewportWrapping){const i=t.get(70);return e>o.contentWidth+n.typicalHalfwidthCharacterWidth&&i.enabled&&"right"===i.side?e+o.verticalScrollbarWidth:e}{const i=t.get(99)*n.typicalHalfwidthCharacterWidth,s=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+i+o.verticalScrollbarWidth,s)}}setMaxLineWidth(e){const t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new Bn(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i),scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}var Wn=i(30168),zn=i(77378);function Un(e,t){return null===e?t?Kn.INSTANCE:qn.INSTANCE:new jn(e,t)}class jn{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){this._assertVisible();const n=i>0?this._projectionData.breakOffsets[i-1]:0,o=this._projectionData.breakOffsets[i];let s;if(null!==this._projectionData.injectionOffsets){const i=this._projectionData.injectionOffsets.map(((e,t)=>new Ki.gk(0,0,e+1,this._projectionData.injectionOptions[t],0)));s=Ki.gk.applyInjectedText(e.getLineContent(t),i).substring(n,o)}else s=e.getValueInRange({startLineNumber:t,startColumn:n+1,endLineNumber:t,endColumn:o+1});return i>0&&(s=Gn(this._projectionData.wrappedTextIndentLength)+s),s}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){const n=new Array;return this.getViewLinesData(e,t,i,1,0,[!0],n),n[0]}getViewLinesData(e,t,i,n,o,s,r){this._assertVisible();const a=this._projectionData,l=a.injectionOffsets,c=a.injectionOptions;let h,d=null;if(l){d=[];let e=0,t=0;for(let i=0;i0?a.breakOffsets[i-1]:0,s=a.breakOffsets[i];for(;ts)break;if(o0?a.wrappedTextIndentLength:0,r=t+Math.max(h-o,0),l=t+Math.min(d-o,s);r!==l&&n.push(new Ut.Wx(r,l,e.inlineClassName,e.inlineClassNameAffectsLetterSpacing))}}if(!(d<=s))break;e+=r,t++}}}h=l?e.tokenization.getLineTokens(t).withInserted(l.map(((e,t)=>({offset:e,text:c[t].content,tokenMetadata:zn.A.defaultTokenMetadata})))):e.tokenization.getLineTokens(t);for(let e=i;e0?n.wrappedTextIndentLength:0,s=i>0?n.breakOffsets[i-1]:0,r=n.breakOffsets[i],a=e.sliceAndInflate(s,r,o);let l=a.getLineContent();i>0&&(l=Gn(n.wrappedTextIndentLength)+l);const c=this._projectionData.getMinOutputOffset(i)+1,h=l.length+1,d=i+1=$n.length)for(let t=1;t<=e;t++)$n[t]=Qn(t);return $n[e]}function Qn(e){return new Array(e+1).join(" ")}var Yn=i(90310);class Zn{constructor(e,t,i,n,o,s,r,a,l,c){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=o,this.tabSize=s,this.wrappingStrategy=r,this.wrappingColumn=a,this.wrappingIndent=l,this.wordBreak=c,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new eo(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const i=this.model.getLinesContent(),n=this.model.getInjectedTextDecorations(this._editorId),o=i.length,s=this.createLineBreaksComputer(),r=new m.H9(Ki.gk.fromDecorations(n));for(let e=0;et.lineNumber===e+1));s.addRequest(i[e],n,t?t[e]:null)}const a=s.finalize(),l=[],c=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(de.e.compareRangesUsingStarts);let h=1,d=0,u=-1,g=u+1=h&&t<=d,n=Un(a[e],!i);l[e]=n.getViewLineCount(),this.modelLineProjections[e]=n}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new Yn.Ck(l)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e)))}setHiddenAreas(e){const t=function(e){if(0===e.length)return[];const t=e.slice();t.sort(de.e.compareRangesUsingStarts);const i=[];let n=t[0].startLineNumber,o=t[0].endLineNumber;for(let e=1,s=t.length;eo+1?(i.push(new de.e(n,1,o,1)),n=s.startLineNumber,o=s.endLineNumber):s.endLineNumber>o&&(o=s.endLineNumber)}return i.push(new de.e(n,1,o,1)),i}(e.map((e=>this.model.validateRange(e)))),i=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(de.e.compareRangesUsingStarts);if(t.length===i.length){let e=!1;for(let n=0;n({range:e,options:Bi.qx.EMPTY})));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,n);const o=t;let s=1,r=0,a=-1,l=a+1=s&&t<=r?this.modelLineProjections[e].isVisible()&&(this.modelLineProjections[e]=this.modelLineProjections[e].setVisible(!1),i=!0):(c=!0,this.modelLineProjections[e].isVisible()||(this.modelLineProjections[e]=this.modelLineProjections[e].setVisible(!0),i=!0)),i){const t=this.modelLineProjections[e].getViewLineCount();this.projectedModelLineLineCounts.setValue(e,t)}}return c||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return!(e<1||e>this.modelLineProjections.length)&&this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,n,o){const s=this.fontInfo.equals(e),r=this.wrappingStrategy===t,a=this.wrappingColumn===i,l=this.wrappingIndent===n,c=this.wordBreak===o;if(s&&r&&a&&l&&c)return!1;const h=s&&r&&!a&&l&&c;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=n,this.wordBreak=o;let d=null;if(h){d=[];for(let e=0,t=this.modelLineProjections.length;e2&&!this.modelLineProjections[t-2].isVisible(),s=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let r=0;const a=[],l=[];for(let e=0,t=n.length;er?(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,c=l+r-1,u=c+1,g=u+(o-r)-1,a=!0):ot?t:0|e}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),o=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),s=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),r=this.model.guides.getActiveIndentGuide(n.lineNumber,o.lineNumber,s.lineNumber),a=this.convertModelPositionToViewPosition(r.startLineNumber,1),l=this.convertModelPositionToViewPosition(r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:l.lineNumber,indent:r.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),i=t.index,n=t.remainder;return new Xn(i+1,n)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new he.L(e.modelLineNumber,n)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new he.L(e.modelLineNumber,n)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),n=this.getViewLineInfo(t),o=new Array;let s=this.getModelStartPositionOfViewLine(i),r=new Array;for(let e=i.modelLineNumber;e<=n.modelLineNumber;e++){const t=this.modelLineProjections[e-1];if(t.isVisible()){const o=e===i.modelLineNumber?i.modelLineWrappedLineIdx:0,s=e===n.modelLineNumber?n.modelLineWrappedLineIdx+1:t.getViewLineCount();for(let t=o;t{if(-1!==e.forWrappedLinesAfterColumn&&this.modelLineProjections[n.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesAfterColumn).lineNumber>=n.modelLineWrappedLineIdx)return;if(-1!==e.forWrappedLinesBeforeOrAtColumn&&this.modelLineProjections[n.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesBeforeOrAtColumn).lineNumbern.modelLineWrappedLineIdx)return}const i=this.convertModelPositionToViewPosition(n.modelLineNumber,e.horizontalLine.endColumn),o=this.modelLineProjections[n.modelLineNumber-1].getViewPositionOfModelPosition(0,e.horizontalLine.endColumn);return o.lineNumber===n.modelLineWrappedLineIdx?new Dt.UO(e.visibleColumn,t,e.className,new Dt.vW(e.horizontalLine.top,i.column),-1,-1):o.lineNumber!!e)))}}return s}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let o=[];const s=[],r=[],a=i.lineNumber-1,l=n.lineNumber-1;let c=null;for(let e=a;e<=l;e++){const t=this.modelLineProjections[e];if(t.isVisible()){const n=t.getViewLineNumberOfModelPosition(0,e===a?i.column:1),o=t.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(e+1)),l=o-n+1;let h=0;l>1&&1===t.getViewLineMinColumn(this.model,e+1,o)&&(h=0===n?1:2),s.push(l),r.push(h),null===c&&(c=new he.L(e+1,0))}else null!==c&&(o=o.concat(this.model.guides.getLinesIndentGuides(c.lineNumber,e)),c=null)}null!==c&&(o=o.concat(this.model.guides.getLinesIndentGuides(c.lineNumber,n.lineNumber)),c=null);const h=t-e+1,d=new Array(h);let u=0;for(let e=0,t=o.length;et&&(d=!0,h=t-o+1),l.getViewLinesData(this.model,n+1,c,h,o-e,i,a),o+=h,d)break}return a}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);const n=this.projectedModelLineLineCounts.getIndexOf(e-1),o=n.index,s=n.remainder,r=this.modelLineProjections[o],a=r.getViewLineMinColumn(this.model,o+1,s),l=r.getViewLineMaxColumn(this.model,o+1,s);tl&&(t=l);const c=r.getModelColumnOfViewPosition(s,t);return this.model.validatePosition(new he.L(o+1,c)).equals(i)?new he.L(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),n=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new de.e(i.lineNumber,i.column,n.lineNumber,n.column)}convertViewPositionToModelPosition(e,t){const i=this.getViewLineInfo(e),n=this.modelLineProjections[i.modelLineNumber-1].getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,t);return this.model.validatePosition(new he.L(i.modelLineNumber,n))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new de.e(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t,i=2){const n=this.model.validatePosition(new he.L(e,t)),o=n.lineNumber,s=n.column;let r=o-1,a=!1;for(;r>0&&!this.modelLineProjections[r].isVisible();)r--,a=!0;if(0===r&&!this.modelLineProjections[r].isVisible())return new he.L(1,1);const l=1+this.projectedModelLineLineCounts.getPrefixSum(r);let c;return c=a?this.modelLineProjections[r].getViewPositionOfModelPosition(l,this.model.getLineMaxColumn(r+1),i):this.modelLineProjections[o-1].getViewPositionOfModelPosition(l,s,i),c}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return de.e.fromPositions(i)}{const t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),i=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new de.e(t.lineNumber,t.column,i.lineNumber,i.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.modelLineProjections[i].isVisible()){const e=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(e,t)}for(;i>0&&!this.modelLineProjections[i].isVisible();)i--;if(0===i&&!this.modelLineProjections[i].isVisible())return 1;const n=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(n,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i,n,o){const s=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),r=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(r.lineNumber-s.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new de.e(s.lineNumber,1,r.lineNumber,r.column),t,i,n,o);let a=[];const l=s.lineNumber-1,c=r.lineNumber-1;let h=null;for(let e=l;e<=c;e++)if(this.modelLineProjections[e].isVisible())null===h&&(h=new he.L(e+1,e===l?s.column:1));else if(null!==h){const o=this.model.getLineMaxColumn(e);a=a.concat(this.model.getDecorationsInRange(new de.e(h.lineNumber,h.column,e,o),t,i,n)),h=null}null!==h&&(a=a.concat(this.model.getDecorationsInRange(new de.e(h.lineNumber,h.column,r.lineNumber,r.column),t,i,n)),h=null),a.sort(((e,t)=>{const i=de.e.compareRangesUsingStarts(e.range,t.range);return 0===i?e.idt.id?1:0:i}));const d=[];let u=0,g=null;for(const e of a){const t=e.id;g!==t&&(g=t,d[u++]=e)}return d}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const i=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[i.modelLineNumber-1].normalizePosition(i.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return 0===t.modelLineWrappedLineIdx?this.model.getLineIndentColumn(t.modelLineNumber):0}}class Xn{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}}class Jn{constructor(e,t){this.modelRange=e,this.viewLines=t}}class eo{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class to{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new io(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,n){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,i,n)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new nn(t,i)}onModelLinesInserted(e,t,i,n){return new on(t,i)}onModelLineChanged(e,t,i){return[!1,new tn(t,1),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1,n=new Array(i);for(let e=0;et)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}class no extends u.JT{constructor(e,t,i,n,o,s,r,a,l){if(super(),this.languageConfigurationService=r,this._themeService=a,this._attachedView=l,this.hiddenAreasModel=new ro,this.previousHiddenAreas=[],this._editorId=e,this._configuration=t,this.model=i,this._eventDispatcher=new dn,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new Hi.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._updateConfigurationViewLineCount=this._register(new At.pY((()=>this._updateConfigurationViewLineCountNow()),0)),this._hasFocus=!1,this._viewportStart=oo.create(this.model),this.model.isTooLargeForTokenization())this._lines=new to(this.model);else{const e=this._configuration.options,t=e.get(48),i=e.get(133),s=e.get(140),r=e.get(132),a=e.get(124);this._lines=new Zn(this._editorId,this.model,n,o,t,this.model.getOptions().tabSize,i,s.wrappingColumn,r,a)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new Ln(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new Vn(this._configuration,this.getLineCount(),s)),this._register(this.viewLayout.onDidScroll((e=>{e.scrollTopChanged&&this._handleVisibleLinesChanged(),e.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new rn(e)),this._eventDispatcher.emitOutgoingEvent(new mn(e.oldScrollWidth,e.oldScrollLeft,e.oldScrollHeight,e.oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop))}))),this._register(this.viewLayout.onDidContentSizeChange((e=>{this._eventDispatcher.emitOutgoingEvent(e)}))),this._decorations=new Wn.CU(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}}))),this._register(zt.getInstance().onDidChange((()=>{this._eventDispatcher.emitSingleViewEvent(new cn)}))),this._register(this._themeService.onDidColorThemeChange((e=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new an(e))}))),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}getModelVisibleRanges(){const e=this.viewLayout.getLinesViewportData(),t=new de.e(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber));return this._toModelVisibleRanges(t)}visibleLinesStabilized(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!0)}_handleVisibleLinesChanged(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!1)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new Xi(e)),this._eventDispatcher.emitOutgoingEvent(new pn(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new qi)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new $i)}_captureStableViewport(){if(this._viewportStart.isValid&&this.viewLayout.getCurrentScrollTop()>0){const e=new he.L(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber)),t=this.coordinatesConverter.convertViewPositionToModelPosition(e);return new lo(t,this._viewportStart.startLineDelta)}return new lo(null,0)}_onConfigurationChanged(e,t){const i=this._captureStableViewport(),n=this._configuration.options,o=n.get(48),s=n.get(133),r=n.get(140),a=n.get(132),l=n.get(124);this._lines.setWrappingSettings(o,s,r.wrappingColumn,a,l)&&(e.emitViewEvent(new Zi),e.emitViewEvent(new en),e.emitViewEvent(new Yi(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(87)&&(this._decorations.reset(),e.emitViewEvent(new Yi(null))),e.emitViewEvent(new Gi(t)),this.viewLayout.onConfigurationChanged(t),i.recoverViewportStart(this.coordinatesConverter,this.viewLayout),Hi.LM.shouldRecreate(t)&&(this.cursorConfig=new Hi.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let i=!1,n=!1;const o=e instanceof Ki.fV?e.rawContentChangedEvent.changes:e.changes,s=e instanceof Ki.fV?e.rawContentChangedEvent.versionId:null,r=this._lines.createLineBreaksComputer();for(const e of o)switch(e.changeType){case 4:for(let t=0;t!e.ownerId||e.ownerId===this._editorId))),r.addRequest(i,n,null)}break;case 2:{let t=null;e.injectedText&&(t=e.injectedText.filter((e=>!e.ownerId||e.ownerId===this._editorId))),r.addRequest(e.detail,t,null);break}}const a=r.finalize(),l=new m.H9(a);for(const e of o)switch(e.changeType){case 1:this._lines.onModelFlushed(),t.emitViewEvent(new Zi),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),i=!0;break;case 3:{const n=this._lines.onModelLinesDeleted(s,e.fromLineNumber,e.toLineNumber);null!==n&&(t.emitViewEvent(n),this.viewLayout.onLinesDeleted(n.fromLineNumber,n.toLineNumber)),i=!0;break}case 4:{const n=l.takeCount(e.detail.length),o=this._lines.onModelLinesInserted(s,e.fromLineNumber,e.toLineNumber,n);null!==o&&(t.emitViewEvent(o),this.viewLayout.onLinesInserted(o.fromLineNumber,o.toLineNumber)),i=!0;break}case 2:{const i=l.dequeue(),[o,r,a,c]=this._lines.onModelLineChanged(s,e.lineNumber,i);n=o,r&&t.emitViewEvent(r),a&&(t.emitViewEvent(a),this.viewLayout.onLinesInserted(a.fromLineNumber,a.toLineNumber)),c&&(t.emitViewEvent(c),this.viewLayout.onLinesDeleted(c.fromLineNumber,c.toLineNumber));break}}null!==s&&this._lines.acceptVersionId(s),this.viewLayout.onHeightMaybeChanged(),!i&&n&&(t.emitViewEvent(new en),t.emitViewEvent(new Yi(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const t=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&t){const e=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(e){const t=this.coordinatesConverter.convertModelPositionToViewPosition(e.getStartPosition()),i=this.viewLayout.getVerticalOffsetForLineNumber(t.lineNumber);this.viewLayout.setScrollPosition({scrollTop:i+this._viewportStart.startLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();e instanceof Ki.fV&&t.emitOutgoingEvent(new Sn(e.contentChangedEvent)),this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._handleVisibleLinesChanged()}))),this._register(this.model.onDidChangeTokens((e=>{const t=[];for(let i=0,n=e.ranges.length;i{this._eventDispatcher.emitSingleViewEvent(new Ji),this.cursorConfig=new Hi.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new wn(e))}))),this._register(this.model.onDidChangeLanguage((e=>{this.cursorConfig=new Hi.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new yn(e))}))),this._register(this.model.onDidChangeOptions((e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const e=this._eventDispatcher.beginEmitViewEvents();e.emitViewEvent(new Zi),e.emitViewEvent(new en),e.emitViewEvent(new Yi(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new Hi.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new kn(e))}))),this._register(this.model.onDidChangeDecorations((e=>{var t,i;if(this._decorations.onModelDecorationsChanged(),e.affectsGlyphMargin){const e=this.model.getAllMarginDecorations();let n=!1;e.sort(((e,t)=>de.e.compareRangesUsingStarts(e.range,t.range)));let o=null,s=null;for(const r of e){const e=null!==(i=null===(t=r.options.glyphMargin)||void 0===t?void 0:t.position)&&void 0!==i?i:Jt.U.Left;if(e===Jt.U.Left&&(!o||de.e.compareRangesUsingEnds(o,r.range)<0)&&(o=r.range),e===Jt.U.Right&&(!s||de.e.compareRangesUsingEnds(s,r.range)<0)&&(s=r.range),o&&s){if(o.endLineNumbera||(st.toInlineDecoration(e)))]),new Ut.wA(s.minColumn,s.maxColumn,s.content,s.continuesWithWrappedLine,i,n,s.tokens,t,o,s.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){const n=this._lines.getViewLinesData(e,t,i);return new Ut.ud(this.getTabSize(),n)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,(0,x.$J)(this._configuration.options)),i=new so;for(const n of t){const t=n.options,o=t.overviewRuler;if(!o)continue;const s=o.position;if(0===s)continue;const r=o.getColor(e.value),a=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.startLineNumber,n.range.startColumn),l=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.endLineNumber,n.range.endColumn);i.accept(r,t.zIndex,a,l,s)}return i.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const e=t.options.overviewRuler;null==e||e.invalidateCachedColor();const i=t.options.minimap;null==i||i.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}getValueLengthInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueLengthInRange(i,t)}modifyPosition(e,t){const i=this.coordinatesConverter.convertViewPositionToModelPosition(e);return this.model.modifyPosition(i,t)}deduceModelPositionRelativeToViewPosition(e,t,i){const n=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=i:t+=i);const o=this.model.getOffsetAt(n)+t;return this.model.getPositionAt(o)}getPlainTextToCopy(e,t,i){const n=i?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(de.e.compareRangesUsingStarts);let o=!1,s=!1;for(const t of e)t.isEmpty()?o=!0:s=!0;if(!s){if(!t)return"";const i=e.map((e=>e.startLineNumber));let o="";for(let e=0;e0&&i[e-1]===i[e]||(o+=this.model.getLineContent(i[e])+n);return o}if(o&&t){const t=[];let n=0;for(const o of e){const e=o.startLineNumber;o.isEmpty()?e!==n&&t.push(this.model.getLineContent(e)):t.push(this.model.getValueInRange(o,i?2:0)),n=e}return 1===t.length?t[0]:t}const r=[];for(const t of e)t.isEmpty()||r.push(this.model.getValueInRange(t,i?2:0));return 1===r.length?r[0]:r}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===An.bd)return null;if(1!==e.length)return null;let n=e[0];if(n.isEmpty()){if(!t)return null;const e=n.startLineNumber;n=new de.e(e,this.model.getLineMinColumn(e),e,this.model.getLineMaxColumn(e))}const o=this._configuration.options.get(48),s=this._getColorMap();let r;return/[:;\\\/<>]/.test(o.fontFamily)||o.fontFamily===x.hL.fontFamily?r=x.hL.fontFamily:(r=o.fontFamily,r=r.replace(/"/g,"'"),/[,']/.test(r)||/[+ ]/.test(r)&&(r=`'${r}'`),r=`${r}, ${x.hL.fontFamily}`),{mode:i,html:`
    `+this._getHTMLToCopy(n,s)+"
    "}}_getHTMLToCopy(e,t){const i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,s=e.endColumn,r=this.getTabSize();let a="";for(let e=i;e<=o;e++){const l=this.model.tokenization.getLineTokens(e),c=l.getLineContent(),h=e===i?n-1:0,d=e===o?s-1:c.length;a+=""===c?"
    ":(0,Mn.Fq)(c,l.inflate(),t,h,d,r,_.ED)}return a}_getColorMap(){const e=$e.RW.getColorMap(),t=["#000000"];if(e)for(let i=1,n=e.length;ithis._cursor.setStates(n,e,t,i)))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector((n=>this._cursor.setSelections(n,e,t,i)))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector((t=>this._cursor.restoreState(t,e)))}_executeCursorEdit(e){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new bn):this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit((n=>this._cursor.executeEdits(n,e,t,i)))}startComposition(){this._executeCursorEdit((e=>this._cursor.startComposition(e)))}endComposition(e){this._executeCursorEdit((t=>this._cursor.endComposition(t,e)))}type(e,t){this._executeCursorEdit((i=>this._cursor.type(i,e,t)))}compositionType(e,t,i,n,o){this._executeCursorEdit((s=>this._cursor.compositionType(s,e,t,i,n,o)))}paste(e,t,i,n){this._executeCursorEdit((o=>this._cursor.paste(o,e,t,i,n)))}cut(e){this._executeCursorEdit((t=>this._cursor.cut(t,e)))}executeCommand(e,t){this._executeCursorEdit((i=>this._cursor.executeCommand(i,e,t)))}executeCommands(e,t){this._executeCursorEdit((i=>this._cursor.executeCommands(i,e,t)))}revealPrimaryCursor(e,t,i=!1){this._withViewEventsCollector((n=>this._cursor.revealPrimary(n,e,i,0,t,0)))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new de.e(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new sn(e,!1,i,null,0,!0,0))))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new de.e(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new sn(e,!1,i,null,0,!0,0))))}revealRange(e,t,i,n,o){this._withViewEventsCollector((s=>s.emitViewEvent(new sn(e,!1,i,null,n,t,o))))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new hn),this._eventDispatcher.emitOutgoingEvent(new fn))}_withViewEventsCollector(e){try{return e(this._eventDispatcher.beginEmitViewEvents())}finally{this._eventDispatcher.endEmitViewEvents()}}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class oo{static create(e){const t=e._setTrackedRange(null,new de.e(1,1,1,1),1);return new oo(e,1,!1,t,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}constructor(e,t,i,n,o){this._model=e,this._viewLineNumber=t,this._isValid=i,this._modelTrackedRange=n,this._startLineDelta=o}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(e,t){const i=e.coordinatesConverter.convertViewPositionToModelPosition(new he.L(t,e.getLineMinColumn(t))),n=e.model._setTrackedRange(this._modelTrackedRange,new de.e(i.lineNumber,i.column,i.lineNumber,i.column),1),o=e.viewLayout.getVerticalOffsetForLineNumber(t),s=e.viewLayout.getCurrentScrollTop();this._viewLineNumber=t,this._isValid=!0,this._modelTrackedRange=n,this._startLineDelta=s-o}invalidate(){this._isValid=!1}}class so{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,n,o){const s=this._asMap[e];if(s){const e=s.data,t=e[e.length-3],r=e[e.length-1];if(t===o&&r+1>=i)return void(n>r&&(e[e.length-1]=n));e.push(o,i,n)}else{const s=new Ut.SQ(e,t,[o,i,n]);this._asMap[e]=s,this.asArray.push(s)}}}class ro{constructor(){this.hiddenAreas=new Map,this.shouldRecompute=!1,this.ranges=[]}setHiddenAreas(e,t){const i=this.hiddenAreas.get(e);i&&ao(i,t)||(this.hiddenAreas.set(e,t),this.shouldRecompute=!0)}getMergedRanges(){if(!this.shouldRecompute)return this.ranges;this.shouldRecompute=!1;const e=Array.from(this.hiddenAreas.values()).reduce(((e,t)=>function(e,t){const i=[];let n=0,o=0;for(;n0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let i=this.breakOffsets[e]-t;return e>0&&(i+=this.wrappedTextIndentLength),i}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let i=0===e?t:this.breakOffsets[e-1]+t;if(null!==this.injectionOffsets)for(let e=0;ethis.injectionOffsets[e];e++)i0?this.breakOffsets[o-1]:0,0===t)if(e<=s)n=o-1;else{if(!(e>r))break;i=o+1}else if(e=r))break;i=o+1}}let r=e-s;return o>0&&(r+=this.wrappedTextIndentLength),new Co(o,r)}normalizeOutputPosition(e,t,i){if(null!==this.injectionOffsets){const n=this.outputPositionToOffsetInInputWithInjections(e,t),o=this.normalizeOffsetInInputWithInjectionsAroundInjections(n,i);if(o!==n)return this.offsetInInputWithInjectionsToOutputPosition(o,i)}if(0===i){if(e>0&&t===this.getMinOutputOffset(e))return new Co(e-1,this.getMaxOutputOffset(e-1))}else if(1===i&&e0&&(t=Math.max(0,t-this.wrappedTextIndentLength)),(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(2===t){if(e===i.offsetInInputWithInjections+i.length&&vo(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let e=i.offsetInInputWithInjections;if(bo(this.injectionOptions[i.injectedTextIndex].cursorStops))return e;let t=i.injectedTextIndex-1;for(;t>=0&&this.injectionOffsets[t]===this.injectionOffsets[i.injectedTextIndex]&&!vo(this.injectionOptions[t].cursorStops)&&(e-=this.injectionOptions[t].content.length,!bo(this.injectionOptions[t].cursorStops));)t--;return e}}if(1===t||4===t){let e=i.offsetInInputWithInjections+i.length,t=i.injectedTextIndex;for(;t+1=0&&this.injectionOffsets[t-1]===this.injectionOffsets[t];)e-=this.injectionOptions[t-1].content.length,t--;return e}(0,fo.vE)(t)}getInjectedText(e,t){const i=this.outputPositionToOffsetInInputWithInjections(e,t),n=this.getInjectedTextAtOffset(i);return n?{options:this.injectionOptions[n.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(null!==t){let n=0;for(let o=0;oe)break;if(e<=a)return{injectedTextIndex:o,offsetInInputWithInjections:r,length:s};n+=s}}}}function vo(e){return null==e||e===Jt.RM.Right||e===Jt.RM.Both}function bo(e){return null==e||e===Jt.RM.Left||e===Jt.RM.Both}class Co{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new he.L(e+this.outputLineIndex,this.outputOffset+1)}}class yo{static create(e){return new yo(e.get(128),e.get(127))}constructor(e,t){this.classifier=new wo(e,t)}createLineBreaksComputer(e,t,i,n,o){const s=[],r=[],a=[];return{addRequest:(e,t,i)=>{s.push(e),r.push(t),a.push(i)},finalize:()=>{const l=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,c=[];for(let e=0,h=s.length;e=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let So=[],ko=[];function xo(e,t,i,n,o,s,r,a){if(-1===o)return null;const l=i.length;if(l<=1)return null;const c="keepAll"===a,h=t.breakOffsets,d=t.breakOffsetsVisibleColumn,u=To(i,n,o,s,r),g=o-u,p=So,m=ko;let f=0,_=0,v=0,b=o;const C=h.length;let y=0;if(y>=0){let e=Math.abs(d[y]-b);for(;y+1=e)break;e=t,y++}}for(;yt&&(t=_,o=v);let r=0,a=0,u=0,w=0;if(o<=b){let v=o,C=0===t?0:i.charCodeAt(t-1),y=0===t?0:e.get(C),S=!0;for(let o=t;o_&&Do(0,y,l,h,c)&&(r=t,a=v),v+=d,v>b){t>_?(u=t,w=v-d):(u=o+1,w=v),v-a>g&&(r=0),S=!1;break}C=l,y=h}if(S){f>0&&(p[f]=h[h.length-1],m[f]=d[h.length-1],f++);break}}if(0===r){let l=o,h=i.charCodeAt(t),d=e.get(h),p=!1;for(let n=t-1;n>=_;n--){const t=n+1,o=i.charCodeAt(n);if(9===o){p=!0;break}let m,f;if(Fe.YK(o)?(n--,m=0,f=2):(m=e.get(o),f=Fe.K7(o)?s:1),l<=b){if(0===u&&(u=t,w=l),l<=b-g)break;if(Do(0,m,h,d,c)){r=t,a=l;break}}l-=f,h=o,d=m}if(0!==r){const e=g-(w-a);if(e<=n){const t=i.charCodeAt(u);let o;o=Fe.ZG(t)?2:Eo(t,w,n,s),e-o<0&&(r=0)}}if(p){y--;continue}}if(0===r&&(r=u,a=w),r<=_){const e=i.charCodeAt(_);Fe.ZG(e)?(r=_+2,a=v+2):(r=_+1,a=v+Eo(e,v,n,s))}for(_=r,p[f]=r,v=a,m[f]=a,f++,b=a+g;y<0||y=S)break;S=e,y++}}return 0===f?null:(p.length=f,m.length=f,So=t.breakOffsets,ko=t.breakOffsetsVisibleColumn,t.breakOffsets=p,t.breakOffsetsVisibleColumn=m,t.wrappedTextIndentLength=u,t)}function Lo(e,t,i,n,o,s,r,a){const l=Ki.gk.applyInjectedText(t,i);let c,h;if(i&&i.length>0?(c=i.map((e=>e.options)),h=i.map((e=>e.column-1))):(c=null,h=null),-1===o)return c?new _o(h,c,[l.length],[],0):null;const d=l.length;if(d<=1)return c?new _o(h,c,[l.length],[],0):null;const u="keepAll"===a,g=To(l,n,o,s,r),p=o-g,m=[],f=[];let _=0,v=0,b=0,C=o,y=l.charCodeAt(0),w=e.get(y),S=Eo(y,0,n,s),k=1;Fe.ZG(y)&&(S+=1,y=l.charCodeAt(1),w=e.get(y),k++);for(let t=k;tC&&((0===v||S-b>p)&&(v=i,b=S-a),m[_]=v,f[_]=b,_++,C=b+p,v=0),y=o,w=r}return 0!==_||i&&0!==i.length?(m[_]=d,f[_]=S,new _o(h,c,m,f,g)):null}function Eo(e,t,i,n){return 9===e?i-t%i:Fe.K7(e)||e<32?n:1}function No(e,t){return t-e%t}function Do(e,t,i,n,o){return 32!==i&&(2===t&&2!==n||1!==t&&1===n||!o&&3===t&&2!==n||!o&&3===n&&1!==t)}function To(e,t,i,n,o){let s=0;if(0!==o){const r=Fe.LC(e);if(-1!==r){for(let i=0;ii&&(s=0)}}return s}var Io;const Ao=null===(Io=window.trustedTypes)||void 0===Io?void 0:Io.createPolicy("domLineBreaksComputer",{createHTML:e=>e});class Mo{static create(){return new Mo}constructor(){}createLineBreaksComputer(e,t,i,n,o){const s=[],r=[];return{addRequest:(e,t,i)=>{s.push(e),r.push(t)},finalize:()=>function(e,t,i,n,o,s,r){var a;function l(t){const i=r[t];if(i){const n=Ki.gk.applyInjectedText(e[t],i),o=i.map((e=>e.options)),s=i.map((e=>e.column-1));return new _o(s,o,[n.length],[],0)}return null}if(-1===n){const t=[];for(let i=0,n=e.length;ic?(a=0,l=0):h=c-e}const d=s.substr(a),g=Ro(d,l,i,h,p,u);m[n]=a,f[n]=l,_[n]=d,v[n]=g[0],b[n]=g[1]}const C=p.build(),y=null!==(a=null==Ao?void 0:Ao.createHTML(C))&&void 0!==a?a:C;g.innerHTML=y,g.style.position="absolute",g.style.top="10000","keepAll"===s?(g.style.wordBreak="keep-all",g.style.overflowWrap="anywhere"):(g.style.wordBreak="inherit",g.style.overflowWrap="break-word"),document.body.appendChild(g);const w=document.createRange(),S=Array.prototype.slice.call(g.children,0),k=[];for(let t=0;te.options)),c=h.map((e=>e.column-1))):(a=null,c=null),k[t]=new _o(c,a,e,s,n)}return document.body.removeChild(g),k}(s,e,t,i,n,o,r)}}}function Ro(e,t,i,n,o,s){if(0!==s){const e=String(s);o.appendString('
    ');const r=e.length;let a=t,l=0;const c=[],h=[];let d=0");for(let t=0;t"),c[t]=l,h[t]=a;const n=d;d=t+1"),c[e.length]=l,h[e.length]=a,o.appendString("
    "),[c,h]}function Oo(e,t,i,n){if(i.length<=1)return null;const o=Array.prototype.slice.call(t.children,0),s=[];try{Po(e,o,n,0,null,i.length-1,null,s)}catch(e){return console.log(e),null}return 0===s.length?null:(s.push(i.length),s)}function Po(e,t,i,n,o,s,r,a){if(n===s)return;if(o=o||Fo(e,t,i[n],i[n+1]),r=r||Fo(e,t,i[s],i[s+1]),Math.abs(o[0].top-r[0].top)<=.1)return;if(n+1===s)return void a.push(s);const l=n+(s-n)/2|0,c=Fo(e,t,i[l],i[l+1]);Po(e,t,i,n,o,l,c,a),Po(e,t,i,l,c,s,r,a)}function Fo(e,t,i,n){return e.setStart(t[i/16384|0].firstChild,i%16384),e.setEnd(t[n/16384|0].firstChild,n%16384),e.getClientRects()}var Bo=i(92896),Ho=i(51381),Vo=i(71922);class Wo extends u.JT{constructor(){super(),this._editor=null,this._instantiationService=null,this._instances=this._register(new u.b2),this._pending=new Map,this._finishedInstantiation=[],this._finishedInstantiation[0]=!1,this._finishedInstantiation[1]=!1,this._finishedInstantiation[2]=!1,this._finishedInstantiation[3]=!1}initialize(e,t,i){this._editor=e,this._instantiationService=i;for(const e of t)this._pending.has(e.id)?(0,h.dL)(new Error(`Cannot have two contributions with the same id ${e.id}`)):this._pending.set(e.id,e);this._instantiateSome(0),this._register((0,At.To)((()=>{this._instantiateSome(1)}))),this._register((0,At.To)((()=>{this._instantiateSome(2)}))),this._register((0,At.To)((()=>{this._instantiateSome(3)}),5e3))}saveViewState(){const e={};for(const[t,i]of this._instances)"function"==typeof i.saveViewState&&(e[t]=i.saveViewState());return e}restoreViewState(e){for(const[t,i]of this._instances)"function"==typeof i.restoreViewState&&i.restoreViewState(e[t])}get(e){return this._instantiateById(e),this._instances.get(e)||null}onBeforeInteractionEvent(){this._instantiateSome(2)}onAfterModelAttached(){this._register((0,At.To)((()=>{this._instantiateSome(1)}),50))}_instantiateSome(e){if(this._finishedInstantiation[e])return;this._finishedInstantiation[e]=!0;const t=this._findPendingContributionsByInstantiation(e);for(const e of t)this._instantiateById(e.id)}_findPendingContributionsByInstantiation(e){const t=[];for(const[,i]of this._pending)i.instantiation===e&&t.push(i);return t}_instantiateById(e){const t=this._pending.get(e);if(t){if(this._pending.delete(e),!this._instantiationService||!this._editor)throw new Error("Cannot instantiate contributions before being initialized!");try{const e=this._instantiationService.createInstance(t.ctor,this._editor);this._instances.set(t.id,e),"function"==typeof e.restoreViewState&&0!==t.instantiation&&console.warn(`Editor contribution '${t.id}' should be eager instantiated because it uses saveViewState / restoreViewState.`)}catch(e){(0,h.dL)(e)}}}}var zo=function(e,t){return function(i,n){t(i,n,e)}};let Uo=0;class jo{constructor(e,t,i,n,o,s){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=n,this.listenersToRemove=o,this.attachedView=s}dispose(){(0,u.B9)(this.listenersToRemove),this.model.onBeforeDetached(this.attachedView),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}let Ko=class e extends u.JT{get isSimpleWidget(){return this._configuration.isSimpleWidget}constructor(e,t,i,n,s,r,a,l,u,g,p,m){super(),this.languageConfigurationService=p,this._deliveryQueue=new d.F3,this._contributions=this._register(new Wo),this._onDidDispose=this._register(new d.Q5),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new d.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new d.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new d.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new d.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new d.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new d.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new d.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onDidChangeModel=this._register(new d.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new d.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new d.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new $o(this._contributions,this._deliveryQueue)),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new d.Q5({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new qo({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new qo({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new $o(this._contributions,this._deliveryQueue)),this.onWillType=this._onWillType.event,this._onDidType=this._register(new $o(this._contributions,this._deliveryQueue)),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new $o(this._contributions,this._deliveryQueue)),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new $o(this._contributions,this._deliveryQueue)),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new $o(this._contributions,this._deliveryQueue)),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new $o(this._contributions,this._deliveryQueue)),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new $o(this._contributions,this._deliveryQueue)),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new $o(this._contributions,this._deliveryQueue)),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new $o(this._contributions,this._deliveryQueue)),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new $o(this._contributions,this._deliveryQueue)),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new $o(this._contributions,this._deliveryQueue)),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new $o(this._contributions,this._deliveryQueue)),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new $o(this._contributions,this._deliveryQueue)),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new $o(this._contributions,this._deliveryQueue)),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new $o(this._contributions,this._deliveryQueue)),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new $o(this._contributions,this._deliveryQueue)),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new $o(this._contributions,this._deliveryQueue)),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new d.Q5({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new d.Q5({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new d.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new d.Q5({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._actions=new Map,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection(),s.willCreateCodeEditor();const f=Object.assign({},t);let _;this._domElement=e,this._overflowWidgetsDomNode=f.overflowWidgetsDomNode,delete f.overflowWidgetsDomNode,this._id=++Uo,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(i.isSimpleWidget||!1,f,g)),this._register(this._configuration.onDidChange((e=>{this._onDidChangeConfiguration.fire(e);const t=this._configuration.options;if(e.hasChanged(139)){const e=t.get(139);this._onDidLayoutChange.fire(e)}}))),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=u,this._codeEditorService=s,this._commandService=r,this._themeService=l,this._register(new Go(this,this._contextKeyService)),this._register(new Qo(this,this._contextKeyService,m)),this._instantiationService=n.createChild(new go.y([ho.i6,this._contextKeyService])),this._modelData=null,this._focusTracker=new Yo(e),this._register(this._focusTracker.onChange((()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())}))),this._contentWidgets={},this._overlayWidgets={},_=Array.isArray(i.contributions)?i.contributions:o.Uc.getEditorContributions(),this._contributions.initialize(this,_,this._instantiationService);for(const e of o.Uc.getEditorActions()){if(this._actions.has(e.id)){(0,h.dL)(new Error(`Cannot have two actions with the same id ${e.id}`));continue}const t=new Oi.p(e.id,e.label,e.alias,(0,Et.f6)(e.precondition),(()=>this._instantiationService.invokeFunction((t=>Promise.resolve(e.runEditorCommand(t,this,null))))),this._contextKeyService);this._actions.set(t.id,t)}const v=()=>!this._configuration.options.get(87)&&this._configuration.options.get(34).enabled;this._register(new c.eg(this._domElement,{onDragEnter:()=>{},onDragOver:e=>{if(!v())return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);(null==t?void 0:t.position)&&this.showDropIndicatorAt(t.position)},onDrop:e=>{return t=this,i=void 0,o=function*(){if(!v())return;if(this.removeDropIndicator(),!e.dataTransfer)return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);(null==t?void 0:t.position)&&this._onDropIntoEditor.fire({position:t.position,event:e})},new((n=void 0)||(n=Promise))((function(e,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n((function(e){e(i)}))).then(r,a)}l((o=o.apply(t,i||[])).next())}));var t,i,n,o},onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}writeScreenReaderContent(e){var t;null===(t=this._modelData)||void 0===t||t.view.writeScreenReaderContent(e)}_createConfiguration(e,t,i){return new D(e,t,this._domElement,i)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return Pi.g.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose(),this._actions.clear(),this._contentWidgets={},this._overlayWidgets={},this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(e){return this._instantiationService.invokeFunction(e)}updateOptions(e){this._configuration.updateOptions(e||{})}getOptions(){return this._configuration.options}getOption(e){return this._configuration.options.get(e)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(e){return this._modelData?Bo.w.getWordAtPosition(this._modelData.model,this._configuration.options.get(125),e):null}getValue(e=null){if(!this._modelData)return"";const t=!(!e||!e.preserveBOM);let i=0;return e&&e.lineEnding&&"\n"===e.lineEnding?i=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(i=2),this._modelData.model.getValue(i,t)}setValue(e){this._modelData&&this._modelData.model.setValue(e)}getModel(){return this._modelData?this._modelData.model:null}setModel(e=null){const t=e;if(null===this._modelData&&null===t)return;if(this._modelData&&this._modelData.model===t)return;const i=this.hasTextFocus(),n=this._detachModel();this._attachModel(t),i&&this.hasModel()&&this.focus();const o={oldModelUrl:n?n.uri:null,newModelUrl:t?t.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(o),this._postDetachModelCleanup(n),this._contributions.onAfterModelAttached()}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const e in this._decorationTypeSubtypes){const t=this._decorationTypeSubtypes[e];for(const i in t)this._removeDecorationType(e+"-"+i)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(e,t,i,n){const o=e.model.validatePosition({lineNumber:t,column:i}),s=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(o);return e.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(s.lineNumber,n)}getTopForLineNumber(t,i=!1){return this._modelData?e._getVerticalOffsetForPosition(this._modelData,t,1,i):-1}getTopForPosition(t,i){return this._modelData?e._getVerticalOffsetForPosition(this._modelData,t,i,!1):-1}static _getVerticalOffsetForPosition(e,t,i,n=!1){const o=e.model.validatePosition({lineNumber:t,column:i}),s=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(o);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(s.lineNumber,n)}getBottomForLineNumber(t,i=!1){return this._modelData?e._getVerticalOffsetAfterPosition(this._modelData,t,1,i):-1}setHiddenAreas(e,t){var i;null===(i=this._modelData)||void 0===i||i.viewModel.setHiddenAreas(e.map((e=>de.e.lift(e))),t)}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return ue.i.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e,t="api"){if(this._modelData){if(!he.L.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,n){if(!this._modelData)return;if(!de.e.isIRange(e))throw new Error("Invalid arguments");const o=this._modelData.model.validateRange(e),s=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(o);this._modelData.viewModel.revealRange("api",i,s,t,n)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if("number"!=typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new de.e(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,n){if(!he.L.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new de.e(e.lineNumber,e.column,e.lineNumber,e.column),t,i,n)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e,t="api"){const i=P.Y.isISelection(e),n=de.e.isIRange(e);if(!i&&!n)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e,t);else if(n){const i={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(i,t)}}_setSelectionImpl(e,t){if(!this._modelData)return;const i=new P.Y(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[i])}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,n){if("number"!=typeof e||"number"!=typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new de.e(e,1,t,1),i,!1,n)}revealRange(e,t=0,i=!1,n=!0){this._revealRange(e,i?1:0,n,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,n){if(!de.e.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(de.e.lift(e),t,i,n)}setSelections(e,t="api",i=0){if(this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(let t=0,i=e.length;t0&&this._modelData.viewModel.restoreCursorState(e):this._modelData.viewModel.restoreCursorState([e]),this._contributions.restoreViewState(t.contributionsState||{});const i=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(i)}}getContribution(e){return this._contributions.get(e)}getActions(){return Array.from(this._actions.values())}getSupportedActions(){let e=this.getActions();return e=e.filter((e=>e.isSupported())),e}getAction(e){return this._actions.get(e)||null}trigger(e,t,i){switch(i=i||{},t){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(e);case"type":{const t=i;return void this._type(e,t.text||"")}case"replacePreviousChar":{const t=i;return void this._compositionType(e,t.text||"",t.replaceCharCnt||0,0,0)}case"compositionType":{const t=i;return void this._compositionType(e,t.text||"",t.replacePrevCharCnt||0,t.replaceNextCharCnt||0,t.positionDelta||0)}case"paste":{const t=i;return void this._paste(e,t.text||"",t.pasteOnNewLine||!1,t.multicursorText||null,t.mode||null)}case"cut":return void this._cut(e)}const n=this.getAction(t);n?Promise.resolve(n.run(i)).then(void 0,h.dL):this._modelData&&(this._triggerEditorCommand(e,t,i)||this._triggerCommand(t,i))}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){this._modelData&&0!==t.length&&("keyboard"===e&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),"keyboard"===e&&this._onDidType.fire(t))}_compositionType(e,t,i,n,o){this._modelData&&this._modelData.viewModel.compositionType(t,i,n,o,e)}_paste(e,t,i,n,o){if(!this._modelData||0===t.length)return;const s=this._modelData.viewModel,r=s.getSelection().getStartPosition();s.paste(t,i,n,e);const a=s.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({range:new de.e(r.lineNumber,r.column,a.lineNumber,a.column),languageId:o})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const n=o.Uc.getEditorCommand(t);return!!n&&((i=i||{}).source=e,this._instantiationService.invokeFunction((e=>{Promise.resolve(n.runEditorCommand(e,this,i)).then(void 0,h.dL)})),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&!this._configuration.options.get(87)&&(this._modelData.model.pushStackElement(),!0)}popUndoStop(){return!!this._modelData&&!this._configuration.options.get(87)&&(this._modelData.model.popStackElement(),!0)}executeEdits(e,t,i){if(!this._modelData)return!1;if(this._configuration.options.get(87))return!1;let n;return n=i?Array.isArray(i)?()=>i:i:()=>null,this._modelData.viewModel.executeEdits(e,t,n),!0}executeCommand(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}createDecorationsCollection(e){return new Zo(this,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,(0,x.$J)(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,(0,x.$J)(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){this._modelData&&0!==e.length&&this._modelData.model.changeDecorations((t=>{t.deltaDecorations(e,[])}))}removeDecorationsByType(e){const t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(139)}createOverviewRuler(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarPointerDown(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateScrollFromMouseWheelEvent(e)}layout(e){this._configuration.observeContainer(e),this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const e=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(e)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const e=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(e)}}changeViewZones(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null}getScrolledVisiblePosition(t){if(!this._modelData||!this._modelData.hasRealView)return null;const i=this._modelData.model.validatePosition(t),n=this._configuration.options,o=n.get(139);return{top:e._getVerticalOffsetForPosition(this._modelData,i.lineNumber,i.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(i.lineNumber,i.column)+o.glyphMarginWidth+o.lineNumbersWidth+o.decorationsWidth-this.getScrollLeft(),height:n.get(64)}}getOffsetForColumn(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1}render(e=!1){this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,e)}setAriaOptions(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)}applyFontInfo(e){(0,Be.N)(e,this._configuration.options.get(48))}setBanner(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e)return void(this._modelData=null);const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount());const i=e.onBeforeAttached(),n=new no(this._id,this._configuration,e,Mo.create(),yo.create(this._configuration.options),(e=>c.jL(e)),this.languageConfigurationService,this._themeService,i);t.push(e.onWillDispose((()=>this.setModel(null)))),t.push(n.onEvent((t=>{switch(t.kind){case 0:this._onDidContentSizeChange.fire(t);break;case 1:this._editorTextFocus.setValue(t.hasFocus);break;case 2:this._onDidScrollChange.fire(t);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{if(t.reachedMaxCursorCount){const e=this.getOption(77),t=l.NC("cursors.maximum","The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.",e);this._notificationService.prompt(po.zb.Warning,t,[{label:"Find and Replace",run:()=>{this._commandService.executeCommand("editor.action.startFindReplaceAction")}},{label:l.NC("goToSetting","Increase Multi Cursor Limit"),run:()=>{this._commandService.executeCommand("workbench.action.openSettings2",{query:"editor.multiCursorLimit"})}}])}const e=[];for(let i=0,n=t.selections.length;i{this._paste("keyboard",e,t,i,n)},type:e=>{this._type("keyboard",e)},compositionType:(e,t,i,n)=>{this._compositionType("keyboard",e,t,i,n)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(e,t,i,n)=>{const o={text:e,pasteOnNewLine:t,multicursorText:i,mode:n};this._commandService.executeCommand("paste",o)},type:e=>{const t={text:e};this._commandService.executeCommand("type",t)},compositionType:(e,t,i,n)=>{if(i||n){const o={text:e,replacePrevCharCnt:t,replaceNextCharCnt:i,positionDelta:n};this._commandService.executeCommand("compositionType",o)}else{const i={text:e,replaceCharCnt:t};this._commandService.executeCommand("replacePreviousChar",i)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new tt(e.coordinatesConverter);return i.onKeyDown=e=>this._onKeyDown.fire(e),i.onKeyUp=e=>this._onKeyUp.fire(e),i.onContextMenu=e=>this._onContextMenu.fire(e),i.onMouseMove=e=>this._onMouseMove.fire(e),i.onMouseLeave=e=>this._onMouseLeave.fire(e),i.onMouseDown=e=>this._onMouseDown.fire(e),i.onMouseUp=e=>this._onMouseUp.fire(e),i.onMouseDrag=e=>this._onMouseDrag.fire(e),i.onMouseDrop=e=>this._onMouseDrop.fire(e),i.onMouseDropCanceled=e=>this._onMouseDropCanceled.fire(e),i.onMouseWheel=e=>this._onMouseWheel.fire(e),[new Ri(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode),!0]}_postDetachModelCleanup(e){null==e||e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(!this._modelData)return null;const e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.contains(t)&&this._domElement.removeChild(t),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),e}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return null!==this._modelData}showDropIndicatorAt(t){const i=[{range:new de.e(t.lineNumber,t.column,t.lineNumber,t.column),options:e.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(i),this.revealPosition(t,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}};Ko.dropIntoEditorDecorationOptions=Bi.qx.register({description:"workbench-dnd-target",className:"dnd-target"}),Ko=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([zo(3,uo.TG),zo(4,O.$),zo(5,co.H),zo(6,ho.i6),zo(7,We.XE),zo(8,po.lT),zo(9,N.F),zo(10,Ho.c_),zo(11,Vo.p)],Ko);class qo extends u.JT{constructor(e){super(),this._emitterOptions=e,this._onDidChangeToTrue=this._register(new d.Q5(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new d.Q5(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())}}class $o extends d.Q5{constructor(e,t){super({deliveryQueue:t}),this._contributions=e}fire(e){this._contributions.onBeforeInteractionEvent(),super.fire(e)}}class Go extends u.JT{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=Fi.u.editorSimpleInput.bindTo(t),this._editorFocus=Fi.u.focus.bindTo(t),this._textInputFocus=Fi.u.textInputFocus.bindTo(t),this._editorTextFocus=Fi.u.editorTextFocus.bindTo(t),this._editorTabMovesFocus=Fi.u.tabMovesFocus.bindTo(t),this._editorReadonly=Fi.u.readOnly.bindTo(t),this._inDiffEditor=Fi.u.inDiffEditor.bindTo(t),this._editorColumnSelection=Fi.u.columnSelection.bindTo(t),this._hasMultipleSelections=Fi.u.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=Fi.u.hasNonEmptySelection.bindTo(t),this._canUndo=Fi.u.canUndo.bindTo(t),this._canRedo=Fi.u.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromConfig()))),this._register(this._editor.onDidChangeCursorSelection((()=>this._updateFromSelection()))),this._register(this._editor.onDidFocusEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidFocusEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidChangeModel((()=>this._updateFromModel()))),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromModel()))),this._register(k.n.onDidChangeTabFocus((()=>this._editorTabMovesFocus.set(k.n.getTabFocusMode("editorFocus"))))),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._editorTabMovesFocus.set(k.n.getTabFocusMode("editorFocus")),this._editorReadonly.set(e.get(87)),this._inDiffEditor.set(e.get(59)),this._editorColumnSelection.set(e.get(20))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some((e=>!e.isEmpty())))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class Qo extends u.JT{constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._languageFeaturesService=i,this._langId=Fi.u.languageId.bindTo(t),this._hasCompletionItemProvider=Fi.u.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=Fi.u.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=Fi.u.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=Fi.u.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=Fi.u.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=Fi.u.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=Fi.u.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=Fi.u.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=Fi.u.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=Fi.u.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=Fi.u.hasReferenceProvider.bindTo(t),this._hasRenameProvider=Fi.u.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=Fi.u.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=Fi.u.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=Fi.u.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=Fi.u.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=Fi.u.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=Fi.u.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInWalkThrough=Fi.u.isInWalkThroughSnippet.bindTo(t);const n=()=>this._update();this._register(e.onDidChangeModel(n)),this._register(e.onDidChangeModelLanguage(n)),this._register(i.completionProvider.onDidChange(n)),this._register(i.codeActionProvider.onDidChange(n)),this._register(i.codeLensProvider.onDidChange(n)),this._register(i.definitionProvider.onDidChange(n)),this._register(i.declarationProvider.onDidChange(n)),this._register(i.implementationProvider.onDidChange(n)),this._register(i.typeDefinitionProvider.onDidChange(n)),this._register(i.hoverProvider.onDidChange(n)),this._register(i.documentHighlightProvider.onDidChange(n)),this._register(i.documentSymbolProvider.onDidChange(n)),this._register(i.referenceProvider.onDidChange(n)),this._register(i.renameProvider.onDidChange(n)),this._register(i.documentFormattingEditProvider.onDidChange(n)),this._register(i.documentRangeFormattingEditProvider.onDidChange(n)),this._register(i.signatureHelpProvider.onDidChange(n)),this._register(i.inlayHintsProvider.onDidChange(n)),n()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents((()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()}))}_update(){const e=this._editor.getModel();e?this._contextKeyService.bufferChangeEvents((()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(e)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(e)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(e)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(e)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(e)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(e)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(e)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(e)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(e)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(e)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(e)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(e)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(e)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(e)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(e)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(e).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._isInWalkThrough.set(e.uri.scheme===g.lg.walkThroughSnippet)})):this.reset()}}class Yo extends u.JT{constructor(e){super(),this._onChange=this._register(new d.Q5),this.onChange=this._onChange.event,this._hasFocus=!1,this._domFocusTracker=this._register(c.go(e)),this._register(this._domFocusTracker.onDidFocus((()=>{this._hasFocus=!0,this._onChange.fire(void 0)}))),this._register(this._domFocusTracker.onDidBlur((()=>{this._hasFocus=!1,this._onChange.fire(void 0)})))}hasFocus(){return this._hasFocus}}class Zo{get length(){return this._decorationIds.length}constructor(e,t){this._editor=e,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(t)&&t.length>0&&this.set(t)}onDidChange(e,t,i){return this._editor.onDidChangeModelDecorations((i=>{this._isChangingDecorations||e.call(t,i)}),i)}getRange(e){return this._editor.hasModel()?e>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[e]):null}getRanges(){if(!this._editor.hasModel())return[];const e=this._editor.getModel(),t=[];for(const i of this._decorationIds){const n=e.getDecorationRange(i);n&&t.push(n)}return t}has(e){return this._decorationIds.includes(e.id)}clear(){0!==this._decorationIds.length&&this.set([])}set(e){try{this._isChangingDecorations=!0,this._editor.changeDecorations((t=>{this._decorationIds=t.deltaDecorations(this._decorationIds,e)}))}finally{this._isChangingDecorations=!1}return this._decorationIds}}const Xo=encodeURIComponent("");function es(e){return Xo+encodeURIComponent(e.toString())+Jo}const ts=encodeURIComponent('');(0,We.Ic)(((e,t)=>{const i=e.getColor(jt.lXJ);i&&t.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${es(i)}") repeat-x bottom left; }`);const n=e.getColor(jt.uoC);n&&t.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${es(n)}") repeat-x bottom left; }`);const o=e.getColor(jt.c63);o&&t.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${es(o)}") repeat-x bottom left; }`);const s=e.getColor(jt.Dut);s&&t.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${function(e){return ts+encodeURIComponent(e.toString())+is}(s)}") no-repeat bottom left; }`);const r=e.getColor(ze.zu);r&&t.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${r.rgba.a}; }`)}))},84527:(e,t,i)=>{"use strict";i.d(t,{H:()=>m});var n=i(36248),o=i(11640),s=i(51998),r=i(94565),a=i(93983),l=i(72065),c=i(59422),h=i(97781),d=i(31106),u=i(51381),g=i(71922),p=function(e,t){return function(i,n){t(i,n,e)}};let m=class extends s.Gm{constructor(e,t,i,n,o,s,r,a,l,c,h,d,u){super(e,Object.assign(Object.assign({},n.getRawOptions()),{overflowWidgetsDomNode:n.getOverflowWidgetsDomNode()}),i,o,s,r,a,l,c,h,d,u),this._parentEditor=n,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(n.onDidChangeConfiguration((e=>this._onParentConfigurationChanged(e))))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){n.jB(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};m=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([p(4,l.TG),p(5,o.$),p(6,r.H),p(7,a.i6),p(8,h.XE),p(9,c.lT),p(10,d.F),p(11,u.c_),p(12,g.p)],m)},61329:(e,t,i)=>{"use strict";i.d(t,{OY:()=>s,Sj:()=>r,T4:()=>o,Uo:()=>a,hP:()=>l});var n=i(3860);class o{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.Y.fromPositions(i.getEndPosition())}}class s{constructor(e,t){this._range=e,this._text=t}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.Y.fromRange(i,0)}}class r{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.Y.fromPositions(i.getStartPosition())}}class a{constructor(e,t,i,n,o=!1){this._range=e,this._text=t,this._columnDeltaOffset=n,this._lineNumberDeltaOffset=i,this.insertsAutoWhitespace=o}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.Y.fromPositions(i.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}}class l{constructor(e,t,i,n=!1){this._range=e,this._text=t,this._initialSelection=i,this._forceMoveMarkers=n,this._selectionId=null}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}},10291:(e,t,i)=>{"use strict";i.d(t,{U:()=>d});var n=i(97295),o=i(7988),s=i(24314),r=i(3860),a=i(1615),l=i(51381);const c=Object.create(null);function h(e,t){if(t<=0)return"";c[e]||(c[e]=["",e]);const i=c[e];for(let n=i.length;n<=t;n++)i[n]=i[n-1]+e;return i[t]}let d=class e{static unshiftIndent(e,t,i,n,s){const r=o.i.visibleColumnFromColumn(e,t,i);if(s){const e=h(" ",n);return h(e,o.i.prevIndentTabStop(r,n)/n)}return h("\t",o.i.prevRenderTabStop(r,i)/i)}static shiftIndent(e,t,i,n,s){const r=o.i.visibleColumnFromColumn(e,t,i);if(s){const e=h(" ",n);return h(e,o.i.nextIndentTabStop(r,n)/n)}return h("\t",o.i.nextRenderTabStop(r,i)/i)}constructor(e,t,i){this._languageConfigurationService=i,this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}_addEditOperation(e,t,i){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,i):e.addEditOperation(t,i)}getEditOperations(t,i){const r=this._selection.startLineNumber;let l=this._selection.endLineNumber;1===this._selection.endColumn&&r!==l&&(l-=1);const{tabSize:c,indentSize:d,insertSpaces:u}=this._opts,g=r===l;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(t.getLineContent(r))&&(this._useLastEditRangeForCursorEndPosition=!0);let h=0,p=0;for(let m=r;m<=l;m++,h=p){p=0;const l=t.getLineContent(m);let f,_=n.LC(l);if((!this._opts.isUnshift||0!==l.length&&0!==_)&&(g||this._opts.isUnshift||0!==l.length)){if(-1===_&&(_=l.length),m>1&&o.i.visibleColumnFromColumn(l,_+1,c)%d!=0&&t.tokenization.isCheapToTokenize(m-1)){const e=(0,a.A)(this._opts.autoIndent,t,new s.e(m-1,t.getLineMaxColumn(m-1),m-1,t.getLineMaxColumn(m-1)),this._languageConfigurationService);if(e){if(p=h,e.appendText)for(let t=0,i=e.appendText.length;t=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(u=2,g=l.c_,function(e,t){g(e,t,u)})],d)},800:(e,t,i)=>{"use strict";i.d(t,{Pe:()=>p,ei:()=>g,wk:()=>l});var n=i(64141),o=i(22075),s=i(63580),r=i(23193),a=i(89872);const l=Object.freeze({id:"editor",order:5,type:"object",title:s.NC("editorConfigurationTitle","Editor"),scope:5}),c=Object.assign(Object.assign({},l),{properties:{"editor.tabSize":{type:"number",default:o.D.tabSize,minimum:1,markdownDescription:s.NC("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.indentSize":{anyOf:[{type:"string",enum:["tabSize"]},{type:"number",minimum:1}],default:"tabSize",markdownDescription:s.NC("indentSize",'The number of spaces used for indentation or `"tabSize"` to use the value from `#editor.tabSize#`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.')},"editor.insertSpaces":{type:"boolean",default:o.D.insertSpaces,markdownDescription:s.NC("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.detectIndentation":{type:"boolean",default:o.D.detectIndentation,markdownDescription:s.NC("detectIndentation","Controls whether {0} and {1} will be automatically detected when a file is opened based on the file contents.","`#editor.tabSize#`","`#editor.insertSpaces#`")},"editor.trimAutoWhitespace":{type:"boolean",default:o.D.trimAutoWhitespace,description:s.NC("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:o.D.largeFileOptimizations,description:s.NC("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:s.NC("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.wordBasedSuggestionsMode":{enum:["currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[s.NC("wordBasedSuggestionsMode.currentDocument","Only suggest words from the active document."),s.NC("wordBasedSuggestionsMode.matchingDocuments","Suggest words from all open documents of the same language."),s.NC("wordBasedSuggestionsMode.allDocuments","Suggest words from all open documents.")],description:s.NC("wordBasedSuggestionsMode","Controls from which documents word based completions are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[s.NC("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),s.NC("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),s.NC("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:s.NC("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:s.NC("stablePeek","Keep peek editors open even when double-clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:s.NC("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.experimental.asyncTokenization":{type:"boolean",default:!1,description:s.NC("editor.experimental.asyncTokenization","Controls whether the tokenization should happen asynchronously on a web worker."),tags:["experimental"]},"editor.experimental.asyncTokenizationLogging":{type:"boolean",default:!1,description:s.NC("editor.experimental.asyncTokenizationLogging","Controls whether async tokenization should be logged. For debugging only.")},"editor.experimental.asyncTokenizationVerification":{type:"boolean",default:!1,description:s.NC("editor.experimental.asyncTokenizationVerification","Controls whether async tokenization should be verified against legacy background tokenization. Might slow down tokenization. For debugging only.")},"editor.language.brackets":{type:["array","null"],default:null,description:s.NC("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:s.NC("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:s.NC("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:s.NC("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:s.NC("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:s.NC("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:s.NC("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:50,description:s.NC("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:s.NC("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:!0,description:s.NC("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:s.NC("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:s.NC("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:s.NC("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:"inherit",markdownEnumDescriptions:[s.NC("wordWrap.off","Lines will never wrap."),s.NC("wordWrap.on","Lines will wrap at the viewport width."),s.NC("wordWrap.inherit","Lines will wrap according to the {0} setting.","`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["legacy","advanced"],default:"legacy",markdownEnumDescriptions:[s.NC("diffAlgorithm.legacy","Uses the legacy diffing algorithm."),s.NC("diffAlgorithm.advanced","Uses the advanced diffing algorithm.")],tags:["experimental"]}}});for(const e of n.Bc){const t=e.schema;if(void 0!==t)if(void 0!==(h=t).type||void 0!==h.anyOf)c.properties[`editor.${e.name}`]=t;else for(const e in t)Object.hasOwnProperty.call(t,e)&&(c.properties[e]=t[e])}var h;let d=null;function u(){return null===d&&(d=Object.create(null),Object.keys(c.properties).forEach((e=>{d[e]=!0}))),d}function g(e){return u()[`editor.${e}`]||!1}function p(e){return u()[`diffEditor.${e}`]||!1}a.B.as(r.IP.Configuration).registerConfiguration(c)},64141:(e,t,i)=>{"use strict";i.d(t,{$J:()=>A,Av:()=>R,BH:()=>V,Bb:()=>h,Bc:()=>B,Bo:()=>D,LJ:()=>d,L_:()=>y,NY:()=>k,O7:()=>_,Zc:()=>b,d2:()=>E,gk:()=>I,hL:()=>F,n0:()=>N,qt:()=>O,rk:()=>g,y0:()=>c});var n=i(63580),o=i(1432),s=i(270),r=i(9488),a=i(36248),l=i(22075);const c=8;class h{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class d{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class u{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return p(e,t)}compute(e,t,i){return i}}class g{constructor(e,t){this.newValue=e,this.didChange=t}}function p(e,t){if("object"!=typeof e||"object"!=typeof t||!e||!t)return new g(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){const i=Array.isArray(e)&&Array.isArray(t)&&r.fS(e,t);return new g(t,!i)}let i=!1;for(const n in t)if(t.hasOwnProperty(n)){const o=p(e[n],t[n]);o.didChange&&(e[n]=o.newValue,i=!0)}return new g(e,i)}class m{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return p(e,t)}validate(e){return this.defaultValue}}class f{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return p(e,t)}validate(e){return void 0===e?this.defaultValue:e}compute(e,t,i){return i}}function _(e,t){return void 0===e?t:"false"!==e&&Boolean(e)}class v extends f{constructor(e,t,i,n=void 0){void 0!==n&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return _(e,this.defaultValue)}}function b(e,t,i,n){if(void 0===e)return t;let o=parseInt(e,10);return isNaN(o)?t:(o=Math.max(i,o),o=Math.min(n,o),0|o)}class C extends f{static clampedInt(e,t,i,n){return b(e,t,i,n)}constructor(e,t,i,n,o,s=void 0){void 0!==s&&(s.type="integer",s.default=i,s.minimum=n,s.maximum=o),super(e,t,i,s),this.minimum=n,this.maximum=o}validate(e){return C.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function y(e,t,i,n){if(void 0===e)return t;const o=w.float(e,t);return w.clamp(o,i,n)}class w extends f{static clamp(e,t,i){return ei?i:e}static float(e,t){if("number"==typeof e)return e;if(void 0===e)return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,o){void 0!==o&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}validate(e){return this.validationFn(w.float(e,this.defaultValue))}}class S extends f{static string(e,t){return"string"!=typeof e?t:e}constructor(e,t,i,n=void 0){void 0!==n&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return S.string(e,this.defaultValue)}}function k(e,t,i,n){return"string"!=typeof e?t:n&&e in n?n[e]:-1===i.indexOf(e)?t:e}class x extends f{constructor(e,t,i,n,o=void 0){void 0!==o&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return k(e,this.defaultValue,this._allowedValues)}}class L extends u{constructor(e,t,i,n,o,s,r=void 0){void 0!==r&&(r.type="string",r.enum=o,r.default=n),super(e,t,i,r),this._allowedValues=o,this._convert=s}validate(e){return"string"!=typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}var E;!function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(E||(E={}));class N extends u{constructor(){super(49,"fontLigatures",N.OFF,{anyOf:[{type:"boolean",description:n.NC("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:n.NC("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:n.NC("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return void 0===e?this.defaultValue:"string"==typeof e?"false"===e?N.OFF:"true"===e?N.ON:e:Boolean(e)?N.ON:N.OFF}}N.OFF='"liga" off, "calt" off',N.ON='"liga" on, "calt" on';class D extends u{constructor(){super(52,"fontVariations",D.OFF,{anyOf:[{type:"boolean",description:n.NC("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:n.NC("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:n.NC("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return void 0===e?this.defaultValue:"string"==typeof e?"false"===e?D.OFF:"true"===e?D.TRANSLATE:e:Boolean(e)?D.TRANSLATE:D.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}D.OFF="normal",D.TRANSLATE="translate";class T extends u{constructor(){super(51,"fontWeight",F.fontWeight,{anyOf:[{type:"number",minimum:T.MINIMUM_VALUE,maximum:T.MAXIMUM_VALUE,errorMessage:n.NC("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:T.SUGGESTION_VALUES}],default:F.fontWeight,description:n.NC("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(C.clampedInt(e,F.fontWeight,T.MINIMUM_VALUE,T.MAXIMUM_VALUE))}}T.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],T.MINIMUM_VALUE=1,T.MAXIMUM_VALUE=1e3;class I extends m{constructor(){super(139)}compute(e,t,i){return I.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const o=(i+e.viewLineCount+n)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:o,minimapLineCount:Math.floor(e.viewLineCount/o)}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const s=t.stableMinimapLayoutInput,r=s&&e.outerHeight===s.outerHeight&&e.lineHeight===s.lineHeight&&e.typicalHalfwidthCharacterWidth===s.typicalHalfwidthCharacterWidth&&e.pixelRatio===s.pixelRatio&&e.scrollBeyondLastLine===s.scrollBeyondLastLine&&e.paddingTop===s.paddingTop&&e.paddingBottom===s.paddingBottom&&e.minimap.enabled===s.minimap.enabled&&e.minimap.side===s.minimap.side&&e.minimap.size===s.minimap.size&&e.minimap.showSlider===s.minimap.showSlider&&e.minimap.renderCharacters===s.minimap.renderCharacters&&e.minimap.maxColumn===s.minimap.maxColumn&&e.minimap.scale===s.minimap.scale&&e.verticalScrollbarWidth===s.verticalScrollbarWidth&&e.isViewportWrapping===s.isViewportWrapping,a=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,h=e.scrollBeyondLastLine,d=e.minimap.renderCharacters;let u=o>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,f=e.verticalScrollbarWidth,_=e.viewLineCount,v=e.remainingWidth,b=e.isViewportWrapping,C=d?2:3;let y=Math.floor(o*n);const w=y/o;let S=!1,k=!1,x=C*u,L=u/o,E=1;if("fill"===p||"fit"===p){const{typicalViewportLineCount:i,extraLinesBeforeFirstLine:s,extraLinesBeyondLastLine:l,desiredRatio:c,minimapLineCount:d}=I.computeContainedMinimapLineCount({viewLineCount:_,scrollBeyondLastLine:h,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:a,pixelRatio:o});if(_/d>1)S=!0,k=!0,u=1,x=1,L=u/o;else{let n=!1,h=u+1;if("fit"===p){const e=Math.ceil((s+_+l)*x);b&&r&&v<=t.stableFitRemainingWidth?(n=!0,h=t.stableFitMaxMinimapScale):n=e>y}if("fill"===p||n){S=!0;const n=u;x=Math.min(a*o,Math.max(1,Math.floor(1/c))),b&&r&&v<=t.stableFitRemainingWidth&&(h=t.stableFitMaxMinimapScale),u=Math.min(h,Math.max(1,Math.floor(x/C))),u>n&&(E=Math.min(2,u/n)),L=u/o/E,y=Math.ceil(Math.max(i,s+_+l)*x),b?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const N=Math.floor(g*L),D=Math.min(N,Math.max(0,Math.floor((v-f-2)*L/(l+L)))+c);let T=Math.floor(o*D);const A=T/o;return T=Math.floor(T*E),{renderMinimap:d?1:2,minimapLeft:"left"===m?0:i-D-f,minimapWidth:D,minimapHeightIsEditorHeight:S,minimapIsSampling:k,minimapScale:u,minimapLineHeight:x,minimapCanvasInnerWidth:T,minimapCanvasInnerHeight:y,minimapCanvasOuterWidth:A,minimapCanvasOuterHeight:w}}static computeLayout(e,t){const i=0|t.outerWidth,n=0|t.outerHeight,o=0|t.lineHeight,s=0|t.lineNumbersDigitCount,r=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,l=t.pixelRatio,c=t.viewLineCount,h=e.get(131),u="inherit"===h?e.get(130):h,g="inherit"===u?e.get(126):u,p=e.get(129),m=t.isDominatedByLongLines,f=e.get(55),_=0!==e.get(65).renderType,v=e.get(66),b=e.get(100),C=e.get(81),y=e.get(70),w=e.get(98),S=w.verticalScrollbarSize,k=w.verticalHasArrows,x=w.arrowSize,L=w.horizontalScrollbarSize,E=e.get(41),N="never"!==e.get(105);let D=e.get(63);E&&N&&(D+=16);let T=0;if(_){const e=Math.max(s,v);T=Math.round(e*a)}let A=0;f&&(A=o*t.glyphMarginDecorationLaneCount);let M=0,R=M+A,O=R+T,P=O+D;const F=i-A-T-D;let B=!1,H=!1,V=-1;"inherit"===u&&m?(B=!0,H=!0):"on"===g||"bounded"===g?H=!0:"wordWrapColumn"===g&&(V=p);const W=I._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:r,pixelRatio:l,scrollBeyondLastLine:b,paddingTop:C.top,paddingBottom:C.bottom,minimap:y,verticalScrollbarWidth:S,viewLineCount:c,remainingWidth:F,isViewportWrapping:H},t.memory||new d);0!==W.renderMinimap&&0===W.minimapLeft&&(M+=W.minimapWidth,R+=W.minimapWidth,O+=W.minimapWidth,P+=W.minimapWidth);const z=F-W.minimapWidth,U=Math.max(1,Math.floor((z-S-2)/r)),j=k?x:0;return H&&(V=Math.max(1,U),"bounded"===g&&(V=Math.min(V,p))),{width:i,height:n,glyphMarginLeft:M,glyphMarginWidth:A,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:R,lineNumbersWidth:T,decorationsLeft:O,decorationsWidth:D,contentLeft:P,contentWidth:z,minimap:W,viewportColumn:U,isWordWrapMinified:B,isViewportWrapping:H,wrappingColumn:V,verticalScrollbarWidth:S,horizontalScrollbarHeight:L,overviewRuler:{top:j,width:S,height:n-2*j,right:0}}}}function A(e){const t=e.get(93);return"editable"===t?e.get(87):"on"!==t}function M(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}const R="inUntrustedWorkspace",O={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};function P(e,t,i){const n=i.indexOf(e);return-1===n?t:i[n]}const F={fontFamily:o.dz?"Menlo, Monaco, 'Courier New', monospace":o.IJ?"'Droid Sans Mono', 'monospace', monospace":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:o.dz?12:14,lineHeight:0,letterSpacing:0},B=[];function H(e){return B[e.id]=e,e}const V={acceptSuggestionOnCommitCharacter:H(new v(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:n.NC("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:H(new x(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",n.NC("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:n.NC("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:H(new class extends u{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[n.NC("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),n.NC("accessibilitySupport.on","Optimize for usage with a Screen Reader"),n.NC("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:n.NC("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return 0===i?e.accessibilitySupport:i}}),accessibilityPageSize:H(new C(3,"accessibilityPageSize",10,1,1073741824,{description:n.NC("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:H(new S(4,"ariaLabel",n.NC("editorViewAccessibleLabel","Editor content"))),screenReaderAnnounceInlineSuggestion:H(new v(6,"screenReaderAnnounceInlineSuggestion",!1,{description:n.NC("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader. Note that this does not work on macOS with VoiceOver."),tags:["accessibility"]})),autoClosingBrackets:H(new x(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",n.NC("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),n.NC("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:n.NC("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:H(new x(7,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",n.NC("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:n.NC("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:H(new x(8,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",n.NC("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:n.NC("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:H(new x(9,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",n.NC("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),n.NC("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:n.NC("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:H(new L(10,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[n.NC("editor.autoIndent.none","The editor will not insert indentation automatically."),n.NC("editor.autoIndent.keep","The editor will keep the current line's indentation."),n.NC("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),n.NC("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),n.NC("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:n.NC("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:H(new v(11,"automaticLayout",!1)),autoSurround:H(new x(12,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[n.NC("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),n.NC("editor.autoSurround.quotes","Surround with quotes but not brackets."),n.NC("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:n.NC("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:H(new class extends u{constructor(){const e={enabled:l.D.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:l.D.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(13,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:n.NC("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:n.NC("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:_(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}),bracketPairGuides:H(new class extends u{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(14,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[n.NC("editor.guides.bracketPairs.true","Enables bracket pair guides."),n.NC("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),n.NC("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:n.NC("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[n.NC("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),n.NC("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),n.NC("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:n.NC("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:n.NC("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:n.NC("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[n.NC("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),n.NC("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),n.NC("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:n.NC("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{bracketPairs:P(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:P(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:_(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:_(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:P(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}),stickyTabStops:H(new v(111,"stickyTabStops",!1,{description:n.NC("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:H(new v(15,"codeLens",!0,{description:n.NC("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:H(new S(16,"codeLensFontFamily","",{description:n.NC("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:H(new C(17,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:n.NC("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:H(new v(18,"colorDecorators",!0,{description:n.NC("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorsLimit:H(new C(19,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:n.NC("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:H(new v(20,"columnSelection",!1,{description:n.NC("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:H(new class extends u{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(21,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:n.NC("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:n.NC("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{insertSpace:_(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:_(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:H(new v(22,"contextmenu",!0)),copyWithSyntaxHighlighting:H(new v(23,"copyWithSyntaxHighlighting",!0,{description:n.NC("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:H(new L(24,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:n.NC("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:H(new x(25,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[n.NC("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),n.NC("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),n.NC("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:n.NC("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:H(new L(26,"cursorStyle",E.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return E.Line;case"block":return E.Block;case"underline":return E.Underline;case"line-thin":return E.LineThin;case"block-outline":return E.BlockOutline;case"underline-thin":return E.UnderlineThin}}),{description:n.NC("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:H(new C(27,"cursorSurroundingLines",0,0,1073741824,{description:n.NC("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:H(new x(28,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[n.NC("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),n.NC("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:n.NC("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:H(new C(29,"cursorWidth",0,0,1073741824,{markdownDescription:n.NC("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:H(new v(30,"disableLayerHinting",!1)),disableMonospaceOptimizations:H(new v(31,"disableMonospaceOptimizations",!1)),domReadOnly:H(new v(32,"domReadOnly",!1)),dragAndDrop:H(new v(33,"dragAndDrop",!0,{description:n.NC("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:H(new class extends v{constructor(){super(35,"emptySelectionClipboard",!0,{description:n.NC("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}),dropIntoEditor:H(new class extends u{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(34,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:n.NC("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:n.NC("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[n.NC("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),n.NC("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),showDropSelector:k(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}),stickyScroll:H(new class extends u{constructor(){const e={enabled:!1,maxLineCount:5,defaultModel:"outlineModel"};super(110,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:n.NC("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:n.NC("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:n.NC("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),maxLineCount:C.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,10),defaultModel:k(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"])}}}),experimentalWhitespaceRendering:H(new x(36,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[n.NC("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),n.NC("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),n.NC("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:n.NC("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:H(new S(37,"extraEditorClassName","")),fastScrollSensitivity:H(new w(38,"fastScrollSensitivity",5,(e=>e<=0?5:e),{markdownDescription:n.NC("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:H(new class extends u{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(39,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:n.NC("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[n.NC("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),n.NC("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),n.NC("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:n.NC("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[n.NC("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),n.NC("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),n.NC("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:n.NC("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:n.NC("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:o.dz},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:n.NC("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:n.NC("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:_(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"==typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":k(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"==typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":k(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:_(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:_(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:_(t.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:H(new v(40,"fixedOverflowWidgets",!1)),folding:H(new v(41,"folding",!0,{description:n.NC("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:H(new x(42,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[n.NC("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),n.NC("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:n.NC("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:H(new v(43,"foldingHighlight",!0,{description:n.NC("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:H(new v(44,"foldingImportsByDefault",!1,{description:n.NC("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:H(new C(45,"foldingMaximumRegions",5e3,10,65e3,{description:n.NC("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:H(new v(46,"unfoldOnClickAfterEndOfLine",!1,{description:n.NC("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:H(new S(47,"fontFamily",F.fontFamily,{description:n.NC("fontFamily","Controls the font family.")})),fontInfo:H(new class extends m{constructor(){super(48)}compute(e,t,i){return e.fontInfo}}),fontLigatures2:H(new N),fontSize:H(new class extends f{constructor(){super(50,"fontSize",F.fontSize,{type:"number",minimum:6,maximum:100,default:F.fontSize,description:n.NC("fontSize","Controls the font size in pixels.")})}validate(e){const t=w.float(e,this.defaultValue);return 0===t?F.fontSize:w.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}),fontWeight:H(new T),fontVariations:H(new D),formatOnPaste:H(new v(53,"formatOnPaste",!1,{description:n.NC("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:H(new v(54,"formatOnType",!1,{description:n.NC("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:H(new v(55,"glyphMargin",!0,{description:n.NC("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:H(new class extends u{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[n.NC("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),n.NC("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),n.NC("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(56,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:n.NC("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:n.NC("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:n.NC("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:n.NC("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:n.NC("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:n.NC("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:n.NC("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:n.NC("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:n.NC("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:n.NC("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:n.NC("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,s;if(!e||"object"!=typeof e)return this.defaultValue;const r=e;return{multiple:k(r.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=r.multipleDefinitions)&&void 0!==t?t:k(r.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(i=r.multipleTypeDefinitions)&&void 0!==i?i:k(r.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(n=r.multipleDeclarations)&&void 0!==n?n:k(r.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(o=r.multipleImplementations)&&void 0!==o?o:k(r.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(s=r.multipleReferences)&&void 0!==s?s:k(r.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:S.string(r.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:S.string(r.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:S.string(r.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:S.string(r.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:S.string(r.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}),hideCursorInOverviewRuler:H(new v(57,"hideCursorInOverviewRuler",!1,{description:n.NC("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:H(new class extends u{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(58,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:n.NC("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:n.NC("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:n.NC("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:n.NC("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),delay:C.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:_(t.sticky,this.defaultValue.sticky),above:_(t.above,this.defaultValue.above)}}}),inDiffEditor:H(new v(59,"inDiffEditor",!1)),letterSpacing:H(new w(61,"letterSpacing",F.letterSpacing,(e=>w.clamp(e,-5,20)),{description:n.NC("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:H(new class extends u{constructor(){const e={enabled:!0};super(62,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:n.NC("codeActions","Enables the Code Action lightbulb in the editor.")}})}validate(e){return e&&"object"==typeof e?{enabled:_(e.enabled,this.defaultValue.enabled)}:this.defaultValue}}),lineDecorationsWidth:H(new class extends u{constructor(){super(63,"lineDecorationsWidth",10)}validate(e){return"string"==typeof e&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):C.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?C.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}),lineHeight:H(new class extends w{constructor(){super(64,"lineHeight",F.lineHeight,(e=>w.clamp(e,0,150)),{markdownDescription:n.NC("lineHeight","Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")})}compute(e,t,i){return e.fontInfo.lineHeight}}),lineNumbers:H(new class extends u{constructor(){super(65,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[n.NC("lineNumbers.off","Line numbers are not rendered."),n.NC("lineNumbers.on","Line numbers are rendered as absolute number."),n.NC("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),n.NC("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:n.NC("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return void 0!==e&&("function"==typeof e?(t=4,i=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:i}}}),lineNumbersMinChars:H(new C(66,"lineNumbersMinChars",5,1,300)),linkedEditing:H(new v(67,"linkedEditing",!1,{description:n.NC("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:H(new v(68,"links",!0,{description:n.NC("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:H(new x(69,"matchBrackets","always",["always","near","never"],{description:n.NC("matchBrackets","Highlight matching brackets.")})),minimap:H(new class extends u{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(70,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:n.NC("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:n.NC("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[n.NC("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),n.NC("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),n.NC("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:n.NC("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:n.NC("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:n.NC("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:n.NC("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:n.NC("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:n.NC("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),autohide:_(t.autohide,this.defaultValue.autohide),size:k(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:k(t.side,this.defaultValue.side,["right","left"]),showSlider:k(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:_(t.renderCharacters,this.defaultValue.renderCharacters),scale:C.clampedInt(t.scale,1,1,3),maxColumn:C.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}),mouseStyle:H(new x(71,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:H(new w(72,"mouseWheelScrollSensitivity",1,(e=>0===e?1:e),{markdownDescription:n.NC("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:H(new v(73,"mouseWheelZoom",!1,{markdownDescription:n.NC("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:H(new v(74,"multiCursorMergeOverlapping",!0,{description:n.NC("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:H(new L(75,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?o.dz?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[n.NC("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),n.NC("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:n.NC({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:H(new x(76,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[n.NC("multiCursorPaste.spread","Each cursor pastes a single line of the text."),n.NC("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:n.NC("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:H(new C(77,"multiCursorLimit",1e4,1,1e5,{markdownDescription:n.NC("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:H(new v(78,"occurrencesHighlight",!0,{description:n.NC("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:H(new v(79,"overviewRulerBorder",!0,{description:n.NC("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:H(new C(80,"overviewRulerLanes",3,0,3)),padding:H(new class extends u{constructor(){super(81,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:n.NC("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:n.NC("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{top:C.clampedInt(t.top,0,0,1e3),bottom:C.clampedInt(t.bottom,0,0,1e3)}}}),parameterHints:H(new class extends u{constructor(){const e={enabled:!0,cycle:!0};super(82,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:n.NC("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:n.NC("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),cycle:_(t.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:H(new x(83,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[n.NC("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),n.NC("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:n.NC("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:H(new v(84,"definitionLinkOpensInPeek",!1,{description:n.NC("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:H(new class extends u{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[n.NC("on","Quick suggestions show inside the suggest widget"),n.NC("inline","Quick suggestions show as ghost text"),n.NC("off","Quick suggestions are disabled")]}];super(85,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:n.NC("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:n.NC("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:n.NC("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:n.NC("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if("boolean"==typeof e){const t=e?"on":"off";return{comments:t,strings:t,other:t}}if(!e||"object"!=typeof e)return this.defaultValue;const{other:t,comments:i,strings:n}=e,o=["on","inline","off"];let s,r,a;return s="boolean"==typeof t?t?"on":"off":k(t,this.defaultValue.other,o),r="boolean"==typeof i?i?"on":"off":k(i,this.defaultValue.comments,o),a="boolean"==typeof n?n?"on":"off":k(n,this.defaultValue.strings,o),{other:s,comments:r,strings:a}}}),quickSuggestionsDelay:H(new C(86,"quickSuggestionsDelay",10,0,1073741824,{description:n.NC("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:H(new v(87,"readOnly",!1)),renameOnType:H(new v(88,"renameOnType",!1,{description:n.NC("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:n.NC("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:H(new v(89,"renderControlCharacters",!0,{description:n.NC("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:H(new x(90,"renderFinalNewline",o.IJ?"dimmed":"on",["off","on","dimmed"],{description:n.NC("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:H(new x(91,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",n.NC("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:n.NC("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:H(new v(92,"renderLineHighlightOnlyWhenFocus",!1,{description:n.NC("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:H(new x(93,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:H(new x(94,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",n.NC("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),n.NC("renderWhitespace.selection","Render whitespace characters only on selected text."),n.NC("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:n.NC("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:H(new C(95,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:H(new v(96,"roundedSelection",!0,{description:n.NC("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:H(new class extends u{constructor(){const e=[],t={type:"number",description:n.NC("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(97,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:n.NC("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:n.NC("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if("number"==typeof i)t.push({column:C.clampedInt(i,0,0,1e4),color:null});else if(i&&"object"==typeof i){const e=i;t.push({column:C.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort(((e,t)=>e.column-t.column)),t}return this.defaultValue}}),scrollbar:H(new class extends u{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(98,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[n.NC("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),n.NC("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),n.NC("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:n.NC("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[n.NC("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),n.NC("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),n.NC("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:n.NC("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:n.NC("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:n.NC("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:n.NC("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e,i=C.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=C.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:C.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:M(t.vertical,this.defaultValue.vertical),horizontal:M(t.horizontal,this.defaultValue.horizontal),useShadows:_(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:_(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:_(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:_(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:_(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:C.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:C.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:_(t.scrollByPage,this.defaultValue.scrollByPage)}}}),scrollBeyondLastColumn:H(new C(99,"scrollBeyondLastColumn",4,0,1073741824,{description:n.NC("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:H(new v(100,"scrollBeyondLastLine",!0,{description:n.NC("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:H(new v(101,"scrollPredominantAxis",!0,{description:n.NC("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:H(new v(102,"selectionClipboard",!0,{description:n.NC("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:o.IJ})),selectionHighlight:H(new v(103,"selectionHighlight",!0,{description:n.NC("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:H(new v(104,"selectOnLineNumbers",!0)),showFoldingControls:H(new x(105,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[n.NC("showFoldingControls.always","Always show the folding controls."),n.NC("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),n.NC("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:n.NC("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:H(new v(106,"showUnused",!0,{description:n.NC("showUnused","Controls fading out of unused code.")})),showDeprecated:H(new v(134,"showDeprecated",!0,{description:n.NC("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:H(new class extends u{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(135,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:n.NC("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[n.NC("editor.inlayHints.on","Inlay hints are enabled"),n.NC("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",o.dz?"Ctrl+Option":"Ctrl+Alt"),n.NC("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",o.dz?"Ctrl+Option":"Ctrl+Alt"),n.NC("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:n.NC("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:n.NC("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:n.NC("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return"boolean"==typeof t.enabled&&(t.enabled=t.enabled?"on":"off"),{enabled:k(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:C.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:S.string(t.fontFamily,this.defaultValue.fontFamily),padding:_(t.padding,this.defaultValue.padding)}}}),snippetSuggestions:H(new x(107,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[n.NC("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),n.NC("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),n.NC("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),n.NC("snippetSuggestions.none","Do not show snippet suggestions.")],description:n.NC("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:H(new class extends u{constructor(){super(108,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:n.NC("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"==typeof e?{selectLeadingAndTrailingWhitespace:_(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}:this.defaultValue}}),smoothScrolling:H(new v(109,"smoothScrolling",!1,{description:n.NC("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:H(new C(112,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:H(new class extends u{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(113,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[n.NC("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),n.NC("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:n.NC("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:n.NC("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:n.NC("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:n.NC("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[n.NC("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),n.NC("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),n.NC("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),n.NC("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:n.NC("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:n.NC("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:n.NC("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:n.NC("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:n.NC("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:n.NC("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:n.NC("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:n.NC("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:n.NC("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{insertMode:k(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:_(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:_(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:_(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:_(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:k(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:_(t.showIcons,this.defaultValue.showIcons),showStatusBar:_(t.showStatusBar,this.defaultValue.showStatusBar),preview:_(t.preview,this.defaultValue.preview),previewMode:k(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:_(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:_(t.showMethods,this.defaultValue.showMethods),showFunctions:_(t.showFunctions,this.defaultValue.showFunctions),showConstructors:_(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:_(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:_(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:_(t.showFields,this.defaultValue.showFields),showVariables:_(t.showVariables,this.defaultValue.showVariables),showClasses:_(t.showClasses,this.defaultValue.showClasses),showStructs:_(t.showStructs,this.defaultValue.showStructs),showInterfaces:_(t.showInterfaces,this.defaultValue.showInterfaces),showModules:_(t.showModules,this.defaultValue.showModules),showProperties:_(t.showProperties,this.defaultValue.showProperties),showEvents:_(t.showEvents,this.defaultValue.showEvents),showOperators:_(t.showOperators,this.defaultValue.showOperators),showUnits:_(t.showUnits,this.defaultValue.showUnits),showValues:_(t.showValues,this.defaultValue.showValues),showConstants:_(t.showConstants,this.defaultValue.showConstants),showEnums:_(t.showEnums,this.defaultValue.showEnums),showEnumMembers:_(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:_(t.showKeywords,this.defaultValue.showKeywords),showWords:_(t.showWords,this.defaultValue.showWords),showColors:_(t.showColors,this.defaultValue.showColors),showFiles:_(t.showFiles,this.defaultValue.showFiles),showReferences:_(t.showReferences,this.defaultValue.showReferences),showFolders:_(t.showFolders,this.defaultValue.showFolders),showTypeParameters:_(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:_(t.showSnippets,this.defaultValue.showSnippets),showUsers:_(t.showUsers,this.defaultValue.showUsers),showIssues:_(t.showIssues,this.defaultValue.showIssues)}}}),inlineSuggest:H(new class extends u{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1};super(60,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:n.NC("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover"],enumDescriptions:[n.NC("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),n.NC("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion.")],description:n.NC("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:n.NC("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:_(t.enabled,this.defaultValue.enabled),mode:k(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:k(t.showToolbar,this.defaultValue.showToolbar,["always","onHover"]),suppressSuggestions:_(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:_(t.keepOnBlur,this.defaultValue.keepOnBlur)}}}),suggestFontSize:H(new C(114,"suggestFontSize",0,0,1e3,{markdownDescription:n.NC("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:H(new C(115,"suggestLineHeight",0,0,1e3,{markdownDescription:n.NC("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:H(new v(116,"suggestOnTriggerCharacters",!0,{description:n.NC("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:H(new x(117,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[n.NC("suggestSelection.first","Always select the first suggestion."),n.NC("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),n.NC("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:n.NC("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:H(new x(118,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[n.NC("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),n.NC("tabCompletion.off","Disable tab completions."),n.NC("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:n.NC("tabCompletion","Enables tab completions.")})),tabIndex:H(new C(119,"tabIndex",0,-1,1073741824)),unicodeHighlight:H(new class extends u{constructor(){const e={nonBasicASCII:R,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:R,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(120,"unicodeHighlight",e,{[O.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,R],default:e.nonBasicASCII,description:n.NC("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[O.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:n.NC("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[O.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:n.NC("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[O.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,R],default:e.includeComments,description:n.NC("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[O.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,R],default:e.includeStrings,description:n.NC("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[O.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:n.NC("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[O.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:n.NC("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(a.fS(e.allowedCharacters,t.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),i=!0)),t.allowedLocales&&e&&(a.fS(e.allowedLocales,t.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:t.allowedLocales}),i=!0));const n=super.applyUpdate(e,t);return i?new g(n.newValue,!0):n}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{nonBasicASCII:P(t.nonBasicASCII,R,[!0,!1,R]),invisibleCharacters:_(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:_(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:P(t.includeComments,R,[!0,!1,R]),includeStrings:P(t.includeStrings,R,[!0,!1,R]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if("object"!=typeof e||!e)return t;const i={};for(const[t,n]of Object.entries(e))!0===n&&(i[t]=!0);return i}}),unusualLineTerminators:H(new x(121,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[n.NC("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),n.NC("unusualLineTerminators.off","Unusual line terminators are ignored."),n.NC("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:n.NC("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:H(new v(122,"useShadowDOM",!0)),useTabStops:H(new v(123,"useTabStops",!0,{description:n.NC("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordBreak:H(new x(124,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[n.NC("wordBreak.normal","Use the default line break rule."),n.NC("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:n.NC("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSeparators:H(new S(125,"wordSeparators",s.vu,{description:n.NC("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:H(new x(126,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[n.NC("wordWrap.off","Lines will never wrap."),n.NC("wordWrap.on","Lines will wrap at the viewport width."),n.NC({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),n.NC({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:n.NC({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:H(new S(127,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:H(new S(128,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:H(new C(129,"wordWrapColumn",80,1,1073741824,{markdownDescription:n.NC({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:H(new x(130,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:H(new x(131,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:H(new class extends m{constructor(){super(136)}compute(e,t,i){const n=["monaco-editor"];return t.get(37)&&n.push(t.get(37)),e.extraEditorClassName&&n.push(e.extraEditorClassName),"default"===t.get(71)?n.push("mouse-default"):"copy"===t.get(71)&&n.push("mouse-copy"),t.get(106)&&n.push("showUnused"),t.get(134)&&n.push("showDeprecated"),n.join(" ")}}),defaultColorDecorators:H(new v(141,"defaultColorDecorators",!1,{markdownDescription:n.NC("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:H(new class extends m{constructor(){super(137)}compute(e,t,i){return e.pixelRatio}}),tabFocusMode:H(new v(138,"tabFocusMode",!1,{markdownDescription:n.NC("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:H(new I),wrappingInfo:H(new class extends m{constructor(){super(140)}compute(e,t,i){const n=t.get(139);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}),wrappingIndent:H(new class extends u{constructor(){super(132,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[n.NC("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),n.NC("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),n.NC("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),n.NC("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:n.NC("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return 2===t.get(2)?0:i}}),wrappingStrategy:H(new class extends u{constructor(){super(133,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[n.NC("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),n.NC("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:n.NC("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return k(e,"simple",["simple","advanced"])}compute(e,t,i){return 2===t.get(2)?"advanced":i}})}},82334:(e,t,i)=>{"use strict";i.d(t,{C:()=>o});var n=i(4669);const o=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new n.Q5,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}},27374:(e,t,i)=>{"use strict";i.d(t,{E4:()=>a,pR:()=>l});var n=i(1432),o=i(64141),s=i(82334);const r=n.dz?1.5:1.35;class a{static createFromValidatedSettings(e,t,i){const n=e.get(47),o=e.get(51),s=e.get(50),r=e.get(49),l=e.get(52),c=e.get(64),h=e.get(61);return a._create(n,o,s,r,l,c,h,t,i)}static _create(e,t,i,n,l,c,h,d,u){0===c?c=r*i:c<8&&(c*=i),(c=Math.round(c))<8&&(c=8);const g=1+(u?0:.1*s.C.getZoomLevel());return i*=g,c*=g,l===o.Bo.TRANSLATE&&("normal"===t||"bold"===t?l=o.Bo.OFF:(l=`'wght' ${parseInt(t,10)}`,t="normal")),new a({pixelRatio:d,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:n,fontVariationSettings:l,lineHeight:c,letterSpacing:h})}constructor(e){this._bareFontInfoBrand=void 0,this.pixelRatio=e.pixelRatio,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.fontVariationSettings=e.fontVariationSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.fontVariationSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){const e=o.hL.fontFamily,t=a._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}class l extends a{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=2,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.fontVariationSettings===e.fontVariationSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}},44906:(e,t,i)=>{"use strict";i.d(t,{N:()=>o,q:()=>s});var n=i(85427);class o{constructor(e){const t=(0,n.K)(e);this._defaultValue=t,this._asciiMap=o._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const i=(0,n.K)(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class s{constructor(){this._actual=new o(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}clear(){return this._actual.clear()}}},7988:(e,t,i)=>{"use strict";i.d(t,{i:()=>o});var n=i(97295);class o{static _nextVisibleColumn(e,t,i){return 9===e?o.nextRenderTabStop(t,i):n.K7(e)||n.C8(e)?t+2:t+1}static visibleColumnFromColumn(e,t,i){const o=Math.min(t-1,e.length),s=e.substring(0,o),r=new n.W1(s);let a=0;for(;!r.eol();){const e=n.ZH(s,o,r.offset);r.nextGraphemeLength(),a=this._nextVisibleColumn(e,a,i)}return a}static columnFromVisibleColumn(e,t,i){if(t<=0)return 1;const o=e.length,s=new n.W1(e);let r=0,a=1;for(;!s.eol();){const l=n.ZH(e,o,s.offset);s.nextGraphemeLength();const c=this._nextVisibleColumn(l,r,i),h=s.offset+1;if(c>=t)return c-t{"use strict";i.d(t,{h:()=>o});var n=i(24314);class o{static insert(e,t){return{range:new n.e(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}},8625:(e,t,i)=>{"use strict";i.d(t,{Bj:()=>f,CE:()=>E,DS:()=>R,HV:()=>z,Jn:()=>P,Kh:()=>a,L7:()=>W,Mm:()=>l,Qb:()=>B,Re:()=>S,To:()=>V,UP:()=>N,Vs:()=>L,YF:()=>F,Ym:()=>g,dI:()=>d,eS:()=>k,e_:()=>v,f9:()=>U,fY:()=>h,hw:()=>p,lK:()=>w,lS:()=>O,m$:()=>M,m1:()=>T,m3:()=>H,m9:()=>y,n0:()=>c,oV:()=>A,r0:()=>D,tR:()=>u,ts:()=>I,zJ:()=>x,zu:()=>b,zw:()=>_});var n=i(63580),o=i(41264),s=i(73910),r=i(97781);const a=(0,s.P6G)("editor.lineHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("lineHighlight","Background color for the highlight of line at the cursor position.")),l=(0,s.P6G)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:s.lRK},n.NC("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),c=((0,s.P6G)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},n.NC("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.P6G)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:s.xL1,hcLight:s.xL1},n.NC("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),(0,s.P6G)("editor.symbolHighlightBackground",{dark:s.MUv,light:s.MUv,hcDark:null,hcLight:null},n.NC("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.P6G)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:s.xL1,hcLight:s.xL1},n.NC("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),(0,s.P6G)("editorCursor.foreground",{dark:"#AEAFAD",light:o.Il.black,hcDark:o.Il.white,hcLight:"#0F4A85"},n.NC("caret","Color of the editor cursor."))),h=(0,s.P6G)("editorCursor.background",null,n.NC("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),d=(0,s.P6G)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},n.NC("editorWhitespaces","Color of whitespace characters in the editor.")),u=(0,s.P6G)("editorIndentGuide.background",{dark:d,light:d,hcDark:d,hcLight:d},n.NC("editorIndentGuides","Color of the editor indentation guides.")),g=(0,s.P6G)("editorIndentGuide.activeBackground",{dark:d,light:d,hcDark:d,hcLight:d},n.NC("editorActiveIndentGuide","Color of the active editor indentation guides.")),p=(0,s.P6G)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:o.Il.white,hcLight:"#292929"},n.NC("editorLineNumbers","Color of editor line numbers.")),m=(0,s.P6G)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:s.xL1,hcLight:s.xL1},n.NC("editorActiveLineNumber","Color of editor active line number"),!1,n.NC("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),f=((0,s.P6G)("editorLineNumber.activeForeground",{dark:m,light:m,hcDark:m,hcLight:m},n.NC("editorActiveLineNumber","Color of editor active line number")),(0,s.P6G)("editorLineNumber.dimmedForeground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed."))),_=((0,s.P6G)("editorRuler.foreground",{dark:"#5A5A5A",light:o.Il.lightgrey,hcDark:o.Il.white,hcLight:"#292929"},n.NC("editorRuler","Color of the editor rulers.")),(0,s.P6G)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},n.NC("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,s.P6G)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},n.NC("editorBracketMatchBackground","Background color behind matching brackets")),(0,s.P6G)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:s.lRK,hcLight:s.lRK},n.NC("editorBracketMatchBorder","Color for matching brackets boxes")),(0,s.P6G)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},n.NC("editorOverviewRulerBorder","Color of the overview ruler border."))),v=(0,s.P6G)("editorOverviewRuler.background",null,n.NC("editorOverviewRulerBackground","Background color of the editor overview ruler.")),b=((0,s.P6G)("editorGutter.background",{dark:s.cvW,light:s.cvW,hcDark:s.cvW,hcLight:s.cvW},n.NC("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,s.P6G)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:o.Il.fromHex("#fff").transparent(.8),hcLight:s.lRK},n.NC("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,s.P6G)("editorUnnecessaryCode.opacity",{dark:o.Il.fromHex("#000a"),light:o.Il.fromHex("#0007"),hcDark:null,hcLight:null},n.NC("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out."))),C=((0,s.P6G)("editorGhostText.border",{dark:null,light:null,hcDark:o.Il.fromHex("#fff").transparent(.8),hcLight:o.Il.fromHex("#292929").transparent(.8)},n.NC("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,s.P6G)("editorGhostText.foreground",{dark:o.Il.fromHex("#ffffff56"),light:o.Il.fromHex("#0007"),hcDark:null,hcLight:null},n.NC("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),(0,s.P6G)("editorGhostText.background",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("editorGhostTextBackground","Background color of the ghost text in the editor.")),new o.Il(new o.VS(0,122,204,.6))),y=(0,s.P6G)("editorOverviewRuler.rangeHighlightForeground",{dark:C,light:C,hcDark:C,hcLight:C},n.NC("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),w=(0,s.P6G)("editorOverviewRuler.errorForeground",{dark:new o.Il(new o.VS(255,18,18,.7)),light:new o.Il(new o.VS(255,18,18,.7)),hcDark:new o.Il(new o.VS(255,50,50,1)),hcLight:"#B5200D"},n.NC("overviewRuleError","Overview ruler marker color for errors.")),S=(0,s.P6G)("editorOverviewRuler.warningForeground",{dark:s.uoC,light:s.uoC,hcDark:s.pW3,hcLight:s.pW3},n.NC("overviewRuleWarning","Overview ruler marker color for warnings.")),k=(0,s.P6G)("editorOverviewRuler.infoForeground",{dark:s.c63,light:s.c63,hcDark:s.T83,hcLight:s.T83},n.NC("overviewRuleInfo","Overview ruler marker color for infos.")),x=(0,s.P6G)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},n.NC("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),L=(0,s.P6G)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},n.NC("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),E=(0,s.P6G)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},n.NC("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),N=(0,s.P6G)("editorBracketHighlight.foreground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),D=(0,s.P6G)("editorBracketHighlight.foreground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),T=(0,s.P6G)("editorBracketHighlight.foreground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),I=(0,s.P6G)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new o.Il(new o.VS(255,18,18,.8)),light:new o.Il(new o.VS(255,18,18,.8)),hcDark:new o.Il(new o.VS(255,50,50,1)),hcLight:""},n.NC("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),A=(0,s.P6G)("editorBracketPairGuide.background1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),M=(0,s.P6G)("editorBracketPairGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),R=(0,s.P6G)("editorBracketPairGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),O=(0,s.P6G)("editorBracketPairGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),P=(0,s.P6G)("editorBracketPairGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),F=(0,s.P6G)("editorBracketPairGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),B=(0,s.P6G)("editorBracketPairGuide.activeBackground1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),H=(0,s.P6G)("editorBracketPairGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),V=(0,s.P6G)("editorBracketPairGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),W=(0,s.P6G)("editorBracketPairGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),z=(0,s.P6G)("editorBracketPairGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),U=(0,s.P6G)("editorBracketPairGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));(0,s.P6G)("editorUnicodeHighlight.border",{dark:"#BD9B03",light:"#CEA33D",hcDark:"#ff0000",hcLight:"#CEA33D"},n.NC("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,s.P6G)("editorUnicodeHighlight.background",{dark:"#bd9b0326",light:"#cea33d14",hcDark:"#00000000",hcLight:"#cea33d14"},n.NC("editorUnicodeHighlight.background","Background color used to highlight unicode characters.")),(0,r.Ic)(((e,t)=>{const i=e.getColor(s.cvW),n=e.getColor(a),o=n&&!n.isTransparent()?n:i;o&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${o}; }`)}))},23795:(e,t,i)=>{"use strict";function n(e){let t=0,i=0,n=0,o=0;for(let s=0,r=e.length;sn})},83158:(e,t,i)=>{"use strict";i.d(t,{x:()=>s});var n=i(97295),o=i(7988);function s(e,t,i){let s=n.LC(e);return-1===s&&(s=e.length),function(e,t,i){let n=0;for(let i=0;i{"use strict";i.d(t,{z:()=>o});var n=i(17301);class o{static joinMany(e){if(0===e.length)return[];let t=e[0];for(let i=1;i=a.startLineNumber?r=new o(r.startLineNumber,Math.max(r.endLineNumberExclusive,a.endLineNumberExclusive)):(i.push(r),r=a)}return null!==r&&i.push(r),i}constructor(e,t){if(e>t)throw new n.he(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e{"use strict";i.d(t,{q:()=>o});var n=i(17301);class o{static addRange(e,t){let i=0;for(;it))return new o(e,t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new n.he(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new o(this.start+e,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}containsRange(e){return this.start<=e.start&&e.endExclusive<=this.endExclusive}join(e){return new o(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);if(t<=i)return new o(t,i)}}},50187:(e,t,i)=>{"use strict";i.d(t,{L:()=>n});class n{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new n(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return n.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return n.isBefore(this,e)}static isBefore(e,t){return e.lineNumber{"use strict";i.d(t,{e:()=>o});var n=i(50187);class o{constructor(e,t,i,n){e>i||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return o.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return o.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(e){return o.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(e){return o.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return o.plusRange(this,e)}static plusRange(e,t){let i,n,s,r;return t.startLineNumbere.endLineNumber?(s=t.endLineNumber,r=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,r=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,r=e.endColumn),new o(i,n,s,r)}intersectRanges(e){return o.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,n=e.startColumn,s=e.endLineNumber,r=e.endColumn;const a=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,h=t.endColumn;return ic?(s=c,r=h):s===c&&(r=Math.min(r,h)),i>s||i===s&&n>r?null:new o(i,n,s,r)}equalsRange(e){return o.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return o.getEndPosition(this)}static getEndPosition(e){return new n.L(e.endLineNumber,e.endColumn)}getStartPosition(){return o.getStartPosition(this)}static getStartPosition(e){return new n.L(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new o(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new o(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return o.collapseToStart(this)}static collapseToStart(e){return new o(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return o.collapseToEnd(this)}static collapseToEnd(e){return new o(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new o(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new o(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new o(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}}},3860:(e,t,i)=>{"use strict";i.d(t,{Y:()=>s});var n=i(50187),o=i(24314);class s extends o.e{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new n.L(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new n.L(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new s(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i{"use strict";i.d(t,{HT:()=>u,kH:()=>d,oe:()=>h});var n=i(97295),o=i(1432),s=i(53060);let r,a,l;function c(){return r||(r=new TextDecoder("UTF-16LE")),r}function h(){return l||(l=o.r()?c():(a||(a=new TextDecoder("UTF-16BE")),a)),l}function d(e,t,i){const n=new Uint16Array(e.buffer,t,i);return i>0&&(65279===n[0]||65534===n[0])?function(e,t,i){const n=[];let o=0;for(let r=0;r=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let i=0;i{"use strict";i.d(t,{b:()=>a,q:()=>r});var n=i(53060),o=i(50072);function s(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class r{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,i,n){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=n}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${s(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${s(this.oldText)}")`:`(replace@${this.oldPosition} "${s(this.oldText)}" with "${s(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const o=t.length;n.T4(e,o,i),i+=4;for(let s=0;s{"use strict";i.d(t,{D:()=>n});const n={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}},24929:(e,t,i)=>{"use strict";i.d(t,{u:()=>s});var n=i(44906);class o extends n.N{constructor(e){super(0);for(let t=0,i=e.length;t(t.hasOwnProperty(e)||(t[e]=(e=>new o(e))(e)),t[e])}()},270:(e,t,i)=>{"use strict";i.d(t,{Af:()=>r,eq:()=>a,t2:()=>c,vu:()=>s});var n=i(53725),o=i(91741);const s="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",r=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const i of s)e.indexOf(i)>=0||(t+="\\"+i);return t+="\\s]+)",new RegExp(t,"g")}();function a(e){let t=r;if(e&&e instanceof RegExp)if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}return t.lastIndex=0,t}const l=new o.S;function c(e,t,i,o,s){if(s||(s=n.$.first(l)),i.length>s.maxLen){let n=e-s.maxLen/2;return n<0?n=0:o+=n,c(e,t,i=i.substring(n,e+s.maxLen/2),o,s)}const r=Date.now(),a=e-1-o;let d=-1,u=null;for(let e=1;!(Date.now()-r>=s.timeBudget);e++){const n=a-s.windowSize*e;t.lastIndex=Math.max(0,n);const o=h(t,i,a,d);if(!o&&u)break;if(u=o,n<=0)break;d=n}if(u){const e={word:u[0],startColumn:o+1+u.index,endColumn:o+1+u.index+u[0].length};return t.lastIndex=0,e}return null}function h(e,t,i,n){let o;for(;o=e.exec(t);){const t=o.index||0;if(t<=i&&e.lastIndex>=i)return o;if(n>0&&t>n)return null}return null}l.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},47128:(e,t,i)=>{"use strict";i.d(t,{l:()=>o});var n=i(7988);class o{static whitespaceVisibleColumn(e,t,i){const o=e.length;let s=0,r=-1,a=-1;for(let l=0;l{"use strict";i.d(t,{A:()=>h});var n=i(97295),o=i(61329),s=i(55343),r=i(7988),a=i(10839),l=i(24314),c=i(50187);class h{static deleteRight(e,t,i,n){const s=[];let r=3!==e;for(let e=0,c=n.length;e=d.length+1)return!1;const u=d.charAt(h.column-2),g=n.get(u);if(!g)return!1;if((0,s.LN)(u)){if("never"===i)return!1}else if("never"===t)return!1;const p=d.charAt(h.column-1);let m=!1;for(const e of g)e.open===u&&e.close===p&&(m=!0);if(!m)return!1;if("auto"===e){let e=!1;for(let t=0,i=a.length;t1){const e=t.getLineContent(o.lineNumber),s=n.LC(e),a=-1===s?e.length+1:s+1;if(o.column<=a){const e=i.visibleColumnFromColumn(t,o),n=r.i.prevIndentTabStop(e,i.indentSize),s=i.columnFromVisibleColumn(t,o.lineNumber,n);return new l.e(o.lineNumber,s,o.lineNumber,o.column)}}return l.e.fromPositions(h.getPositionAfterDeleteLeft(o,t),o)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){const i=n.oH(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,i+1)}if(e.lineNumber>1){const i=e.lineNumber-1;return new c.L(i,t.getLineMaxColumn(i))}return e}static cut(e,t,i){const n=[];let r=null;i.sort(((e,t)=>c.L.compare(e.getStartPosition(),t.getEndPosition())));for(let s=0,a=i.length;s1&&(null==r?void 0:r.endLineNumber)!==e.lineNumber?(i=e.lineNumber-1,c=t.getLineMaxColumn(e.lineNumber-1),h=e.lineNumber,d=t.getLineMaxColumn(e.lineNumber)):(i=e.lineNumber,c=1,h=e.lineNumber,d=t.getLineMaxColumn(e.lineNumber));const u=new l.e(i,c,h,d);r=u,u.isEmpty()?n[s]=null:n[s]=new o.T4(u,"")}else n[s]=null;else n[s]=new o.T4(a,"")}return new s.Tp(0,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}},28108:(e,t,i)=>{"use strict";i.d(t,{N:()=>n,P:()=>h});var n,o=i(98401),s=i(55343),r=i(10839),a=i(92896),l=i(50187),c=i(24314);class h{static addCursorDown(e,t,i){const n=[];let o=0;for(let a=0,l=t.length;at&&(i=t,n=e.model.getLineMaxColumn(i)),s.Vi.fromModelState(new s.rS(new c.e(r.lineNumber,1,i,n),2,0,new l.L(i,n),0))}const h=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumberh){const i=e.getLineCount();let n=a.lineNumber+1,o=1;return n>i&&(n=i,o=e.getLineMaxColumn(n)),s.Vi.fromViewState(t.viewState.move(!0,n,o,0))}{const e=t.modelState.selectionStart.getEndPosition();return s.Vi.fromModelState(t.modelState.move(!0,e.lineNumber,e.column,0))}}static word(e,t,i,n){const o=e.model.validatePosition(n);return s.Vi.fromModelState(a.w.word(e.cursorConfig,e.model,t.modelState,i,o))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new s.Vi(t.modelState,t.viewState);const i=t.viewState.position.lineNumber,n=t.viewState.position.column;return s.Vi.fromViewState(new s.rS(new c.e(i,n,i,n),0,0,new l.L(i,n),0))}static moveTo(e,t,i,n,o){if(i){if(1===t.modelState.selectionStartKind)return this.word(e,t,i,n);if(2===t.modelState.selectionStartKind)return this.line(e,t,i,n,o)}const r=e.model.validatePosition(n),a=o?e.coordinatesConverter.validateViewPosition(new l.L(o.lineNumber,o.column),r):e.coordinatesConverter.convertModelPositionToViewPosition(r);return s.Vi.fromViewState(t.viewState.move(i,a.lineNumber,a.column,0))}static simpleMove(e,t,i,n,o,a){switch(i){case 0:return 4===a?this._moveHalfLineLeft(e,t,n):this._moveLeft(e,t,n,o);case 1:return 4===a?this._moveHalfLineRight(e,t,n):this._moveRight(e,t,n,o);case 2:return 2===a?this._moveUpByViewLines(e,t,n,o):this._moveUpByModelLines(e,t,n,o);case 3:return 2===a?this._moveDownByViewLines(e,t,n,o):this._moveDownByModelLines(e,t,n,o);case 4:return 2===a?t.map((t=>s.Vi.fromViewState(r.o.moveToPrevBlankLine(e.cursorConfig,e,t.viewState,n)))):t.map((t=>s.Vi.fromModelState(r.o.moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,n))));case 5:return 2===a?t.map((t=>s.Vi.fromViewState(r.o.moveToNextBlankLine(e.cursorConfig,e,t.viewState,n)))):t.map((t=>s.Vi.fromModelState(r.o.moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,n))));case 6:return this._moveToViewMinColumn(e,t,n);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,n);case 8:return this._moveToViewCenterColumn(e,t,n);case 9:return this._moveToViewMaxColumn(e,t,n);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,n);default:return null}}static viewportMove(e,t,i,n,o){const s=e.getCompletelyVisibleViewRange(),r=e.coordinatesConverter.convertViewRangeToModelRange(s);switch(i){case 11:{const i=this._firstLineNumberInRange(e.model,r,o),s=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,s)]}case 13:{const i=this._lastLineNumberInRange(e.model,r,o),s=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,s)]}case 12:{const i=Math.round((r.startLineNumber+r.endLineNumber)/2),o=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,o)]}case 14:{const i=[];for(let o=0,r=t.length;oi.endLineNumber-1?i.endLineNumber-1:os.Vi.fromViewState(r.o.moveLeft(e.cursorConfig,e,t.viewState,i,n))))}static _moveHalfLineLeft(e,t,i){const n=[];for(let o=0,a=t.length;os.Vi.fromViewState(r.o.moveRight(e.cursorConfig,e,t.viewState,i,n))))}static _moveHalfLineRight(e,t,i){const n=[];for(let o=0,a=t.length;o{"use strict";i.d(t,{o:()=>h});var n=i(55343),o=i(7988),s=i(50187),r=i(24314),a=i(97295),l=i(47128);class c{constructor(e,t,i){this._cursorPositionBrand=void 0,this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=i}}class h{static leftPosition(e,t){if(t.column>e.getLineMinColumn(t.lineNumber))return t.delta(void 0,-a.HO(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const i=t.lineNumber-1;return new s.L(i,e.getLineMaxColumn(i))}return t}static leftPositionAtomicSoftTabs(e,t,i){if(t.column<=e.getLineIndentColumn(t.lineNumber)){const n=e.getLineMinColumn(t.lineNumber),o=e.getLineContent(t.lineNumber),r=l.l.atomicPosition(o,t.column-1,i,0);if(-1!==r&&r+1>=n)return new s.L(t.lineNumber,r+1)}return this.leftPosition(e,t)}static left(e,t,i){const n=e.stickyTabStops?h.leftPositionAtomicSoftTabs(t,i,e.tabSize):h.leftPosition(t,i);return new c(n.lineNumber,n.column,0)}static moveLeft(e,t,i,n,o){let s,r;if(i.hasSelection()&&!n)s=i.selection.startLineNumber,r=i.selection.startColumn;else{const n=i.position.delta(void 0,-(o-1)),a=t.normalizePosition(h.clipPositionColumn(n,t),0),l=h.left(e,t,a);s=l.lineNumber,r=l.column}return i.move(n,s,r,0)}static clipPositionColumn(e,t){return new s.L(e.lineNumber,h.clipRange(e.column,t.getLineMinColumn(e.lineNumber),t.getLineMaxColumn(e.lineNumber)))}static clipRange(e,t,i){return ei?i:e}static rightPosition(e,t,i){return iu?(i=u,n=l?t.getLineMaxColumn(i):Math.min(t.getLineMaxColumn(i),n)):n=e.columnFromVisibleColumn(t,i,d),r=m?0:d-o.i.visibleColumnFromColumn(t.getLineContent(i),n,e.tabSize),void 0!==h){const e=new s.L(i,n),o=t.normalizePosition(e,h);r+=n-o.column,i=o.lineNumber,n=o.column}return new c(i,n,r)}static down(e,t,i,n,o,s,r){return this.vertical(e,t,i,n,o,i+s,r,4)}static moveDown(e,t,i,n,o){let s,r;i.hasSelection()&&!n?(s=i.selection.endLineNumber,r=i.selection.endColumn):(s=i.position.lineNumber,r=i.position.column);const a=h.down(e,t,s,r,i.leftoverVisibleColumns,o,!0);return i.move(n,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateDown(e,t,i){const o=i.selection,a=h.down(e,t,o.selectionStartLineNumber,o.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),l=h.down(e,t,o.positionLineNumber,o.positionColumn,i.leftoverVisibleColumns,1,!1);return new n.rS(new r.e(a.lineNumber,a.column,a.lineNumber,a.column),0,a.leftoverVisibleColumns,new s.L(l.lineNumber,l.column),l.leftoverVisibleColumns)}static up(e,t,i,n,o,s,r){return this.vertical(e,t,i,n,o,i-s,r,3)}static moveUp(e,t,i,n,o){let s,r;i.hasSelection()&&!n?(s=i.selection.startLineNumber,r=i.selection.startColumn):(s=i.position.lineNumber,r=i.position.column);const a=h.up(e,t,s,r,i.leftoverVisibleColumns,o,!0);return i.move(n,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateUp(e,t,i){const o=i.selection,a=h.up(e,t,o.selectionStartLineNumber,o.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),l=h.up(e,t,o.positionLineNumber,o.positionColumn,i.leftoverVisibleColumns,1,!1);return new n.rS(new r.e(a.lineNumber,a.column,a.lineNumber,a.column),0,a.leftoverVisibleColumns,new s.L(l.lineNumber,l.column),l.leftoverVisibleColumns)}static _isBlankLine(e,t){return 0===e.getLineFirstNonWhitespaceColumn(t)}static moveToPrevBlankLine(e,t,i,n){let o=i.position.lineNumber;for(;o>1&&this._isBlankLine(t,o);)o--;for(;o>1&&!this._isBlankLine(t,o);)o--;return i.move(n,o,t.getLineMinColumn(o),0)}static moveToNextBlankLine(e,t,i,n){const o=t.getLineCount();let s=i.position.lineNumber;for(;s{"use strict";i.d(t,{Nu:()=>y,u6:()=>b,g_:()=>C});var n=i(17301),o=i(97295),s=i(61329),r=i(10291),a=i(24314),l=i(3860);class c{constructor(e,t,i){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=i}getEditOperations(e,t){t.addTrackedEditOperation(new a.e(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new a.e(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(e,t){const i=t.getInverseEditOperations(),n=i[0].range,o=i[1].range;return new l.Y(n.endLineNumber,n.endColumn,o.endLineNumber,o.endColumn-this._charAfterSelection.length)}}class h{constructor(e,t,i){this._position=e,this._text=t,this._charAfter=i}getEditOperations(e,t){t.addTrackedEditOperation(new a.e(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column),this._text+this._charAfter)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return new l.Y(i.endLineNumber,i.startColumn,i.endLineNumber,i.endColumn-this._charAfter.length)}}var d=i(55343),u=i(24929),g=i(50187),p=i(49119),m=i(51381),f=i(19111),_=i(75383),v=i(1615);class b{static indent(e,t,i){if(null===t||null===i)return[];const n=[];for(let t=0,o=i.length;t1){let n;for(n=i-1;n>=1;n--){const e=t.getLineContent(n);if(o.ow(e)>=0)break}if(n<1)return null;const r=t.getLineMaxColumn(n),l=(0,v.A)(e.autoIndent,t,new a.e(n,r,n,r),e.languageConfigurationService);l&&(s=l.indentation+l.appendText)}return n&&(n===p.wU.Indent&&(s=b.shiftIndent(e,s)),n===p.wU.Outdent&&(s=b.unshiftIndent(e,s)),s=e.normalizeIndentation(s)),s||null}static _replaceJumpToNextIndent(e,t,i,n){let o="";const r=i.getStartPosition();if(e.insertSpaces){const i=e.visibleColumnFromColumn(t,r),n=e.indentSize,s=n-i%n;for(let e=0;ethis._compositionType(i,e,o,s,r,a)));return new d.Tp(4,l,{shouldPushStackElementBefore:S(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,n,o,r){if(!t.isEmpty())return null;const l=t.getPosition(),c=Math.max(1,l.column-n),h=Math.min(e.getLineMaxColumn(l.lineNumber),l.column+o),d=new a.e(l.lineNumber,c,l.lineNumber,h);return e.getValueInRange(d)===i&&0===r?null:new s.Uo(d,i,0,r)}static _typeCommand(e,t,i){return i?new s.Sj(e,t,!0):new s.T4(e,t,!0)}static _enter(e,t,i,n){if(0===e.autoIndent)return b._typeCommand(n,"\n",i);if(!t.tokenization.isCheapToTokenize(n.getStartPosition().lineNumber)||1===e.autoIndent){const s=t.getLineContent(n.startLineNumber),r=o.V8(s).substring(0,n.startColumn-1);return b._typeCommand(n,"\n"+e.normalizeIndentation(r),i)}const r=(0,v.A)(e.autoIndent,t,n,e.languageConfigurationService);if(r){if(r.indentAction===p.wU.None)return b._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);if(r.indentAction===p.wU.Indent)return b._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);if(r.indentAction===p.wU.IndentOutdent){const t=e.normalizeIndentation(r.indentation),o=e.normalizeIndentation(r.indentation+r.appendText),a="\n"+o+"\n"+t;return i?new s.Sj(n,a,!0):new s.Uo(n,a,-1,o.length-t.length,!0)}if(r.indentAction===p.wU.Outdent){const t=b.unshiftIndent(e,r.indentation);return b._typeCommand(n,"\n"+e.normalizeIndentation(t+r.appendText),i)}}const a=t.getLineContent(n.startLineNumber),l=o.V8(a).substring(0,n.startColumn-1);if(e.autoIndent>=4){const r=(0,_.UF)(e.autoIndent,t,n,{unshiftIndent:t=>b.unshiftIndent(e,t),shiftIndent:t=>b.shiftIndent(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)},e.languageConfigurationService);if(r){let a=e.visibleColumnFromColumn(t,n.getEndPosition());const l=n.endColumn,c=t.getLineContent(n.endLineNumber),h=o.LC(c);if(n=h>=0?n.setEndPosition(n.endLineNumber,Math.max(n.endColumn,h+1)):n.setEndPosition(n.endLineNumber,t.getLineMaxColumn(n.endLineNumber)),i)return new s.Sj(n,"\n"+e.normalizeIndentation(r.afterEnter),!0);{let t=0;return l<=h+1&&(e.insertSpaces||(a=Math.ceil(a/e.indentSize)),t=Math.min(a+1-e.normalizeIndentation(r.afterEnter).length-1,0)),new s.Uo(n,"\n"+e.normalizeIndentation(r.afterEnter),0,t,!0)}}}return b._typeCommand(n,"\n"+e.normalizeIndentation(l),i)}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let e=0,n=i.length;eb.shiftIndent(e,t),unshiftIndent:t=>b.unshiftIndent(e,t)},e.languageConfigurationService);if(null===s)return null;if(s!==e.normalizeIndentation(o)){const o=t.getLineFirstNonWhitespaceColumn(i.startLineNumber);return 0===o?b._typeCommand(new a.e(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(s)+n,!1):b._typeCommand(new a.e(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(s)+t.getLineContent(i.startLineNumber).substring(o-1,i.startColumn-1)+n,!1)}return null}static _isAutoClosingOvertype(e,t,i,n,o){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(o))return!1;for(let s=0,r=i.length;s2?l.charCodeAt(a.column-2):0)&&c)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,i=n.length;tt.startsWith(e.open))),r=o.some((e=>t.startsWith(e.close)));return!s&&r}static _findAutoClosingPairOpen(e,t,i,n){const o=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n);if(!o)return null;let s=null;for(const e of o)if(null===s||e.open.length>s.open.length){let o=!0;for(const s of i)if(t.getValueInRange(new a.e(s.lineNumber,s.column-e.open.length+1,s.lineNumber,s.column))+n!==e.open){o=!1;break}o&&(s=e)}return s}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;const i=t.close.charAt(t.close.length-1),n=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let o=null;for(const e of n)e.open!==t.open&&t.open.includes(e.open)&&t.close.endsWith(e.close)&&(!o||e.open.length>o.open.length)&&(o=e);return o}static _getAutoClosingPairClose(e,t,i,n,o){const s=(0,d.LN)(n),r=s?e.autoClosingQuotes:e.autoClosingBrackets,a=s?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket;if("never"===r)return null;for(const e of i)if(!e.isEmpty())return null;const l=i.map((e=>{const t=e.getPosition();return o?{lineNumber:t.lineNumber,beforeColumn:t.column-n.length,afterColumn:t.column}:{lineNumber:t.lineNumber,beforeColumn:t.column,afterColumn:t.column}})),c=this._findAutoClosingPairOpen(e,t,l.map((e=>new g.L(e.lineNumber,e.beforeColumn))),n);if(!c)return null;const h=this._findContainedAutoClosingPair(e,c),p=h?h.close:"";let m=!0;for(const i of l){const{lineNumber:o,beforeColumn:s,afterColumn:l}=i,h=t.getLineContent(o),d=h.substring(0,s-1),g=h.substring(l-1);if(g.startsWith(p)||(m=!1),g.length>0){const t=g.charAt(0);if(!b._isBeforeClosingBrace(e,g)&&!a(t))return null}if(1===c.open.length&&("'"===n||'"'===n)&&"always"!==r){const t=(0,u.u)(e.wordSeparators);if(d.length>0){const e=d.charCodeAt(d.length-1);if(0===t.get(e))return null}}if(!t.tokenization.isCheapToTokenize(o))return null;t.tokenization.forceTokenization(o);const _=t.tokenization.getLineTokens(o),v=(0,f.wH)(_,s-1);if(!c.shouldAutoClose(v,s-v.firstCharOffset))return null;const C=c.findNeutralCharacter();if(C){const e=t.tokenization.getTokenTypeIfInsertingCharacter(o,s,C);if(!c.isOK(e))return null}}return m?c.close.substring(0,c.close.length-p.length):c.close}static _runAutoClosingOpenCharType(e,t,i,n,o,s,r){const a=[];for(let e=0,t=n.length;enew s.T4(new a.e(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)));return new d.Tp(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const g=this._getAutoClosingPairClose(t,i,o,c,!0);return null!==g?this._runAutoClosingOpenCharType(e,t,i,o,c,!0,g):null}static typeWithInterceptors(e,t,i,n,o,r,a){if(!e&&"\n"===a){const e=[];for(let t=0,s=o.length;t{"use strict";i.d(t,{L:()=>h,w:()=>c});var n=i(97295),o=i(55343),s=i(29436),r=i(24929),a=i(50187),l=i(24314);class c{static _createWord(e,t,i,n,o){return{start:n,end:o,wordType:t,nextCharClass:i}}static _findPreviousWordOnLine(e,t,i){const n=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(n,e,i)}static _doFindPreviousWordOnLine(e,t,i){let n=0;for(let o=i.column-2;o>=0;o--){const i=e.charCodeAt(o),s=t.get(i);if(0===s){if(2===n)return this._createWord(e,n,s,o+1,this._findEndOfWord(e,t,n,o+1));n=1}else if(2===s){if(1===n)return this._createWord(e,n,s,o+1,this._findEndOfWord(e,t,n,o+1));n=2}else if(1===s&&0!==n)return this._createWord(e,n,s,o+1,this._findEndOfWord(e,t,n,o+1))}return 0!==n?this._createWord(e,n,1,0,this._findEndOfWord(e,t,n,0)):null}static _findEndOfWord(e,t,i,n){const o=e.length;for(let s=n;s=0;o--){const n=e.charCodeAt(o),s=t.get(n);if(1===s)return o+1;if(1===i&&2===s)return o+1;if(2===i&&0===s)return o+1}return 0}static moveWordLeft(e,t,i,n){let o=i.lineNumber,s=i.column;1===s&&o>1&&(o-=1,s=t.getLineMaxColumn(o));let r=c._findPreviousWordOnLine(e,t,new a.L(o,s));if(0===n)return new a.L(o,r?r.start+1:1);if(1===n)return r&&2===r.wordType&&r.end-r.start==1&&0===r.nextCharClass&&(r=c._findPreviousWordOnLine(e,t,new a.L(o,r.start+1))),new a.L(o,r?r.start+1:1);if(3===n){for(;r&&2===r.wordType;)r=c._findPreviousWordOnLine(e,t,new a.L(o,r.start+1));return new a.L(o,r?r.start+1:1)}return r&&s<=r.end+1&&(r=c._findPreviousWordOnLine(e,t,new a.L(o,r.start+1))),new a.L(o,r?r.end+1:1)}static _moveWordPartLeft(e,t){const i=t.lineNumber,o=e.getLineMaxColumn(i);if(1===t.column)return i>1?new a.L(i-1,e.getLineMaxColumn(i-1)):t;const s=e.getLineContent(i);for(let e=t.column-1;e>1;e--){const t=s.charCodeAt(e-2),r=s.charCodeAt(e-1);if(95===t&&95!==r)return new a.L(i,e);if(45===t&&45!==r)return new a.L(i,e);if((n.mK(t)||n.T5(t))&&n.df(r))return new a.L(i,e);if(n.df(t)&&n.df(r)&&e+1=l.start+1&&(l=c._findNextWordOnLine(e,t,new a.L(o,l.end+1))),s=l?l.start+1:t.getLineMaxColumn(o);return new a.L(o,s)}static _moveWordPartRight(e,t){const i=t.lineNumber,o=e.getLineMaxColumn(i);if(t.column===o)return i1?u=1:(d--,u=n.getLineMaxColumn(d)):(g&&u<=g.end+1&&(g=c._findPreviousWordOnLine(i,n,new a.L(d,g.start+1))),g?u=g.end+1:u>1?u=1:(d--,u=n.getLineMaxColumn(d))),new l.e(d,u,h.lineNumber,h.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;const n=new a.L(i.positionLineNumber,i.positionColumn);return this._deleteInsideWordWhitespace(t,n)||this._deleteInsideWordDetermineDeleteRange(e,t,n)}static _charAtIsWhitespace(e,t){const i=e.charCodeAt(t);return 32===i||9===i}static _deleteInsideWordWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=i.length;if(0===n)return null;let o=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,o))return null;let s=Math.min(t.column-1,n-1);if(!this._charAtIsWhitespace(i,s))return null;for(;o>0&&this._charAtIsWhitespace(i,o-1);)o--;for(;s+11?new l.e(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumbere.start+1<=i.column&&i.column<=e.end+1,r=(e,t)=>(e=Math.min(e,i.column),t=Math.max(t,i.column),new l.e(i.lineNumber,e,i.lineNumber,t)),a=e=>{let t=e.start+1,i=e.end+1,s=!1;for(;i-11&&this._charAtIsWhitespace(n,t-2);)t--;return r(t,i)},h=c._findPreviousWordOnLine(e,t,i);if(h&&s(h))return a(h);const d=c._findNextWordOnLine(e,t,i);return d&&s(d)?a(d):h&&d?r(h.end+1,d.start+1):h?r(h.start+1,h.end+1):d?r(d.start+1,d.end+1):r(1,o+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),n=c._moveWordPartLeft(e,i);return new l.e(i.lineNumber,i.column,n.lineNumber,n.column)}static _findFirstNonWhitespaceChar(e,t){const i=e.length;for(let n=t;n=p.start+1&&(p=c._findNextWordOnLine(i,n,new a.L(h,p.end+1))),p?d=p.start+1:dBoolean(e)))}},55343:(e,t,i)=>{"use strict";i.d(t,{LM:()=>u,LN:()=>v,Tp:()=>_,Vi:()=>g,rS:()=>f});var n=i(50187),o=i(24314),s=i(3860),r=i(19111),a=i(7988),l=i(83158);const c=()=>!0,h=()=>!1,d=e=>" "===e||"\t"===e;class u{static shouldRecreate(e){return e.hasChanged(139)||e.hasChanged(125)||e.hasChanged(35)||e.hasChanged(74)||e.hasChanged(76)||e.hasChanged(77)||e.hasChanged(5)||e.hasChanged(9)||e.hasChanged(7)||e.hasChanged(8)||e.hasChanged(12)||e.hasChanged(123)||e.hasChanged(48)||e.hasChanged(87)}constructor(e,t,i,n){this.languageConfigurationService=n,this._cursorMoveConfigurationBrand=void 0,this._languageId=e;const o=i.options,s=o.get(139),r=o.get(48);this.readOnly=o.get(87),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=o.get(111),this.lineHeight=r.lineHeight,this.typicalHalfwidthCharacterWidth=r.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(s.height/this.lineHeight)-2),this.useTabStops=o.get(123),this.wordSeparators=o.get(125),this.emptySelectionClipboard=o.get(35),this.copyWithSyntaxHighlighting=o.get(23),this.multiCursorMergeOverlapping=o.get(74),this.multiCursorPaste=o.get(76),this.multiCursorLimit=o.get(77),this.autoClosingBrackets=o.get(5),this.autoClosingQuotes=o.get(9),this.autoClosingDelete=o.get(7),this.autoClosingOvertype=o.get(8),this.autoSurround=o.get(12),this.autoIndent=o.get(10),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(e,this.autoClosingQuotes,!0),bracket:this._getShouldAutoClose(e,this.autoClosingBrackets,!1)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(e).getAutoClosingPairs();const a=this.languageConfigurationService.getLanguageConfiguration(e).getSurroundingPairs();if(a)for(const e of a)this.surroundingPairs[e.open]=e.close}get electricChars(){var e;if(!this._electricChars){this._electricChars={};const t=null===(e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter)||void 0===e?void 0:e.getElectricCharacters();if(t)for(const e of t)this._electricChars[e]=!0}return this._electricChars}onElectricCharacter(e,t,i){const n=(0,r.wH)(t,i-1),o=this.languageConfigurationService.getLanguageConfiguration(n.languageId).electricCharacter;return o?o.onElectricCharacter(e,n,i-n.firstCharOffset):null}normalizeIndentation(e){return(0,l.x)(e,this.indentSize,this.insertSpaces)}_getShouldAutoClose(e,t,i){switch(t){case"beforeWhitespace":return d;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(e,i);case"always":return c;case"never":return h}}_getLanguageDefinedShouldAutoClose(e,t){const i=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet(t);return e=>-1!==i.indexOf(e)}visibleColumnFromColumn(e,t){return a.i.visibleColumnFromColumn(e.getLineContent(t.lineNumber),t.column,this.tabSize)}columnFromVisibleColumn(e,t,i){const n=a.i.columnFromVisibleColumn(e.getLineContent(t),i,this.tabSize),o=e.getLineMinColumn(t);if(ns?s:n}}class g{static fromModelState(e){return new p(e)}static fromViewState(e){return new m(e)}static fromModelSelection(e){const t=s.Y.liftSelection(e),i=new f(o.e.fromPositions(t.getSelectionStart()),0,0,t.getPosition(),0);return g.fromModelState(i)}static fromModelSelections(e){const t=[];for(let i=0,n=e.length;i{"use strict";i.d(t,{f0:()=>o,hZ:()=>n,iy:()=>s});class n{constructor(e,t){this.changes=e,this.hitTimeout=t}}class o{constructor(e,t,i){this.originalRange=e,this.modifiedRange=t,this.innerChanges=i}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}get changedLineCount(){return Math.max(this.originalRange.length,this.modifiedRange.length)}}class s{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}}},30653:(e,t,i)=>{"use strict";i.d(t,{p:()=>n});class n{constructor(e,t,i,n,o,s){this.id=e,this.label=t,this.alias=i,this._precondition=n,this._run=o,this._contextKeyService=s}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(e){return this.isSupported()?this._run(e):Promise.resolve(void 0)}}},96518:(e,t,i)=>{"use strict";i.d(t,{g:()=>n});const n={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},29102:(e,t,i)=>{"use strict";i.d(t,{u:()=>n});var n,o=i(63580),s=i(93983);!function(e){e.editorSimpleInput=new s.uy("editorSimpleInput",!1,!0),e.editorTextFocus=new s.uy("editorTextFocus",!1,o.NC("editorTextFocus","Whether the editor text has focus (cursor is blinking)")),e.focus=new s.uy("editorFocus",!1,o.NC("editorFocus","Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),e.textInputFocus=new s.uy("textInputFocus",!1,o.NC("textInputFocus","Whether an editor or a rich text input has focus (cursor is blinking)")),e.readOnly=new s.uy("editorReadonly",!1,o.NC("editorReadonly","Whether the editor is read only")),e.inDiffEditor=new s.uy("inDiffEditor",!1,o.NC("inDiffEditor","Whether the context is a diff editor")),e.columnSelection=new s.uy("editorColumnSelection",!1,o.NC("editorColumnSelection","Whether `editor.columnSelection` is enabled")),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new s.uy("editorHasSelection",!1,o.NC("editorHasSelection","Whether the editor has text selected")),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new s.uy("editorHasMultipleSelections",!1,o.NC("editorHasMultipleSelections","Whether the editor has multiple selections")),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new s.uy("editorTabMovesFocus",!1,o.NC("editorTabMovesFocus","Whether `Tab` will move focus out of the editor")),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInWalkThroughSnippet=new s.uy("isInEmbeddedEditor",!1,!0),e.canUndo=new s.uy("canUndo",!1,!0),e.canRedo=new s.uy("canRedo",!1,!0),e.hoverVisible=new s.uy("editorHoverVisible",!1,o.NC("editorHoverVisible","Whether the editor hover is visible")),e.hoverFocused=new s.uy("editorHoverFocused",!1,o.NC("editorHoverFocused","Whether the editor hover is focused")),e.stickyScrollFocused=new s.uy("stickyScrollFocused",!1,o.NC("stickyScrollFocused","Whether the sticky scroll is focused")),e.stickyScrollVisible=new s.uy("stickyScrollVisible",!1,o.NC("stickyScrollVisible","Whether the sticky scroll is visible")),e.standaloneColorPickerVisible=new s.uy("standaloneColorPickerVisible",!1,o.NC("standaloneColorPickerVisible","Whether the standalone color picker is visible")),e.standaloneColorPickerFocused=new s.uy("standaloneColorPickerFocused",!1,o.NC("standaloneColorPickerFocused","Whether the standalone color picker is focused")),e.inCompositeEditor=new s.uy("inCompositeEditor",void 0,o.NC("inCompositeEditor","Whether the editor is part of a larger editor (e.g. notebooks)")),e.notInCompositeEditor=e.inCompositeEditor.toNegated(),e.languageId=new s.uy("editorLangId","",o.NC("editorLangId","The language identifier of the editor")),e.hasCompletionItemProvider=new s.uy("editorHasCompletionItemProvider",!1,o.NC("editorHasCompletionItemProvider","Whether the editor has a completion item provider")),e.hasCodeActionsProvider=new s.uy("editorHasCodeActionsProvider",!1,o.NC("editorHasCodeActionsProvider","Whether the editor has a code actions provider")),e.hasCodeLensProvider=new s.uy("editorHasCodeLensProvider",!1,o.NC("editorHasCodeLensProvider","Whether the editor has a code lens provider")),e.hasDefinitionProvider=new s.uy("editorHasDefinitionProvider",!1,o.NC("editorHasDefinitionProvider","Whether the editor has a definition provider")),e.hasDeclarationProvider=new s.uy("editorHasDeclarationProvider",!1,o.NC("editorHasDeclarationProvider","Whether the editor has a declaration provider")),e.hasImplementationProvider=new s.uy("editorHasImplementationProvider",!1,o.NC("editorHasImplementationProvider","Whether the editor has an implementation provider")),e.hasTypeDefinitionProvider=new s.uy("editorHasTypeDefinitionProvider",!1,o.NC("editorHasTypeDefinitionProvider","Whether the editor has a type definition provider")),e.hasHoverProvider=new s.uy("editorHasHoverProvider",!1,o.NC("editorHasHoverProvider","Whether the editor has a hover provider")),e.hasDocumentHighlightProvider=new s.uy("editorHasDocumentHighlightProvider",!1,o.NC("editorHasDocumentHighlightProvider","Whether the editor has a document highlight provider")),e.hasDocumentSymbolProvider=new s.uy("editorHasDocumentSymbolProvider",!1,o.NC("editorHasDocumentSymbolProvider","Whether the editor has a document symbol provider")),e.hasReferenceProvider=new s.uy("editorHasReferenceProvider",!1,o.NC("editorHasReferenceProvider","Whether the editor has a reference provider")),e.hasRenameProvider=new s.uy("editorHasRenameProvider",!1,o.NC("editorHasRenameProvider","Whether the editor has a rename provider")),e.hasSignatureHelpProvider=new s.uy("editorHasSignatureHelpProvider",!1,o.NC("editorHasSignatureHelpProvider","Whether the editor has a signature help provider")),e.hasInlayHintsProvider=new s.uy("editorHasInlayHintsProvider",!1,o.NC("editorHasInlayHintsProvider","Whether the editor has an inline hints provider")),e.hasDocumentFormattingProvider=new s.uy("editorHasDocumentFormattingProvider",!1,o.NC("editorHasDocumentFormattingProvider","Whether the editor has a document formatting provider")),e.hasDocumentSelectionFormattingProvider=new s.uy("editorHasDocumentSelectionFormattingProvider",!1,o.NC("editorHasDocumentSelectionFormattingProvider","Whether the editor has a document selection formatting provider")),e.hasMultipleDocumentFormattingProvider=new s.uy("editorHasMultipleDocumentFormattingProvider",!1,o.NC("editorHasMultipleDocumentFormattingProvider","Whether the editor has multiple document formatting providers")),e.hasMultipleDocumentSelectionFormattingProvider=new s.uy("editorHasMultipleDocumentSelectionFormattingProvider",!1,o.NC("editorHasMultipleDocumentSelectionFormattingProvider","Whether the editor has multiple document selection formatting providers"))}(n||(n={}))},10637:(e,t,i)=>{"use strict";i.d(t,{n:()=>s,y:()=>o});const n=[];function o(e){n.push(e)}function s(){return n.slice(0)}},45797:(e,t,i)=>{"use strict";i.d(t,{N:()=>n});class n{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return 0!=(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const i=this.getFontStyle(e);return 1&i&&(t+=" mtki"),2&i&&(t+=" mtkb"),4&i&&(t+=" mtku"),8&i&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const i=this.getForeground(e),n=this.getFontStyle(e);let o=`color: ${t[i]};`;1&n&&(o+="font-style: italic;"),2&n&&(o+="font-weight: bold;");let s="";return 4&n&&(s+=" underline"),8&n&&(s+=" line-through"),s&&(o+=`text-decoration:${s};`),o}static getPresentationFromMetadata(e){const t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&i),bold:Boolean(2&i),underline:Boolean(4&i),strikethrough:Boolean(8&i)}}}},96887:(e,t,i)=>{"use strict";i.d(t,{mY:()=>l,gX:()=>n,MY:()=>r,DI:()=>b,AD:()=>w,gl:()=>c,bw:()=>o,MO:()=>S,ln:()=>C,WW:()=>s,uZ:()=>a,WU:()=>_,RW:()=>k,hG:()=>v,vx:()=>y});var n,o,s,r,a,l,c,h=i(73046),d=i(70666),u=i(24314),g=i(4669),p=i(5976),m=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class f extends p.JT{get isResolved(){return this._isResolved}constructor(e,t,i){super(),this._registry=e,this._languageId=t,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return m(this,void 0,void 0,(function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}))}_create(){return m(this,void 0,void 0,(function*(){const e=yield this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}))}}class _{constructor(e,t,i){this.offset=e,this.type=t,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class v{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class b{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){const t=new Map;t.set(0,h.l.symbolMethod),t.set(1,h.l.symbolFunction),t.set(2,h.l.symbolConstructor),t.set(3,h.l.symbolField),t.set(4,h.l.symbolVariable),t.set(5,h.l.symbolClass),t.set(6,h.l.symbolStruct),t.set(7,h.l.symbolInterface),t.set(8,h.l.symbolModule),t.set(9,h.l.symbolProperty),t.set(10,h.l.symbolEvent),t.set(11,h.l.symbolOperator),t.set(12,h.l.symbolUnit),t.set(13,h.l.symbolValue),t.set(15,h.l.symbolEnum),t.set(14,h.l.symbolConstant),t.set(15,h.l.symbolEnum),t.set(16,h.l.symbolEnumMember),t.set(17,h.l.symbolKeyword),t.set(27,h.l.symbolSnippet),t.set(18,h.l.symbolText),t.set(19,h.l.symbolColor),t.set(20,h.l.symbolFile),t.set(21,h.l.symbolReference),t.set(22,h.l.symbolCustomColor),t.set(23,h.l.symbolFolder),t.set(24,h.l.symbolTypeParameter),t.set(25,h.l.account),t.set(26,h.l.issues),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for CompletionItemKind "+e),i=h.l.symbolProperty),i};const i=new Map;i.set("method",0),i.set("function",1),i.set("constructor",2),i.set("field",3),i.set("variable",4),i.set("class",5),i.set("struct",6),i.set("interface",7),i.set("module",8),i.set("property",9),i.set("event",10),i.set("operator",11),i.set("unit",12),i.set("value",13),i.set("constant",14),i.set("enum",15),i.set("enum-member",16),i.set("enumMember",16),i.set("keyword",17),i.set("snippet",27),i.set("text",18),i.set("color",19),i.set("file",20),i.set("reference",21),i.set("customcolor",22),i.set("folder",23),i.set("type-parameter",24),i.set("typeParameter",24),i.set("account",25),i.set("issue",26),e.fromString=function(e,t){let n=i.get(e);return void 0!==n||t||(n=9),n}}(n||(n={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(o||(o={}));class C{constructor(e,t,i,n){this.range=e,this.text=t,this.completionKind=i,this.isSnippetText=n}equals(e){return u.e.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}function y(e){return e&&d.o.isUri(e.uri)&&u.e.isIRange(e.range)&&(u.e.isIRange(e.originSelectionRange)||u.e.isIRange(e.targetSelectionRange))}!function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(s||(s={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(r||(r={})),function(e){const t=new Map;t.set(0,h.l.symbolFile),t.set(1,h.l.symbolModule),t.set(2,h.l.symbolNamespace),t.set(3,h.l.symbolPackage),t.set(4,h.l.symbolClass),t.set(5,h.l.symbolMethod),t.set(6,h.l.symbolProperty),t.set(7,h.l.symbolField),t.set(8,h.l.symbolConstructor),t.set(9,h.l.symbolEnum),t.set(10,h.l.symbolInterface),t.set(11,h.l.symbolFunction),t.set(12,h.l.symbolVariable),t.set(13,h.l.symbolConstant),t.set(14,h.l.symbolString),t.set(15,h.l.symbolNumber),t.set(16,h.l.symbolBoolean),t.set(17,h.l.symbolArray),t.set(18,h.l.symbolObject),t.set(19,h.l.symbolKey),t.set(20,h.l.symbolNull),t.set(21,h.l.symbolEnumMember),t.set(22,h.l.symbolStruct),t.set(23,h.l.symbolEvent),t.set(24,h.l.symbolOperator),t.set(25,h.l.symbolTypeParameter),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for SymbolKind "+e),i=h.l.symbolProperty),i}}(a||(a={}));class w{static fromValue(e){switch(e){case"comment":return w.Comment;case"imports":return w.Imports;case"region":return w.Region}return new w(e)}constructor(e){this.value=e}}w.Comment=new w("comment"),w.Imports=new w("imports"),w.Region=new w("region"),function(e){e.is=function(e){return!(!e||"object"!=typeof e)&&"string"==typeof e.id&&"string"==typeof e.title}}(l||(l={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(c||(c={}));class S{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then((e=>{e&&e.dispose()}))}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const k=new class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new g.Q5,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),(0,p.OF)((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var i;null===(i=this._factories.get(e))||void 0===i||i.dispose();const n=new f(this,e,t);return this._factories.set(e,n),(0,p.OF)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}getOrCreate(e){return m(this,void 0,void 0,(function*(){const t=this.get(e);if(t)return t;const i=this._factories.get(e);return!i||i.isResolved?null:(yield i.resolve(),this.get(e))}))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}},75383:(e,t,i)=>{"use strict";i.d(t,{$9:()=>h,UF:()=>c,n8:()=>l,r7:()=>a,tI:()=>d});var n=i(97295),o=i(49119),s=i(19111),r=i(51381);function a(e,t,i,s=!0,r){if(e<4)return null;const a=r.getLanguageConfiguration(t.tokenization.getLanguageId()).indentRulesSupport;if(!a)return null;if(i<=1)return{indentation:"",action:null};for(let e=i-1;e>0&&""===t.getLineContent(e);e--)if(1===e)return{indentation:"",action:null};const l=function(e,t,i){const n=e.tokenization.getLanguageIdAtPosition(t,0);if(t>1){let o,s=-1;for(o=t-1;o>=1;o--){if(e.tokenization.getLanguageIdAtPosition(o,0)!==n)return s;const t=e.getLineContent(o);if(!i.shouldIgnore(t)&&!/^\s+$/.test(t)&&""!==t)return o;s=o}}return-1}(t,i,a);if(l<0)return null;if(l<1)return{indentation:"",action:null};const c=t.getLineContent(l);if(a.shouldIncrease(c)||a.shouldIndentNextLine(c))return{indentation:n.V8(c),action:o.wU.Indent,line:l};if(a.shouldDecrease(c))return{indentation:n.V8(c),action:null,line:l};{if(1===l)return{indentation:n.V8(t.getLineContent(l)),action:null,line:l};const e=l-1,i=a.getIndentMetadata(t.getLineContent(e));if(!(3&i)&&4&i){let i=0;for(let n=e-1;n>0;n--)if(!a.shouldIndentNextLine(t.getLineContent(n))){i=n;break}return{indentation:n.V8(t.getLineContent(i+1)),action:null,line:i+1}}if(s)return{indentation:n.V8(t.getLineContent(l)),action:null,line:l};for(let e=l;e>0;e--){const i=t.getLineContent(e);if(a.shouldIncrease(i))return{indentation:n.V8(i),action:o.wU.Indent,line:e};if(a.shouldIndentNextLine(i)){let i=0;for(let n=e-1;n>0;n--)if(!a.shouldIndentNextLine(t.getLineContent(e))){i=n;break}return{indentation:n.V8(t.getLineContent(i+1)),action:null,line:i+1}}if(a.shouldDecrease(i))return{indentation:n.V8(i),action:null,line:e}}return{indentation:n.V8(t.getLineContent(1)),action:null,line:1}}}function l(e,t,i,s,r,l){if(e<4)return null;const c=l.getLanguageConfiguration(i);if(!c)return null;const h=l.getLanguageConfiguration(i).indentRulesSupport;if(!h)return null;const d=a(e,t,s,void 0,l),u=t.getLineContent(s);if(d){const i=d.line;if(void 0!==i){let a=!0;for(let e=i;e0&&h.getLanguageId(0)!==d.languageId?(m=!0,g=u.substr(0,i.startColumn-1-d.firstCharOffset)):g=h.getLineContent().substring(0,i.startColumn-1),p=i.isEmpty()?u.substr(i.startColumn-1-d.firstCharOffset):(0,r.n2)(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-d.firstCharOffset);const f=c.getLanguageConfiguration(d.languageId).indentRulesSupport;if(!f)return null;const _=g,v=n.V8(g),b={tokenization:{getLineTokens:e=>t.tokenization.getLineTokens(e),getLanguageId:()=>t.getLanguageId(),getLanguageIdAtPosition:(e,i)=>t.getLanguageIdAtPosition(e,i)},getLineContent:e=>e===i.startLineNumber?_:t.getLineContent(e)},C=n.V8(h.getLineContent()),y=a(e,b,i.startLineNumber+1,void 0,c);if(!y){const e=m?C:v;return{beforeEnter:e,afterEnter:e}}let w=m?C:y.indentation;return y.action===o.wU.Indent&&(w=l.shiftIndent(w)),f.shouldDecrease(p)&&(w=l.unshiftIndent(w)),{beforeEnter:m?C:v,afterEnter:w}}function h(e,t,i,n,s,l){if(e<4)return null;const c=(0,r.n2)(t,i.startLineNumber,i.startColumn);if(c.firstCharOffset)return null;const h=l.getLanguageConfiguration(c.languageId).indentRulesSupport;if(!h)return null;const d=c.getLineContent(),u=d.substr(0,i.startColumn-1-c.firstCharOffset);let g;if(g=i.isEmpty()?d.substr(i.startColumn-1-c.firstCharOffset):(0,r.n2)(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-c.firstCharOffset),!h.shouldDecrease(u+g)&&h.shouldDecrease(u+n+g)){const n=a(e,t,i.startLineNumber,!1,l);if(!n)return null;let r=n.indentation;return n.action!==o.wU.Indent&&(r=s.unshiftIndent(r)),r}return null}function d(e,t,i){const n=i.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;return n?t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null}},1615:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(49119),o=i(51381);function s(e,t,i,s){const r=(0,o.n2)(t,i.startLineNumber,i.startColumn),a=s.getLanguageConfiguration(r.languageId);if(!a)return null;const l=r.getLineContent(),c=l.substr(0,i.startColumn-1-r.firstCharOffset);let h;h=i.isEmpty()?l.substr(i.startColumn-1-r.firstCharOffset):(0,o.n2)(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-r.firstCharOffset);let d="";if(i.startLineNumber>1&&0===r.firstCharOffset){const e=(0,o.n2)(t,i.startLineNumber-1);e.languageId===r.languageId&&(d=e.getLineContent())}const u=a.onEnter(e,d,c,h);if(!u)return null;const g=u.indentAction;let p=u.appendText;const m=u.removeText||0;p?g===n.wU.Indent&&(p="\t"+p):p=g===n.wU.Indent||g===n.wU.IndentOutdent?"\t":"";let f=(0,o.u0)(t,i.startLineNumber,i.startColumn);return m&&(f=f.substring(0,f.length-m)),{indentAction:g,appendText:p,removeText:m,indentation:f}}},72042:(e,t,i)=>{"use strict";i.d(t,{O:()=>n});const n=(0,i(72065).yh)("languageService")},49119:(e,t,i)=>{"use strict";var n;i.d(t,{V6:()=>o,c$:()=>s,wU:()=>n}),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(n||(n={}));class o{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t{"use strict";i.d(t,{c_:()=>T,u0:()=>R,n2:()=>O});var n=i(4669),o=i(5976),s=i(97295),r=i(270),a=i(49119),l=i(19111);class c{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new a.V6(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new a.V6({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new a.V6({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"==typeof e.autoCloseBefore?e.autoCloseBefore:c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"==typeof e.autoCloseBefore?e.autoCloseBefore:c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t",c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t";var h=i(9488),d=i(34302);class u{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const t=i.charAt(i.length-1);e.push(t)}return(0,h.EB)(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const n=t.findTokenIndexAtOffset(i-1);if((0,l.Bu)(t.getStandardTokenType(n)))return null;const o=this._richEditBrackets.reversedRegex,s=t.getLineContent().substring(0,i-1)+e,r=d.Vr.findPrevBracketInRange(o,1,s,0,s.length);if(!r)return null;const a=s.substring(r.startColumn-1,r.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const c=t.getActualLineContentBefore(r.startColumn-1);return/^\s*$/.test(c)?{matchOpenBracket:a}:null}}function g(e){return e.global&&(e.lastIndex=0),!0}class p{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&g(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&g(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&g(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&g(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}var m=i(17301);class f{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=f._createOpenBracketRegExp(e[0]),i=f._createCloseBracketRegExp(e[1]);t&&i&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:i})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,n){if(e>=3)for(let e=0,o=this._regExpRules.length;e!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return o.action}if(e>=2&&i.length>0&&n.length>0)for(let e=0,t=this._brackets.length;e=2&&i.length>0)for(let e=0,t=this._brackets.length;e{const t=new Set;return{info:new L(this,e,t),closing:t}})),o=new w.b((e=>{const t=new Set,i=new Set;return{info:new E(this,e,t,i),opening:t,openingColorized:i}}));for(const[e,t]of i){const i=n.get(e),s=o.get(t);i.closing.add(s.info),s.opening.add(i.info)}const s=t.colorizedBracketPairs?k(t.colorizedBracketPairs):i.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[e,t]of s){const i=n.get(e),s=o.get(t);i.closing.add(s.info),s.openingColorized.add(i.info),s.opening.add(i.info)}this._openingBrackets=new Map([...n.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...o.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}}function k(e){return e.filter((([e,t])=>""!==e&&""!==t))}class x{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class L extends x{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class E extends x{constructor(e,t,i,n){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=n,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var N=function(e,t){return function(i,n){t(i,n,e)}};class D{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const T=(0,_.yh)("languageConfigurationService");let I=class extends o.JT{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new V),this.onDidChangeEmitter=this._register(new n.Q5),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const i=new Set(Object.values(A));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>i.has(e))),n=e.change.overrides.filter((([e,t])=>t.some((e=>i.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new D(void 0));else for(const e of n)this.languageService.isRegisteredLanguageId(e)&&(this.configurations.delete(e),this.onDidChangeEmitter.fire(new D(e)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new D(e.languageId))})))}register(e,t,i){return this._registry.register(e,t,i)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,i,n){let o=t.getLanguageConfiguration(e);if(!o){if(!n.isRegisteredLanguageId(e))return new W(e,{});o=new W(e,{})}const s=function(e,t){const i=t.getValue(A.brackets,{overrideIdentifier:e}),n=t.getValue(A.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:M(i),colorizedBracketPairs:M(n)}}(o.languageId,i),r=F([o.underlyingConfig,s]);return new W(o.languageId,r)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};I=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([N(0,v.Ui),N(1,b.O)],I);const A={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function M(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}function R(e,t,i){const n=e.getLineContent(t);let o=s.V8(n);return o.length>i-1&&(o=o.substring(0,i-1)),o}function O(e,t,i){e.tokenization.forceTokenization(t);const n=e.tokenization.getLineTokens(t),o=void 0===i?e.getLineMaxColumn(t)-1:i-1;return(0,l.wH)(n,o)}class P{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new B(e,t,++this._order);return this._entries.push(i),this._resolved=null,(0,o.OF)((()=>{for(let e=0;ee.configuration))))}}function F(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const i of e)t={comments:i.comments||t.comments,brackets:i.brackets||t.brackets,wordPattern:i.wordPattern||t.wordPattern,indentationRules:i.indentationRules||t.indentationRules,onEnterRules:i.onEnterRules||t.onEnterRules,autoClosingPairs:i.autoClosingPairs||t.autoClosingPairs,surroundingPairs:i.surroundingPairs||t.surroundingPairs,autoCloseBefore:i.autoCloseBefore||t.autoCloseBefore,folding:i.folding||t.folding,colorizedBracketPairs:i.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:i.__electricCharacterSupport||t.__electricCharacterSupport};return t}class B{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class H{constructor(e){this.languageId=e}}class V extends o.JT{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new n.Q5),this.onDidChange=this._onDidChange.event,this._register(this.register(y.bd,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,i=0){let n=this._entries.get(e);n||(n=new P(e),this._entries.set(e,n));const s=n.register(t,i);return this._onDidChange.fire(new H(e)),(0,o.OF)((()=>{s.dispose(),this._onDidChange.fire(new H(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return(null==t?void 0:t.getResolvedConfiguration())||null}}class W{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new f(this.underlyingConfig):null,this.comments=W._handleComments(this.underlyingConfig),this.characterPair=new c(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||r.Af,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new p(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new S(e,this.underlyingConfig)}getWordDefinition(){return(0,r.eq)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new d.EA(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new u(this.brackets)),this._electricCharacter}onEnter(e,t,i,n){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,n):null}getAutoClosingPairs(){return new a.c$(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){const[e,n]=t.blockComment;i.blockCommentStartToken=e,i.blockCommentEndToken=n}return i}}(0,C.z)(T,I,1)},68801:(e,t,i)=>{"use strict";i.d(t,{bd:()=>c,dQ:()=>l});var n=i(63580),o=i(4669),s=i(89872),r=i(81170),a=i(23193);const l=new class{constructor(){this._onDidChangeLanguages=new o.Q5,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t{"use strict";i.d(t,{Dy:()=>r,Ri:()=>s,TJ:()=>o});var n=i(96887);const o=new class{clone(){return this}equals(e){return this===e}};function s(e,t){return new n.hG([new n.WU(0,"",e)],t)}function r(e,t){const i=new Uint32Array(2);return i[0]=0,i[1]=(32768|e<<0|2<<24)>>>0,new n.DI(i,null===t?o:t)}},19111:(e,t,i)=>{"use strict";function n(e,t){const i=e.getCount(),n=e.findTokenIndexAtOffset(t),s=e.getLanguageId(n);let r=n;for(;r+10&&e.getLanguageId(a-1)===s;)a--;return new o(e,s,a,r+1,e.getStartOffset(a),e.getEndOffset(r))}i.d(t,{Bu:()=>s,wH:()=>n});class o{constructor(e,t,i,n,o,s){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=o,this._lastCharOffset=s}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function s(e){return 0!=(3&e)}},34302:(e,t,i)=>{"use strict";i.d(t,{EA:()=>a,Vr:()=>p});var n=i(97295),o=i(50072),s=i(24314);class r{constructor(e,t,i,n,o,s){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=i,this.close=n,this.forwardRegex=o,this.reversedRegex=s,this._openSet=r._toSet(this.open),this._closeSet=r._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const i of e)t.add(i);return t}}class a{constructor(e,t){this._richEditBracketsBrand=void 0;const i=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const i=[];for(let e=0;e{const[i,n]=e,[o,s]=t;return i===o||i===s||n===o||n===s},o=(e,n)=>{const o=Math.min(e,n),s=Math.max(e,n);for(let e=0;e0&&s.push({open:o,close:r})}return s}(t);this.brackets=i.map(((t,n)=>new r(e,n,t.open,t.close,function(e,t,i,n){let o=[];o=o.concat(e),o=o.concat(t);for(let e=0,t=o.length;e=0&&n.push(t);for(const t of s.close)t.indexOf(e)>=0&&n.push(t)}}function c(e,t){return e.length-t.length}function h(e){if(e.length<=1)return e;const t=[],i=new Set;for(const n of e)i.has(n)||(t.push(n),i.add(n));return t}function d(e){const t=/^[\w ]+$/.test(e);return e=n.ec(e),t?`\\b${e}\\b`:e}function u(e){const t=`(${e.map(d).join(")|(")})`;return n.GF(t,!0)}const g=function(){let e=null,t=null;return function(i){return e!==i&&(e=i,t=function(e){const t=new Uint16Array(e.length);let i=0;for(let n=e.length-1;n>=0;n--)t[i++]=e.charCodeAt(n);return o.oe().decode(t)}(e)),t}}();class p{static _findPrevBracketInText(e,t,i,n){const o=i.match(e);if(!o)return null;const r=i.length-(o.index||0),a=o[0].length,l=n+r;return new s.e(t,l-a+1,t,l+1)}static findPrevBracketInRange(e,t,i,n,o){const s=g(i).substring(i.length-o,i.length-n);return this._findPrevBracketInText(e,t,s,n)}static findNextBracketInText(e,t,i,n){const o=i.match(e);if(!o)return null;const r=o.index||0,a=o[0].length;if(0===a)return null;const l=n+r;return new s.e(t,l+1,t,l+1+a)}static findNextBracketInRange(e,t,i,n,o){const s=i.substring(n,o);return this.findNextBracketInText(e,t,s,n)}}},82963:(e,t,i)=>{"use strict";i.d(t,{C2:()=>c,Fq:()=>h});var n=i(97295),o=i(77378),s=i(96887),r=i(276),a=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};const l={getInitialState:()=>r.TJ,tokenizeEncoded:(e,t,i)=>(0,r.Dy)(0,i)};function c(e,t,i){return a(this,void 0,void 0,(function*(){if(!i)return d(t,e.languageIdCodec,l);const n=yield s.RW.getOrCreate(i);return d(t,e.languageIdCodec,n||l)}))}function h(e,t,i,n,o,s,r){let a="
    ",l=n,c=0,h=!0;for(let d=0,u=t.getCount();d0;)r&&h?(g+=" ",h=!1):(g+=" ",h=!0),e--;break}case 60:g+="<",h=!1;break;case 62:g+=">",h=!1;break;case 38:g+="&",h=!1;break;case 0:g+="�",h=!1;break;case 65279:case 8232:case 8233:case 133:g+="�",h=!1;break;case 13:g+="​",h=!1;break;case 32:r&&h?(g+=" ",h=!1):(g+=" ",h=!0);break;default:g+=String.fromCharCode(t),h=!1}}if(a+=`${g}`,u>o||l>=o)break}return a+="
    ",a}function d(e,t,i){let s='
    ';const r=n.uq(e);let a=i.getInitialState();for(let e=0,l=r.length;e0&&(s+="
    ");const c=i.tokenizeEncoded(l,!0,a);o.A.convertToEndOffset(c.tokens,l.length);const h=new o.A(c.tokens,l,t).inflate();let d=0;for(let e=0,t=h.getCount();e${n.YU(l.substring(d,i))}`,d=i}a=c.endState}return s+="
    ",s}},84973:(e,t,i)=>{"use strict";i.d(t,{F5:()=>s,Hf:()=>h,Qi:()=>d,RM:()=>r,Tx:()=>u,U:()=>o,dJ:()=>l,je:()=>g,pt:()=>p,sh:()=>n,tk:()=>c});var n,o,s,r,a=i(36248);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(n||(n={})),function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"}(o||(o={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(s||(s={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(r||(r={}));class l{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,a.fS)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class c{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function h(e){return e&&"function"==typeof e.read}class d{constructor(e,t,i,n,o,s){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=n,this.isAutoWhitespaceEdit=o,this._isTracked=s}}class u{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}class g{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}function p(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},41720:(e,t,i)=>{"use strict";i.d(t,{BH:()=>f,Dm:()=>v,Kd:()=>l,Y0:()=>c,n2:()=>_});var n=i(17301),o=i(7988),s=i(45035),r=i(61761);class a{get length(){return this._length}constructor(e){this._length=e}}class l extends a{static create(e,t,i){let n=e.length;return t&&(n=(0,s.Ii)(n,t.length)),i&&(n=(0,s.Ii)(n,i.length)),new l(n,e,t,i,t?t.missingOpeningBracketIds:r.tS.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,i,n,o){super(e),this.openingBracket=t,this.child=i,this.closingBracket=n,this.missingOpeningBracketIds=o}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new l(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation((0,s.Ii)(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class c extends a{static create23(e,t,i,n=!1){let o=e.length,r=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(o=(0,s.Ii)(o,t.length),r=r.merge(t.missingOpeningBracketIds),i){if(e.listHeight!==i.listHeight)throw new Error("Invalid list heights");o=(0,s.Ii)(o,i.length),r=r.merge(i.missingOpeningBracketIds)}return n?new d(o,e.listHeight+1,e,t,i,r):new h(o,e.listHeight+1,e,t,i,r)}static getEmpty(){return new g(s.xl,0,[],r.tS.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,i){super(e),this.listHeight=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),i=4===t.kind?t.toMutable():t;return t!==i&&this.setChild(e-1,i),i}makeFirstElementMutable(){if(this.throwIfImmutable(),0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new n.he;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,i=this.getChild(0).missingOpeningBracketIds;for(let n=1;n{"use strict";i.d(t,{Q:()=>o,Y:()=>s});var n=i(45035);class o{constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}toString(){return`[${(0,n.Hw)(this.startOffset)}...${(0,n.Hw)(this.endOffset)}) -> ${(0,n.Hw)(this.newLength)}`}}class s{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>r.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):null;return null===i?null:(0,n.BE)(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?(0,n.Hg)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):(0,n.Hg)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=(0,n.Hw)(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?(0,n.Hg)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):(0,n.Hg)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx{"use strict";i.d(t,{Z:()=>c});var n=i(97295),o=i(41720),s=i(45035),r=i(61761),a=i(6735);class l{static createFromLanguage(e,t){function i(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const n=new Map;for(const t of e.bracketsNew.openingBrackets){const e=(0,s.Hg)(0,t.bracketText.length),l=i(t),c=r.tS.getEmpty().add(l,r.Qw);n.set(t.bracketText,new a.WU(e,1,l,c,o.n2.create(e,t,c)))}for(const t of e.bracketsNew.closingBrackets){const e=(0,s.Hg)(0,t.bracketText.length);let l=r.tS.getEmpty();const c=t.getOpeningBrackets();for(const e of c)l=l.add(i(e),r.Qw);n.set(t.bracketText,new a.WU(e,2,i(c[0]),l,o.n2.create(e,t,l)))}return new l(n)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,n.ec)(e);return/^[\w ]+/.test(e)&&(t=`\\b${t}`),/[\w ]+$/.test(e)&&(t=`${t}\\b`),t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,i]of this.map)if(2===i.kind&&i.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class c{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=l.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}},45035:(e,t,i)=>{"use strict";i.d(t,{BE:()=>_,By:()=>b,F_:()=>g,Hg:()=>h,Hw:()=>d,Ii:()=>p,PZ:()=>y,Qw:()=>w,VR:()=>v,W9:()=>u,Zq:()=>C,av:()=>r,oR:()=>S,rM:()=>f,tQ:()=>m,xd:()=>l,xl:()=>a});var n=i(97295),o=i(24314);class s{constructor(e,t){this.lineCount=e,this.columnCount=t}toString(){return`${this.lineCount},${this.columnCount}`}}function r(e,t,i,n){return e!==i?h(i-e,n):h(0,n-t)}s.zero=new s(0,0);const a=0;function l(e){return 0===e}const c=Math.pow(2,26);function h(e,t){return e*c+t}function d(e){const t=e,i=Math.floor(t/c);return new s(i,t-i*c)}function u(e){return Math.floor(e/c)}function g(e){return e}function p(e,t){let i=e+t;return t>=c&&(i-=e%c),i}function m(e,t){return e.reduce(((e,i)=>p(e,t(i))),a)}function f(e,t){return e===t}function _(e,t){const i=e,n=t;if(n-i<=0)return a;const o=Math.floor(i/c),s=Math.floor(n/c),r=n-s*c;return o===s?h(0,r-(i-o*c)):h(s-o,r)}function v(e,t){return e=t}function y(e){return h(e.lineNumber-1,e.column-1)}function w(e,t){const i=e,n=Math.floor(i/c),s=i-n*c,r=t,a=Math.floor(r/c),l=r-a*c;return new o.e(n+1,s+1,a+1,l+1)}function S(e){const t=(0,n.uq)(e);return h(t.length-1,t[t.length-1].length)}},13883:(e,t,i)=>{"use strict";i.d(t,{w:()=>g});var n=i(41720),o=i(2442),s=i(61761),r=i(45035);function a(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){const o=i>>1;for(let s=0;s=3?e[2]:null,t)}function l(e,t){return Math.abs(e.listHeight-t.listHeight)}function c(e,t){return e.listHeight===t.listHeight?n.Y0.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i=e=e.toMutable();const o=[];let s;for(;;){if(t.listHeight===i.listHeight){s=t;break}if(4!==i.kind)throw new Error("unexpected");o.push(i),i=i.makeLastElementMutable()}for(let e=o.length-1;e>=0;e--){const t=o[e];s?t.childrenLength>=3?s=n.Y0.create23(t.unappendChild(),s,null,!1):(t.appendChildOfSameHeight(s),s=void 0):t.handleChildrenChanged()}return s?n.Y0.create23(e,s,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable();const o=[];for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw new Error("unexpected");o.push(i),i=i.makeFirstElementMutable()}let s=t;for(let e=o.length-1;e>=0;e--){const t=o[e];s?t.childrenLength>=3?s=n.Y0.create23(s,t.unprependChild(),null,!1):(t.prependChildOfSameHeight(s),s=void 0):t.handleChildrenChanged()}return s?n.Y0.create23(s,e,null,!1):e}(t,e)}class h{constructor(e){this.lastOffset=r.xl,this.nextNodes=[e],this.offsets=[r.xl],this.idxs=[]}readLongestNodeAt(e,t){if((0,r.VR)(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=u(this.nextNodes);if(!i)return;const n=u(this.offsets);if((0,r.VR)(e,n))return;if((0,r.VR)(n,e))if((0,r.Ii)(n,i.length)<=e)this.nextNodeAfterCurrent();else{const e=d(i);-1!==e?(this.nextNodes.push(i.getChild(e)),this.offsets.push(n),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const e=d(i);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(i.getChild(e)),this.offsets.push(n),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=u(this.offsets),t=u(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const i=u(this.nextNodes),n=d(i,this.idxs[this.idxs.length-1]);if(-1!==n){this.nextNodes.push(i.getChild(n)),this.offsets.push((0,r.Ii)(e,t.length)),this.idxs[this.idxs.length-1]=n;break}this.idxs.pop()}}}function d(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function u(e){return e.length>0?e[e.length-1]:void 0}function g(e,t,i,n){return new p(e,t,i,n).parseDocument()}class p{constructor(e,t,i,n){if(this.tokenizer=e,this.createImmutableLists=n,this._itemsConstructed=0,this._itemsFromCache=0,i&&n)throw new Error("Not supported");this.oldNodeReader=i?new h(i):void 0,this.positionMapper=new o.Y(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(s.tS.getEmpty());return e||(e=n.Y0.getEmpty()),e}parseList(e){const t=[];for(;;){let i=this.tryReadChildFromCache(e);if(!i){const t=this.tokenizer.peek();if(!t||2===t.kind&&t.bracketIds.intersects(e))break;i=this.parseChild(e)}4===i.kind&&0===i.childrenLength||t.push(i)}const i=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function i(){if(t>=e.length)return null;const i=t,n=e[i].listHeight;for(t++;t=2?a(0===i&&t===e.length?e:e.slice(i,t),!1):e[i]}let n=i(),o=i();if(!o)return n;for(let e=i();e;e=i())l(n,o)<=l(o,e)?(n=c(n,o),o=e):o=c(o,e);return c(n,o)}(t):a(t,this.createImmutableLists);return i}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!(0,r.xd)(t)){const i=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(i=>!(null!==t&&!(0,r.VR)(i.length,t))&&i.canBeReused(e)));if(i)return this._itemsFromCache++,this.tokenizer.skip(i.length),i}}}parseChild(e){this._itemsConstructed++;const t=this.tokenizer.read();switch(t.kind){case 2:return new n.Dm(t.bracketIds,t.length);case 0:return t.astNode;case 1:{const i=e.merge(t.bracketIds),o=this.parseList(i),s=this.tokenizer.peek();return s&&2===s.kind&&(s.bracketId===t.bracketId||s.bracketIds.intersects(t.bracketIds))?(this.tokenizer.read(),n.Kd.create(t.astNode,o,s.astNode)):n.Kd.create(t.astNode,o,null)}default:throw new Error("unexpected")}}}},61761:(e,t,i)=>{"use strict";i.d(t,{FE:()=>r,Qw:()=>s,tS:()=>o});const n=[];class o{static create(e,t){if(e<=128&&0===t.length){let i=o.cache[e];return i||(i=new o(e,t),o.cache[e]=i),i}return new o(e,t)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const i=t.getKey(e);let n=i>>5;if(0===n){const e=1<e};class r{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}},6735:(e,t,i)=>{"use strict";i.d(t,{WU:()=>l,g:()=>d,xH:()=>c});var n=i(17301),o=i(45797),s=i(41720),r=i(45035),a=i(61761);class l{constructor(e,t,i,n,o){this.length=e,this.kind=t,this.bracketId=i,this.bracketIds=n,this.astNode=o}}class c{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new h(this.textModel,this.bracketTokens),this._offset=r.xl,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return(0,r.Hg)(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=(0,r.Ii)(this._offset,e);const t=(0,r.Hw)(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=(0,r.Ii)(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class h{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=(0,r.F_)(e.length),e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const n=this.lineTokens,s=n.getCount();let a=null;if(this.lineTokenOffset1e3)break}if(i>1500)break}const n=(0,r.av)(e,t,this.lineIdx,this.lineCharOffset);return new l(n,0,-1,a.tS.getEmpty(),new s.BH(n))}}class d{constructor(e,t){this.text=e,this._offset=r.xl,this.idx=0;const i=t.getRegExpStr(),n=i?new RegExp(i+"|\n","gi"):null,o=[];let c,h=0,d=0,u=0,g=0;const p=[];for(let e=0;e<60;e++)p.push(new l((0,r.Hg)(0,e),0,-1,a.tS.getEmpty(),new s.BH((0,r.Hg)(0,e))));const m=[];for(let e=0;e<60;e++)m.push(new l((0,r.Hg)(1,e),0,-1,a.tS.getEmpty(),new s.BH((0,r.Hg)(1,e))));if(n)for(n.lastIndex=0;null!==(c=n.exec(e));){const e=c.index,i=c[0];if("\n"===i)h++,d=e+1;else{if(u!==e){let t;if(g===h){const i=e-u;if(i{"use strict";i.d(t,{NL:()=>f,e9:()=>m});var n=i(63580),o=i(17301),s=i(3860),r=i(70666),a=i(93033),l=i(53060),c=i(95935);function h(e){return e.toString()}class d{static create(e,t){const i=e.getAlternativeVersionId(),n=p(e);return new d(i,i,n,n,t,t,[])}constructor(e,t,i,n,o,s,r){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=n,this.beforeCursorState=o,this.afterCursorState=s,this.changes=r}append(e,t,i,n,o){t.length>0&&(this.changes=(0,a.b)(this.changes,t)),this.afterEOL=i,this.afterVersionId=n,this.afterCursorState=o}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,i){if(l.T4(e,t?t.length:0,i),i+=4,t)for(const n of t)l.T4(e,n.selectionStartLineNumber,i),i+=4,l.T4(e,n.selectionStartColumn,i),i+=4,l.T4(e,n.positionLineNumber,i),i+=4,l.T4(e,n.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const n=l.Ag(e,t);t+=4;for(let o=0;oe.toString())).join(", ")}matchesResource(e){return(r.o.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof d}append(e,t,i,n,o){this._data instanceof d&&this._data.append(e,t,i,n,o)}close(){this._data instanceof d&&(this._data=this._data.serialize())}open(){this._data instanceof d||(this._data=d.deserialize(this._data))}undo(){if(r.o.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof d&&(this._data=this._data.serialize());const e=d.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(r.o.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof d&&(this._data=this._data.serialize());const e=d.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof d&&(this._data=this._data.serialize()),this._data.byteLength+168}}class g{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,i){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=i.slice(0),this._editStackElementsMap=new Map;for(const e of this._editStackElementsArr){const t=h(e.resource);this._editStackElementsMap.set(t,e)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=h(e);return this._editStackElementsMap.has(t)}setModel(e){const t=h(r.o.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=h(e.uri);return!!this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).canAppend(e)}append(e,t,i,n,o){const s=h(e.uri);this._editStackElementsMap.get(s).append(e,t,i,n,o)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=h(e);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).heapSize():0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,c.EZ)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function p(e){return"\n"===e.getEOL()?0:1}function m(e){return!!e&&(e instanceof u||e instanceof g)}class f{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const i=this._undoRedoService.getLastElement(this._model.uri);if(m(i)&&i.canAppend(this._model))return i;const o=new u(n.NC("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(o,t),o}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],p(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i,n){const o=this._getOrCreateEditStackElement(e,n),s=this._model.applyEdits(t,!0),r=f._computeCursorState(i,s),a=s.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),o.append(this._model,a.map((e=>e.textChange)),p(this._model),this._model.getAlternativeVersionId(),r),r}static _computeCursorState(e,t){try{return e?e(t):null}catch(e){return(0,o.dL)(e),null}}}},1516:(e,t,i)=>{"use strict";i.d(t,{W:()=>d,l:()=>h});var n=i(9488),o=i(97295),s=i(7988),r=i(24314),a=i(94954),l=i(59616),c=i(65094);class h extends a.U{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return(0,l.q)(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,i){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new Error("Illegal value for lineNumber");const o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(o&&o.offSide);let r=-2,a=-1,l=-2,c=-1;const h=e=>{if(-1!==r&&(-2===r||r>e-1)){r=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){r=t,a=e;break}}}if(-2===l){l=-1,c=-1;for(let t=e;t=0){l=t,c=e;break}}}};let d=-2,u=-1,g=-2,p=-1;const m=e=>{if(-2===d){d=-1,u=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){d=t,u=e;break}}}if(-1!==g&&(-2===g||g=0){g=t,p=e;break}}}};let f=0,_=!0,v=0,b=!0,C=0,y=0;for(let o=0;_||b;o++){const r=e-o,g=e+o;o>1&&(r<1||r1&&(g>n||g>i)&&(b=!1),o>5e4&&(_=!1,b=!1);let w=-1;if(_&&r>=1){const e=this._computeIndentLevel(r-1);e>=0?(l=r-1,c=e,w=Math.ceil(e/this.textModel.getOptions().indentSize)):(h(r),w=this._getIndentLevelForWhitespaceLine(s,a,c))}let S=-1;if(b&&g<=n){const e=this._computeIndentLevel(g-1);e>=0?(d=g-1,u=e,S=Math.ceil(e/this.textModel.getOptions().indentSize)):(m(g),S=this._getIndentLevelForWhitespaceLine(s,u,p))}if(0!==o){if(1===o){if(g<=n&&S>=0&&y+1===S){_=!1,f=g,v=g,C=S;continue}if(r>=1&&w>=0&&w-1===y){b=!1,f=r,v=r,C=w;continue}if(f=e,v=e,C=y,0===C)return{startLineNumber:f,endLineNumber:v,indent:C}}_&&(w>=C?f=r:_=!1),b&&(S>=C?v=g:b=!1)}else y=w}return{startLineNumber:f,endLineNumber:v,indent:C}}getLinesBracketGuides(e,t,i,s){var a;const l=[];for(let i=e;i<=t;i++)l.push([]);const h=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new r.e(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let u;if(i&&h.length>0){const o=(e<=i.lineNumber&&i.lineNumber<=t?h:this.textModel.bracketPairs.getBracketPairsInRange(r.e.fromPositions(i)).toArray()).filter((e=>r.e.strictContainsPosition(e.range,i)));u=null===(a=(0,n.dF)(o,(e=>!0)))||void 0===a?void 0:a.range}const g=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,p=new d;for(const i of h){if(!i.closingBracketRange)continue;const n=u&&i.range.equalsRange(u);if(!n&&!s.includeInactive)continue;const r=p.getInlineClassName(i.nestingLevel,i.nestingLevelOfEqualBracketType,g)+(s.highlightActive&&n?" "+p.activeClassName:""),a=i.openingBracketRange.getStartPosition(),h=i.closingBracketRange.getStartPosition(),d=s.horizontalGuides===c.s6.Enabled||s.horizontalGuides===c.s6.EnabledForActive&&n;if(i.range.startLineNumber===i.range.endLineNumber){d&&l[i.range.startLineNumber-e].push(new c.UO(-1,i.openingBracketRange.getEndPosition().column,r,new c.vW(!1,h.column),-1,-1));continue}const m=this.getVisibleColumnFromPosition(h),f=this.getVisibleColumnFromPosition(i.openingBracketRange.getStartPosition()),_=Math.min(f,m,i.minVisibleColumnIndentation+1);let v=!1;o.LC(this.textModel.getLineContent(i.closingBracketRange.startLineNumber))=e&&f>_&&l[a.lineNumber-e].push(new c.UO(_,-1,r,new c.vW(!1,a.column),-1,-1)),h.lineNumber<=t&&m>_&&l[h.lineNumber-e].push(new c.UO(_,-1,r,new c.vW(!v,h.column),-1,-1)))}for(const e of l)e.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return l}getVisibleColumnFromPosition(e){return s.i.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const n=this.textModel.getOptions(),o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(o&&o.offSide),r=new Array(t-e+1);let a=-2,l=-1,c=-2,h=-1;for(let o=e;o<=t;o++){const t=o-e,d=this._computeIndentLevel(o-1);if(d>=0)a=o-1,l=d,r[t]=Math.ceil(d/n.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=o-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==c&&(-2===c||c=0){c=e,h=t;break}}}r[t]=this._getIndentLevelForWhitespaceLine(s,l,h)}}return r}_getIndentLevelForWhitespaceLine(e,t,i){const n=this.textModel.getOptions();return-1===t||-1===i?0:t{"use strict";i.d(t,{nD:()=>D,Lv:()=>L,Nr:()=>k,Xp:()=>S});var n=i(50187),o=i(24314),s=i(84973);class r{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==a)return l(this.right);let e=this;for(;e.parent!==a&&e.parent.left!==e;)e=e.parent;return e.parent===a?a:e.parent}prev(){if(this.left!==a)return c(this.left);let e=this;for(;e.parent!==a&&e.parent.right!==e;)e=e.parent;return e.parent===a?a:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const a=new r(null,0);function l(e){for(;e.left!==a;)e=e.left;return e}function c(e){for(;e.right!==a;)e=e.right;return e}function h(e){return e===a?0:e.size_left+e.piece.length+h(e.right)}function d(e){return e===a?0:e.lf_left+e.piece.lineFeedCnt+d(e.right)}function u(){a.parent=a}function g(e,t){const i=t.right;i.size_left+=t.size_left+(t.piece?t.piece.length:0),i.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=i.left,i.left!==a&&(i.left.parent=t),i.parent=t.parent,t.parent===a?e.root=i:t.parent.left===t?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i}function p(e,t){const i=t.left;t.left=i.right,i.right!==a&&(i.right.parent=t),i.parent=t.parent,t.size_left-=i.size_left+(i.piece?i.piece.length:0),t.lf_left-=i.lf_left+(i.piece?i.piece.lineFeedCnt:0),t.parent===a?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i}function m(e,t){let i,n;if(t.left===a?(n=t,i=n.right):t.right===a?(n=t,i=n.left):(n=l(t.right),i=n.right),n===e.root)return e.root=i,i.color=0,t.detach(),u(),void(e.root.parent=a);const o=1===n.color;if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?(i.parent=n.parent,v(e,i)):(n.parent===t?i.parent=n:i.parent=n.parent,v(e,i),n.left=t.left,n.right=t.right,n.parent=t.parent,n.color=t.color,t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==a&&(n.left.parent=n),n.right!==a&&(n.right.parent=n),n.size_left=t.size_left,n.lf_left=t.lf_left,v(e,n)),t.detach(),i.parent.left===i){const t=h(i),n=d(i);if(t!==i.parent.size_left||n!==i.parent.lf_left){const o=t-i.parent.size_left,s=n-i.parent.lf_left;i.parent.size_left=t,i.parent.lf_left=n,_(e,i.parent,o,s)}}if(v(e,i.parent),o)return void u();let s;for(;i!==e.root&&0===i.color;)i===i.parent.left?(s=i.parent.right,1===s.color&&(s.color=0,i.parent.color=1,g(e,i.parent),s=i.parent.right),0===s.left.color&&0===s.right.color?(s.color=1,i=i.parent):(0===s.right.color&&(s.left.color=0,s.color=1,p(e,s),s=i.parent.right),s.color=i.parent.color,i.parent.color=0,s.right.color=0,g(e,i.parent),i=e.root)):(s=i.parent.left,1===s.color&&(s.color=0,i.parent.color=1,p(e,i.parent),s=i.parent.left),0===s.left.color&&0===s.right.color?(s.color=1,i=i.parent):(0===s.left.color&&(s.right.color=0,s.color=1,g(e,s),s=i.parent.left),s.color=i.parent.color,i.parent.color=0,s.left.color=0,p(e,i.parent),i=e.root));i.color=0,u()}function f(e,t){for(v(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&g(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,p(e,t.parent.parent))}else{const i=t.parent.parent.left;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&p(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,g(e,t.parent.parent))}e.root.color=0}function _(e,t,i,n){for(;t!==e.root&&t!==a;)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}function v(e,t){let i=0,n=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(i=h((t=t.parent).left)-t.size_left,n=d(t.left)-t.lf_left,t.size_left+=i,t.lf_left+=n;t!==e.root&&(0!==i||0!==n);)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}}a.parent=a,a.left=a,a.right=a,a.color=0;var b=i(77277);const C=65535;function y(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class w{constructor(e,t,i,n,o){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=o}}function S(e,t=!0){const i=[0];let n=1;for(let t=0,o=e.length;t126)&&(r=!1)}const a=new w(y(e),n,o,s,r);return e.length=0,a}class x{constructor(e,t,i,n,o){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=n,this.length=o}}class L{constructor(e,t){this.buffer=e,this.lineStarts=t}}class E{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==a&&e.iterate(e.root,(e=>(e!==a&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class N{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const i=this._cache;for(let n=0;n=e)&&(i[n]=null,t=!0)}if(t){const e=[];for(const t of i)null!==t&&e.push(t);this._cache=e}}}class D{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new L("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=a,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let n=null;for(let t=0,i=e.length;t0){e[t].lineStarts||(e[t].lineStarts=S(e[t].buffer));const i=new x(t+1,{line:0,column:0},{line:e[t].lineStarts.length-1,column:e[t].buffer.length-e[t].lineStarts[e[t].lineStarts.length-1]},e[t].lineStarts.length-1,e[t].buffer.length);this._buffers.push(e[t]),n=this.rbInsertRight(n,i)}this._searchCache=new N(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=65535-Math.floor(21845),i=2*t;let n="",o=0;const s=[];if(this.iterate(this.root,(r=>{const a=this.getNodeContent(r),l=a.length;if(o<=t||o+l0){const t=n.replace(/\r\n|\r|\n/g,e);s.push(new L(t,S(t)))}this.create(s,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new E(this,e)}getOffsetAt(e,t){let i=0,n=this.root;for(;n!==a;)if(n.left!==a&&n.lf_left+1>=e)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt+1>=e)return i+=n.size_left,i+(this.getAccumulatedValue(n,e-n.lf_left-2)+t-1);e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;const o=e;for(;t!==a;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const s=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+s.index,0===s.index){const e=o-this.getOffsetAt(i+1,1);return new n.L(i+1,e+1)}return new n.L(i+1,s.remainder+1)}if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===a){const t=o-e-this.getOffsetAt(i+1,1);return new n.L(i+1,t+1)}t=t.right}return new n.L(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(i,n);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o}getValueInRange2(e,t){if(e.node===t.node){const i=e.node,n=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n.substring(o+e.remainder,o+t.remainder)}let i=e.node;const n=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let s=n.substring(o+e.remainder,o+i.piece.length);for(i=i.next();i!==a;){const e=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){s+=e.substring(n,n+t.remainder);break}s+=e.substr(n,i.piece.length),i=i.next()}return s}getLinesContent(){const e=[];let t=0,i="",n=!1;return this.iterate(this.root,(o=>{if(o===a)return!0;const s=o.piece;let r=s.length;if(0===r)return!0;const l=this._buffers[s.bufferIndex].buffer,c=this._buffers[s.bufferIndex].lineStarts,h=s.start.line,d=s.end.line;let u=c[h]+s.start.column;if(n&&(10===l.charCodeAt(u)&&(u++,r--),e[t++]=i,i="",n=!1,0===r))return!0;if(h===d)return this._EOLNormalized||13!==l.charCodeAt(u+r-1)?i+=l.substr(u,r):(n=!0,i+=l.substr(u,r-1)),!0;i+=this._EOLNormalized?l.substring(u,Math.max(u,c[h+1]-this._EOLLength)):l.substring(u,c[h+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let n=h+1;ne+p,t.reset(0)):(v=u.buffer,C=e=>e,t.reset(p));do{if(f=t.next(v),f){if(C(f.index)>=m)return h;this.positionInBuffer(e,C(f.index)-g,_);const t=this.getLineFeedCnt(e.piece.bufferIndex,s,_),r=_.line===s.line?_.column-s.column+n:_.column+1,a=r+f[0].length;if(d[h++]=(0,b.iE)(new o.e(i+t,r,i+t,a),f,l),C(f.index)+f[0].length>=m)return h;if(h>=c)return h}}while(f);return h}findMatchesLineByLine(e,t,i,n){const o=[];let s=0;const r=new b.sz(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let c=this.positionInBuffer(a.node,a.remainder);const h=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,r,e.startLineNumber,e.startColumn,c,h,t,i,n,s,o),o;let d=e.startLineNumber,u=a.node;for(;u!==l.node;){const l=this.getLineFeedCnt(u.piece.bufferIndex,c,u.piece.end);if(l>=1){const a=this._buffers[u.piece.bufferIndex].lineStarts,h=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),g=a[c.line+l],p=d===e.startLineNumber?e.startColumn:1;if(s=this.findMatchesInNode(u,r,d,p,c,this.positionInBuffer(u,g-h),t,i,n,s,o),s>=n)return o;d+=l}const h=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){const a=this.getLineContent(d).substring(h,e.endColumn-1);return s=this._findMatchesInLine(t,r,a,e.endLineNumber,h,s,o,i,n),o}if(s=this._findMatchesInLine(t,r,this.getLineContent(d).substr(h),d,h,s,o,i,n),s>=n)return o;d++,a=this.nodeAt2(d,1),u=a.node,c=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){const a=d===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(d).substring(a,e.endColumn-1);return s=this._findMatchesInLine(t,r,l,e.endLineNumber,a,s,o,i,n),o}const g=d===e.startLineNumber?e.startColumn:1;return s=this.findMatchesInNode(l.node,r,d,g,c,h,t,i,n,s,o),o}_findMatchesInLine(e,t,i,n,r,a,l,c,h){const d=e.wordSeparators;if(!c&&e.simpleSearch){const t=e.simpleSearch,c=t.length,u=i.length;let g=-c;for(;-1!==(g=i.indexOf(t,g+c));)if((!d||(0,b.cM)(d,i,u,g,c))&&(l[a++]=new s.tk(new o.e(n,g+1+r,n,g+1+c+r),null),a>=h))return a;return a}let u;t.reset(0);do{if(u=t.next(i),u&&(l[a++]=(0,b.iE)(new o.e(n,u.index+1+r,n,u.index+1+u[0].length+r),u,c),a>=h))return a}while(u);return a}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==a){const{node:i,remainder:n,nodeStartOffset:o}=this.nodeAt(e),s=i.piece,r=s.bufferIndex,a=this.positionInBuffer(i,n);if(0===i.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&o+s.length===e&&t.lengthe){const e=[];let o=new x(s.bufferIndex,a,s.end,this.getLineFeedCnt(s.bufferIndex,a,s.end),this.offsetInBuffer(r,s.end)-this.offsetInBuffer(r,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&10===this.nodeCharCodeAt(i,n)){const e={line:o.start.line+1,column:0};o=new x(o.bufferIndex,e,o.end,this.getLineFeedCnt(o.bufferIndex,e,o.end),o.length-1),t+="\n"}if(this.shouldCheckCRLF()&&this.startWithLF(t))if(13===this.nodeCharCodeAt(i,n-1)){const o=this.positionInBuffer(i,n-1);this.deleteNodeTail(i,o),t="\r"+t,0===i.piece.length&&e.push(i)}else this.deleteNodeTail(i,a);else this.deleteNodeTail(i,a);const l=this.createNewPieces(t);o.length>0&&this.rbInsertRight(i,o);let c=i;for(let e=0;e=0;e--)o=this.rbInsertLeft(o,n[e]);this.validateCRLFWithPrevNode(o),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const i=this.createNewPieces(e),n=this.rbInsertRight(t,i[0]);let o=n;for(let e=1;e=h))break;a=c+1}return i?(i.line=c,i.column=r-d,null):{line:c,column:r-d}}getLineFeedCnt(e,t,i){if(0===i.column)return i.line-t.line;const n=this._buffers[e].lineStarts;if(i.line===n.length-1)return i.line-t.line;const o=n[i.line+1],s=n[i.line]+i.column;if(o>s+1)return i.line-t.line;const r=s-1;return 13===this._buffers[e].buffer.charCodeAt(r)?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;tC){const t=[];for(;e.length>C;){const i=e.charCodeAt(65534);let n;13===i||i>=55296&&i<=56319?(n=e.substring(0,65534),e=e.substring(65534)):(n=e.substring(0,C),e=e.substring(C));const o=S(n);t.push(new x(this._buffers.length,{line:0,column:0},{line:o.length-1,column:n.length-o[o.length-1]},o.length-1,n.length)),this._buffers.push(new L(n,o))}const i=S(e);return t.push(new x(this._buffers.length,{line:0,column:0},{line:i.length-1,column:e.length-i[i.length-1]},i.length-1,e.length)),this._buffers.push(new L(e,i)),t}let t=this._buffers[0].buffer.length;const i=S(e,!1);let n=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},n=this._lastChangeBufferPos;for(let e=0;e=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const n=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1),a=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return o+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:o,nodeStartLineNumber:s-(e-1-i.lf_left)}),a.substring(l+n,l+r-t)}if(i.lf_left+i.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(i,e-i.lf_left-2),o=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n=o.substring(s+t,s+i.piece.length);break}e-=i.lf_left+i.piece.lineFeedCnt,o+=i.size_left+i.piece.length,i=i.right}}for(i=i.next();i!==a;){const e=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){const o=this.getAccumulatedValue(i,0),s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=e.substring(s,s+o-t),n}{const t=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=e.substr(t,i.piece.length)}i=i.next()}return n}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==a;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){const i=e.piece,n=this.positionInBuffer(e,t),o=n.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,i.start,n);if(t!==o)return{index:t,remainder:0}}return{index:o,remainder:n.column}}getAccumulatedValue(e,t){if(t<0)return 0;const i=e.piece,n=this._buffers[i.bufferIndex].lineStarts,o=i.start.line+t+1;return o>i.end.line?n[i.end.line]+i.end.column-n[i.start.line]-i.start.column:n[o]-n[i.start.line]-i.start.column}deleteNodeTail(e,t){const i=e.piece,n=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.end),s=t,r=this.offsetInBuffer(i.bufferIndex,s),a=this.getLineFeedCnt(i.bufferIndex,i.start,s),l=a-n,c=r-o,h=i.length+c;e.piece=new x(i.bufferIndex,i.start,s,a,h),_(this,e,c,l)}deleteNodeHead(e,t){const i=e.piece,n=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.start),s=t,r=this.getLineFeedCnt(i.bufferIndex,s,i.end),a=r-n,l=o-this.offsetInBuffer(i.bufferIndex,s),c=i.length+l;e.piece=new x(i.bufferIndex,s,i.end,r,c),_(this,e,l,a)}shrinkNode(e,t,i){const n=e.piece,o=n.start,s=n.end,r=n.length,a=n.lineFeedCnt,l=t,c=this.getLineFeedCnt(n.bufferIndex,n.start,l),h=this.offsetInBuffer(n.bufferIndex,t)-this.offsetInBuffer(n.bufferIndex,o);e.piece=new x(n.bufferIndex,n.start,l,c,h),_(this,e,h-r,c-a);const d=new x(n.bufferIndex,i,s,this.getLineFeedCnt(n.bufferIndex,i,s),this.offsetInBuffer(n.bufferIndex,s)-this.offsetInBuffer(n.bufferIndex,i)),u=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(u)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),n=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const o=S(t,!1);for(let e=0;ee)t=t.left;else{if(t.size_left+t.piece.length>=e){n+=t.size_left;const i={node:t,remainder:e-t.size_left,nodeStartOffset:n};return this._searchCache.set(i),i}e-=t.size_left+t.piece.length,n+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let i=this.root,n=0;for(;i!==a;)if(i.left!==a&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const o=this.getAccumulatedValue(i,e-i.lf_left-2),s=this.getAccumulatedValue(i,e-i.lf_left-1);return n+=i.size_left,{node:i,remainder:Math.min(o+t-1,s),nodeStartOffset:n}}if(i.lf_left+i.piece.lineFeedCnt===e-1){const o=this.getAccumulatedValue(i,e-i.lf_left-2);if(o+t-1<=i.piece.length)return{node:i,remainder:o+t-1,nodeStartOffset:n};t-=i.piece.length-o;break}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==a;){if(i.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(i,0),n=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,e),nodeStartOffset:n}}if(i.piece.length>=t-1)return{node:i,remainder:t-1,nodeStartOffset:this.offsetOfNode(i)};t-=i.piece.length,i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const i=this._buffers[e.piece.bufferIndex],n=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(n)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===a||0===e.piece.lineFeedCnt)return!1;const t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,n=t.start.line,o=i[n]+t.start.column;return n!==i.length-1&&(!(i[n+1]>o+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(o))}endWithCR(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==a&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const i=[],n=this._buffers[e.piece.bufferIndex].lineStarts;let o;o=0===e.piece.end.column?{line:e.piece.end.line-1,column:n[e.piece.end.line]-n[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const s=e.piece.length-1,r=e.piece.lineFeedCnt-1;e.piece=new x(e.piece.bufferIndex,e.piece.start,o,r,s),_(this,e,-1,-1),0===e.piece.length&&i.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new x(t.piece.bufferIndex,a,t.piece.end,c,l),_(this,t,-1,-1),0===t.piece.length&&i.push(t);const h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(let e=0;e{"use strict";i.d(t,{A:()=>d});var n=i(4669),o=i(97295),s=i(24314),r=i(84973),a=i(39125),l=i(23795),c=i(93033),h=i(5976);class d extends h.JT{constructor(e,t,i,o,s,r,l){super(),this._onDidChangeContent=this._register(new n.Q5),this._BOM=t,this._mightContainNonBasicASCII=!r,this._mightContainRTL=o,this._mightContainUnusualLineTerminators=s,this._pieceTree=new a.nD(e,i,l)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){const i=e+t,n=this.getPositionAt(e),o=this.getPositionAt(i);return new s.e(n.lineNumber,n.column,o.lineNumber,o.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const i=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,i)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;const i=this.getOffsetAt(e.startLineNumber,e.startColumn),n=this.getOffsetAt(e.endLineNumber,e.endColumn);let o=0;const s=this._getEndOfLine(t),r=this.getEOL();return s.length!==r.length&&(o=(s.length-r.length)*(e.endLineNumber-e.startLineNumber)),n-i+o}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let i=0;const n=e.startLineNumber,s=e.endLineNumber;for(let t=n;t<=s;t++){const r=this.getLineContent(t),a=t===n?e.startColumn-1:0,l=t===s?e.endColumn-1:r.length;for(let e=a;ee.sortIndex-t.sortIndex))}this._mightContainRTL=n,this._mightContainUnusualLineTerminators=s,this._mightContainNonBasicASCII=a;const _=this._doApplyEdits(u);let v=null;if(t&&m.length>0){m.sort(((e,t)=>t.lineNumber-e.lineNumber)),v=[];for(let e=0,t=m.length;e0&&m[e-1].lineNumber===t)continue;const i=m[e].oldContent,n=this.getLineContent(t);0!==n.length&&n!==i&&-1===o.LC(n)&&v.push(t)}}return this._onDidChangeContent.fire(),new r.je(f,_,v)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const i=e[0].range,n=e[e.length-1].range,o=new s.e(i.startLineNumber,i.startColumn,n.endLineNumber,n.endColumn);let r=i.startLineNumber,a=i.startColumn;const c=[];for(let i=0,n=e.length;i0&&c.push(n.text),r=o.endLineNumber,a=o.endColumn}const h=c.join(""),[d,u,g]=(0,l.Q)(h);return{sortIndex:0,identifier:e[0].identifier,range:o,rangeOffset:this.getOffsetAt(o.startLineNumber,o.startColumn),rangeLength:this.getValueLengthInRange(o,0),text:h,eolCount:d,firstLineLength:u,lastLineLength:g,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(d._sortOpsDescending);const t=[];for(let i=0;i0){const e=a.eolCount+1;h=1===e?new s.e(l,c,l,c+a.firstLineLength):new s.e(l,c,l+e-1,a.lastLineLength+1)}else h=new s.e(l,c,l,c);i=h.endLineNumber,n=h.endColumn,t.push(h),o=a}return t}static _sortOpsAscending(e,t){const i=s.e.compareRangesUsingEnds(e.range,t.range);return 0===i?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){const i=s.e.compareRangesUsingEnds(e.range,t.range);return 0===i?t.sortIndex-e.sortIndex:-i}}},89676:(e,t,i)=>{"use strict";i.d(t,{M:()=>a});var n=i(97295),o=i(39125),s=i(91567);class r{constructor(e,t,i,n,o,s,r,a,l){this._chunks=e,this._bom=t,this._cr=i,this._lf=n,this._crlf=o,this._containsRTL=s,this._containsUnusualLineTerminators=r,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":i>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let e=0,n=i.length;e=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=(0,o.Nr)(this._tmpLineStarts,e);this.chunks.push(new o.Lv(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=n.Ut(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=n.ab(e)))}finish(e=!0){return this._finish(),new r(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=(0,o.Xp)(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}},90310:(e,t,i)=>{"use strict";i.d(t,{Ck:()=>r,oQ:()=>s});var n=i(9488),o=i(85427);class s{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,o.A)(e);const i=this.values,n=this.prefixSum,s=t.length;return 0!==s&&(this.values=new Uint32Array(i.length+s),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+s),this.values.set(t,e),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,o.A)(e),t=(0,o.A)(t),this.values[e]!==t&&(this.values[e]=t,e-1=i.length)return!1;const s=i.length-e;return t>=s&&(t=s),0!==t&&(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,o.A)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,n=0,o=0,s=0;for(;t<=i;)if(n=t+(i-t)/2|0,o=this.prefixSum[n],s=o-this.values[n],e=o))break;t=n+1}return new a(n,e-s)}}class r{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),0===e?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new a(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=(0,n.Zv)(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e0?this._prefixSum[e-1]:0;this._prefixSum[e]=i+t;for(let n=0;n{"use strict";i.d(t,{HS:()=>ft,qx:()=>_t,yO:()=>at});var n=i(9488),o=i(41264),s=i(17301),r=i(4669),a=i(5976),l=i(97295),c=i(70666),h=i(23795),d=i(83158),u=i(50187),g=i(24314),p=i(3860),m=i(22075),f=i(72042),_=i(51381),v=i(84973),b=i(19111),C=i(34302);class y{constructor(e,t,i,n){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=i,this.isInvalid=n}}class w{constructor(e,t,i,n,o,s){this.range=e,this.openingBracketRange=t,this.closingBracketRange=i,this.nestingLevel=n,this.nestingLevelOfEqualBracketType=o,this.bracketPairNode=s}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class S extends w{constructor(e,t,i,n,o,s,r){super(e,t,i,n,o,s),this.minVisibleColumnIndentation=r}}var k=i(2442),x=i(35382),L=i(45035),E=i(13883),N=i(61761),D=i(6735);function T(e,t){if(0===e.length)return t;if(0===t.length)return e;const i=new n.H9(A(e)),o=A(t);o.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let s=i.dequeue();function r(e){if(void 0===e){const e=i.takeWhile((e=>!0))||[];return s&&e.unshift(s),e}const t=[];for(;s&&!(0,L.xd)(e);){const[n,o]=s.splitAt(e);t.push(n),e=(0,L.BE)(n.lengthAfter,e),s=null!=o?o:i.dequeue()}return(0,L.xd)(e)||t.push(new I(!1,e,e)),t}const a=[];function l(e,t,i){if(a.length>0&&(0,L.rM)(a[a.length-1].endOffset,e)){const e=a[a.length-1];a[a.length-1]=new k.Q(e.startOffset,t,(0,L.Ii)(e.newLength,i))}else a.push({startOffset:e,endOffset:t,newLength:i})}let c=L.xl;for(const e of o){const t=r(e.lengthBefore);if(e.modified){const i=(0,L.tQ)(t,(e=>e.lengthBefore)),n=(0,L.Ii)(c,i);l(c,n,e.lengthAfter),c=n}else for(const e of t){const t=c;c=(0,L.Ii)(c,e.lengthBefore),e.modified&&l(t,c,e.lengthAfter)}}return a}class I{constructor(e,t,i){this.modified=e,this.lengthBefore=t,this.lengthAfter=i}splitAt(e){const t=(0,L.BE)(e,this.lengthAfter);return(0,L.rM)(t,L.xl)?[this,void 0]:this.modified?[new I(this.modified,this.lengthBefore,e),new I(this.modified,L.xl,t)]:[new I(this.modified,e,e),new I(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${(0,L.Hw)(this.lengthBefore)} -> ${(0,L.Hw)(this.lengthAfter)}`}}function A(e){const t=[];let i=L.xl;for(const n of e){const e=(0,L.BE)(i,n.startOffset);(0,L.xd)(e)||t.push(new I(!1,e,e));const o=(0,L.BE)(n.startOffset,n.endOffset);t.push(new I(!0,o,n.newLength)),i=n.endOffset}return t}class M extends a.JT{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new r.Q5,this.denseKeyProvider=new N.FE,this.brackets=new x.Z(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new D.g(this.textModel.getValue(),e);this.initialAstWithoutTokens=(0,E.w)(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new k.Q((0,L.Hg)(e.fromLineNumber-1,0),(0,L.Hg)(e.toLineNumber,0),(0,L.Hg)(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=e.changes.map((e=>{const t=g.e.lift(e.range);return new k.Q((0,L.PZ)(t.getStartPosition()),(0,L.PZ)(t.getEndPosition()),(0,L.oR)(e.text))})).reverse();this.handleEdits(t,!1)}handleEdits(e,t){const i=T(this.queuedTextEdits,e);this.queuedTextEdits=i,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=T(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,i){const n=t,o=new D.xH(this.textModel,this.brackets);return(0,E.w)(o,e,n,i)}getBracketsInRange(e,t){this.flushQueue();const i=(0,L.Hg)(e.startLineNumber-1,e.startColumn-1),o=(0,L.Hg)(e.endLineNumber-1,e.endColumn-1);return new n.W$((e=>{const n=this.initialAstWithoutTokens||this.astWithTokens;P(n,L.xl,n.length,i,o,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const i=(0,L.PZ)(e.getStartPosition()),o=(0,L.PZ)(e.getEndPosition());return new n.W$((e=>{const n=this.initialAstWithoutTokens||this.astWithTokens,s=new F(e,t,this.textModel);B(n,L.xl,n.length,i,o,s,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return O(t,L.xl,t.length,(0,L.PZ)(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return R(t,L.xl,t.length,(0,L.PZ)(e))}}function R(e,t,i,n){if(4===e.kind||2===e.kind){const o=[];for(const n of e.children)i=(0,L.Ii)(t,n.length),o.push({nodeOffsetStart:t,nodeOffsetEnd:i}),t=i;for(let t=o.length-1;t>=0;t--){const{nodeOffsetStart:i,nodeOffsetEnd:s}=o[t];if((0,L.VR)(i,n)){const o=R(e.children[t],i,s,n);if(o)return o}}return null}if(3===e.kind)return null;if(1===e.kind){const n=(0,L.Qw)(t,i);return{bracketInfo:e.bracketInfo,range:n}}return null}function O(e,t,i,n){if(4===e.kind||2===e.kind){for(const o of e.children){if(i=(0,L.Ii)(t,o.length),(0,L.VR)(n,i)){const e=O(o,t,i,n);if(e)return e}t=i}return null}if(3===e.kind)return null;if(1===e.kind){const n=(0,L.Qw)(t,i);return{bracketInfo:e.bracketInfo,range:n}}return null}function P(e,t,i,n,o,s,r,a,l,c,h=!1){if(r>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let h=0;h200)return!0;let c=!0;if(2===e.kind){let h=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),h=t,t++,a.set(e.openingBracket.text,t)}const d=(0,L.Ii)(t,e.openingBracket.length);let u=-1;if(s.includeMinIndentation&&(u=e.computeMinIndentation(t,s.textModel)),c=s.push(new S((0,L.Qw)(t,i),(0,L.Qw)(t,d),e.closingBracket?(0,L.Qw)((0,L.Ii)(d,(null===(l=e.child)||void 0===l?void 0:l.length)||L.xl),i):void 0,r,h,e,u)),t=d,c&&e.child){const l=e.child;if(i=(0,L.Ii)(t,l.length),(0,L.By)(t,o)&&(0,L.Zq)(i,n)&&(c=B(l,t,i,n,o,s,r+1,a),!c))return!1}null==a||a.set(e.openingBracket.text,h)}else{let i=t;for(const t of e.children){const e=i;if(i=(0,L.Ii)(i,t.length),(0,L.By)(e,o)&&(0,L.By)(n,i)&&(c=B(t,e,i,n,o,s,r,a),!c))return!1}}return c}class H extends a.JT{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new a.XK),this.onDidChangeEmitter=new r.Q5,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1,this._register(this.languageConfigurationService.onDidChange((e=>{var t;e.languageId&&!(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.didLanguageChange(e.languageId))||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())})))}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){var t;null===(t=this.bracketPairsTree.value)||void 0===t||t.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){var e;null===(e=this.bracketPairsTree.value)||void 0===e||e.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){var t;null===(t=this.bracketPairsTree.value)||void 0===t||t.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const i=new a.SL;this.bracketPairsTree.value=(e=i.add(new M(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=i,{object:e,dispose:()=>null==t?void 0:t.dispose()}),i.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getBracketPairsInRange(e,!1))||n.W$.empty}getBracketPairsInRangeWithMinIndentation(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getBracketPairsInRange(e,!0))||n.W$.empty}getBracketsInRange(e,t=!1){var i;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(i=this.bracketPairsTree.value)||void 0===i?void 0:i.object.getBracketsInRange(e,t))||n.W$.empty}findMatchingBracketUp(e,t,i){const n=this.textModel.validatePosition(t),o=this.textModel.getLanguageIdAtPosition(n.lineNumber,n.column);if(this.canBuildAST){const i=this.languageConfigurationService.getLanguageConfiguration(o).bracketsNew.getClosingBracketInfo(e);if(!i)return null;const n=this.getBracketPairsInRange(g.e.fromPositions(t,t)).findLast((e=>i.closes(e.openingBracketInfo)));return n?n.openingBracketRange:null}{const t=e.toLowerCase(),s=this.languageConfigurationService.getLanguageConfiguration(o).brackets;if(!s)return null;const r=s.textIsBracket[t];return r?z(this._findMatchingBracketUp(r,n,V(i))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(g.e.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,n.tT)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),g.e.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const i=V(t);return this._matchBracket(this.textModel.validatePosition(e),i)}}_establishBracketSearchOffsets(e,t,i,n){const o=t.getCount(),s=t.getLanguageId(n);let r=Math.max(0,e.column-1-i.maxBracketLength);for(let e=n-1;e>=0;e--){const i=t.getEndOffset(e);if(i<=r)break;if((0,b.Bu)(t.getStandardTokenType(e))||t.getLanguageId(e)!==s){r=i;break}}let a=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let e=n+1;e=a)break;if((0,b.Bu)(t.getStandardTokenType(e))||t.getLanguageId(e)!==s){a=i;break}}return{searchStartOffset:r,searchEndOffset:a}}_matchBracket(e,t){const i=e.lineNumber,n=this.textModel.tokenization.getLineTokens(i),o=this.textModel.getLineContent(i),s=n.findTokenIndexAtOffset(e.column-1);if(s<0)return null;const r=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(s)).brackets;if(r&&!(0,b.Bu)(n.getStandardTokenType(s))){let{searchStartOffset:a,searchEndOffset:l}=this._establishBracketSearchOffsets(e,n,r,s),c=null;for(;;){const n=C.Vr.findNextBracketInRange(r.forwardRegex,i,o,a,l);if(!n)break;if(n.startColumn<=e.column&&e.column<=n.endColumn){const e=o.substring(n.startColumn-1,n.endColumn-1).toLowerCase(),i=this._matchFoundBracket(n,r.textIsBracket[e],r.textIsOpenBracket[e],t);if(i){if(i instanceof W)return null;c=i}}a=n.endColumn-1}if(c)return c}if(s>0&&n.getStartOffset(s)===e.column-1){const r=s-1,a=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(r)).brackets;if(a&&!(0,b.Bu)(n.getStandardTokenType(r))){const{searchStartOffset:s,searchEndOffset:l}=this._establishBracketSearchOffsets(e,n,a,r),c=C.Vr.findPrevBracketInRange(a.reversedRegex,i,o,s,l);if(c&&c.startColumn<=e.column&&e.column<=c.endColumn){const e=o.substring(c.startColumn-1,c.endColumn-1).toLowerCase(),i=this._matchFoundBracket(c,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(i)return i instanceof W?null:i}}}return null}_matchFoundBracket(e,t,i,n){if(!t)return null;const o=i?this._findMatchingBracketDown(t,e.getEndPosition(),n):this._findMatchingBracketUp(t,e.getStartPosition(),n);return o?o instanceof W?o:[e,o]:null}_findMatchingBracketUp(e,t,i){const n=e.languageId,o=e.reversedRegex;let s=-1,r=0;const a=(t,n,a,l)=>{for(;;){if(i&&++r%100==0&&!i())return W.INSTANCE;const c=C.Vr.findPrevBracketInRange(o,t,n,a,l);if(!c)break;const h=n.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(h)?s++:e.isClose(h)&&s--,0===s)return c;l=c.startColumn-1}return null};for(let e=t.lineNumber;e>=1;e--){const i=this.textModel.tokenization.getLineTokens(e),o=i.getCount(),s=this.textModel.getLineContent(e);let r=o-1,l=s.length,c=s.length;e===t.lineNumber&&(r=i.findTokenIndexAtOffset(t.column-1),l=t.column-1,c=t.column-1);let h=!0;for(;r>=0;r--){const t=i.getLanguageId(r)===n&&!(0,b.Bu)(i.getStandardTokenType(r));if(t)h?l=i.getStartOffset(r):(l=i.getStartOffset(r),c=i.getEndOffset(r));else if(h&&l!==c){const t=a(e,s,l,c);if(t)return t}h=t}if(h&&l!==c){const t=a(e,s,l,c);if(t)return t}}return null}_findMatchingBracketDown(e,t,i){const n=e.languageId,o=e.forwardRegex;let s=1,r=0;const a=(t,n,a,l)=>{for(;;){if(i&&++r%100==0&&!i())return W.INSTANCE;const c=C.Vr.findNextBracketInRange(o,t,n,a,l);if(!c)break;const h=n.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(h)?s++:e.isClose(h)&&s--,0===s)return c;a=c.endColumn-1}return null},l=this.textModel.getLineCount();for(let e=t.lineNumber;e<=l;e++){const i=this.textModel.tokenization.getLineTokens(e),o=i.getCount(),s=this.textModel.getLineContent(e);let r=0,l=0,c=0;e===t.lineNumber&&(r=i.findTokenIndexAtOffset(t.column-1),l=t.column-1,c=t.column-1);let h=!0;for(;r=1;e--){const t=this.textModel.tokenization.getLineTokens(e),r=t.getCount(),a=this.textModel.getLineContent(e);let l=r-1,c=a.length,h=a.length;if(e===i.lineNumber){l=t.findTokenIndexAtOffset(i.column-1),c=i.column-1,h=i.column-1;const e=t.getLanguageId(l);n!==e&&(n=e,o=this.languageConfigurationService.getLanguageConfiguration(n).brackets,s=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let d=!0;for(;l>=0;l--){const i=t.getLanguageId(l);if(n!==i){if(o&&s&&d&&c!==h){const t=C.Vr.findPrevBracketInRange(o.reversedRegex,e,a,c,h);if(t)return this._toFoundBracket(s,t);d=!1}n=i,o=this.languageConfigurationService.getLanguageConfiguration(n).brackets,s=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const r=!!o&&!(0,b.Bu)(t.getStandardTokenType(l));if(r)d?c=t.getStartOffset(l):(c=t.getStartOffset(l),h=t.getEndOffset(l));else if(s&&o&&d&&c!==h){const t=C.Vr.findPrevBracketInRange(o.reversedRegex,e,a,c,h);if(t)return this._toFoundBracket(s,t)}d=r}if(s&&o&&d&&c!==h){const t=C.Vr.findPrevBracketInRange(o.reversedRegex,e,a,c,h);if(t)return this._toFoundBracket(s,t)}}return null}findNextBracket(e){var t;const i=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getFirstBracketAfter(i))||null;const n=this.textModel.getLineCount();let o=null,s=null,r=null;for(let e=i.lineNumber;e<=n;e++){const t=this.textModel.tokenization.getLineTokens(e),n=t.getCount(),a=this.textModel.getLineContent(e);let l=0,c=0,h=0;if(e===i.lineNumber){l=t.findTokenIndexAtOffset(i.column-1),c=i.column-1,h=i.column-1;const e=t.getLanguageId(l);o!==e&&(o=e,s=this.languageConfigurationService.getLanguageConfiguration(o).brackets,r=this.languageConfigurationService.getLanguageConfiguration(o).bracketsNew)}let d=!0;for(;lvoid 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const n=V(t),o=this.textModel.getLineCount(),s=new Map;let r=[];const a=(e,t)=>{if(!s.has(e)){const i=[];for(let e=0,n=t?t.brackets.length:0;e{for(;;){if(n&&++l%100==0&&!n())return W.INSTANCE;const a=C.Vr.findNextBracketInRange(e.forwardRegex,t,i,o,s);if(!a)break;const c=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),h=e.textIsBracket[c];if(h&&(h.isOpen(c)?r[h.index]++:h.isClose(c)&&r[h.index]--,-1===r[h.index]))return this._matchFoundBracket(a,h,!1,n);o=a.endColumn-1}return null};let h=null,d=null;for(let e=i.lineNumber;e<=o;e++){const t=this.textModel.tokenization.getLineTokens(e),n=t.getCount(),o=this.textModel.getLineContent(e);let s=0,r=0,l=0;if(e===i.lineNumber){s=t.findTokenIndexAtOffset(i.column-1),r=i.column-1,l=i.column-1;const e=t.getLanguageId(s);h!==e&&(h=e,d=this.languageConfigurationService.getLanguageConfiguration(h).brackets,a(h,d))}let u=!0;for(;s!0;{const t=Date.now();return()=>Date.now()-t<=e}}class W{constructor(){this._searchCanceledBrand=void 0}}function z(e){return e instanceof W?null:e}W.INSTANCE=new W;var U=i(8625),j=i(97781);class K extends a.JT{constructor(e){super(),this.textModel=e,this.colorProvider=new q,this.onDidChangeEmitter=new r.Q5,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i,n){return n||void 0===t?[]:this.colorizationOptions.enabled?this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray():[]}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new g.e(1,1,this.textModel.getLineCount(),1),e,t):[]}}class q{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,j.Ic)(((e,t)=>{const i=[U.zJ,U.Vs,U.CE,U.UP,U.r0,U.m1],n=new q;t.addRule(`.monaco-editor .${n.unexpectedClosingBracketClassName} { color: ${e.getColor(U.ts)}; }`);const o=i.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let e=0;e<30;e++){const i=o[e%o.length];t.addRule(`.monaco-editor .${n.getInlineClassNameOfLevel(e)} { color: ${i}; }`)}}));var $=i(95215),G=i(1516);class Q{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Y(e,t,i,n,o){let s;for(o.spacesDiff=0,o.looksLikeAlignment=!1,s=0;s0&&a>0)return;if(l>0&&c>0)return;const h=Math.abs(a-c),d=Math.abs(r-l);if(0===h)return o.spacesDiff=d,void(d>0&&0<=l-1&&l-10?o++:m>1&&s++,Y(r,a,d,p,h),h.looksLikeAlignment&&(!i||t!==h.spacesDiff))continue;const _=h.spacesDiff;_<=8&&c[_]++,r=d,a=p}let d=i;o!==s&&(d=o{const i=c[t];i>e&&(e=i,u=t)})),4===u&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(u=2)}return{insertSpaces:d,tabSize:u}}function X(e){return(1&e.metadata)>>>0}function J(e,t){e.metadata=254&e.metadata|t<<0}function ee(e){return(2&e.metadata)>>>1==1}function te(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function ie(e){return(4&e.metadata)>>>2==1}function ne(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function oe(e){return(64&e.metadata)>>>6==1}function se(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function re(e,t){e.metadata=231&e.metadata|t<<3}function ae(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class le{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,J(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,ne(this,!1),se(this,!1),re(this,1),ae(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,te(this,!1)}reset(e,t,i,n){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=n}setOptions(e){this.options=e;const t=this.options.className;ne(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),se(this,null!==this.options.glyphMarginClassName),re(this,this.options.stickiness),ae(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const ce=new le(null,0,0);ce.parent=ce,ce.left=ce,ce.right=ce,J(ce,0);class he{constructor(){this.root=ce,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,n,o,s){return this.root===ce?[]:function(e,t,i,n,o,s,r){let a=e.root,l=0,c=0,h=0,d=0;const u=[];let g=0;for(;a!==ce;)if(ee(a))te(a.left,!1),te(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else{if(!ee(a.left)){if(c=l+a.maxEnd,ci)te(a,!0);else{if(d=l+a.end,d>=t){a.setCachedOffsets(h,d,s);let e=!0;n&&a.ownerId&&a.ownerId!==n&&(e=!1),o&&ie(a)&&(e=!1),r&&!oe(a)&&(e=!1),e&&(u[g++]=a)}te(a,!0),a.right===ce||ee(a.right)||(l+=a.delta,a=a.right)}}return te(e.root,!1),u}(this,e,t,i,n,o,s)}search(e,t,i,n){return this.root===ce?[]:function(e,t,i,n,o){let s=e.root,r=0,a=0,l=0;const c=[];let h=0;for(;s!==ce;){if(ee(s)){te(s.left,!1),te(s.right,!1),s===s.parent.right&&(r-=s.parent.delta),s=s.parent;continue}if(s.left!==ce&&!ee(s.left)){s=s.left;continue}a=r+s.start,l=r+s.end,s.setCachedOffsets(a,l,n);let e=!0;t&&s.ownerId&&s.ownerId!==t&&(e=!1),i&&ie(s)&&(e=!1),o&&!oe(s)&&(e=!1),e&&(c[h++]=s),te(s,!0),s.right===ce||ee(s.right)||(r+=s.delta,s=s.right)}return te(e.root,!1),c}(this,e,t,i,n)}collectNodesFromOwner(e){return function(e,t){let i=e.root;const n=[];let o=0;for(;i!==ce;)ee(i)?(te(i.left,!1),te(i.right,!1),i=i.parent):i.left===ce||ee(i.left)?(i.ownerId===t&&(n[o++]=i),te(i,!0),i.right===ce||ee(i.right)||(i=i.right)):i=i.left;return te(e.root,!1),n}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const i=[];let n=0;for(;t!==ce;)ee(t)?(te(t.left,!1),te(t.right,!1),t=t.parent):t.left===ce||ee(t.left)?t.right===ce||ee(t.right)?(i[n++]=t,te(t,!0)):t=t.right:t=t.left;return te(e.root,!1),i}(this)}insert(e){ge(this,e),this._normalizeDeltaIfNecessary()}delete(e){pe(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let n=0;for(;e!==this.root;)e===e.parent.right&&(n+=e.parent.delta),e=e.parent;const o=i.start+n,s=i.end+n;i.setCachedOffsets(o,s,t)}acceptReplace(e,t,i,n){const o=function(e,t,i){let n=e.root,o=0,s=0,r=0,a=0;const l=[];let c=0;for(;n!==ce;)if(ee(n))te(n.left,!1),te(n.right,!1),n===n.parent.right&&(o-=n.parent.delta),n=n.parent;else{if(!ee(n.left)){if(s=o+n.maxEnd,si?te(n,!0):(a=o+n.end,a>=t&&(n.setCachedOffsets(r,a,0),l[c++]=n),te(n,!0),n.right===ce||ee(n.right)||(o+=n.delta,n=n.right))}return te(e.root,!1),l}(this,e,e+t);for(let e=0,t=o.length;ei?(o.start+=l,o.end+=l,o.delta+=l,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),te(o,!0)):(te(o,!0),o.right===ce||ee(o.right)||(s+=o.delta,o=o.right))}te(e.root,!1)}(this,e,e+t,i),this._normalizeDeltaIfNecessary();for(let s=0,r=o.length;si)&&1!==n&&(2===n||t)}function ue(e,t,i,n,o){const s=function(e){return(24&e.metadata)>>>3}(e),r=0===s||2===s,a=1===s||2===s,l=i-t,c=n,h=Math.min(l,c),d=e.start;let u=!1;const g=e.end;let p=!1;t<=d&&g<=i&&function(e){return(32&e.metadata)>>>5==1}(e)&&(e.start=t,u=!0,e.end=t,p=!0);{const e=o?1:l>0?2:0;!u&&de(d,r,t,e)&&(u=!0),!p&&de(g,a,t,e)&&(p=!0)}if(h>0&&!o){const e=l>c?2:0;!u&&de(d,r,t+h,e)&&(u=!0),!p&&de(g,a,t+h,e)&&(p=!0)}{const n=o?1:0;!u&&de(d,r,i,n)&&(e.start=t+c,u=!0),!p&&de(g,a,i,n)&&(e.end=t+c,p=!0)}const m=c-l;u||(e.start=Math.max(0,d+m)),p||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function ge(e,t){if(e.root===ce)return t.parent=ce,t.left=ce,t.right=ce,J(t,0),e.root=t,e.root;!function(e,t){let i=0,n=e.root;const o=t.start,s=t.end;for(;;)if(r=o,a=s,l=n.start+i,c=n.end+i,(r===l?a-c:r-l)<0){if(n.left===ce){t.start-=i,t.end-=i,t.maxEnd-=i,n.left=t;break}n=n.left}else{if(n.right===ce){t.start-=i+n.delta,t.end-=i+n.delta,t.maxEnd-=i+n.delta,n.right=t;break}i+=n.delta,n=n.right}var r,a,l,c;t.parent=n,t.left=ce,t.right=ce,J(t,1)}(e,t),Ce(t.parent);let i=t;for(;i!==e.root&&1===X(i.parent);)if(i.parent===i.parent.parent.left){const t=i.parent.parent.right;1===X(t)?(J(i.parent,0),J(t,0),J(i.parent.parent,1),i=i.parent.parent):(i===i.parent.right&&(i=i.parent,fe(e,i)),J(i.parent,0),J(i.parent.parent,1),_e(e,i.parent.parent))}else{const t=i.parent.parent.left;1===X(t)?(J(i.parent,0),J(t,0),J(i.parent.parent,1),i=i.parent.parent):(i===i.parent.left&&(i=i.parent,_e(e,i)),J(i.parent,0),J(i.parent.parent,1),fe(e,i.parent.parent))}return J(e.root,0),t}function pe(e,t){let i,n;if(t.left===ce?(i=t.right,n=t,i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta):t.right===ce?(i=t.left,n=t):(n=function(e){for(;e.left!==ce;)e=e.left;return e}(t.right),i=n.right,i.start+=n.delta,i.end+=n.delta,i.delta+=n.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,n.delta=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0)),n===e.root)return e.root=i,J(i,0),t.detach(),me(),be(i),void(e.root.parent=ce);const o=1===X(n);if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?i.parent=n.parent:(n.parent===t?i.parent=n:i.parent=n.parent,n.left=t.left,n.right=t.right,n.parent=t.parent,J(n,X(t)),t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==ce&&(n.left.parent=n),n.right!==ce&&(n.right.parent=n)),t.detach(),o)return Ce(i.parent),n!==t&&(Ce(n),Ce(n.parent)),void me();let s;for(Ce(i),Ce(i.parent),n!==t&&(Ce(n),Ce(n.parent));i!==e.root&&0===X(i);)i===i.parent.left?(s=i.parent.right,1===X(s)&&(J(s,0),J(i.parent,1),fe(e,i.parent),s=i.parent.right),0===X(s.left)&&0===X(s.right)?(J(s,1),i=i.parent):(0===X(s.right)&&(J(s.left,0),J(s,1),_e(e,s),s=i.parent.right),J(s,X(i.parent)),J(i.parent,0),J(s.right,0),fe(e,i.parent),i=e.root)):(s=i.parent.left,1===X(s)&&(J(s,0),J(i.parent,1),_e(e,i.parent),s=i.parent.left),0===X(s.left)&&0===X(s.right)?(J(s,1),i=i.parent):(0===X(s.left)&&(J(s.right,0),J(s,1),fe(e,s),s=i.parent.left),J(s,X(i.parent)),J(i.parent,0),J(s.left,0),_e(e,i.parent),i=e.root));J(i,0),me()}function me(){ce.parent=ce,ce.delta=0,ce.start=0,ce.end=0}function fe(e,t){const i=t.right;i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,t.right=i.left,i.left!==ce&&(i.left.parent=t),i.parent=t.parent,t.parent===ce?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i,be(t),be(i)}function _e(e,t){const i=t.left;t.delta-=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=i.delta,t.end-=i.delta,t.left=i.right,i.right!==ce&&(i.right.parent=t),i.parent=t.parent,t.parent===ce?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i,be(t),be(i)}function ve(e){let t=e.end;if(e.left!==ce){const i=e.left.maxEnd;i>t&&(t=i)}if(e.right!==ce){const i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function be(e){e.maxEnd=ve(e)}function Ce(e){for(;e!==ce;){const t=ve(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}var ye=i(91567),we=i(89676),Se=i(77277),ke=i(15393),xe=i(45463),Le=i(270),Ee=i(96887),Ne=i(94954),De=i(1432),Te=i(84013),Ie=i(19247),Ae=i(276);class Me{constructor(e){this._default=e,this._store=[]}get(e){return e=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,i){if(e>=this._store.length)return;if(0===t)return void this.insert(e,i);if(0===i)return void this.delete(e,t);const n=this._store.slice(0,e),o=this._store.slice(e+t),s=function(e,t){const i=[];for(let n=0;n=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const i=[];for(let e=0;e0){const i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e)return void i.appendLineTokens(t)}this._tokens.push(new Re(e,[t]))}finalize(){return this._tokens}}var Pe=i(77378);class Fe{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new He(e)}getStartState(e){return 1===e?this.initialState:this.store.getEndState(e-1)}}class Be extends Fe{constructor(e,t,i,n){super(e,t),this._textModel=i,this._languageIdCodec=n}updateTokensUntilLine(e,t){const i=this._textModel.getLanguageId();for(;;){const n=this.store.getFirstInvalidEndStateLineNumber();if(!n||n>t)break;const o=this._textModel.getLineContent(n),s=this.getStartState(n),r=ze(this._languageIdCodec,i,this.tokenizationSupport,o,!0,s);e.add(n,r.tokens),this.store.setEndState(n,r.endState)}}getTokenTypeIfInsertingCharacter(e,t){const i=this.getStartState(e.lineNumber);if(!i)return 0;const n=this._textModel.getLanguageId(),o=this._textModel.getLineContent(e.lineNumber),s=o.substring(0,e.column-1)+t+o.substring(e.column-1),r=ze(this._languageIdCodec,n,this.tokenizationSupport,s,!0,i),a=new Pe.A(r.tokens,s,this._languageIdCodec);if(0===a.getCount())return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,i){const n=e.lineNumber,o=e.column,s=this.getStartState(n);if(!s)return null;const r=this._textModel.getLineContent(n),a=r.substring(0,o-1)+i+r.substring(o-1+t),l=this._textModel.getLanguageIdAtPosition(n,0),c=ze(this._languageIdCodec,l,this.tokenizationSupport,a,!0,s);return new Pe.A(c.tokens,a,this._languageIdCodec)}isCheapToTokenize(e){const t=this.store.getFirstInvalidEndStateLineNumberOrMax();return e1&&o>=1;o--){const e=this._textModel.getLineFirstNonWhitespaceColumn(o);if(0!==e&&e0&&i>0&&(i--,t--),this._lineEndStates.replace(e.startLineNumber,i,t)}}class We{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}removeMin(){if(0===this._ranges.length)return null;const e=this._ranges[0];return e.start+1===e.endExclusive?this._ranges.shift():this._ranges[0]=new Ie.q(e.start+1,e.endExclusive),e.start}addRange(e){Ie.q.addRange(e,this._ranges)}addRangeAndResize(e,t){let i=0;for(;!(i>=this._ranges.length||e.start<=this._ranges[i].endExclusive);)i++;let n=i;for(;!(n>=this._ranges.length||e.endExclusivee.toString())).join(" + ")}}function ze(e,t,i,n,o,r){let a=null;if(i)try{a=i.tokenizeEncoded(n,o,r.clone())}catch(e){(0,s.dL)(e)}return a||(a=(0,Ae.Dy)(e.encodeLanguageId(t),r)),Pe.A.convertToEndOffset(a.tokens,n.length),a}class Ue{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,ke.To)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),i=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.isTokenizationComplete()}_tokenizeOneInvalidLine(e){if(!this._tokenizerWithStateStore||!this._hasLinesToTokenize())return this._tokenizerWithStateStore._textModel.getLineCount()+1;const t=this._tokenizerWithStateStore.store.getFirstInvalidEndStateLineNumber();return this._tokenizerWithStateStore.updateTokensUntilLine(e,t),t}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.isTokenizationComplete()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new xe.z(e,t))}}const je=new Uint32Array(0).buffer;class Ke{static deleteBeginning(e,t){return null===e||e===je?e:Ke.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===je)return e;const i=qe(e),n=i[i.length-2];return Ke.delete(e,t,n)}static delete(e,t,i){if(null===e||e===je||t===i)return e;const n=qe(e),o=n.length>>>1;if(0===t&&n[n.length-2]===i)return je;const s=Pe.A.findIndexInTokensArray(n,t),r=s>0?n[s-1<<1]:0;if(il&&(n[a++]=t,n[a++]=n[1+(e<<1)],l=t)}if(a===n.length)return e;const h=new Uint32Array(a);return h.set(n.subarray(0,a),0),h.buffer}static append(e,t){if(t===je)return e;if(e===je)return t;if(null===e)return e;if(null===t)return null;const i=qe(e),n=qe(t),o=n.length>>>1,s=new Uint32Array(i.length+n.length);s.set(i,0);let r=i.length;const a=i[i.length-2];for(let e=0;e>>1;let s=Pe.A.findIndexInTokensArray(n,t);s>0&&n[s-1<<1]===t&&s--;for(let e=s;e0}getTokens(e,t,i){let n=null;if(t1&&(t=$e.N.getLanguageId(n[1])!==e),!t)return je}if(!n||0===n.length){const i=new Uint32Array(2);return i[0]=t,i[1]=Qe(e),i.buffer}return n[n.length-2]=t,0===n.byteOffset&&n.byteLength===n.buffer.byteLength?n.buffer:n}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const i=[];for(let e=0;e=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=Ke.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=Ke.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let n=null;i=this._len||(0!==t?(this._lineTokens[n]=Ke.deleteEnding(this._lineTokens[n],e.column-1),this._lineTokens[n]=Ke.insert(this._lineTokens[n],e.column-1,i),this._insertLines(e.lineNumber,t)):this._lineTokens[n]=Ke.insert(this._lineTokens[n],e.column-1,i))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const i=[];for(let n=0,o=e.length;n>>0}class Ye{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const n=t[0].getRange(),o=t[t.length-1].getRange();if(!n||!o)return e;i=e.plusRange(n).plusRange(o)}let o=null;for(let e=0,t=this._pieces.length;ei.endLineNumber){o=o||{index:e};break}if(n.removeTokens(i),n.isEmpty()){this._pieces.splice(e,1),e--,t--;continue}if(n.endLineNumberi.endLineNumber){o=o||{index:e};continue}const[s,r]=n.split(i);s.isEmpty()?o=o||{index:e}:r.isEmpty()||(this._pieces.splice(e,1,s,r),e++,t++,o=o||{index:e})}return o=o||{index:this._pieces.length},t.length>0&&(this._pieces=n.Zv(this._pieces,o.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const i=this._pieces;if(0===i.length)return t;const n=i[Ye._findFirstPieceWithLine(i,e)].getLineTokens(e);if(!n)return t;const o=t.getCount(),s=n.getCount();let r=0;const a=[];let l=0,c=0;const h=(e,t)=>{e!==c&&(c=e,a[l++]=e,a[l++]=t)};for(let e=0;e>>0,c=~l>>>0;for(;rt)){for(;o>i&&e[o-1].startLineNumber<=t&&t<=e[o-1].endLineNumber;)o--;return o}n=o-1}}return i}acceptEdit(e,t,i,n,o){for(const s of this._pieces)s.acceptEdit(e,t,i,n,o)}}class Ze extends Ne.U{constructor(e,t,i,n,o,s){super(),this._languageService=e,this._languageConfigurationService=t,this._textModel=i,this._bracketPairsTextModelPart=n,this._languageId=o,this._attachedViews=s,this._semanticTokens=new Ye(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new r.Q5),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new r.Q5),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new r.Q5),this.onDidChangeTokens=this._onDidChangeTokens.event,this.grammarTokens=this._register(new Xe(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews)),this._register(this._languageConfigurationService.onDidChange((e=>{e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}))),this._register(this.grammarTokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._register(this.grammarTokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()})))}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,i,n]=(0,h.Q)(t.text);this._semanticTokens.acceptEdit(t.range,e,i,n,t.text.length>0?t.text.charCodeAt(0):0)}this.grammarTokens.handleDidChangeContent(e)}handleDidChangeAttached(){this.grammarTokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this.grammarTokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new s.he("Illegal value for lineNumber")}get hasTokens(){return this.grammarTokens.hasTokens}resetTokenization(){this.grammarTokens.resetTokenization()}get backgroundTokenizationState(){return this.grammarTokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this.grammarTokens.forceTokenization(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this.grammarTokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this.grammarTokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,i){return this.grammarTokens.getTokenTypeIfInsertingCharacter(e,t,i)}tokenizeLineWithEdit(e,t,i){return this.grammarTokens.tokenizeLineWithEdit(e,t,i)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),i=this._textModel.getLineContent(t.lineNumber),n=this.getLineTokens(t.lineNumber),o=n.findTokenIndexAtOffset(t.column-1),[s,r]=Ze._findLanguageBoundaries(n,o),a=(0,Le.t2)(t.column,this.getLanguageConfiguration(n.getLanguageId(o)).getWordDefinition(),i.substring(s,r),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(o>0&&s===t.column-1){const[s,r]=Ze._findLanguageBoundaries(n,o-1),a=(0,Le.t2)(t.column,this.getLanguageConfiguration(n.getLanguageId(o-1)).getWordDefinition(),i.substring(s,r),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let n=0;for(let o=t;o>=0&&e.getLanguageId(o)===i;o--)n=e.getStartOffset(o);let o=e.getLineContent().length;for(let n=t,s=e.getCount();n{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(n.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let i=this._attachedViewStates.get(e);i||(i=new Je((()=>this.refreshRanges(i.lineRanges))),this._attachedViewStates.set(e,i)),i.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){var t;this._tokens.flush(),null===(t=this._debugBackgroundTokens)||void 0===t||t.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new He(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[i,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=Ee.RW.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(e){return(0,s.dL)(e),[null,null]}return[e,t]})();if(this._tokenizer=i&&n?new Be(this._textModel.getLineCount(),i,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{2!==this._backgroundTokenizationState&&(this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire())},setEndState:(e,t)=>{var i,n,o;if(!t)throw new s.he;const r=null!==(n=null===(i=this._tokenizer)||void 0===i?void 0:i.store.getFirstInvalidEndStateLineNumber())&&void 0!==n?n:void 0;void 0!==r&&e>=r&&(null===(o=this._tokenizer)||void 0===o||o.store.setEndState(e,t))}};i&&i.createBackgroundTokenizer&&!i.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=i.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new Ue(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),(null==i?void 0:i.backgroundTokenizerShouldOnlyVerifyTokens)&&i.createBackgroundTokenizer?(this._debugBackgroundTokens=new Ge(this._languageIdCodec),this._debugBackgroundStates=new He(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=i.createBackgroundTokenizer(this._textModel,{setTokens:e=>{var t;null===(t=this._debugBackgroundTokens)||void 0===t||t.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{var i;null===(i=this._debugBackgroundStates)||void 0===i||i.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){var e;null===(e=this._defaultBackgroundTokenizer)||void 0===e||e.handleChanges()}handleDidChangeContent(e){var t,i,n;if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const i of e.changes){const[e,n]=(0,h.Q)(i.text);this._tokens.acceptEdit(i.range,e,n),null===(t=this._debugBackgroundTokens)||void 0===t||t.acceptEdit(i.range,e,n)}null===(i=this._debugBackgroundStates)||void 0===i||i.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),null===(n=this._defaultBackgroundTokenizer)||void 0===n||n.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=xe.z.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){var i,n;if(!this._tokenizer)return;e=Math.max(1,e),t=Math.min(this._textModel.getLineCount(),t);const o=new Oe,{heuristicTokens:s}=this._tokenizer.tokenizeHeuristically(o,e,t),r=this.setTokens(o.finalize());if(s)for(const e of r.changes)null===(i=this._backgroundTokenizer.value)||void 0===i||i.requestTokens(e.fromLineNumber,e.toLineNumber+1);null===(n=this._defaultBackgroundTokenizer)||void 0===n||n.checkFinished()}forceTokenization(e){var t,i;const n=new Oe;null===(t=this._tokenizer)||void 0===t||t.updateTokensUntilLine(n,e),this.setTokens(n.finalize()),null===(i=this._defaultBackgroundTokenizer)||void 0===i||i.checkFinished()}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){var t;const i=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,i);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const o=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,i);!n.equals(o)&&(null===(t=this._debugBackgroundTokenizer.value)||void 0===t?void 0:t.reportMismatchingTokens)&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,i){if(!this._tokenizer)return 0;const n=this._textModel.validatePosition(new u.L(e,t));return this.forceTokenization(n.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(n,i)}tokenizeLineWithEdit(e,t,i){if(!this._tokenizer)return null;const n=this._textModel.validatePosition(e);return this.forceTokenization(n.lineNumber),this._tokenizer.tokenizeLineWithEdit(n,t,i)}get hasTokens(){return this._tokens.hasTokens}}class Je extends a.JT{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new ke.pY((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,n.fS)(this._computedLineRanges,this._lineRanges)||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}var et=i(14706),tt=i(64862),it=function(e,t){return function(i,n){t(i,n,e)}};function nt(e,t){let i;return i="string"==typeof e?function(e){const t=new we.M;return t.acceptChunk(e),t.finish()}(e):v.Hf(e)?function(e){const t=new we.M;let i;for(;"string"==typeof(i=e.read());)t.acceptChunk(i);return t.finish()}(e):e,i.create(t)}let ot=0;class st{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,i=0;for(;;){const n=this._source.read();if(null===n)return this._eos=!0,0===t?null:e.join("");if(n.length>0&&(e[t++]=n,i+=n.length),i>=65536)return e.join("")}}}const rt=()=>{throw new Error("Invalid change accessor")};let at=class e extends a.JT{static resolveOptions(e,t){if(t.detectIndentation){const i=Z(e,t.tabSize,t.insertSpaces);return new v.dJ({tabSize:i.tabSize,indentSize:"tabSize",insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new v.dJ(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,a.F8)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(t,i,n,o=null,s,h,d){super(),this._undoRedoService=s,this._languageService=h,this._languageConfigurationService=d,this._onWillDispose=this._register(new r.Q5),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new Ct((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new r.Q5),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new r.Q5),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new r.Q5),this._eventEmitter=this._register(new yt),this._languageSelectionListener=this._register(new a.XK),this._deltaDecorationCallCnt=0,this._attachedViews=new wt,ot++,this.id="$model"+ot,this.isForSimpleWidget=n.isForSimpleWidget,this._associatedResource=null==o?c.o.parse("inmemory://model/"+ot):o,this._attachedEditorCount=0;const{textBuffer:u,disposable:p}=nt(t,n.defaultEOL);this._buffer=u,this._bufferDisposable=p,this._options=e.resolveOptions(this._buffer,n);const m="string"==typeof i?i:i.languageId;"string"!=typeof i&&(this._languageSelectionListener.value=i.onDidChange((()=>this._setLanguage(i.languageId)))),this._bracketPairs=this._register(new H(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new G.l(this,this._languageConfigurationService)),this._decorationProvider=this._register(new K(this)),this._tokenizationTextModelPart=new Ze(this._languageService,this._languageConfigurationService,this,this._bracketPairs,m,this._attachedViews);const f=this._buffer.getLineCount(),_=this._buffer.getValueLengthInRange(new g.e(1,1,f,this._buffer.getLineLength(f)+1),0);n.largeFileOptimizations?this._isTooLargeForTokenization=_>e.LARGE_FILE_SIZE_THRESHOLD||f>e.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=_>e._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=l.PJ(ot),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new ht,this._commandManager=new $.NL(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(m)}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new ye.A([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=a.JT.None}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new et.fV(e,t)))}setValue(e){if(this._assertNotDisposed(),null==e)throw(0,s.b1)();const{textBuffer:t,disposable:i}=nt(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,n,o,s,r,a){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:n}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:o,isRedoing:s,isFlush:r}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),o=this.getLineCount(),s=this.getLineMaxColumn(o);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new ht,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new et.dQ([new et.Jx],this._versionId,!1,!1),this._createContentChanged2(new g.e(1,1,o,s),0,n,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),o=this.getLineCount(),s=this.getLineMaxColumn(o);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new et.dQ([new et.CZ],this._versionId,!1,!1),this._createContentChanged2(new g.e(1,1,o,s),0,n,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,n=t.length;i0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const i=this._buffer.getLineCount();for(let n=1;n<=i;n++){const i=this._buffer.getLineLength(n);i>=1e4?t+=i:e+=i}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t=void 0!==e.tabSize?e.tabSize:this._options.tabSize,i=void 0!==e.indentSize?e.indentSize:this._options.originalIndentSize,n=void 0!==e.insertSpaces?e.insertSpaces:this._options.insertSpaces,o=void 0!==e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,s=void 0!==e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,r=new v.dJ({tabSize:t,indentSize:i,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:o,bracketPairColorizationOptions:s});if(this._options.equals(r))return;const a=this._options.createChangeEvent(r);this._options=r,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const i=Z(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),(0,d.x)(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(l.Qe.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueInRange(i,e);return t?this._buffer.getBOM()+n:n}createSnapshot(e=!1){return new st(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+n:n}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){return this._assertNotDisposed(),this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),i=e.startLineNumber,n=e.startColumn;let o=Math.floor("number"!=typeof i||isNaN(i)?1:i),s=Math.floor("number"!=typeof n||isNaN(n)?1:n);if(o<1)o=1,s=1;else if(o>t)o=t,s=this.getLineMaxColumn(o);else if(s<=1)s=1;else{const e=this.getLineMaxColumn(o);s>=e&&(s=e)}const r=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!=typeof r||isNaN(r)?1:r),c=Math.floor("number"!=typeof a||isNaN(a)?1:a);if(l<1)l=1,c=1;else if(l>t)l=t,c=this.getLineMaxColumn(l);else if(c<=1)c=1;else{const e=this.getLineMaxColumn(l);c>=e&&(c=e)}return i===o&&n===s&&r===l&&a===c&&e instanceof g.e&&!(e instanceof p.Y)?e:new g.e(o,s,l,c)}_isValidPosition(e,t,i){if("number"!=typeof e||"number"!=typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===i){const i=this._buffer.getLineCharCode(e,t-2);if(l.ZG(i))return!1}return!0}_validatePosition(e,t,i){const n=Math.floor("number"!=typeof e||isNaN(e)?1:e),o=Math.floor("number"!=typeof t||isNaN(t)?1:t),s=this._buffer.getLineCount();if(n<1)return new u.L(1,1);if(n>s)return new u.L(s,this.getLineMaxColumn(s));if(o<=1)return new u.L(n,1);const r=this.getLineMaxColumn(n);if(o>=r)return new u.L(n,r);if(1===i){const e=this._buffer.getLineCharCode(n,o-2);if(l.ZG(e))return new u.L(n,o-1)}return new u.L(n,o)}validatePosition(e){return this._assertNotDisposed(),e instanceof u.L&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,s=e.endColumn;if(!this._isValidPosition(i,n,0))return!1;if(!this._isValidPosition(o,s,0))return!1;if(1===t){const e=n>1?this._buffer.getLineCharCode(i,n-2):0,t=s>1&&s<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,s-2):0,r=l.ZG(e),a=l.ZG(t);return!r&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof g.e&&!(e instanceof p.Y)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),i=this._validatePosition(e.endLineNumber,e.endColumn,0),n=t.lineNumber,o=t.column,s=i.lineNumber,r=i.column;{const e=o>1?this._buffer.getLineCharCode(n,o-2):0,t=r>1&&r<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,r-2):0,i=l.ZG(e),a=l.ZG(t);return i||a?n===s&&o===r?new g.e(n,o-1,s,r-1):i&&a?new g.e(n,o-1,s,r+1):i?new g.e(n,o-1,s,r):new g.e(n,o,s,r+1):new g.e(n,o,s,r)}}modifyPosition(e,t){this._assertNotDisposed();const i=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new g.e(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,n){return this._buffer.findMatchesLineByLine(e,t,i,n)}findMatches(e,t,i,n,o,s,r=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>g.e.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let c;if(l.push(a.reduce(((e,t)=>g.e.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!i&&e.indexOf("\n")<0){const t=new Se.bc(e,i,n,o).parseSearchRequest();if(!t)return[];c=e=>this.findMatchesLineByLine(e,t,s,r)}else c=t=>Se.pM.findMatches(this,new Se.bc(e,i,n,o),t,s,r);return l.map(c).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,i,n,o,s){this._assertNotDisposed();const r=this.validatePosition(t);if(!i&&e.indexOf("\n")<0){const t=new Se.bc(e,i,n,o).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new g.e(r.lineNumber,r.column,a,this.getLineMaxColumn(a)),c=this.findMatchesLineByLine(l,t,s,1);return Se.pM.findNextMatch(this,new Se.bc(e,i,n,o),r,s),c.length>0?c[0]:(l=new g.e(1,1,r.lineNumber,this.getLineMaxColumn(r.lineNumber)),c=this.findMatchesLineByLine(l,t,s,1),c.length>0?c[0]:null)}return Se.pM.findNextMatch(this,new Se.bc(e,i,n,o),r,s)}findPreviousMatch(e,t,i,n,o,s){this._assertNotDisposed();const r=this.validatePosition(t);return Se.pM.findPreviousMatch(this,new Se.bc(e,i,n,o),r,s)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof v.Qi?e:new v.Qi(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let i=0,n=e.length;i({range:this.validateRange(e.range),text:e.text})));let n=!0;if(e)for(let t=0,o=e.length;to.endLineNumber,r=o.startLineNumber>t.endLineNumber;if(!n&&!r){s=!0;break}}if(!s){n=!1;break}}if(n)for(let e=0,n=this._trimAutoWhitespaceLines.length;et.endLineNumber||n===t.startLineNumber&&t.startColumn===o&&t.isEmpty()&&r&&r.length>0&&"\n"===r.charAt(0)||n===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&r&&r.length>0&&"\n"===r.charAt(r.length-1))){s=!1;break}}if(s){const e=new g.e(n,1,n,o);t.push(new v.Qi(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i,n)}_applyUndo(e,t,i,n){const o=e.map((e=>{const t=this.getPositionAt(e.newPosition),i=this.getPositionAt(e.newEnd);return{range:new g.e(t.lineNumber,t.column,i.lineNumber,i.column),text:e.oldText}}));this._applyUndoRedoEdits(o,t,!0,!1,i,n)}_applyRedo(e,t,i,n){const o=e.map((e=>{const t=this.getPositionAt(e.oldPosition),i=this.getPositionAt(e.oldEnd);return{range:new g.e(t.lineNumber,t.column,i.lineNumber,i.column),text:e.newText}}));this._applyUndoRedoEdits(o,t,!1,!0,i,n)}_applyUndoRedoEdits(e,t,i,n,o,s){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=n,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(o)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(s),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),o=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),s=this._buffer.getLineCount(),r=o.changes;if(this._trimAutoWhitespaceLines=o.trimAutoWhitespaceLineNumbers,0!==r.length){for(let e=0,t=r.length;e=0;t--){const i=l+t,n=f+t;y.takeFromEndWhile((e=>e.lineNumber>n));const o=y.takeFromEndWhile((e=>e.lineNumber===n));e.push(new et.rU(i,this.getLineContent(n),o))}if(pe.lineNumbere.lineNumber===t))}e.push(new et.Tx(o+1,l+g,h,c))}t+=m}this._emitContentChangedEvent(new et.dQ(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:r,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===o.reverseEdits?void 0:o.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new et.rU(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new et.D8(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const i={addDecoration:(t,i)=>this._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,bt(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,i)=>0===t.length&&0===i.length?[]:this._deltaDecorationsImpl(e,t,i)};let n=null;try{n=t(i)}catch(e){(0,s.dL)(e)}return i.addDecoration=rt,i.changeDecoration=rt,i.changeDecorationOptions=rt,i.removeDecoration=rt,i.deltaDecorations=rt,n}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,s.dL)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const n=e?this._decorations[e]:null;if(!n)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:vt[i]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(n),delete this._decorations[n.id],null;const o=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),r=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);return this._decorationsTree.delete(n),n.reset(this.getVersionId(),s,r,o),n.setOptions(vt[i]),this._decorationsTree.insert(n),n.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let e=0,i=t.length;ethis.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,o=!1,s=!1){const r=this.getLineCount(),a=Math.min(r,Math.max(1,e)),l=Math.min(r,Math.max(1,t)),c=this.getLineMaxColumn(l),h=new g.e(a,1,l,c),d=this._getDecorationsInRange(h,i,o,s);return(0,n.vA)(d,this._decorationProvider.getDecorationsInRange(h,i,o)),d}getDecorationsInRange(e,t=0,i=!1,o=!1,s=!1){const r=this.validateRange(e),a=this._getDecorationsInRange(r,t,i,s);return(0,n.vA)(a,this._decorationProvider.getDecorationsInRange(r,t,i,o)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),n=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return et.gk.fromDecorations(n).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,i,n){const o=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,o,s,t,i,n)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(i.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const n=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),s=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),o,s,n),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const n=!(!i.options.overviewRuler||!i.options.overviewRuler.color),o=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(i.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}n!==o?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i,n=!1){const o=this.getVersionId(),s=t.length;let r=0;const a=i.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const c=new Array(a);for(;rthis._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const i of e){if(" "!==i&&"\t"!==i)break;t++}return t}(this.getLineContent(e))+1}};function lt(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function ct(e){return!!e.options.after||!!e.options.before}at._MODEL_SYNC_LIMIT=52428800,at.LARGE_FILE_SIZE_THRESHOLD=20971520,at.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,at.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:m.D.tabSize,indentSize:m.D.indentSize,insertSpaces:m.D.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:m.D.trimAutoWhitespace,largeFileOptimizations:m.D.largeFileOptimizations,bracketPairColorizationOptions:m.D.bracketPairColorizationOptions},at=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([it(4,tt.tJ),it(5,f.O),it(6,_.c_)],at);class ht{constructor(){this._decorationsTree0=new he,this._decorationsTree1=new he,this._injectedTextDecorationsTree=new he}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const i of t)null===i.range&&(i.range=e.getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd));return t}getAllInInterval(e,t,i,n,o,s){const r=e.getVersionId(),a=this._intervalSearch(t,i,n,o,r,s);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,i,n,o,s){const r=this._decorationsTree0.intervalSearch(e,t,i,n,o,s),a=this._decorationsTree1.intervalSearch(e,t,i,n,o,s),l=this._injectedTextDecorationsTree.intervalSearch(e,t,i,n,o,s);return r.concat(a).concat(l)}getInjectedTextInInterval(e,t,i,n){const o=e.getVersionId(),s=this._injectedTextDecorationsTree.intervalSearch(t,i,n,!1,o,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const i=e.getVersionId(),n=this._injectedTextDecorationsTree.search(t,!1,i,!1);return this._ensureNodesHaveRanges(e,n).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,i,n,o){const s=e.getVersionId(),r=this._search(t,i,n,s,o);return this._ensureNodesHaveRanges(e,r)}_search(e,t,i,n,o){if(i)return this._decorationsTree1.search(e,t,n,o);{const i=this._decorationsTree0.search(e,t,n,o),s=this._decorationsTree1.search(e,t,n,o),r=this._injectedTextDecorationsTree.search(e,t,n,o);return i.concat(s).concat(r)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),n=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(n)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){ct(e)?this._injectedTextDecorationsTree.insert(e):lt(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){ct(e)?this._injectedTextDecorationsTree.delete(e):lt(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){ct(e)?this._injectedTextDecorationsTree.resolveNode(e,t):lt(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,n){this._decorationsTree0.acceptReplace(e,t,i,n),this._decorationsTree1.acceptReplace(e,t,i,n),this._injectedTextDecorationsTree.acceptReplace(e,t,i,n)}}function dt(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class ut{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class gt extends ut{constructor(e){super(e),this._resolvedColor=null,this.position="number"==typeof e.position?e.position:v.sh.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"==typeof e)return e;const i=e?t.getColor(e.id):null;return i?i.toString():""}}class pt{constructor(e){var t;this.position=null!==(t=null==e?void 0:e.position)&&void 0!==t?t:v.U.Left}}class mt extends ut{constructor(e){super(e),this.position=e.position}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"==typeof e?o.Il.fromHex(e):t.getColor(e.id)}}class ft{static from(e){return e instanceof ft?e:new ft(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class _t{static register(e){return new _t(e)}static createDynamic(e){return new _t(e)}constructor(e){var t,i,n,o,s;this.description=e.description,this.blockClassName=e.blockClassName?dt(e.blockClassName):null,this.blockDoesNotCollapse=null!==(t=e.blockDoesNotCollapse)&&void 0!==t?t:null,this.blockIsAfterEnd=null!==(i=e.blockIsAfterEnd)&&void 0!==i?i:null,this.blockPadding=null!==(n=e.blockPadding)&&void 0!==n?n:null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?dt(e.className):null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new gt(e.overviewRuler):null,this.minimap=e.minimap?new mt(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new pt(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?dt(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?dt(e.linesDecorationsClassName):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?dt(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?dt(e.marginClassName):null,this.inlineClassName=e.inlineClassName?dt(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?dt(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?dt(e.afterContentClassName):null,this.after=e.after?ft.from(e.after):null,this.before=e.before?ft.from(e.before):null,this.hideInCommentTokens=null!==(o=e.hideInCommentTokens)&&void 0!==o&&o,this.hideInStringTokens=null!==(s=e.hideInStringTokens)&&void 0!==s&&s}}_t.EMPTY=_t.register({description:"empty"});const vt=[_t.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),_t.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),_t.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),_t.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function bt(e){return e instanceof _t?e:_t.createDynamic(e)}class Ct extends a.JT{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new r.Q5),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var e;this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),null===(e=this._affectedInjectedTextLines)||void 0===e||e.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||(this._affectsMinimap=!(!e.minimap||!e.minimap.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!(!e.overviewRuler||!e.overviewRuler.color)),this._affectsGlyphMargin||(this._affectsGlyphMargin=!!e.glyphMarginClassName),this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class yt extends a.JT{constructor(){super(),this._fastEmitter=this._register(new r.Q5),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new r.Q5),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}class wt{constructor(){this._onDidChangeVisibleRanges=new r.Q5,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new St((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class St{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const i=e.map((e=>new xe.z(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:i,stabilized:t})}}},94954:(e,t,i)=>{"use strict";i.d(t,{U:()=>o});var n=i(5976);class o extends n.JT{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}},77277:(e,t,i)=>{"use strict";i.d(t,{bc:()=>l,cM:()=>u,iE:()=>c,pM:()=>d,sz:()=>g});var n=i(97295),o=i(24929),s=i(50187),r=i(24314),a=i(84973);class l{constructor(e,t,i,n){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=n}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,i=e.length;t=i)break;const n=e.charCodeAt(t);if(110===n||114===n||87===n)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=n.GF(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(e){return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new a.Tx(t,this.wordSeparators?(0,o.u)(this.wordSeparators):null,i?this.searchString:null)}}function c(e,t,i){if(!i)return new a.tk(e,null);const n=[];for(let e=0,i=t.length;e>0);t[o]>=e?n=o-1:t[o+1]>=e?(i=o,n=o):i=o+1}return i+1}}class d{static findMatches(e,t,i,n,o){const s=t.parseSearchRequest();return s?s.regex.multiline?this._doFindMatchesMultiline(e,i,new g(s.wordSeparators,s.regex),n,o):this._doFindMatchesLineByLine(e,i,s,n,o):[]}static _getMultilineMatchRange(e,t,i,n,o,s){let a,l,c=0;if(n?(c=n.findLineFeedCountBeforeOffset(o),a=t+o+c):a=t+o,n){const e=n.findLineFeedCountBeforeOffset(o+s.length)-c;l=a+s.length+e}else l=a+s.length;const h=e.getPositionAt(a),d=e.getPositionAt(l);return new r.e(h.lineNumber,h.column,d.lineNumber,d.column)}static _doFindMatchesMultiline(e,t,i,n,o){const s=e.getOffsetAt(t.getStartPosition()),r=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new h(r):null,l=[];let d,u=0;for(i.reset(0);d=i.next(r);)if(l[u++]=c(this._getMultilineMatchRange(e,s,r,a,d.index,d[0]),d,n),u>=o)return l;return l}static _doFindMatchesLineByLine(e,t,i,n,o){const s=[];let r=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return r=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,r,s,n,o),s}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);r=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,r,s,n,o);for(let a=t.startLineNumber+1;a=h))return o;return o}const p=new g(e.wordSeparators,e.regex);let m;p.reset(0);do{if(m=p.next(t),m&&(s[o++]=c(new r.e(i,m.index+1+n,i,m.index+1+m[0].length+n),m,l),o>=h))return o}while(m);return o}static findNextMatch(e,t,i,n){const o=t.parseSearchRequest();if(!o)return null;const s=new g(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,i,s,n):this._doFindNextMatchLineByLine(e,i,s,n)}static _doFindNextMatchMultiline(e,t,i,n){const o=new s.L(t.lineNumber,1),a=e.getOffsetAt(o),l=e.getLineCount(),d=e.getValueInRange(new r.e(o.lineNumber,o.column,l,e.getLineMaxColumn(l)),1),u="\r\n"===e.getEOL()?new h(d):null;i.reset(t.column-1);const g=i.next(d);return g?c(this._getMultilineMatchRange(e,a,d,u,g.index,g[0]),g,n):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new s.L(1,1),i,n):null}static _doFindNextMatchLineByLine(e,t,i,n){const o=e.getLineCount(),s=t.lineNumber,r=e.getLineContent(s),a=this._findFirstMatchInLine(i,r,s,t.column,n);if(a)return a;for(let t=1;t<=o;t++){const r=(s+t-1)%o,a=e.getLineContent(r+1),l=this._findFirstMatchInLine(i,a,r+1,1,n);if(l)return l}return null}static _findFirstMatchInLine(e,t,i,n,o){e.reset(n-1);const s=e.next(t);return s?c(new r.e(i,s.index+1,i,s.index+1+s[0].length),s,o):null}static findPreviousMatch(e,t,i,n){const o=t.parseSearchRequest();if(!o)return null;const s=new g(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,i,s,n):this._doFindPreviousMatchLineByLine(e,i,s,n)}static _doFindPreviousMatchMultiline(e,t,i,n){const o=this._doFindMatchesMultiline(e,new r.e(1,1,t.lineNumber,t.column),i,n,9990);if(o.length>0)return o[o.length-1];const a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new s.L(a,e.getLineMaxColumn(a)),i,n):null}static _doFindPreviousMatchLineByLine(e,t,i,n){const o=e.getLineCount(),s=t.lineNumber,r=e.getLineContent(s).substring(0,t.column-1),a=this._findLastMatchInLine(i,r,s,n);if(a)return a;for(let t=1;t<=o;t++){const r=(o+s-t-1)%o,a=e.getLineContent(r+1),l=this._findLastMatchInLine(i,a,r+1,n);if(l)return l}return null}static _findLastMatchInLine(e,t,i,n){let o,s=null;for(e.reset(0);o=e.next(t);)s=c(new r.e(i,o.index+1,i,o.index+1+o[0].length),o,n);return s}}function u(e,t,i,n,o){return function(e,t,i,n,o){if(0===n)return!0;const s=t.charCodeAt(n-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(o>0){const i=t.charCodeAt(n);if(0!==e.get(i))return!0}return!1}(e,t,0,n,o)&&function(e,t,i,n,o){if(n+o===i)return!0;const s=t.charCodeAt(n+o);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(o>0){const i=t.charCodeAt(n+o-1);if(0!==e.get(i))return!0}return!1}(e,t,i,n,o)}class g{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(i=this._searchRegex.exec(e),!i)return null;const o=i.index,s=i[0].length;if(o===this._prevMatchStartIndex&&s===this._prevMatchLength){if(0===s){n.ZH(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=o,this._prevMatchLength=s,!this._wordSeparators||u(this._wordSeparators,e,t,o,s))return i}while(i);return null}}},59616:(e,t,i)=>{"use strict";function n(e,t){let i=0,n=0;const o=e.length;for(;nn})},20927:(e,t,i)=>{"use strict";i.d(t,{O:()=>g});var n=i(71050),o=i(4669),s=i(22258),r=i(70666),a=i(50187),l=i(24314),c=i(3860),h=i(96887),d=i(70902);class u{static chord(e,t){return(0,s.gx)(e,t)}}function g(){return{editor:void 0,languages:void 0,CancellationTokenSource:n.A,Emitter:o.Q5,KeyCode:d.VD,KeyMod:u,Position:a.L,Range:l.e,Selection:c.Y,SelectionDirection:d.a$,MarkerSeverity:d.ZL,MarkerTag:d.eB,Uri:r.o,Token:h.WU}}u.CtrlCmd=2048,u.Shift=1024,u.Alt=512,u.WinCtrl=256},85215:(e,t,i)=>{"use strict";i.d(t,{p:()=>n});const n=(0,i(72065).yh)("editorWorkerService")},88191:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var n=i(89954),o=i(43702),s=i(59870),r=i(65026),a=i(72065),l=i(43557),c=i(50988);const h=(0,a.yh)("ILanguageFeatureDebounceService");var d;!function(e){const t=new WeakMap;let i=0;e.of=function(e){let n=t.get(e);return void 0===n&&(n=++i,t.set(e,n)),n}}(d||(d={}));class u{constructor(e,t,i,n,s,r){this._logService=e,this._name=t,this._registry=i,this._default=n,this._min=s,this._max=r,this._cache=new o.z6(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,n.SP)(d.of(t),e)),0)}get(e){const t=this._key(e),i=this._cache.get(t);return i?(0,s.uZ)(i.value,this._min,this._max):this.default()}update(e,t){const i=this._key(e);let n=this._cache.get(i);n||(n=new s.N(6),this._cache.set(i,n));const o=(0,s.uZ)(n.update(t),this._min,this._max);return(0,c.xn)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${o}ms`),o}_overall(){const e=new s.nM;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=0|this._overall()||this._default;return(0,s.uZ)(e,this._min,this._max)}}let g=class{constructor(e){this._logService=e,this._data=new Map}for(e,t,i){var n,o,s;const r=null!==(n=null==i?void 0:i.min)&&void 0!==n?n:50,a=null!==(o=null==i?void 0:i.max)&&void 0!==o?o:Math.pow(r,2),l=null!==(s=null==i?void 0:i.key)&&void 0!==s?s:void 0,c=`${d.of(e)},${r}${l?","+l:""}`;let h=this._data.get(c);return h||(h=new u(this._logService,t,e,0|this._overallAverage()||1.5*r,r,a),this._data.set(c,h)),h}_overallAverage(){const e=new s.nM;for(const t of this._data.values())e.update(t.default());return e.value}};var p,m;g=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(p=0,m=l.VZ,function(e,t){m(e,t,p)})],g),(0,r.z)(h,g,1)},71922:(e,t,i)=>{"use strict";i.d(t,{p:()=>n});const n=(0,i(72065).yh)("ILanguageFeaturesService")},36357:(e,t,i)=>{"use strict";i.d(t,{i:()=>n});const n=(0,i(72065).yh)("markerDecorationsService")},73733:(e,t,i)=>{"use strict";i.d(t,{q:()=>n});const n=(0,i(72065).yh)("modelService")},88216:(e,t,i)=>{"use strict";i.d(t,{S:()=>n});const n=(0,i(72065).yh)("textModelService")},88802:(e,t,i)=>{"use strict";i.d(t,{$:()=>p,h:()=>m});var n=i(45797),o=i(97781),s=i(43557),r=i(50187),a=i(24314),l=i(23795);class c{static create(e,t){return new c(e,new h(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new a.e(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[n,o,s]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new c(this._startLineNumber,n),new c(this._startLineNumber+s,o)]}applyEdit(e,t){const[i,n,o]=(0,l.Q)(t);this.acceptEdit(e,i,n,o,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,n,o){this._acceptDeleteRange(e),this._acceptInsertText(new r.L(e.startLineNumber,e.startColumn),t,i,n,o),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){const e=i-t;return void(this._startLineNumber-=e)}const n=this._tokens.getMaxDeltaLine();if(!(t>=n+1)){if(t<0&&i>=n+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const n=-t;this._startLineNumber-=n,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,n,o){if(0===t&&0===i)return;const s=e.lineNumber-this._startLineNumber;s<0?this._startLineNumber+=t:s>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(s,e.column-1,t,i,n,o)}}class h{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let i=0;ie)){let o=n;for(;o>t&&this._getDeltaLine(o-1)===e;)o--;let s=n;for(;se||h===e&&u>=t)&&(he||h===e&&g>=t){if(ho?p-=o-i:p=i;else if(u===t&&g===i){if(!(u===n&&p>o)){c=!0;continue}p-=o-i}else if(uo)){c=!0;continue}u=t,g=i,p=g+(p-o)}else if(u>n){if(0===a&&!c){l=r;break}u-=a}else{if(!(u===n&&g>=o))throw new Error("Not possible!");e&&0===u&&(g+=e,p+=e),u-=a,g-=o-i,p-=o-i}const f=4*l;s[f]=u,s[f+1]=g,s[f+2]=p,s[f+3]=m,l++}this._tokenCount=l}acceptInsertText(e,t,i,n,o,s){const r=0===i&&1===n&&(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122),a=this._tokens,l=this._tokenCount;for(let s=0;s0&&t>=1;e>0&&this._logService.getLevel()===s.in.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),l.push("not-in-legend"));const n=this._themeService.getColorTheme().getTokenStyleMetadata(r,l,i);void 0===n?a=2147483647:(a=0,void 0!==n.italic&&(a|=1|(n.italic?1:0)<<11),void 0!==n.bold&&(a|=2|(n.bold?2:0)<<11),void 0!==n.underline&&(a|=4|(n.underline?4:0)<<11),void 0!==n.strikethrough&&(a|=8|(n.strikethrough?8:0)<<11),n.foreground&&(a|=16|n.foreground<<15),0===a&&(a=2147483647))}else this._logService.getLevel()===s.in.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),a=2147483647,r="not-in-legend";this._hashTable.add(e,t,o,a),this._logService.getLevel()===s.in.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${r}) / ${t} (${l.join(" ")}): foreground ${n.N.getForeground(a)}, fontStyle ${n.N.getFontStyle(a).toString(2)}`)}return a}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,console.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,console.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,n,o){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,console.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${n} is outside the previous data (length ${o}).`))}};function m(e,t,i){const n=e.data,o=e.data.length/5|0,s=Math.max(Math.ceil(o/1024),400),r=[];let a=0,l=1,h=0;for(;ae&&0===n[5*t];)t--;if(t-1===e){let e=d;for(;e+1c)t.warnOverlappingSemanticTokens(r,c+1);else{const e=t.getMetadata(_,v,i);2147483647!==e&&(0===p&&(p=r),u[g]=r-p,u[g+1]=c,u[g+2]=d,u[g+3]=e,g+=4,m=r,f=d)}l=r,h=c,a++}g!==u.length&&(u=u.subarray(0,g));const _=c.create(p,u);r.push(_)}return r}p=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([g(1,o.XE),g(2,u.O),g(3,s.VZ)],p);class f{constructor(e,t,i,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=n,this.next=null}}class _{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=_._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<_._SIZES.length?2/3*this._currentLength:0),this._elements=[],_._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let i=0;i=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=_._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<_._SIZES.length?2/3*this._currentLength:0),this._elements=[],_._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new f(e,t,i,n))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}_._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]},73343:(e,t,i)=>{"use strict";i.d(t,{s:()=>n});const n=(0,i(72065).yh)("semanticTokensStylingService")},71765:(e,t,i)=>{"use strict";i.d(t,{V:()=>o,y:()=>s});var n=i(72065);const o=(0,n.yh)("textResourceConfigurationService"),s=(0,n.yh)("textResourcePropertiesService")},31446:(e,t,i)=>{"use strict";i.d(t,{a:()=>l});var n=i(24314),o=i(77277),s=i(97295),r=i(35146),a=i(270);class l{static computeUnicodeHighlights(e,t,i){const l=i?i.startLineNumber:1,h=i?i.endLineNumber:e.getLineCount(),d=new c(t),u=d.getCandidateCodePoints();let g;var p;g="allNonBasicAscii"===u?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp((p=Array.from(u),`[${s.ec(p.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const m=new o.sz(null,g),f=[];let _,v=!1,b=0,C=0,y=0;e:for(let t=l,i=h;t<=i;t++){const i=e.getLineContent(t),o=i.length;m.reset(0);do{if(_=m.next(i),_){let e=_.index,l=_.index+_[0].length;if(e>0){const t=i.charCodeAt(e-1);s.ZG(t)&&e--}if(l+1=i){v=!0;break e}f.push(new n.e(t,e+1,t,l+1))}}}while(_)}return{ranges:f,hasMore:v,ambiguousCharacterCount:b,invisibleCharacterCount:C,nonBasicAsciiCharacterCount:y}}static computeUnicodeHighlightReason(e,t){const i=new c(t);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const n=e.codePointAt(0),o=i.ambiguousCharacters.getPrimaryConfusable(n),r=s.ZK.getLocales().filter((e=>!s.ZK.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(n)));return{kind:0,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:r}}case 1:return{kind:2}}}}class c{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=s.ZK.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of s.vU.codePoints)h(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let n=!1,o=!1;if(t)for(const e of t){const t=e.codePointAt(0),i=s.$i(e);n=n||i,i||this.ambiguousCharacters.isAmbiguous(t)||s.vU.isInvisibleCharacter(t)||(o=!0)}return!n&&o?0:this.options.invisibleCharacters&&!h(e)&&s.vU.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function h(e){return" "===e||"\n"===e||"\t"===e}},70902:(e,t,i)=>{"use strict";var n,o,s,r,a,l,c,h,d,u,g,p,m,f,_,v,b,C,y,w,S,k,x,L,E,N,D,T,I,A,M,R,O,P,F,B,H,V,W;i.d(t,{E$:()=>E,F5:()=>x,Ij:()=>l,In:()=>B,Lu:()=>T,MG:()=>L,MY:()=>u,OI:()=>V,RM:()=>b,U:()=>_,VD:()=>w,Vi:()=>h,WW:()=>O,ZL:()=>S,_x:()=>d,a$:()=>R,a7:()=>s,ao:()=>n,bw:()=>y,cR:()=>P,cm:()=>r,d2:()=>H,eB:()=>k,g4:()=>A,g_:()=>M,gl:()=>C,gm:()=>m,jl:()=>f,np:()=>o,py:()=>D,r3:()=>c,r4:()=>F,rf:()=>g,sh:()=>N,up:()=>W,vQ:()=>I,wT:()=>p,wU:()=>v,we:()=>a}),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(n||(n={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(o||(o={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(s||(s={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(r||(r={})),function(e){e[e.Deprecated=1]="Deprecated"}(a||(a={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(l||(l={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(c||(c={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(h||(h={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(u||(u={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(g||(g={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.screenReaderAnnounceInlineSuggestion=6]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=7]="autoClosingDelete",e[e.autoClosingOvertype=8]="autoClosingOvertype",e[e.autoClosingQuotes=9]="autoClosingQuotes",e[e.autoIndent=10]="autoIndent",e[e.automaticLayout=11]="automaticLayout",e[e.autoSurround=12]="autoSurround",e[e.bracketPairColorization=13]="bracketPairColorization",e[e.guides=14]="guides",e[e.codeLens=15]="codeLens",e[e.codeLensFontFamily=16]="codeLensFontFamily",e[e.codeLensFontSize=17]="codeLensFontSize",e[e.colorDecorators=18]="colorDecorators",e[e.colorDecoratorsLimit=19]="colorDecoratorsLimit",e[e.columnSelection=20]="columnSelection",e[e.comments=21]="comments",e[e.contextmenu=22]="contextmenu",e[e.copyWithSyntaxHighlighting=23]="copyWithSyntaxHighlighting",e[e.cursorBlinking=24]="cursorBlinking",e[e.cursorSmoothCaretAnimation=25]="cursorSmoothCaretAnimation",e[e.cursorStyle=26]="cursorStyle",e[e.cursorSurroundingLines=27]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=28]="cursorSurroundingLinesStyle",e[e.cursorWidth=29]="cursorWidth",e[e.disableLayerHinting=30]="disableLayerHinting",e[e.disableMonospaceOptimizations=31]="disableMonospaceOptimizations",e[e.domReadOnly=32]="domReadOnly",e[e.dragAndDrop=33]="dragAndDrop",e[e.dropIntoEditor=34]="dropIntoEditor",e[e.emptySelectionClipboard=35]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=36]="experimentalWhitespaceRendering",e[e.extraEditorClassName=37]="extraEditorClassName",e[e.fastScrollSensitivity=38]="fastScrollSensitivity",e[e.find=39]="find",e[e.fixedOverflowWidgets=40]="fixedOverflowWidgets",e[e.folding=41]="folding",e[e.foldingStrategy=42]="foldingStrategy",e[e.foldingHighlight=43]="foldingHighlight",e[e.foldingImportsByDefault=44]="foldingImportsByDefault",e[e.foldingMaximumRegions=45]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=46]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=47]="fontFamily",e[e.fontInfo=48]="fontInfo",e[e.fontLigatures=49]="fontLigatures",e[e.fontSize=50]="fontSize",e[e.fontWeight=51]="fontWeight",e[e.fontVariations=52]="fontVariations",e[e.formatOnPaste=53]="formatOnPaste",e[e.formatOnType=54]="formatOnType",e[e.glyphMargin=55]="glyphMargin",e[e.gotoLocation=56]="gotoLocation",e[e.hideCursorInOverviewRuler=57]="hideCursorInOverviewRuler",e[e.hover=58]="hover",e[e.inDiffEditor=59]="inDiffEditor",e[e.inlineSuggest=60]="inlineSuggest",e[e.letterSpacing=61]="letterSpacing",e[e.lightbulb=62]="lightbulb",e[e.lineDecorationsWidth=63]="lineDecorationsWidth",e[e.lineHeight=64]="lineHeight",e[e.lineNumbers=65]="lineNumbers",e[e.lineNumbersMinChars=66]="lineNumbersMinChars",e[e.linkedEditing=67]="linkedEditing",e[e.links=68]="links",e[e.matchBrackets=69]="matchBrackets",e[e.minimap=70]="minimap",e[e.mouseStyle=71]="mouseStyle",e[e.mouseWheelScrollSensitivity=72]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=73]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=74]="multiCursorMergeOverlapping",e[e.multiCursorModifier=75]="multiCursorModifier",e[e.multiCursorPaste=76]="multiCursorPaste",e[e.multiCursorLimit=77]="multiCursorLimit",e[e.occurrencesHighlight=78]="occurrencesHighlight",e[e.overviewRulerBorder=79]="overviewRulerBorder",e[e.overviewRulerLanes=80]="overviewRulerLanes",e[e.padding=81]="padding",e[e.parameterHints=82]="parameterHints",e[e.peekWidgetDefaultFocus=83]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=84]="definitionLinkOpensInPeek",e[e.quickSuggestions=85]="quickSuggestions",e[e.quickSuggestionsDelay=86]="quickSuggestionsDelay",e[e.readOnly=87]="readOnly",e[e.renameOnType=88]="renameOnType",e[e.renderControlCharacters=89]="renderControlCharacters",e[e.renderFinalNewline=90]="renderFinalNewline",e[e.renderLineHighlight=91]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=92]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=93]="renderValidationDecorations",e[e.renderWhitespace=94]="renderWhitespace",e[e.revealHorizontalRightPadding=95]="revealHorizontalRightPadding",e[e.roundedSelection=96]="roundedSelection",e[e.rulers=97]="rulers",e[e.scrollbar=98]="scrollbar",e[e.scrollBeyondLastColumn=99]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=100]="scrollBeyondLastLine",e[e.scrollPredominantAxis=101]="scrollPredominantAxis",e[e.selectionClipboard=102]="selectionClipboard",e[e.selectionHighlight=103]="selectionHighlight",e[e.selectOnLineNumbers=104]="selectOnLineNumbers",e[e.showFoldingControls=105]="showFoldingControls",e[e.showUnused=106]="showUnused",e[e.snippetSuggestions=107]="snippetSuggestions",e[e.smartSelect=108]="smartSelect",e[e.smoothScrolling=109]="smoothScrolling",e[e.stickyScroll=110]="stickyScroll",e[e.stickyTabStops=111]="stickyTabStops",e[e.stopRenderingLineAfter=112]="stopRenderingLineAfter",e[e.suggest=113]="suggest",e[e.suggestFontSize=114]="suggestFontSize",e[e.suggestLineHeight=115]="suggestLineHeight",e[e.suggestOnTriggerCharacters=116]="suggestOnTriggerCharacters",e[e.suggestSelection=117]="suggestSelection",e[e.tabCompletion=118]="tabCompletion",e[e.tabIndex=119]="tabIndex",e[e.unicodeHighlighting=120]="unicodeHighlighting",e[e.unusualLineTerminators=121]="unusualLineTerminators",e[e.useShadowDOM=122]="useShadowDOM",e[e.useTabStops=123]="useTabStops",e[e.wordBreak=124]="wordBreak",e[e.wordSeparators=125]="wordSeparators",e[e.wordWrap=126]="wordWrap",e[e.wordWrapBreakAfterCharacters=127]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=128]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=129]="wordWrapColumn",e[e.wordWrapOverride1=130]="wordWrapOverride1",e[e.wordWrapOverride2=131]="wordWrapOverride2",e[e.wrappingIndent=132]="wrappingIndent",e[e.wrappingStrategy=133]="wrappingStrategy",e[e.showDeprecated=134]="showDeprecated",e[e.inlayHints=135]="inlayHints",e[e.editorClassName=136]="editorClassName",e[e.pixelRatio=137]="pixelRatio",e[e.tabFocusMode=138]="tabFocusMode",e[e.layoutInfo=139]="layoutInfo",e[e.wrappingInfo=140]="wrappingInfo",e[e.defaultColorDecorators=141]="defaultColorDecorators"}(p||(p={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(m||(m={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(f||(f={})),function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"}(_||(_={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(v||(v={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(b||(b={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(C||(C={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(y||(y={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(w||(w={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(S||(S={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(k||(k={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(x||(x={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(L||(L={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(E||(E={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(N||(N={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(D||(D={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(T||(T={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(I||(I={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(A||(A={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(M||(M={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(R||(R={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(O||(O={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(P||(P={})),function(e){e[e.Deprecated=1]="Deprecated"}(F||(F={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(B||(B={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(H||(H={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(V||(V={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(W||(W={}))},20913:(e,t,i)=>{"use strict";i.d(t,{B8:()=>c,Oe:()=>n,UX:()=>a,aq:()=>l,iN:()=>d,ld:()=>r,qq:()=>s,ug:()=>o,xi:()=>h});var n,o,s,r,a,l,c,h,d,u=i(63580);!function(e){e.noSelection=u.NC("noSelection","No selection"),e.singleSelectionRange=u.NC("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),e.singleSelection=u.NC("singleSelection","Line {0}, Column {1}"),e.multiSelectionRange=u.NC("multiSelectionRange","{0} selections ({1} characters selected)"),e.multiSelection=u.NC("multiSelection","{0} selections"),e.emergencyConfOn=u.NC("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),e.openingDocs=u.NC("openingDocs","Now opening the Editor Accessibility documentation page."),e.readonlyDiffEditor=u.NC("readonlyDiffEditor"," in a read-only pane of a diff editor."),e.editableDiffEditor=u.NC("editableDiffEditor"," in a pane of a diff editor."),e.readonlyEditor=u.NC("readonlyEditor"," in a read-only code editor"),e.editableEditor=u.NC("editableEditor"," in a code editor"),e.changeConfigToOnMac=u.NC("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),e.changeConfigToOnWinLinux=u.NC("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),e.auto_on=u.NC("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),e.auto_off=u.NC("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),e.tabFocusModeOnMsg=u.NC("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),e.tabFocusModeOnMsgNoKb=u.NC("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),e.tabFocusModeOffMsg=u.NC("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),e.tabFocusModeOffMsgNoKb=u.NC("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),e.openDocMac=u.NC("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),e.openDocWinLinux=u.NC("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),e.outroMsg=u.NC("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),e.showAccessibilityHelpAction=u.NC("showAccessibilityHelpAction","Show Accessibility Help"),e.accessibilityHelpTitle=u.NC("accessibilityHelpTitle","Accessibility Help")}(n||(n={})),function(e){e.inspectTokensAction=u.NC("inspectTokens","Developer: Inspect Tokens")}(o||(o={})),function(e){e.gotoLineActionLabel=u.NC("gotoLineActionLabel","Go to Line/Column...")}(s||(s={})),function(e){e.helpQuickAccessActionLabel=u.NC("helpQuickAccess","Show all Quick Access Providers")}(r||(r={})),function(e){e.quickCommandActionLabel=u.NC("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=u.NC("quickCommandActionHelp","Show And Run Commands")}(a||(a={})),function(e){e.quickOutlineActionLabel=u.NC("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=u.NC("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(l||(l={})),function(e){e.editorViewAccessibleLabel=u.NC("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessage=u.NC("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(c||(c={})),function(e){e.toggleHighContrast=u.NC("toggleHighContrast","Toggle High Contrast Theme")}(h||(h={})),function(e){e.bulkEditServiceSummary=u.NC("bulkEditServiceSummary","Made {0} edits in {1} files")}(d||(d={}))},14706:(e,t,i)=>{"use strict";i.d(t,{CZ:()=>l,D8:()=>h,Jx:()=>n,Tx:()=>a,dQ:()=>c,fV:()=>d,gk:()=>o,lN:()=>r,rU:()=>s});class n{constructor(){this.changeType=1}}class o{static applyInjectedText(e,t){if(!t||0===t.length)return e;let i="",n=0;for(const o of t)i+=e.substring(n,o.column-1),n=o.column-1,i+=o.options.content;return i+=e.substring(n),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new o(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new o(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,i,n,o){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=n,this.order=o}}class s{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class r{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class a{constructor(e,t,i,n){this.changeType=4,this.injectedTexts=n,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class l{constructor(){this.changeType=5}}class c{constructor(e,t,i,n){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=n,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;t{"use strict";var n;i.d(t,{UO:()=>o,s6:()=>n,vW:()=>s}),function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(n||(n={}));class o{constructor(e,t,i,n,o,s){if(this.visibleColumn=e,this.column=t,this.className=i,this.horizontalLine=n,this.forWrappedLinesAfterColumn=o,this.forWrappedLinesBeforeOrAtColumn=s,-1!==e==(-1!==t))throw new Error}}class s{constructor(e,t){this.top=e,this.endColumn=t}}},77378:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var n=i(45797);class o{static createEmpty(e,t){const i=o.defaultTokenMetadata,n=new Uint32Array(2);return n[0]=e.length,n[1]=i,new o(n,e,t)}constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this._languageIdCodec=i}equals(e){return e instanceof o&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,i){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const n=t<<1,o=n+(i<<1);for(let t=n;t0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],i=n.N.getLanguageId(t);return this._languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return n.N.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return n.N.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return n.N.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[1+(e<<1)];return n.N.getInlineStyleFromMetadata(i,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return n.N.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return o.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new s(this,e,t,i)}static convertToEndOffset(e,t){const i=(e.length>>>1)-1;for(let t=0;t>>1)-1;for(;it&&(n=o)}return i}withInserted(e){if(0===e.length)return this;let t=0,i=0,n="";const s=new Array;let r=0;for(;;){const o=tr){n+=this._text.substring(r,a.offset);const e=this._tokens[1+(t<<1)];s.push(n.length,e),r=a.offset}n+=a.text,s.push(n.length,a.tokenMetadata),i++}}return new o(new Uint32Array(s),n,this._languageIdCodec)}}o.defaultTokenMetadata=33587200;class s{constructor(e,t,i,n){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=n,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let t=this._firstTokenIndex,n=e.getCount();t=i);t++)this._tokensCount++}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof s&&this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount)}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}},92550:(e,t,i)=>{"use strict";i.d(t,{Kp:()=>o,k:()=>a});var n=i(97295);class o{constructor(e,t,i,n){this.startColumn=e,this.endColumn=t,this.className=i,this.type=n,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const i=e.length;if(i!==t.length)return!1;for(let n=0;n=s||(a[l++]=new o(Math.max(1,t.startColumn-n+1),Math.min(r+1,t.endColumn-n+1),t.className,t.type));return a}static filter(e,t,i,n){if(0===e.length)return[];const s=[];let r=0;for(let a=0,l=e.length;at)continue;if(c.isEmpty()&&(0===l.type||3===l.type))continue;const h=c.startLineNumber===t?c.startColumn:i,d=c.endLineNumber===t?c.endColumn:n;s[r++]=new o(h,d,l.inlineClassName,l.type)}return s}static _typeCompare(e,t){const i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;const i=o._typeCompare(e.type,t.type);return 0!==i?i:e.className!==t.className?e.className0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t),this.metadata.splice(n,0,i);break}this.count++}}class a{static normalize(e,t){if(0===t.length)return[];const i=[],o=new r;let s=0;for(let r=0,a=t.length;r1){const t=e.charCodeAt(l-2);n.ZG(t)&&l--}if(c>1){const t=e.charCodeAt(c-2);n.ZG(t)&&c--}const u=l-1,g=c-2;s=o.consumeLowerThan(u,s,i),0===o.count&&(s=u),o.insert(g,h,d)}return o.consumeLowerThan(1073741824,s,i),i}}},91557:(e,t,i)=>{"use strict";i.d(t,{Nd:()=>h,zG:()=>l,IJ:()=>c,d1:()=>g,tF:()=>m});var n=i(63580),o=i(97295),s=i(50072),r=i(92550);class a{constructor(e,t,i,n){this.endIndex=e,this.type=t,this.metadata=i,this.containsRTL=n,this._linePartBrand=void 0}isWhitespace(){return!!(1&this.metadata)}isPseudoAfter(){return!!(4&this.metadata)}}class l{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class c{constructor(e,t,i,n,o,s,a,l,c,h,d,u,g,p,m,f,_,v,b){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=n,this.isBasicASCII=o,this.containsRTL=s,this.fauxIndentLength=a,this.lineTokens=l,this.lineDecorations=c.sort(r.Kp.compare),this.tabSize=h,this.startVisibleColumn=d,this.spaceWidth=u,this.stopRenderingLineAfter=m,this.renderWhitespace="all"===f?4:"boundary"===f?1:"selection"===f?2:"trailing"===f?3:0,this.renderControlCharacters=_,this.fontLigatures=v,this.selectionsOnLine=b&&b.sort(((e,t)=>e.startOffset>>16}static getCharIndex(e){return(65535&e)>>>0}constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,t,i,n){const o=(t<<16|i<<0)>>>0;this._data[e-1]=o,this._horizontalOffset[e-1]=n}getHorizontalOffset(e){return 0===this._horizontalOffset.length?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const t=this.charOffsetToPartData(e-1),i=d.getPartIndex(t),n=d.getCharIndex(t);return new h(i,n)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){if(0===this.length)return 0;const n=(e<<16|i<<0)>>>0;let o=0,s=this.length-1;for(;o+1>>1,t=this._data[e];if(t===n)return e;t>n?s=e:o=e}if(o===s)return o;const r=this._data[o],a=this._data[s];if(r===n)return o;if(a===n)return s;const l=d.getPartIndex(r),c=d.getCharIndex(r);let h;return h=l!==d.getPartIndex(a)?t:d.getCharIndex(a),i-c<=h-i?o:s}}class u{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function g(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendString("");let i=0,n=0,o=0;for(const s of e.lineDecorations)1!==s.type&&2!==s.type||(t.appendString(''),1===s.type&&(o|=1,i++),2===s.type&&(o|=2,n++));t.appendString("");const s=new d(1,i+n);return s.setColumnInfo(1,i,0,0),new u(s,!1,o)}return t.appendString(""),new u(new d(0,0),!1,0)}return function(e,t){const i=e.fontIsMonospace,s=e.canUseHalfwidthRightwardsArrow,r=e.containsForeignElements,a=e.lineContent,l=e.len,c=e.isOverflowing,h=e.overflowingCharCount,g=e.parts,p=e.fauxIndentLength,m=e.tabSize,f=e.startVisibleColumn,v=e.containsRTL,b=e.spaceWidth,C=e.renderSpaceCharCode,y=e.renderWhitespace,w=e.renderControlCharacters,S=new d(l+1,g.length);let k=!1,x=0,L=f,E=0,N=0,D=0;v?t.appendString(''):t.appendString("");for(let e=0,n=g.length;e=p&&(t+=n)}}for(f&&(t.appendString(' style="width:'),t.appendString(String(b*i)),t.appendString('px"')),t.appendASCIICharCode(62);x1?t.appendCharCode(8594):t.appendCharCode(65515);for(let e=2;e<=n;e++)t.appendCharCode(160)}else i=2,n=1,t.appendCharCode(C),t.appendCharCode(8204);E+=i,N+=n,x>=p&&(L+=n)}}else for(t.appendASCIICharCode(62);x=p&&(L+=s)}v?D++:D=0,x>=l&&!k&&n.isPseudoAfter()&&(k=!0,S.setColumnInfo(x+1,e,E,N)),t.appendString("")}return k||S.setColumnInfo(l+1,g.length-1,E,N),c&&(t.appendString(''),t.appendString(n.NC("showMore","Show more ({0})",function(e){return e<1024?n.NC("overflow.chars","{0} chars",e):e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}(h))),t.appendString("")),t.appendString(""),new u(S,v,r)}(function(e){const t=e.lineContent;let i,n,s;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter0&&(r[l++]=new a(n,"",0,!1));let c=n;for(let h=0,d=i.getCount();h=s){const i=!!t&&o.Ut(e.substring(c,s));r[l++]=new a(s,u,0,i);break}const g=!!t&&o.Ut(e.substring(c,d));r[l++]=new a(d,u,0,g),c=d}return r}(t,e.containsRTL,e.lineTokens,e.fauxIndentLength,s);e.renderControlCharacters&&!e.isBasicASCII&&(l=function(e,t){const i=[];let n=new a(0,"",0,!1),o=0;for(const s of t){const t=s.endIndex;for(;on.endIndex&&(n=new a(o,s.type,s.metadata,s.containsRTL),i.push(n)),n=new a(o+1,"mtkcontrol",s.metadata,!1),i.push(n));o>n.endIndex&&(n=new a(t,s.type,s.metadata,s.containsRTL),i.push(n))}return i}(t,l)),(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace&&!e.continuesWithWrappedLine)&&(l=function(e,t,i,n){const s=e.continuesWithWrappedLine,r=e.fauxIndentLength,l=e.tabSize,c=e.startVisibleColumn,h=e.useMonospaceOptimizations,d=e.selectionsOnLine,u=1===e.renderWhitespace,g=3===e.renderWhitespace,p=e.renderSpaceWidth!==e.spaceWidth,m=[];let f=0,_=0,v=n[_].type,b=n[_].containsRTL,C=n[_].endIndex;const y=n.length;let w,S=!1,k=o.LC(t);-1===k?(S=!0,k=i,w=i):w=o.ow(t);let x=!1,L=0,E=d&&d[L],N=c%l;for(let e=r;e=E.endOffset&&(L++,E=d&&d[L]),ew)c=!0;else if(9===s)c=!0;else if(32===s)if(u)if(x)c=!0;else{const n=e+1e),c&&g&&(c=S||e>w),c&&b&&e>=k&&e<=w&&(c=!1),x){if(!c||!h&&N>=l){if(p)for(let t=(f>0?m[f-1].endIndex:r)+1;t<=e;t++)m[f++]=new a(t,"mtkw",1,!1);else m[f++]=new a(e,"mtkw",1,!1);N%=l}}else(e===C||c&&e>r)&&(m[f++]=new a(e,v,0,b),N%=l);for(9===s?N=l:o.K7(s)?N+=2:N++,x=c;e===C&&(_++,_0?t.charCodeAt(i-1):0,n=i>1?t.charCodeAt(i-2):0;32===e&&32!==n&&9!==n||(D=!0)}else D=!0;if(D)if(p)for(let e=(f>0?m[f-1].endIndex:r)+1;e<=i;e++)m[f++]=new a(e,"mtkw",1,!1);else m[f++]=new a(i,"mtkw",1,!1);else m[f++]=new a(i,v,0,b);return m}(e,t,s,l));let c=0;if(e.lineDecorations.length>0){for(let t=0,i=e.lineDecorations.length;td&&(d=e.startOffset,c[h++]=new a(d,r,u,g)),!(e.endOffset+1<=n)){d=n,c[h++]=new a(d,r+" "+e.className,u|e.metadata,g);break}d=e.endOffset+1,c[h++]=new a(d,r+" "+e.className,u|e.metadata,g),l++}n>d&&(d=n,c[h++]=new a(d,r,u,g))}const u=i[i.length-1].endIndex;if(l=50&&(o[s++]=new a(h+1,t,i,c),d=h+1,h=-1);d!==l&&(o[s++]=new a(l,t,i,c))}else o[s++]=r;n=l}else for(let e=0,i=t.length;e50){const e=i.type,t=i.metadata,c=i.containsRTL,h=Math.ceil(l/50);for(let i=1;i=8234&&e<=8238||e>=8294&&e<=8297||e>=8206&&e<=8207||1564===e}},1118:(e,t,i)=>{"use strict";i.d(t,{$l:()=>d,$t:()=>c,IP:()=>a,SQ:()=>u,Wx:()=>h,l_:()=>s,ud:()=>r,wA:()=>l});var n=i(97295),o=i(24314);class s{constructor(e,t,i,n){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|n}}class r{constructor(e,t){this.tabSize=e,this.data=t}}class a{constructor(e,t,i,n,o,s,r){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=n,this.startVisibleColumn=o,this.tokens=s,this.inlineDecorations=r}}class l{constructor(e,t,i,n,o,s,r,a,c,h){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=n,this.isBasicASCII=l.isBasicASCII(i,s),this.containsRTL=l.containsRTL(i,this.isBasicASCII,o),this.tokens=r,this.inlineDecorations=a,this.tabSize=c,this.startVisibleColumn=h}static isBasicASCII(e,t){return!t||n.$i(e)}static containsRTL(e,t,i){return!(t||!i)&&n.Ut(e)}}class c{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class h{constructor(e,t,i,n){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=n}toInlineDecoration(e){return new c(new o.e(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class d{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class u{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static cmp(e,t){return e.zIndex===t.zIndex?e.colort.color?1:0:e.zIndex-t.zIndex}}},30665:(e,t,i)=>{"use strict";i.d(t,{EY:()=>o,Tj:()=>s});class n{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|i}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class o{constructor(e,t,i,n){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=n,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.colori&&(g=i-p);const m=l.color;let f=this._color2Id[m];f||(f=++this._lastAssignedId,this._color2Id[m]=f,this._id2Color[f]=m);const _=new n(g-p,g+p,f);l.setColorZone(_),r.push(_)}return this._colorZonesInvalid=!1,r.sort(n.compare),r}}},30168:(e,t,i)=>{"use strict";i.d(t,{$t:()=>c,CU:()=>a,Fd:()=>l,zg:()=>h});var n=i(50187),o=i(24314),s=i(1118),r=i(64141);class a{constructor(e,t,i,n,o){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=o,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let i=this._decorationsCache[t];if(!i){const r=e.range,a=e.options;let l;if(a.isWholeLine){const e=this._coordinatesConverter.convertModelPositionToViewPosition(new n.L(r.startLineNumber,1),0),t=this._coordinatesConverter.convertModelPositionToViewPosition(new n.L(r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber)),1);l=new o.e(e.lineNumber,e.column,t.lineNumber,t.column)}else l=this._coordinatesConverter.convertModelRangeToViewRange(r,1);i=new s.$l(l,a),this._decorationsCache[t]=i}return i}getMinimapDecorationsInRange(e){return this._getDecorationsInRange(e,!0,!1).decorations}getDecorationsViewportData(e){let t=null!==this._cachedModelDecorationsResolver;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e,!1,!1),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e,t=!1,i=!1){const n=new o.e(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(n,t,i).inlineDecorations[0]}_getDecorationsInRange(e,t,i){const n=this._linesCollection.getDecorationsInRange(e,this.editorId,(0,r.$J)(this.configuration.options),t,i),a=e.startLineNumber,c=e.endLineNumber,h=[];let d=0;const u=[];for(let e=a;e<=c;e++)u[e-a]=[];for(let e=0,t=n.length;e1===e))}function h(e,t){return d(e,t.range,(e=>2===e))}function d(e,t,i){for(let n=t.startLineNumber;n<=t.endLineNumber;n++){const o=e.tokenization.getLineTokens(n),s=n===t.startLineNumber,r=n===t.endLineNumber;let a=s?o.findTokenIndexAtOffset(t.startColumn-1):0;for(;at.endColumn-1);){if(!i(o.getStandardTokenType(a)))return!1;a++}}return!0}},90236:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SelectionAnchorSet:()=>u});var n=i(85152),o=i(59365),s=i(22258),r=i(16830),a=i(3860),l=i(29102),c=i(63580),h=i(93983),d=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};const u=new h.uy("selectionAnchorSet",!1);let g=class e{static get(t){return t.getContribution(e.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=u.bindTo(t),this.modelChangeListener=e.onDidChangeModel((()=>this.selectionAnchorSetContextKey.reset()))}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations((t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(a.Y.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:(new o.W5).appendText((0,c.NC)("selectionAnchor","Selection Anchor")),className:"selection-anchor"})})),this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,n.Z9)((0,c.NC)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(a.Y.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations((t=>{t.removeDecoration(e),this.decorationId=void 0})),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};var p,m;g.ID="editor.contrib.selectionAnchorController",g=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(p=1,m=h.i6,function(e,t){m(e,t,p)})],g);class f extends r.R6{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,c.NC)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:l.u.editorTextFocus,primary:(0,s.gx)(2089,2080),weight:100}})}run(e,t){var i;return d(this,void 0,void 0,(function*(){null===(i=g.get(t))||void 0===i||i.setSelectionAnchor()}))}}class _ extends r.R6{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,c.NC)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:u})}run(e,t){var i;return d(this,void 0,void 0,(function*(){null===(i=g.get(t))||void 0===i||i.goToSelectionAnchor()}))}}class v extends r.R6{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,c.NC)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:u,kbOpts:{kbExpr:l.u.editorTextFocus,primary:(0,s.gx)(2089,2089),weight:100}})}run(e,t){var i;return d(this,void 0,void 0,(function*(){null===(i=g.get(t))||void 0===i||i.selectFromAnchorToCursor()}))}}class b extends r.R6{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,c.NC)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:u,kbOpts:{kbExpr:l.u.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return d(this,void 0,void 0,(function*(){null===(i=g.get(t))||void 0===i||i.cancelSelectionAnchor()}))}}(0,r._K)(g.ID,g,4),(0,r.Qr)(f),(0,r.Qr)(_),(0,r.Qr)(v),(0,r.Qr)(b)},71387:(e,t,i)=>{"use strict";i.r(t),i.d(t,{BracketMatchingController:()=>y});var n=i(15393),o=i(5976),s=i(16830),r=i(50187),a=i(24314),l=i(3860),c=i(29102),h=i(84973),d=i(1231),u=i(63580),g=i(84144),p=i(73910),m=i(97781);const f=(0,p.P6G)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},u.NC("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class _ extends s.R6{constructor(){super({id:"editor.action.jumpToBracket",label:u.NC("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:c.u.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;null===(i=y.get(t))||void 0===i||i.jumpToBracket()}}class v extends s.R6{constructor(){super({id:"editor.action.selectToBracket",label:u.NC("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let o=!0;i&&!1===i.selectBrackets&&(o=!1),null===(n=y.get(t))||void 0===n||n.selectToBracket(o)}}class b extends s.R6{constructor(){super({id:"editor.action.removeBrackets",label:u.NC("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:c.u.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;null===(i=y.get(t))||void 0===i||i.removeBrackets(this.id)}}class C{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class y extends o.JT{static get(e){return e.getContribution(y.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new n.pY((()=>this._updateBrackets()),50)),this._matchBrackets=this._editor.getOption(69),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition((e=>{"never"!==this._matchBrackets&&this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelContent((e=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModel((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelLanguageConfiguration((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(69)&&(this._matchBrackets=this._editor.getOption(69),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())}))),this._register(e.onDidBlurEditorWidget((()=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidFocusEditorWidget((()=>{this._updateBracketsSoon.schedule()})))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map((t=>{const i=t.getStartPosition(),n=e.bracketPairs.matchBracket(i);let o=null;if(n)n[0].containsPosition(i)&&!n[1].containsPosition(i)?o=n[1].getStartPosition():n[1].containsPosition(i)&&(o=n[0].getStartPosition());else{const t=e.bracketPairs.findEnclosingBrackets(i);if(t)o=t[1].getStartPosition();else{const t=e.bracketPairs.findNextBracket(i);t&&t.range&&(o=t.range.getStartPosition())}}return o?new l.Y(o.lineNumber,o.column,o.lineNumber,o.column):new l.Y(i.lineNumber,i.column,i.lineNumber,i.column)}));this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach((n=>{const o=n.getStartPosition();let s=t.bracketPairs.matchBracket(o);if(!s&&(s=t.bracketPairs.findEnclosingBrackets(o),!s)){const e=t.bracketPairs.findNextBracket(o);e&&e.range&&(s=t.bracketPairs.matchBracket(e.range.getStartPosition()))}let r=null,c=null;if(s){s.sort(a.e.compareRangesUsingStarts);const[t,i]=s;if(r=e?t.getStartPosition():t.getEndPosition(),c=e?i.getEndPosition():i.getStartPosition(),i.containsPosition(o)){const e=r;r=c,c=e}}r&&c&&i.push(new l.Y(r.lineNumber,r.column,c.lineNumber,c.column))})),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach((i=>{const n=i.getPosition();let o=t.bracketPairs.matchBracket(n);o||(o=t.bracketPairs.findEnclosingBrackets(n)),o&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:o[0],text:""},{range:o[1],text:""}]),this._editor.pushUndoStop())}))}_updateBrackets(){if("never"===this._matchBrackets)return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return this._lastBracketsData=[],void(this._lastVersionId=0);const e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const o=[];let s=0;for(let t=0,i=e.length;t1&&o.sort(r.L.compare);const a=[];let l=0,c=0;const h=n.length;for(let e=0,i=o.length;e{"use strict";i.r(t);var n=i(16830),o=i(29102),s=i(24314),r=i(3860);class a{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,o=this._selection.endColumn;if((!this._isMovingLeft||1!==n)&&(this._isMovingLeft||o!==e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new s.e(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new s.e(i,o,i,o),a)}else{const r=new s.e(i,o,i,o+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new s.e(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new r.Y(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new r.Y(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}var l=i(63580);class c extends n.R6{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const e of n)i.push(new a(e,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}(0,n.Qr)(class extends c{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:l.NC("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:o.u.writable})}}),(0,n.Qr)(class extends c{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:l.NC("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:o.u.writable})}})},72102:(e,t,i)=>{"use strict";i.r(t);var n=i(16830),o=i(61329),s=i(10839),r=i(24314),a=i(29102),l=i(63580);class c extends n.R6{constructor(){super({id:"editor.action.transposeLetters",label:l.NC("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:a.u.writable,kbOpts:{kbExpr:a.u.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],a=t.getSelections();for(const e of a){if(!e.isEmpty())continue;const t=e.startLineNumber,a=e.startColumn,l=i.getLineMaxColumn(t);if(1===t&&(1===a||2===a&&2===l))continue;const c=a===l?e.getPosition():s.o.rightPosition(i,e.getPosition().lineNumber,e.getPosition().column),h=s.o.leftPosition(i,c),d=s.o.leftPosition(i,h),u=i.getValueInRange(r.e.fromPositions(d,h)),g=i.getValueInRange(r.e.fromPositions(h,c)),p=r.e.fromPositions(d,c);n.push(new o.T4(p,g+u))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}(0,n.Qr)(c)},55833:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CopyAction:()=>b,CutAction:()=>v,PasteAction:()=>C});var n=i(16268),o=i(1432),s=i(35715),r=i(16830),a=i(11640),l=i(29102),c=i(63580),h=i(84144),d=i(84972),u=i(93983);const g="9_cutcopypaste",p=o.tY||document.queryCommandSupported("cut"),m=o.tY||document.queryCommandSupported("copy"),f=void 0!==navigator.clipboard&&!n.isFirefox||document.queryCommandSupported("paste");function _(e){return e.register(),e}const v=p?_(new r.AJ({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:o.tY?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:h.eH.MenubarEditMenu,group:"2_ccp",title:c.NC({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:h.eH.EditorContext,group:g,title:c.NC("actions.clipboard.cutLabel","Cut"),when:l.u.writable,order:1},{menuId:h.eH.CommandPalette,group:"",title:c.NC("actions.clipboard.cutLabel","Cut"),order:1},{menuId:h.eH.SimpleEditorContext,group:g,title:c.NC("actions.clipboard.cutLabel","Cut"),when:l.u.writable,order:1}]})):void 0,b=m?_(new r.AJ({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:o.tY?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:h.eH.MenubarEditMenu,group:"2_ccp",title:c.NC({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:h.eH.EditorContext,group:g,title:c.NC("actions.clipboard.copyLabel","Copy"),order:2},{menuId:h.eH.CommandPalette,group:"",title:c.NC("actions.clipboard.copyLabel","Copy"),order:1},{menuId:h.eH.SimpleEditorContext,group:g,title:c.NC("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;h.BH.appendMenuItem(h.eH.MenubarEditMenu,{submenu:h.eH.MenubarCopy,title:{value:c.NC("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3}),h.BH.appendMenuItem(h.eH.EditorContext,{submenu:h.eH.EditorContextCopy,title:{value:c.NC("copy as","Copy As"),original:"Copy As"},group:g,order:3}),h.BH.appendMenuItem(h.eH.EditorContext,{submenu:h.eH.EditorContextShare,title:{value:c.NC("share","Share"),original:"Share"},group:"11_share",order:-1,when:u.Ao.and(u.Ao.notEquals("resourceScheme","output"),l.u.editorTextFocus)}),h.BH.appendMenuItem(h.eH.EditorTitleContext,{submenu:h.eH.EditorTitleContextShare,title:{value:c.NC("share","Share"),original:"Share"},group:"11_share",order:-1}),h.BH.appendMenuItem(h.eH.ExplorerContext,{submenu:h.eH.ExplorerContextShare,title:{value:c.NC("share","Share"),original:"Share"},group:"11_share",order:-1});const C=f?_(new r.AJ({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:o.tY?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:h.eH.MenubarEditMenu,group:"2_ccp",title:c.NC({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:h.eH.EditorContext,group:g,title:c.NC("actions.clipboard.pasteLabel","Paste"),when:l.u.writable,order:4},{menuId:h.eH.CommandPalette,group:"",title:c.NC("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:h.eH.SimpleEditorContext,group:g,title:c.NC("actions.clipboard.pasteLabel","Paste"),when:l.u.writable,order:4}]})):void 0;class y extends r.R6{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:c.NC("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:l.u.textInputFocus,primary:0,weight:100}})}run(e,t){t.hasModel()&&(!t.getOption(35)&&t.getSelection().isEmpty()||(s.RA.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),s.RA.forceCopyWithSyntaxHighlighting=!1))}}function w(e,t){e&&(e.addImplementation(1e4,"code-editor",((e,i)=>{const n=e.get(a.$).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const e=n.getOption(35),i=n.getSelection();return i&&i.isEmpty()&&!e||document.execCommand(t),!0}return!1})),e.addImplementation(0,"generic-dom",((e,i)=>(document.execCommand(t),!0))))}w(v,"cut"),w(b,"copy"),C&&(C.addImplementation(1e4,"code-editor",((e,t)=>{const i=e.get(a.$),n=e.get(d.p),r=i.getFocusedCodeEditor();return!(!r||!r.hasTextFocus())&&(!(!document.execCommand("paste")&&o.$L)||(l=void 0,c=void 0,u=function*(){const e=yield n.readText();if(""!==e){const t=s.Nl.INSTANCE.get(e);let i=!1,n=null,o=null;t&&(i=r.getOption(35)&&!!t.isFromEmptySelection,n=void 0!==t.multicursorText?t.multicursorText:null,o=t.mode),r.trigger("keyboard","paste",{text:e,pasteOnNewLine:i,multicursorText:n,mode:o})}},new((h=void 0)||(h=Promise))((function(e,t){function i(e){try{o(u.next(e))}catch(e){t(e)}}function n(e){try{o(u.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof h?o:new h((function(e){e(o)}))).then(i,n)}o((u=u.apply(l,c||[])).next())}))));var l,c,h,u})),C.addImplementation(0,"generic-dom",((e,t)=>(document.execCommand("paste"),!0)))),m&&(0,r.Qr)(y)},75396:(e,t,i)=>{"use strict";i.d(t,{Bb:()=>k,LR:()=>M,MN:()=>x,RB:()=>y,TM:()=>E,UX:()=>A,aI:()=>T,cz:()=>w,pZ:()=>S,uH:()=>L});var n=i(9488),o=i(71050),s=i(17301),r=i(5976),a=i(70666),l=i(66007),c=i(24314),h=i(3860),d=i(71922),u=i(73733),g=i(16467),p=i(63580),m=i(94565),f=i(59422),_=i(90535),v=i(10829),b=i(87997),C=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};const y="editor.action.codeAction",w="editor.action.quickFix",S="editor.action.autoFix",k="editor.action.refactor",x="editor.action.sourceAction",L="editor.action.organizeImports",E="editor.action.fixAll";class N extends r.JT{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return(0,n.Of)(e.diagnostics)?(0,n.Of)(t.diagnostics)?N.codeActionsPreferredComparator(e,t):-1:(0,n.Of)(t.diagnostics)?1:N.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(N.codeActionsComparator),this.validActions=this.allActions.filter((({action:e})=>!e.disabled))}get hasAutoFix(){return this.validActions.some((({action:e})=>!!e.kind&&b.yN.QuickFix.contains(new b.yN(e.kind))&&!!e.isPreferred))}}const D={actions:[],documentation:void 0};function T(e,t,i,o,a,l){var c;return C(this,void 0,void 0,(function*(){const h=o.filter||{},d={only:null===(c=h.include)||void 0===c?void 0:c.value,trigger:o.type},u=new g.YQ(t,l),p=function(e,t,i){return e.all(t).filter((e=>!e.providedCodeActionKinds||e.providedCodeActionKinds.some((e=>(0,b.EU)(i,new b.yN(e))))))}(e,t,h),m=new r.SL,f=p.map((e=>C(this,void 0,void 0,(function*(){try{a.report(e);const n=yield e.provideCodeActions(t,i,d,u.token);if(n&&m.add(n),u.token.isCancellationRequested)return D;const o=((null==n?void 0:n.actions)||[]).filter((e=>e&&(0,b.Yl)(h,e))),s=function(e,t,i){if(!e.documentation)return;const n=e.documentation.map((e=>({kind:new b.yN(e.kind),command:e.command})));if(i){let e;for(const t of n)t.kind.contains(i)&&(e?e.kind.contains(t.kind)&&(e=t):e=t);if(e)return null==e?void 0:e.command}for(const e of t)if(e.kind)for(const t of n)if(t.kind.contains(new b.yN(e.kind)))return t.command}(e,o,h.include);return{actions:o.map((t=>new b.bA(t,e))),documentation:s}}catch(e){if((0,s.n2)(e))throw e;return(0,s.Cp)(e),D}})))),_=e.onDidChange((()=>{const i=e.all(t);(0,n.fS)(i,p)||u.cancel()}));try{const i=yield Promise.all(f),s=i.map((e=>e.actions)).flat(),r=[...(0,n.kX)(i.map((e=>e.documentation))),...I(e,t,o,s)];return new N(s,r,m)}finally{_.dispose(),u.dispose()}}))}function*I(e,t,i,n){var o,s,r;if(t&&n.length)for(const a of e.all(t))a._getAdditionalMenuItems&&(yield*null===(o=a._getAdditionalMenuItems)||void 0===o?void 0:o.call(a,{trigger:i.type,only:null===(r=null===(s=i.filter)||void 0===s?void 0:s.include)||void 0===r?void 0:r.value},n.map((e=>e.action))))}var A;function M(e,t,i,n,s=o.T.None){var r;return C(this,void 0,void 0,(function*(){const o=e.get(l.vu),a=e.get(m.H),c=e.get(v.b),h=e.get(f.lT);if(c.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.action.title,codeActionKind:t.action.kind,codeActionIsPreferred:!!t.action.isPreferred,reason:i}),yield t.resolve(s),!s.isCancellationRequested){if((null===(r=t.action.edit)||void 0===r?void 0:r.edits.length)&&!(yield o.apply(t.action.edit,{editor:null==n?void 0:n.editor,label:t.action.title,quotableLabel:t.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:i!==A.OnSave,showPreview:null==n?void 0:n.preview})).isApplied)return;if(t.action.command)try{yield a.executeCommand(t.action.command.id,...t.action.command.arguments||[])}catch(e){const t=function(e){return"string"==typeof e?e:e instanceof Error&&"string"==typeof e.message?e.message:void 0}(e);h.error("string"==typeof t?t:p.NC("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}}))}!function(e){e.OnSave="onSave",e.FromProblemsView="fromProblemsView",e.FromCodeActions="fromCodeActions"}(A||(A={})),m.P.registerCommand("_executeCodeActionProvider",(function(e,t,i,n,r){return C(this,void 0,void 0,(function*(){if(!(t instanceof a.o))throw(0,s.b1)();const{codeActionProvider:l}=e.get(d.p),g=e.get(u.q).getModel(t);if(!g)throw(0,s.b1)();const p=h.Y.isISelection(i)?h.Y.liftSelection(i):c.e.isIRange(i)?g.validateRange(i):void 0;if(!p)throw(0,s.b1)();const m="string"==typeof n?new b.yN(n):void 0,f=yield T(l,g,p,{type:1,triggerAction:b.aQ.Default,filter:{includeSourceActions:!0,include:m}},_.Ex.None,o.T.None),v=[],C=Math.min(f.validActions.length,"number"==typeof r?r:0);for(let e=0;ee.action))}finally{setTimeout((()=>f.dispose()),100)}}))}))},51925:(e,t,i)=>{"use strict";i.r(t);var n=i(16830),o=i(800),s=i(97295),r=i(29102),a=i(75396),l=i(63580),c=i(93983),h=i(87997),d=i(792),u=i(17016);function g(e){return c.Ao.regex(u.fj.keys()[0],new RegExp("(\\s|^)"+(0,s.ec)(e.value)+"\\b"))}const p={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:l.NC("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:l.NC("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[l.NC("args.schema.apply.first","Always apply the first returned code action."),l.NC("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),l.NC("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:l.NC("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};function m(e,t,i,n,o=h.aQ.Default){if(e.hasModel()){const s=d.G.get(e);null==s||s.manualTriggerAtCurrentPosition(t,o,i,n)}}class f extends n.R6{constructor(){super({id:a.cz,label:l.NC("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:c.Ao.and(r.u.writable,r.u.hasCodeActionsProvider),kbOpts:{kbExpr:r.u.textInputFocus,primary:2137,weight:100}})}run(e,t){return m(t,l.NC("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,h.aQ.QuickFix)}}class _ extends n._l{constructor(){super({id:a.RB,precondition:c.Ao.and(r.u.writable,r.u.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:p}]}})}runEditorCommand(e,t,i){const n=h.wZ.fromUser(i,{kind:h.yN.Empty,apply:"ifSingle"});return m(t,"string"==typeof(null==i?void 0:i.kind)?n.preferred?l.NC("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):l.NC("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?l.NC("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):l.NC("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class v extends n.R6{constructor(){super({id:a.Bb,label:l.NC("refactor.label","Refactor..."),alias:"Refactor...",precondition:c.Ao.and(r.u.writable,r.u.hasCodeActionsProvider),kbOpts:{kbExpr:r.u.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:c.Ao.and(r.u.writable,g(h.yN.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:p}]}})}run(e,t,i){const n=h.wZ.fromUser(i,{kind:h.yN.Refactor,apply:"never"});return m(t,"string"==typeof(null==i?void 0:i.kind)?n.preferred?l.NC("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",i.kind):l.NC("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",i.kind):n.preferred?l.NC("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):l.NC("editor.action.refactor.noneMessage","No refactorings available"),{include:h.yN.Refactor.contains(n.kind)?n.kind:h.yN.None,onlyIncludePreferredActions:n.preferred},n.apply,h.aQ.Refactor)}}class b extends n.R6{constructor(){super({id:a.MN,label:l.NC("source.label","Source Action..."),alias:"Source Action...",precondition:c.Ao.and(r.u.writable,r.u.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:c.Ao.and(r.u.writable,g(h.yN.Source))},description:{description:"Source Action...",args:[{name:"args",schema:p}]}})}run(e,t,i){const n=h.wZ.fromUser(i,{kind:h.yN.Source,apply:"never"});return m(t,"string"==typeof(null==i?void 0:i.kind)?n.preferred?l.NC("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):l.NC("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?l.NC("editor.action.source.noneMessage.preferred","No preferred source actions available"):l.NC("editor.action.source.noneMessage","No source actions available"),{include:h.yN.Source.contains(n.kind)?n.kind:h.yN.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,h.aQ.SourceAction)}}class C extends n.R6{constructor(){super({id:a.uH,label:l.NC("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:c.Ao.and(r.u.writable,g(h.yN.SourceOrganizeImports)),kbOpts:{kbExpr:r.u.textInputFocus,primary:1581,weight:100}})}run(e,t){return m(t,l.NC("editor.action.organize.noneMessage","No organize imports action available"),{include:h.yN.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",h.aQ.OrganizeImports)}}class y extends n.R6{constructor(){super({id:a.TM,label:l.NC("fixAll.label","Fix All"),alias:"Fix All",precondition:c.Ao.and(r.u.writable,g(h.yN.SourceFixAll))})}run(e,t){return m(t,l.NC("fixAll.noneMessage","No fix all action available"),{include:h.yN.SourceFixAll,includeSourceActions:!0},"ifSingle",h.aQ.FixAll)}}class w extends n.R6{constructor(){super({id:a.pZ,label:l.NC("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:c.Ao.and(r.u.writable,g(h.yN.QuickFix)),kbOpts:{kbExpr:r.u.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return m(t,l.NC("editor.action.autoFix.noneMessage","No auto fixes available"),{include:h.yN.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",h.aQ.AutoFix)}}var S=i(86490),k=i(23193),x=i(89872);(0,n._K)(d.G.ID,d.G,3),(0,n._K)(S.f.ID,S.f,4),(0,n.Qr)(f),(0,n.Qr)(v),(0,n.Qr)(b),(0,n.Qr)(C),(0,n.Qr)(w),(0,n.Qr)(y),(0,n.fK)(new _),x.B.as(k.IP.Configuration).registerConfiguration(Object.assign(Object.assign({},o.wk),{properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:l.NC("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}))},792:(e,t,i)=>{"use strict";i.d(t,{G:()=>oe});var n=i(79579),o=i(5976),s=i(71922),r=i(75396),a=i(65321),l=i(17301),c=i(50187),h=i(87997),d=i(91847);let u=class e{constructor(e){this.keybindingService=e}getResolver(){const t=new n.o((()=>this.keybindingService.getKeybindings().filter((t=>e.codeActionCommands.indexOf(t.command)>=0)).filter((e=>e.resolvedKeybinding)).map((e=>{let t=e.commandArgs;return e.command===r.uH?t={kind:h.yN.SourceOrganizeImports.value}:e.command===r.TM&&(t={kind:h.yN.SourceFixAll.value}),Object.assign({resolvedKeybinding:e.resolvedKeybinding},h.wZ.fromUser(t,{kind:h.yN.None,apply:"never"}))}))));return e=>{if(e.kind){const i=this.bestKeybindingForCodeAction(e,t.value);return null==i?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new h.yN(e.kind);return t.filter((e=>e.kind.contains(i))).filter((t=>!t.preferred||e.isPreferred)).reduceRight(((e,t)=>e?e.kind.contains(t.kind)?t:e:t),void 0)}};var g,p;u.codeActionCommands=[r.Bb,r.RB,r.MN,r.uH,r.TM],u=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(g=0,p=d.d,function(e,t){p(e,t,g)})],u);var m=i(73046),f=(i(71713),i(63580));const _=Object.freeze({kind:h.yN.Empty,title:(0,f.NC)("codeAction.widget.id.more","More Actions...")}),v=Object.freeze([{kind:h.yN.QuickFix,title:(0,f.NC)("codeAction.widget.id.quickfix","Quick Fix...")},{kind:h.yN.RefactorExtract,title:(0,f.NC)("codeAction.widget.id.extract","Extract..."),icon:m.l.wrench},{kind:h.yN.RefactorInline,title:(0,f.NC)("codeAction.widget.id.inline","Inline..."),icon:m.l.wrench},{kind:h.yN.RefactorRewrite,title:(0,f.NC)("codeAction.widget.id.convert","Rewrite..."),icon:m.l.wrench},{kind:h.yN.RefactorMove,title:(0,f.NC)("codeAction.widget.id.move","Move..."),icon:m.l.wrench},{kind:h.yN.SurroundWith,title:(0,f.NC)("codeAction.widget.id.surround","Surround With..."),icon:m.l.symbolSnippet},{kind:h.yN.Source,title:(0,f.NC)("codeAction.widget.id.source","Source Action..."),icon:m.l.symbolFile},_]);var b=i(27753),C=i(90317),y=i(55496),w=i(43799),S=i(1432),k=i(25670),x=i(5606),L=i(86253),E=i(73910),N=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},D=function(e,t){return function(i,n){t(i,n,e)}};const T="acceptSelectedCodeAction",I="previewSelectedCodeAction";class A{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){var n,o;i.text.textContent=null!==(o=null===(n=e.group)||void 0===n?void 0:n.title)&&void 0!==o?o:""}disposeTemplate(e){}}let M=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");return i.className="title",e.append(i),{container:e,icon:t,text:i,keybinding:new y.e(e,S.OS)}}renderElement(e,t,i){var n,o,s;if((null===(n=e.group)||void 0===n?void 0:n.icon)?(i.icon.className=k.k.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=(0,E.n_1)(e.group.icon.color.id))):(i.icon.className=k.k.asClassName(m.l.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=F(e.label),i.keybinding.set(e.keybinding),a.iJ(!!e.keybinding,i.keybinding.element);const r=null===(o=this._keybindingService.lookupKeybinding(T))||void 0===o?void 0:o.getLabel(),l=null===(s=this._keybindingService.lookupKeybinding(I))||void 0===s?void 0:s.getLabel();i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:r&&l?this._supportsPreview?i.container.title=(0,f.NC)({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to apply, Shift+F2 to preview"']},"{0} to apply, {1} to preview",r,l):i.container.title=(0,f.NC)({key:"label",comment:['placeholder is a keybinding, e.g "F2 to apply"']},"{0} to apply",r):i.container.title=""}disposeTemplate(e){}};M=N([D(1,d.d)],M);class R extends UIEvent{constructor(){super("acceptSelectedAction")}}class O extends UIEvent{constructor(){super("previewSelectedAction")}}let P=class extends o.JT{constructor(e,t,i,n,o,s){super(),this._delegate=n,this._contextViewService=o,this._keybindingService=s,this._actionLineHeight=24,this._headerLineHeight=26,this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const r={getHeight:e=>"header"===e.kind?this._headerLineHeight:this._actionLineHeight,getTemplateId:e=>e.kind};this._list=this._register(new w.aV(e,this.domNode,r,[new M(t,this._keybindingService),new A],{keyboardSupport:!1,accessibilityProvider:{getAriaLabel:e=>{if("action"===e.kind){let t=e.label?F(null==e?void 0:e.label):"";return e.disabled&&(t=(0,f.NC)({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",t,e.disabled)),t}return null},getWidgetAriaLabel:()=>(0,f.NC)({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:e=>"action"===e.kind?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(L.O2),this._register(this._list.onMouseClick((e=>this.onListClick(e)))),this._register(this._list.onMouseOver((e=>this.onListHover(e)))),this._register(this._list.onDidChangeFocus((()=>this._list.domFocus()))),this._register(this._list.onDidChangeSelection((e=>this.onListSelection(e)))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&"action"===e.kind}hide(e){this._delegate.onHide(e),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter((e=>"header"===e.kind)).length,i=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(i);const n=this._allMenuItems.map(((e,t)=>{const i=document.getElementById(this._list.getElementID(t));if(i){i.style.width="auto";const e=i.getBoundingClientRect().width;return i.style.width="",e}return 0})),o=Math.max(...n,e),s=Math.min(i,.7*document.body.clientHeight);return this._list.layout(s,o),this.domNode.style.height=`${s}px`,this._list.domFocus(),o}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(0===t.length)return;const i=t[0],n=this._list.element(i);if(!this.focusCondition(n))return;const o=e?new O:new R;this._list.setSelection([i],o)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof O):this._list.setSelection([])}onListHover(e){this._list.setFocus("number"==typeof e.index?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};function F(e){return e.replace(/\r\n|\r|\n/g," ")}P=N([D(4,x.u),D(5,d.d)],P);var B=i(84144),H=i(93983),V=i(65026),W=i(72065),z=function(e,t){return function(i,n){t(i,n,e)}};const U={Visible:new H.uy("codeActionMenuVisible",!1,(0,f.NC)("codeActionMenuVisible","Whether the action widget list is visible"))},j=(0,W.yh)("actionWidgetService");let K=class extends o.JT{get isVisible(){return U.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new o.XK)}show(e,t,i,n,o,s,r){const a=U.Visible.bindTo(this._contextKeyService),l=this._instantiationService.createInstance(P,e,t,i,n);this._contextViewService.showContextView({getAnchor:()=>o,render:e=>(a.set(!0),this._renderWidget(e,l,null!=r?r:[])),onHide:e=>{a.reset(),this._onWidgetClosed(e)}},s,!1)}acceptSelected(e){var t;null===(t=this._list.value)||void 0===t||t.acceptSelected(e)}focusPrevious(){var e,t;null===(t=null===(e=this._list)||void 0===e?void 0:e.value)||void 0===t||t.focusPrevious()}focusNext(){var e,t;null===(t=null===(e=this._list)||void 0===e?void 0:e.value)||void 0===t||t.focusNext()}hide(){var e;null===(e=this._list.value)||void 0===e||e.hide(),this._list.clear()}_renderWidget(e,t,i){var n;const s=document.createElement("div");if(s.classList.add("action-widget"),e.appendChild(s),this._list.value=t,!this._list.value)throw new Error("List has no value");s.appendChild(this._list.value.domNode);const r=new o.SL,l=document.createElement("div"),c=e.appendChild(l);c.classList.add("context-view-block"),r.add(a.nm(c,a.tw.MOUSE_DOWN,(e=>e.stopPropagation())));const h=document.createElement("div"),d=e.appendChild(h);d.classList.add("context-view-pointerBlock"),r.add(a.nm(d,a.tw.POINTER_MOVE,(()=>d.remove()))),r.add(a.nm(d,a.tw.MOUSE_DOWN,(()=>d.remove())));let u=0;if(i.length){const e=this._createActionBar(".action-widget-action-bar",i);e&&(s.appendChild(e.getContainer().parentElement),r.add(e),u=e.getContainer().offsetWidth)}const g=null===(n=this._list.value)||void 0===n?void 0:n.layout(u);s.style.width=`${g}px`;const p=r.add(a.go(e));return r.add(p.onDidBlur((()=>this.hide()))),r}_createActionBar(e,t){if(!t.length)return;const i=a.$(e),n=new C.o(i);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){var t;null===(t=this._list.value)||void 0===t||t.hide(e)}};K=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([z(0,x.u),z(1,H.i6),z(2,W.TG)],K),(0,V.z)(j,K,1);const q=1100;(0,B.r1)(class extends B.Ke{constructor(){super({id:"hideCodeActionWidget",title:{value:(0,f.NC)("hideCodeActionWidget.title","Hide action widget"),original:"Hide action widget"},precondition:U.Visible,keybinding:{weight:q,primary:9,secondary:[1033]}})}run(e){e.get(j).hide()}}),(0,B.r1)(class extends B.Ke{constructor(){super({id:"selectPrevCodeAction",title:{value:(0,f.NC)("selectPrevCodeAction.title","Select previous action"),original:"Select previous action"},precondition:U.Visible,keybinding:{weight:q,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(e){const t=e.get(j);t instanceof K&&t.focusPrevious()}}),(0,B.r1)(class extends B.Ke{constructor(){super({id:"selectNextCodeAction",title:{value:(0,f.NC)("selectNextCodeAction.title","Select next action"),original:"Select next action"},precondition:U.Visible,keybinding:{weight:q,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(e){const t=e.get(j);t instanceof K&&t.focusNext()}}),(0,B.r1)(class extends B.Ke{constructor(){super({id:T,title:{value:(0,f.NC)("acceptSelected.title","Accept selected action"),original:"Accept selected action"},precondition:U.Visible,keybinding:{weight:q,primary:3,secondary:[2137]}})}run(e){const t=e.get(j);t instanceof K&&t.acceptSelected()}}),(0,B.r1)(class extends B.Ke{constructor(){super({id:I,title:{value:(0,f.NC)("previewSelected.title","Preview selected action"),original:"Preview selected action"},precondition:U.Visible,keybinding:{weight:q,primary:2051}})}run(e){const t=e.get(j);t instanceof K&&t.acceptSelected(!0)}});var $,G=i(94565),Q=i(33108),Y=i(86490),Z=function(e,t){return function(i,n){t(i,n,e)}},X=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let J=class extends o.JT{constructor(e,t,i,s,r,a){super(),this._editor=e,this.delegate=t,this._configurationService=s,this._actionWidgetService=r,this._commandService=a,this._activeCodeActions=this._register(new o.XK),$.set(this,!1),this._showDisabled=!1,this._lightBulbWidget=new n.o((()=>{const e=this._editor.getContribution(Y.f.ID);return e&&this._register(e.onClick((e=>this.showCodeActionList(e.actions,e,{includeDisabledActions:!1,fromLightbulb:!0})))),e})),this._resolver=i.createInstance(u),this._register(this._editor.onDidLayoutChange((()=>this._actionWidgetService.hide())))}dispose(){(function(e,t,i,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,i):o?o.value=i:t.set(e,i)})(this,$,!0,"f"),super.dispose()}update(e){var t,i,n,o,s,r,a;return X(this,void 0,void 0,(function*(){if(1!==e.type)return void(null===(t=this._lightBulbWidget.rawValue)||void 0===t||t.hide());let c;try{c=yield e.actions}catch(e){return void(0,l.dL)(e)}if(!function(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)}(this,$,"f"))if(null===(i=this._lightBulbWidget.value)||void 0===i||i.update(c,e.trigger,e.position),1===e.trigger.type){if(null===(n=e.trigger.filter)||void 0===n?void 0:n.include){const t=this.tryGetValidActionToApply(e.trigger,c);if(t){try{null===(o=this._lightBulbWidget.value)||void 0===o||o.hide(),yield this.delegate.applyCodeAction(t,!1,!1)}finally{c.dispose()}return}if(e.trigger.context){const t=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,c);if(t&&t.action.disabled)return null===(s=b.O.get(this._editor))||void 0===s||s.showMessage(t.action.disabled,e.trigger.context.position),void c.dispose()}}const t=!!(null===(r=e.trigger.filter)||void 0===r?void 0:r.include);if(e.trigger.context&&(!c.allActions.length||!t&&!c.validActions.length))return null===(a=b.O.get(this._editor))||void 0===a||a.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=c,void c.dispose();this._activeCodeActions.value=c,this.showCodeActionList(c,this.toCoords(e.position),{includeDisabledActions:t,fromLightbulb:!1})}else this._actionWidgetService.isVisible?c.dispose():this._activeCodeActions.value=c}))}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?t.allActions.find((({action:e})=>e.disabled)):void 0}tryGetValidActionToApply(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0}showCodeActionList(e,t,i){return X(this,void 0,void 0,(function*(){const n=this._editor.getDomNode();if(!n)return;const o=i.includeDisabledActions&&(this._showDisabled||0===e.validActions.length)?e.allActions:e.validActions;if(!o.length)return;const s=c.L.isIPosition(t)?this.toCoords(t):t,r={onSelect:(e,t)=>X(this,void 0,void 0,(function*(){this.delegate.applyCodeAction(e,!0,!!t),this._actionWidgetService.hide()})),onHide:()=>{var e;null===(e=this._editor)||void 0===e||e.focus()}};this._actionWidgetService.show("codeActionWidget",!0,function(e,t,i){if(!t)return e.map((e=>({kind:"action",item:e,group:_,disabled:!!e.action.disabled,label:e.action.disabled||e.action.title})));const n=v.map((e=>({group:e,actions:[]})));for(const t of e){const e=t.action.kind?new h.yN(t.action.kind):h.yN.None;for(const i of n)if(i.group.kind.contains(e)){i.actions.push(t);break}}const o=[];for(const e of n)if(e.actions.length){o.push({kind:"header",group:e.group});for(const t of e.actions)o.push({kind:"action",item:t,group:e.group,label:t.action.title,disabled:!!t.action.disabled,keybinding:i(t.action)})}return o}(o,this._shouldShowHeaders(),this._resolver.getResolver()),r,s,n,this._getActionBarActions(e,t,i))}))}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=(0,a.i)(this._editor.getDomNode());return{x:i.left+t.left,y:i.top+t.top+t.height}}_shouldShowHeaders(){var e;const t=null===(e=this._editor)||void 0===e?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:null==t?void 0:t.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const n=e.documentation.map((e=>{var t;return{id:e.id,label:e.title,tooltip:null!==(t=e.tooltip)&&void 0!==t?t:"",class:void 0,enabled:!0,run:()=>{var t;return this._commandService.executeCommand(e.id,...null!==(t=e.arguments)&&void 0!==t?t:[])}}}));return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&n.push(this._showDisabled?{id:"hideMoreActions",label:(0,f.NC)("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:(0,f.NC)("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),n}};$=new WeakMap,J=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Z(2,W.TG),Z(3,Q.Ui),Z(4,j),Z(5,G.H)],J);var ee=i(98674),te=i(90535),ie=i(17016),ne=function(e,t){return function(i,n){t(i,n,e)}};let oe=class e extends o.JT{static get(t){return t.getContribution(e.ID)}constructor(e,t,i,o,s,r){super(),this._instantiationService=s,this._editor=e,this._model=this._register(new ie.Jt(this._editor,r.codeActionProvider,t,i,o)),this._register(this._model.onDidChangeState((e=>this._ui.value.update(e)))),this._ui=new n.o((()=>this._register(s.createInstance(J,e,{applyCodeAction:(e,t,i)=>{return n=this,o=void 0,r=function*(){try{yield this._applyCodeAction(e,i)}finally{t&&this._trigger({type:2,triggerAction:h.aQ.QuickFix,filter:{}})}},new((s=void 0)||(s=Promise))((function(e,t){function i(e){try{l(r.next(e))}catch(e){t(e)}}function a(e){try{l(r.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof s?n:new s((function(e){e(n)}))).then(i,a)}l((r=r.apply(n,o||[])).next())}));var n,o,s,r}}))))}showCodeActions(e,t,i){return this._ui.value.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n){var o;if(!this._editor.hasModel())return;null===(o=b.O.get(this._editor))||void 0===o||o.closeMessage();const s=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:s}})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t){return this._instantiationService.invokeFunction(r.LR,e,r.UX.FromCodeActions,{preview:t,editor:this._editor})}};oe.ID="editor.contrib.codeActionController",oe=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([ne(1,ee.lT),ne(2,H.i6),ne(3,te.ek),ne(4,W.TG),ne(5,s.p)],oe)},17016:(e,t,i)=>{"use strict";i.d(t,{Jt:()=>v,fj:()=>p});var n,o=i(15393),s=i(17301),r=i(4669),a=i(5976),l=i(95935),c=i(93983),h=i(90535),d=i(87997),u=i(75396),g=function(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)};const p=new c.uy("supportedCodeAction","");class m extends a.JT{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new o._F),this._register(this._markerService.onMarkerChanged((e=>this._onMarkerChanges(e)))),this._register(this._editor.onDidChangeCursorPosition((()=>this._tryAutoTrigger())))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some((e=>(0,l.Xy)(e,t.uri)))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet((()=>{this.trigger({type:2,triggerAction:d.aQ.Default})}),this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=this._editor.getSelection();if(i.isEmpty()&&2===e.type){const{lineNumber:e,column:n}=i.getPosition(),o=t.getLineContent(e);if(0===o.length)return;if(1===n){if(/\s/.test(o[0]))return}else if(n===t.getLineMaxColumn(e)){if(/\s/.test(o[o.length-1]))return}else if(/\s/.test(o[n-2])&&/\s/.test(o[n-1]))return}return i}}var f;!function(e){e.Empty={type:0},e.Triggered=class{constructor(e,t,i){this.trigger=e,this.position=t,this._cancellablePromise=i,this.type=1,this.actions=i.catch((e=>{if((0,s.n2)(e))return _;throw e}))}cancel(){this._cancellablePromise.cancel()}}}(f||(f={}));const _=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1});class v extends a.JT{constructor(e,t,i,o,s){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=s,this._codeActionOracle=this._register(new a.XK),this._state=f.Empty,this._onDidChangeState=this._register(new r.Q5),this.onDidChangeState=this._onDidChangeState.event,n.set(this,!1),this._supportedCodeActions=p.bindTo(o),this._register(this._editor.onDidChangeModel((()=>this._update()))),this._register(this._editor.onDidChangeModelLanguage((()=>this._update()))),this._register(this._registry.onDidChange((()=>this._update()))),this._update()}dispose(){g(this,n,"f")||(function(e,t,i,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,i):o?o.value=i:t.set(e,i)}(this,n,!0,"f"),super.dispose(),this.setState(f.Empty,!0))}_update(){if(g(this,n,"f"))return;this._codeActionOracle.value=void 0,this.setState(f.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(87)){const t=this._registry.all(e).flatMap((e=>{var t;return null!==(t=e.providedCodeActionKinds)&&void 0!==t?t:[]}));this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new m(this._editor,this._markerService,(t=>{var i;if(!t)return void this.setState(f.Empty);const n=(0,o.PG)((i=>(0,u.aI)(this._registry,e,t.selection,t.trigger,h.Ex.None,i)));1===t.trigger.type&&(null===(i=this._progressService)||void 0===i||i.showWhile(n,250)),this.setState(new f.Triggered(t.trigger,t.selection.getStartPosition(),n))}),void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:d.aQ.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;null===(t=this._codeActionOracle.value)||void 0===t||t.trigger(e)}setState(e,t){e!==this._state&&(1===this._state.type&&this._state.cancel(),this._state=e,t||g(this,n,"f")||this._onDidChangeState.fire(e))}}n=new WeakMap},86490:(e,t,i)=>{"use strict";i.d(t,{f:()=>m});var n,o=i(65321),s=i(10553),r=i(73046),a=i(4669),l=i(5976),c=i(25670),h=i(98401),d=i(59616),u=i(75396),g=i(63580),p=i(91847);!function(e){e.Hidden={type:0},e.Showing=class{constructor(e,t,i,n){this.actions=e,this.trigger=t,this.editorPosition=i,this.widgetPosition=n,this.type=1}}}(n||(n={}));let m=class e extends l.JT{constructor(e,t){super(),this._editor=e,this._onClick=this._register(new a.Q5),this.onClick=this._onClick.event,this._state=n.Hidden,this._domNode=o.$("div.lightBulbWidget"),this._register(s.o.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent((e=>{const t=this._editor.getModel();(1!==this.state.type||!t||this.state.editorPosition.lineNumber>=t.getLineCount())&&this.hide()}))),this._register(o.GQ(this._domNode,(e=>{if(1!==this.state.type)return;this._editor.focus(),e.preventDefault();const{top:t,height:i}=o.i(this._domNode),n=this._editor.getOption(64);let s=Math.floor(n/3);null!==this.state.widgetPosition.position&&this.state.widgetPosition.position.lineNumber{1==(1&e.buttons)&&this.hide()}))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(62)&&!this._editor.getOption(62).enabled&&this.hide()}))),this._register(a.ju.runAndSubscribe(t.onDidUpdateKeybindings,(()=>{var e,i;this._preferredKbLabel=(0,h.f6)(null===(e=t.lookupKeybinding(u.pZ))||void 0===e?void 0:e.getLabel()),this._quickFixKbLabel=(0,h.f6)(null===(i=t.lookupKeybinding(u.cz))||void 0===i?void 0:i.getLabel()),this._updateLightBulbTitleAndIcon()})))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return 1===this._state.type?this._state.widgetPosition:null}update(t,i,o){if(t.validActions.length<=0)return this.hide();const s=this._editor.getOptions();if(!s.get(62).enabled)return this.hide();const r=this._editor.getModel();if(!r)return this.hide();const{lineNumber:a,column:l}=r.validatePosition(o),c=r.getOptions().tabSize,h=s.get(48),u=r.getLineContent(a),g=(0,d.q)(u,c),p=e=>e>2&&this._editor.getTopForLineNumber(e)===this._editor.getTopForLineNumber(e-1);let m=a;if(!(h.spaceWidth*g>22))if(a>1&&!p(a-1))m-=1;else if(p(a+1)){if(l*h.spaceWidth<22)return this.hide()}else m+=1;this.state=new n.Showing(t,i,o,{position:{lineNumber:m,column:1},preference:e._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==n.Hidden&&(this.state=n.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){1===this.state.type&&this.state.actions.hasAutoFix&&(this._domNode.classList.remove(...c.k.asClassNameArray(r.l.lightBulb)),this._domNode.classList.add(...c.k.asClassNameArray(r.l.lightbulbAutofix)),this._preferredKbLabel)?this.title=g.NC("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel):(this._domNode.classList.remove(...c.k.asClassNameArray(r.l.lightbulbAutofix)),this._domNode.classList.add(...c.k.asClassNameArray(r.l.lightBulb)),this._quickFixKbLabel?this.title=g.NC("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):this.title=g.NC("codeAction","Show Code Actions"))}set title(e){this._domNode.title=e}};var f,_;m.ID="editor.contrib.lightbulbWidget",m._posPref=[0],m=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(f=1,_=p.d,function(e,t){_(e,t,f)})],m)},87997:(e,t,i)=>{"use strict";i.d(t,{EU:()=>r,Yl:()=>a,aQ:()=>n,bA:()=>h,wZ:()=>c,yN:()=>s});var n,o=i(17301);class s{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||""===this.value||e.value.startsWith(this.value+s.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new s(this.value+s.sep+e)}}function r(e,t){return!(e.include&&!e.include.intersects(t)||e.excludes&&e.excludes.some((i=>l(t,i,e.include)))||!e.includeSourceActions&&s.Source.contains(t))}function a(e,t){const i=t.kind?new s(t.kind):void 0;return!(!(!e.include||i&&e.include.contains(i))||e.excludes&&i&&e.excludes.some((t=>l(i,t,e.include)))||!e.includeSourceActions&&i&&s.Source.contains(i)||e.onlyIncludePreferredActions&&!t.isPreferred)}function l(e,t,i){return!(!t.contains(e)||i&&t.contains(i))}s.sep=".",s.None=new s("@@none@@"),s.Empty=new s(""),s.QuickFix=new s("quickfix"),s.Refactor=new s("refactor"),s.RefactorExtract=s.Refactor.append("extract"),s.RefactorInline=s.Refactor.append("inline"),s.RefactorMove=s.Refactor.append("move"),s.RefactorRewrite=s.Refactor.append("rewrite"),s.Source=new s("source"),s.SourceOrganizeImports=s.Source.append("organizeImports"),s.SourceFixAll=s.Source.append("fixAll"),s.SurroundWith=s.Refactor.append("surround"),function(e){e.Refactor="refactor",e.RefactorPreview="refactor preview",e.Lightbulb="lightbulb",e.Default="other (default)",e.SourceAction="source action",e.QuickFix="quick fix action",e.FixAll="fix all",e.OrganizeImports="organize imports",e.AutoFix="auto fix",e.QuickFixHover="quick fix hover window",e.OnSave="save participants",e.ProblemsView="problems view"}(n||(n={}));class c{static fromUser(e,t){return e&&"object"==typeof e?new c(c.getKindFromUser(e,t.kind),c.getApplyFromUser(e,t.apply),c.getPreferredUser(e)):new c(t.kind,t.apply,!1)}static getApplyFromUser(e,t){switch("string"==typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return"string"==typeof e.kind?new s(e.kind):t}static getPreferredUser(e){return"boolean"==typeof e.preferred&&e.preferred}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class h{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t,i,n,s,r;return i=this,n=void 0,r=function*(){if((null===(t=this.provider)||void 0===t?void 0:t.resolveCodeAction)&&!this.action.edit){let t;try{t=yield this.provider.resolveCodeAction(this.action,e)}catch(e){(0,o.Cp)(e)}t&&(this.action.edit=t.edit)}return this},new((s=void 0)||(s=Promise))((function(e,t){function o(e){try{l(r.next(e))}catch(e){t(e)}}function a(e){try{l(r.throw(e))}catch(e){t(e)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof s?i:new s((function(e){e(i)}))).then(o,a)}l((r=r.apply(i,n||[])).next())}))}}},85729:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CodeLensContribution:()=>U});var n=i(15393),o=i(17301),s=i(5976),r=i(43407),a=i(16830),l=i(64141),c=i(29102),h=i(71050),d=i(98401),u=i(70666),g=i(73733),p=i(94565),m=i(71922),f=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class _{constructor(){this.lenses=[],this._disposables=new s.SL}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}function v(e,t,i){return f(this,void 0,void 0,(function*(){const n=e.ordered(t),s=new Map,r=new _,a=n.map(((e,n)=>f(this,void 0,void 0,(function*(){s.set(e,n);try{const n=yield Promise.resolve(e.provideCodeLenses(t,i));n&&r.add(n,e)}catch(e){(0,o.Cp)(e)}}))));return yield Promise.all(a),r.lenses=r.lenses.sort(((e,t)=>e.symbol.range.startLineNumbert.symbol.range.startLineNumber?1:s.get(e.provider)s.get(t.provider)?1:e.symbol.range.startColumnt.symbol.range.startColumn?1:0)),r}))}p.P.registerCommand("_executeCodeLensProvider",(function(e,...t){let[i,n]=t;(0,d.p_)(u.o.isUri(i)),(0,d.p_)("number"==typeof n||!n);const{codeLensProvider:r}=e.get(m.p),a=e.get(g.q).getModel(i);if(!a)throw(0,o.b1)();const l=[],c=new s.SL;return v(r,a,h.T.None).then((e=>{c.add(e);const t=[];for(const i of e.lenses)null==n||Boolean(i.symbol.command)?l.push(i.symbol):n-- >0&&i.provider.resolveCodeLens&&t.push(Promise.resolve(i.provider.resolveCodeLens(a,i.symbol,h.T.None)).then((e=>l.push(e||i.symbol))));return Promise.all(t)})).then((()=>l)).finally((()=>{setTimeout((()=>c.dispose()),100)}))}));var b=i(88289),C=i(43702),y=i(24314),w=i(65026),S=i(72065),k=i(26904);const x=(0,S.yh)("ICodeLensCache");class L{constructor(e,t){this.lineCount=e,this.data=t}}let E=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new C.z6(20,.75),(0,n.To)((()=>e.remove("codelens/cache",1)));const t="codelens/cache2",i=e.get(t,1,"{}");this._deserialize(i),(0,b.I)(e.onWillSaveState)((i=>{i.reason===k.fk.SHUTDOWN&&e.store(t,this._serialize(),1,1)}))}put(e,t){const i=t.lenses.map((e=>{var t;return{range:e.symbol.range,command:e.symbol.command&&{id:"",title:null===(t=e.symbol.command)||void 0===t?void 0:t.title}}})),n=new _;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const o=new L(e.getLineCount(),n);this._cache.set(e.uri.toString(),o)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const e of i.data.lenses)n.add(e.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const e in t){const i=t[e],n=[];for(const e of i.lines)n.push({range:new y.e(e,1,e,11)});const o=new _;o.add({lenses:n,dispose(){}},this._fakeProvider),this._cache.set(e,new L(i.lineCount,o))}}catch(e){}}};var N,D;E=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(N=0,D=k.Uy,function(e,t){D(e,t,N)})],E),(0,w.z)(x,E,1);var T=i(65321),I=i(56811),A=i(1231);class M{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return 0!==this._lastHeight&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class R{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+R._idPool++,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let t=0;t{e.symbol.command&&a.push(e.symbol),i.addDecoration({range:e.symbol.range,options:P},(e=>this._decorationIds[t]=e)),r=r?y.e.plusRange(r,e.symbol.range):y.e.lift(e.symbol.range)})),this._viewZone=new M(r.startLineNumber-1,o,s),this._viewZoneId=n.addZone(this._viewZone),a.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(a,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new R(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],null==t||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some(((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!(!i||y.e.isEmpty(n.range)!==i.isEmpty())}))}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach(((e,i)=>{t.addDecoration({range:e.symbol.range,options:P},(e=>this._decorationIds[i]=e))}))}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;tthis._resolveCodeLensesInViewport()),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>this._onModelChange()))),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(48)||e.hasChanged(17)||e.hasChanged(16))&&this._updateLensStyle(),e.hasChanged(15)&&this._onModelChange()}))),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),null===(e=this._currentCodeLensModel)||void 0===e||e.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(64)/this._editor.getOption(50));let t=this._editor.getOption(17);return(!t||t<5)&&(t=.9*this._editor.getOption(50)|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(16),n=this._editor.getOption(48),{style:o}=this._editor.getContainerDomNode();o.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),o.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),o.setProperty("--vscode-editorCodeLens-fontFeatureSettings",n.fontFeatureSettings),i&&(o.setProperty("--vscode-editorCodeLens-fontFamily",i),o.setProperty("--vscode-editorCodeLens-fontFamilyDefault",l.hL.fontFamily)),this._editor.changeViewZones((t=>{for(const i of this._lenses)i.updateHeight(e,t)}))}_localDispose(){var e,t,i;null===(e=this._getCodeLensModelPromise)||void 0===e||e.cancel(),this._getCodeLensModelPromise=void 0,null===(t=this._resolveCodeLensesPromise)||void 0===t||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),null===(i=this._currentCodeLensModel)||void 0===i||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e)return;if(!this._editor.getOption(15))return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e))return void(t&&this._localToDispose.add((0,n.Vg)((()=>{const i=this._codeLensCache.get(e);t===i&&(this._codeLensCache.delete(e),this._onModelChange())}),3e4)));for(const t of this._languageFeaturesService.codeLensProvider.all(e))if("function"==typeof t.onDidChange){const e=t.onDidChange((()=>i.schedule()));this._localToDispose.add(e)}const i=new n.pY((()=>{var t;const s=Date.now();null===(t=this._getCodeLensModelPromise)||void 0===t||t.cancel(),this._getCodeLensModelPromise=(0,n.PG)((t=>v(this._languageFeaturesService.codeLensProvider,e,t))),this._getCodeLensModelPromise.then((t=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=t,this._codeLensCache.put(e,t);const n=this._provideCodeLensDebounce.update(e,Date.now()-s);i.delay=n,this._renderCodeLensSymbols(t),this._resolveCodeLensesInViewportSoon()}),o.dL)}),this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add((0,s.OF)((()=>this._resolveCodeLensesScheduler.cancel()))),this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{var e;this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const i=[];let n=-1;this._lenses.forEach((e=>{e.isValid()&&n!==e.getLineNumber()?(e.update(t),n=e.getLineNumber()):i.push(e)}));const o=new O;i.forEach((e=>{e.dispose(o,t),this._lenses.splice(this._lenses.indexOf(e),1)})),o.commit(e)}))})),i.schedule(),this._resolveCodeLensesScheduler.cancel(),null===(e=this._resolveCodeLensesPromise)||void 0===e||e.cancel(),this._resolveCodeLensesPromise=void 0}))),this._localToDispose.add(this._editor.onDidFocusEditorWidget((()=>{i.schedule()}))),this._localToDispose.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add(this._editor.onDidLayoutChange((()=>{this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add((0,s.OF)((()=>{if(this._editor.getModel()){const e=r.Z.capture(this._editor);this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{this._disposeAllLenses(e,t)}))})),e.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)}))),this._localToDispose.add(this._editor.onMouseDown((e=>{if(9!==e.target.type)return;let t=e.target.element;if("SPAN"===(null==t?void 0:t.tagName)&&(t=t.parentElement),"A"===(null==t?void 0:t.tagName))for(const e of this._lenses){const i=e.getCommand(t);if(i){this._commandService.executeCommand(i.id,...i.arguments||[]).catch((e=>this._notificationService.error(e)));break}}}))),i.schedule()}_disposeAllLenses(e,t){const i=new O;for(const e of this._lenses)e.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let n;for(const o of e.lenses){const e=o.symbol.range.startLineNumber;e<1||e>t||(n&&n[n.length-1].symbol.range.startLineNumber===e?n.push(o):(n=[o],i.push(n)))}if(!i.length&&!this._lenses.length)return;const o=r.Z.capture(this._editor),s=this._getLayoutInfo();this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const n=new O;let o=0,r=0;for(;rthis._resolveCodeLensesInViewportSoon()))),o++,r++)}for(;othis._resolveCodeLensesInViewportSoon()))),r++;n.commit(e)}))})),o.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;null===(e=this._resolveCodeLensesPromise)||void 0===e||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],s=[];if(this._lenses.forEach((e=>{const n=e.computeIfNecessary(t);n&&(i.push(n),s.push(e))})),0===i.length)return;const r=Date.now(),a=(0,n.PG)((e=>{const n=i.map(((i,n)=>{const r=new Array(i.length),a=i.map(((i,n)=>i.symbol.command||"function"!=typeof i.provider.resolveCodeLens?(r[n]=i.symbol,Promise.resolve(void 0)):Promise.resolve(i.provider.resolveCodeLens(t,i.symbol,e)).then((e=>{r[n]=e}),o.Cp)));return Promise.all(a).then((()=>{e.isCancellationRequested||s[n].isDisposed()||s[n].updateCommands(r)}))}));return Promise.all(n)}));this._resolveCodeLensesPromise=a,this._resolveCodeLensesPromise.then((()=>{const e=this._resolveCodeLensesDebounce.update(t,Date.now()-r);this._resolveCodeLensesScheduler.delay=e,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}),(e=>{(0,o.dL)(e),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}))}getModel(){return this._currentCodeLensModel}};U.ID="css.editor.codeLens",U=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([z(1,m.p),z(2,W.A),z(3,p.H),z(4,H.lT),z(5,x)],U),(0,a._K)(U.ID,U,1),(0,a.Qr)(class extends a.R6{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:c.u.hasCodeLensProvider,label:(0,B.NC)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return i=this,n=void 0,s=function*(){if(!t.hasModel())return;const i=e.get(V.eJ),n=e.get(p.H),o=e.get(H.lT),s=t.getSelection().positionLineNumber,r=t.getContribution(U.ID);if(!r)return;const a=r.getModel();if(!a)return;const l=[];for(const e of a.lenses)e.symbol.command&&e.symbol.range.startLineNumber===s&&l.push({label:e.symbol.command.title,command:e.symbol.command});if(0===l.length)return;const c=yield i.pick(l,{canPickMany:!1});if(c){if(a.isDisposed)return yield n.executeCommand(this.id);try{yield n.executeCommand(c.command.id,...c.command.arguments||[])}catch(e){o.error(e)}}},new((o=void 0)||(o=Promise))((function(e,t){function r(e){try{l(s.next(e))}catch(e){t(e)}}function a(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof o?i:new o((function(e){e(i)}))).then(r,a)}l((s=s.apply(i,n||[])).next())}));var i,n,o,s}})},52640:(e,t,i)=>{"use strict";i.d(t,{E:()=>g,R:()=>p});var n=i(71050),o=i(17301),s=i(70666),r=i(24314),a=i(73733),l=i(94565),c=i(71922),h=i(15418),d=i(33108),u=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function g(e,t,i,n=!0){return u(this,void 0,void 0,(function*(){return v(new m,e,t,i,n)}))}function p(e,t,i,n){return Promise.resolve(i.provideColorPresentations(e,t,n))}class m{constructor(){}compute(e,t,i,n){return u(this,void 0,void 0,(function*(){const o=yield e.provideDocumentColors(t,i);if(Array.isArray(o))for(const t of o)n.push({colorInfo:t,provider:e});return Array.isArray(o)}))}}class f{constructor(){}compute(e,t,i,n){return u(this,void 0,void 0,(function*(){const o=yield e.provideDocumentColors(t,i);if(Array.isArray(o))for(const e of o)n.push({range:e.range,color:[e.color.red,e.color.green,e.color.blue,e.color.alpha]});return Array.isArray(o)}))}}class _{constructor(e){this.colorInfo=e}compute(e,t,i,o){return u(this,void 0,void 0,(function*(){const i=yield e.provideColorPresentations(t,this.colorInfo,n.T.None);return Array.isArray(i)&&o.push(...i),Array.isArray(i)}))}}function v(e,t,i,n,s){return u(this,void 0,void 0,(function*(){let r,a=!1;const l=[],c=t.ordered(i);for(let t=c.length-1;t>=0;t--){const s=c[t];if(s instanceof h.G)r=s;else try{a||(a=yield e.compute(s,i,n,l))}catch(e){(0,o.Cp)(e)}}return a?l:r&&s?(yield e.compute(r,i,n,l),l):[]}))}function b(e,t){const{colorProvider:i}=e.get(c.p),n=e.get(a.q).getModel(t);if(!n)throw(0,o.b1)();return{model:n,colorProviderRegistry:i,isDefaultColorDecoratorsEnabled:e.get(d.Ui).getValue("editor.defaultColorDecorators",{resource:t})}}l.P.registerCommand("_executeDocumentColorProvider",(function(e,...t){const[i]=t;if(!(i instanceof s.o))throw(0,o.b1)();const{model:r,colorProviderRegistry:a,isDefaultColorDecoratorsEnabled:l}=b(e,i);return v(new f,a,r,n.T.None,l)})),l.P.registerCommand("_executeColorPresentationProvider",(function(e,...t){const[i,a]=t,{uri:l,range:c}=a;if(!(l instanceof s.o&&Array.isArray(i)&&4===i.length&&r.e.isIRange(c)))throw(0,o.b1)();const{model:h,colorProviderRegistry:d,isDefaultColorDecoratorsEnabled:u}=b(e,l),[g,p,m,f]=i;return v(new _({range:c,color:{red:g,green:p,blue:m,alpha:f}}),d,h,n.T.None,u)}))},46838:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ColorContribution:()=>h});var n=i(5976),o=i(16830),s=i(24314),r=i(89431),a=i(65766),l=i(49817),c=i(66520);class h extends n.JT{constructor(e){super(),this._editor=e,this._register(e.onMouseDown((e=>this.onMouseDown(e))))}dispose(){super.dispose()}onMouseDown(e){const t=e.target;if(6!==t.type)return;if(!t.detail.injectedText)return;if(t.detail.injectedText.options.attachedData!==r.Ak)return;if(!t.range)return;const i=this._editor.getContribution(l.ModesHoverController.ID);if(i&&!i.isColorPickerVisible()){const e=new s.e(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);i.showContentHover(e,1,0,!1)}}}h.ID="editor.contrib.colorContribution",(0,o._K)(h.ID,h,2),c.Ae.register(a.nh)},89431:(e,t,i)=>{"use strict";i.d(t,{Ak:()=>C,if:()=>y});var n=i(15393),o=i(41264),s=i(17301),r=i(4669),a=i(5976),l=i(84013),c=i(97295),h=i(29994),d=i(16830),u=i(24314),g=i(1231),p=i(88191),m=i(71922),f=i(52640),_=i(33108),v=function(e,t){return function(i,n){t(i,n,e)}},b=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};const C=Object.create({});let y=class e extends a.JT{constructor(t,i,n,o){super(),this._editor=t,this._configurationService=i,this._languageFeaturesService=n,this._localToDispose=this._register(new a.SL),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new h.t7(this._editor),this._decoratorLimitReporter=new w,this._colorDecorationClassRefs=this._register(new a.SL),this._debounceInformation=o.for(n.colorProvider,"Document Colors",{min:e.RECOMPUTE_TIME}),this._register(t.onDidChangeModel((()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()}))),this._register(t.onDidChangeModelLanguage((()=>this.updateColors()))),this._register(n.colorProvider.onDidChange((()=>this.updateColors()))),this._register(t.onDidChangeConfiguration((e=>{const t=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(141);const i=t!==this._isColorDecoratorsEnabled||e.hasChanged(19),n=e.hasChanged(141);(i||n)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())}))),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(141),this.updateColors()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&"object"==typeof i){const e=i.colorDecorators;if(e&&void 0!==e.enable&&!e.enable)return e.enable}return this._editor.getOption(18)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;const e=this._editor.getModel();e&&this._languageFeaturesService.colorProvider.has(e)&&(this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._timeoutTimer||(this._timeoutTimer=new n._F,this._timeoutTimer.cancelAndSet((()=>{this._timeoutTimer=null,this.beginCompute()}),this._debounceInformation.get(e)))}))),this.beginCompute())}beginCompute(){return b(this,void 0,void 0,(function*(){this._computePromise=(0,n.PG)((e=>b(this,void 0,void 0,(function*(){const t=this._editor.getModel();if(!t)return[];const i=new l.G(!1),n=yield(0,f.E)(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,i.elapsed()),n}))));try{const e=yield this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){(0,s.dL)(e)}}))}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map((e=>({range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:g.qx.EMPTY})));this._editor.changeDecorations((i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach(((t,i)=>this._colorDatas.set(t,e[i])))}))}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[],i=this._editor.getOption(19);for(let n=0;nthis._colorDatas.has(e.id)));return 0===i.length?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};y.ID="editor.contrib.colorDetector",y.RECOMPUTE_TIME=1e3,y=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([v(1,_.Ui),v(2,m.p),v(3,p.A)],y);class w{constructor(){this._onDidChange=new r.Q5,this._computed=0,this._limited=!1}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}(0,d._K)(y.ID,y,1)},65766:(e,t,i)=>{"use strict";i.d(t,{nh:()=>P,PQ:()=>B});var n=i(15393),o=i(71050),s=i(41264),r=i(5976),a=i(24314),l=i(52640),c=i(89431),h=i(4669);class d{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new h.Q5,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new h.Q5,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new h.Q5,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let e=0;e{this.backgroundColor=e.getColor(b.yJx)||s.Il.white}))),this._register(g.nm(this._pickedColorNode,g.tw.CLICK,(()=>this.model.selectNextColorPresentation()))),this._register(g.nm(this._originalColorNode,g.tw.CLICK,(()=>{this.model.color=this.model.originalColor,this.model.flushColor()}))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=s.Il.Format.CSS.format(t.color)||"",this._pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new S(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=s.Il.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:"",this._pickedColorNode.prepend(y(".codicon.codicon-color-mode"))}}class S extends r.JT{constructor(e){super(),this._onClicked=this._register(new h.Q5),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),g.R3(e,this._button);const t=document.createElement("div");t.classList.add("close-button-inner-div"),g.R3(this._button,t),g.R3(t,y(".button"+_.k.asCSSSelector((0,C.q5)("color-picker-close",f.l.close,(0,v.NC)("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._button.onclick=()=>{this._onClicked.fire()}}}class k extends r.JT{constructor(e,t,i,n=!1){super(),this.model=t,this.pixelRatio=i,this._insertButton=null,this._domNode=y(".colorpicker-body"),g.R3(e,this._domNode),this._saturationBox=new x(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new E(this._domNode,this.model,n),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new N(this._domNode,this.model,n),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),n&&(this._insertButton=this._register(new D(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new s.Il(new s.tx(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new s.Il(new s.tx(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=360*(1-e);this.model.color=new s.Il(new s.tx(360===i?0:i,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}}class x extends r.JT{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new h.Q5,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.Q5,this.onColorFlushed=this._onColorFlushed.event,this._domNode=y(".saturation-wrap"),g.R3(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",g.R3(this._domNode,this._canvas),this.selection=y(".saturation-selection"),g.R3(this._domNode,this.selection),this.layout(),this._register(g.nm(this._domNode,g.tw.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(e){if(!(e.target&&e.target instanceof Element))return;this.monitor=this._register(new p.C);const t=g.i(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangePosition(e.pageX-t.left,e.pageY-t.top)),(()=>null));const i=g.nm(document,g.tw.POINTER_UP,(()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)}),!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new s.Il(new s.tx(e.h,1,1,1)),i=this._canvas.getContext("2d"),n=i.createLinearGradient(0,0,this._canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");const o=i.createLinearGradient(0,0,0,this._canvas.height);o.addColorStop(0,"rgba(0, 0, 0, 0)"),o.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this._canvas.width,this._canvas.height),i.fillStyle=s.Il.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=o,i.fill()}paintSelection(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class L extends r.JT{constructor(e,t,i=!1){super(),this.model=t,this._onDidChange=new h.Q5,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new h.Q5,this.onColorFlushed=this._onColorFlushed.event,i?(this.domNode=g.R3(e,y(".standalone-strip")),this.overlay=g.R3(this.domNode,y(".standalone-overlay"))):(this.domNode=g.R3(e,y(".strip")),this.overlay=g.R3(this.domNode,y(".overlay"))),this.slider=g.R3(this.domNode,y(".slider")),this.slider.style.top="0px",this._register(g.nm(this.domNode,g.tw.POINTER_DOWN,(e=>this.onPointerDown(e)))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onPointerDown(e){if(!(e.target&&e.target instanceof Element))return;const t=this._register(new p.C),i=g.i(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangeTop(e.pageY-i.top)),(()=>null));const n=g.nm(document,g.tw.POINTER_UP,(()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")}),!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=(1-e)*this.height+"px"}}class E extends L{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){const{r:t,g:i,b:n}=e.rgba,o=new s.Il(new s.VS(t,i,n,1)),r=new s.Il(new s.VS(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${o} 0%, ${r} 100%)`}getValue(e){return e.hsva.a}}class N extends L{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class D extends r.JT{constructor(e){super(),this._onClicked=this._register(new h.Q5),this.onClicked=this._onClicked.event,this._button=g.R3(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._button.onclick=e=>{this._onClicked.fire()}}get button(){return this._button}}class T extends m.${constructor(e,t,i,n,o=!1){super(),this.model=t,this.pixelRatio=i,this._register(u.PixelRatio.onDidChange((()=>this.layout())));const s=y(".colorpicker-widget");e.appendChild(s),this.header=this._register(new w(s,this.model,n,o)),this.body=this._register(new k(s,this.model,this.pixelRatio,o))}layout(){this.body.layout()}}var I=i(97781),A=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},M=function(e,t){return function(i,n){t(i,n,e)}},R=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class O{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let P=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,i){return n.Aq.fromPromise(this._computeAsync(e,t,i))}_computeAsync(e,t,i){return R(this,void 0,void 0,(function*(){if(!this._editor.hasModel())return[];const e=c.if.get(this._editor);if(!e)return[];for(const i of t){if(!e.isColorDecoration(i))continue;const t=e.getColorData(i.range.getStartPosition());if(t)return[yield H(this,this._editor.getModel(),t.colorInfo,t.provider)]}return[]}))}renderHoverParts(e,t){return V(this,this._editor,this._themeService,t,e)}};P=A([M(1,I.XE)],P);class F{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n}}let B=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}createColorHover(e,t,i){return R(this,void 0,void 0,(function*(){if(!this._editor.hasModel())return null;if(!c.if.get(this._editor))return null;const n=yield(0,l.E)(i,this._editor.getModel(),o.T.None);let s=null,r=null;for(const t of n){const i=t.colorInfo;a.e.containsRange(i.range,e.range)&&(s=i,r=t.provider)}const h=null!=s?s:e,d=null!=r?r:t,u=!!s;return{colorHover:yield H(this,this._editor.getModel(),h,d),foundInEditor:u}}))}updateEditorModel(e){return R(this,void 0,void 0,(function*(){if(!this._editor.hasModel())return;const t=e.model;let i=new a.e(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(yield z(this._editor.getModel(),t,this._color,i,e),i=W(this._editor,i,t))}))}renderHoverParts(e,t){return V(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};function H(e,t,i,n){return R(this,void 0,void 0,(function*(){const r=t.getValueInRange(i.range),{red:c,green:h,blue:u,alpha:g}=i.color,p=new s.VS(Math.round(255*c),Math.round(255*h),Math.round(255*u),g),m=new s.Il(p),f=yield(0,l.R)(t,i,n,o.T.None),_=new d(m,[],0);return _.colorPresentations=f||[],_.guessColorPresentation(m,r),e instanceof P?new O(e,a.e.lift(i.range),_,n):new F(e,a.e.lift(i.range),_,n)}))}function V(e,t,i,n,o){if(0===n.length||!t.hasModel())return r.JT.None;const s=new r.SL,l=n[0],c=t.getModel(),h=l.model,d=s.add(new T(o.fragment,h,t.getOption(137),i,e instanceof B));o.setColorPicker(d);let u=new a.e(l.range.startLineNumber,l.range.startColumn,l.range.endLineNumber,l.range.endColumn);if(e instanceof B){const t=n[0].model.color;e.color=t,z(c,h,t,u,l),s.add(h.onColorFlushed((t=>{e.color=t})))}else s.add(h.onColorFlushed((e=>R(this,void 0,void 0,(function*(){yield z(c,h,e,u,l),u=W(t,u,h,o)})))));return s.add(h.onDidChangeColor((e=>{z(c,h,e,u,l)}))),s}function W(e,t,i,n){let o,s;if(i.presentation.textEdit){o=[i.presentation.textEdit],s=new a.e(i.presentation.textEdit.range.startLineNumber,i.presentation.textEdit.range.startColumn,i.presentation.textEdit.range.endLineNumber,i.presentation.textEdit.range.endColumn);const t=e.getModel()._setTrackedRange(null,s,3);e.pushUndoStop(),e.executeEdits("colorpicker",o),s=e.getModel()._getTrackedRange(t)||s}else o=[{range:t,text:i.presentation.label,forceMoveMarkers:!1}],s=t.setEndPosition(t.endLineNumber,t.startColumn+i.presentation.label.length),e.pushUndoStop(),e.executeEdits("colorpicker",o);return i.presentation.additionalTextEdits&&(o=[...i.presentation.additionalTextEdits],e.executeEdits("colorpicker",o),n&&n.hide()),e.pushUndoStop(),s}function z(e,t,i,n,s){return R(this,void 0,void 0,(function*(){const r=yield(0,l.R)(e,{range:n,color:{red:i.rgba.r/255,green:i.rgba.g/255,blue:i.rgba.b/255,alpha:i.rgba.a}},s.provider,o.T.None);t.colorPresentations=r||[]}))}B=A([M(1,I.XE)],B)},15418:(e,t,i)=>{"use strict";i.d(t,{G:()=>d});var n=i(41264),o=i(82573),s=i(73733),r=i(51381),a=i(5976),l=i(71922),c=i(10637),h=function(e,t){return function(i,n){t(i,n,e)}};class d{constructor(e,t){this._editorWorkerClient=new o.Q8(e,!1,"editorWorkerService",t)}provideDocumentColors(e,t){return i=this,n=void 0,s=function*(){return this._editorWorkerClient.computeDefaultDocumentColors(e.uri)},new((o=void 0)||(o=Promise))((function(e,t){function r(e){try{l(s.next(e))}catch(e){t(e)}}function a(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof o?i:new o((function(e){e(i)}))).then(r,a)}l((s=s.apply(i,n||[])).next())}));var i,n,o,s}provideColorPresentations(e,t,i){const o=t.range,s=t.color,r=s.alpha,a=new n.Il(new n.VS(Math.round(255*s.red),Math.round(255*s.green),Math.round(255*s.blue),r)),l=r?n.Il.Format.CSS.formatRGB(a):n.Il.Format.CSS.formatRGBA(a),c=r?n.Il.Format.CSS.formatHSL(a):n.Il.Format.CSS.formatHSLA(a),h=r?n.Il.Format.CSS.formatHex(a):n.Il.Format.CSS.formatHexA(a),d=[];return d.push({label:l,textEdit:{range:o,text:l}}),d.push({label:c,textEdit:{range:o,text:c}}),d.push({label:h,textEdit:{range:o,text:h}}),d}}let u=class extends a.JT{constructor(e,t,i){super(),this._register(i.colorProvider.register("*",new d(e,t)))}};u=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([h(0,s.q),h(1,r.c_),h(2,l.p)],u),(0,c.y)(u)},2719:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ShowOrFocusStandaloneColorPicker:()=>x});var n=i(16830),o=i(63580),s=i(5976),r=i(65766),a=i(72065),l=i(7286),c=i(91847),h=i(4669),d=i(71922),u=i(29102),g=i(93983),p=i(73733),m=i(51381),f=i(15418),_=i(65321),v=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},b=function(e,t){return function(i,n){t(i,n,e)}},C=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let y=class e extends s.JT{constructor(e,t,i,n,o,s,r){super(),this._editor=e,this._modelService=i,this._keybindingService=n,this._instantiationService=o,this._languageFeatureService=s,this._languageConfigurationService=r,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=u.u.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=u.u.standaloneColorPickerFocused.bindTo(t)}showOrFocus(){var e;this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||null===(e=this._standaloneColorPickerWidget)||void 0===e||e.focus():this._standaloneColorPickerWidget=new w(this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused,this._instantiationService,this._modelService,this._keybindingService,this._languageFeatureService,this._languageConfigurationService))}hide(){var e;this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),null===(e=this._standaloneColorPickerWidget)||void 0===e||e.hide(),this._editor.focus()}insertColor(){var e;null===(e=this._standaloneColorPickerWidget)||void 0===e||e.updateEditor(),this.hide()}static get(t){return t.getContribution(e.ID)}};y.ID="editor.contrib.standaloneColorPickerController",y=v([b(1,g.i6),b(2,p.q),b(3,c.d),b(4,a.TG),b(5,d.p),b(6,m.c_)],y),(0,n._K)(y.ID,y,1);let w=class e extends s.JT{constructor(e,t,i,n,o,s,a,l){var c;super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=i,this._modelService=o,this._keybindingService=s,this._languageFeaturesService=a,this._languageConfigurationService=l,this.body=document.createElement("div"),this._position=void 0,this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new h.Q5),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=n.createInstance(r.PQ,this._editor),this._position=null===(c=this._editor._getViewModel())||void 0===c?void 0:c.getPrimaryCursorState().viewState.position;const d=this._editor.getSelection(),u=d?{startLineNumber:d.startLineNumber,startColumn:d.startColumn,endLineNumber:d.endLineNumber,endColumn:d.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},g=this._register(_.go(this.body));this._register(g.onDidBlur((e=>{this.hide()}))),this._register(g.onDidFocus((e=>{this.focus()}))),this._register(this._editor.onDidChangeCursorPosition((()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()}))),this._register(this._editor.onMouseMove((e=>{var t;const i=null===(t=e.target.element)||void 0===t?void 0:t.classList;i&&i.contains("colorpicker-color-decoration")&&this.hide()}))),this._register(this.onResult((e=>{this._render(e.value,e.foundInEditor)}))),this._start(u),this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return e.ID}getDomNode(){return this.body}getPosition(){if(!this._position)return null;const e=this._editor.getOption(58).above;return{position:this._position,secondaryPosition:this._position,preference:e?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this.body.focus()}_start(e){return C(this,void 0,void 0,(function*(){const t=yield this._computeAsync(e);t&&this._onResult.fire(new S(t.result,t.foundInEditor))}))}_computeAsync(e){return C(this,void 0,void 0,(function*(){if(!this._editor.hasModel())return null;const t={range:e,color:{red:0,green:0,blue:0,alpha:1}},i=yield this._standaloneColorPickerParticipant.createColorHover(t,new f.G(this._modelService,this._languageConfigurationService),this._languageFeaturesService.colorProvider);return i?{result:i.colorHover,foundInEditor:i.foundInEditor}:null}))}_render(e,t){const i=document.createDocumentFragment();let n;const o={fragment:i,statusBar:this._register(new l.mR(this._keybindingService)),setColorPicker:e=>n=e,onContentsChanged:()=>{},hide:()=>this.hide()};if(this._colorHover=e,this._register(this._standaloneColorPickerParticipant.renderHoverParts(o,[e])),void 0===n)return;this.body.classList.add("standalone-colorpicker-body"),this.body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this.body.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px",this.body.tabIndex=0,this.body.appendChild(i),n.layout();const s=n.body,r=s.saturationBox.domNode.clientWidth,a=s.domNode.clientWidth-r-22-8,c=n.body.enterButton;null==c||c.onClicked((()=>{this.updateEditor(),this.hide()}));const h=n.header;h.pickedColorNode.style.width=r+8+"px",h.originalColorNode.style.width=a+"px";const d=n.header.closeButton;null==d||d.onClicked((()=>{this.hide()})),t&&(c&&(c.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};w.ID="editor.contrib.standaloneColorPickerWidget",w=v([b(3,a.TG),b(4,p.q),b(5,c.d),b(6,d.p),b(7,m.c_)],w);class S{constructor(e,t){this.value=e,this.foundInEditor=t}}var k=i(84144);class x extends n.x1{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{value:(0,o.NC)("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:(0,o.NC)({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker"),original:"Show or Focus Standalone Color Picker"},precondition:void 0,menu:[{id:k.eH.CommandPalette}]})}runEditorCommand(e,t){var i;null===(i=y.get(t))||void 0===i||i.showOrFocus()}}class L extends n.R6{constructor(){super({id:"editor.action.hideColorPicker",label:(0,o.NC)({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:u.u.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100}})}run(e,t){var i;null===(i=y.get(t))||void 0===i||i.hide()}}class E extends n.R6{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:(0,o.NC)({key:"insertColorWithStandaloneColorPicker",comment:["Action that inserts color with standalone color picker"]},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:u.u.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100}})}run(e,t){var i;null===(i=y.get(t))||void 0===i||i.insertColor()}}(0,n.Qr)(L),(0,n.Qr)(E),(0,k.r1)(x)},23365:(e,t,i)=>{"use strict";i.r(t);var n=i(22258),o=i(16830),s=i(24314),r=i(29102),a=i(51381),l=i(69386),c=i(50187),h=i(3860);class d{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const n=t.length;if(i+n>e.length)return!1;for(let o=0;o=65&&n<=90&&n+32===s||s>=65&&s<=90&&s+32===n))return!1}return!0}_createOperationsForBlockComment(e,t,i,n,o,r){const a=e.startLineNumber,l=e.startColumn,c=e.endLineNumber,h=e.endColumn,u=o.getLineContent(a),g=o.getLineContent(c);let p,m=u.lastIndexOf(t,l-1+t.length),f=g.indexOf(i,h-1-i.length);if(-1!==m&&-1!==f)if(a===c)u.substring(m+t.length,f).indexOf(i)>=0&&(m=-1,f=-1);else{const e=u.substring(m+t.length),n=g.substring(0,f);(e.indexOf(i)>=0||n.indexOf(i)>=0)&&(m=-1,f=-1)}-1!==m&&-1!==f?(n&&m+t.length0&&32===g.charCodeAt(f-1)&&(i=" "+i,f-=1),p=d._createRemoveBlockCommentOperations(new s.e(a,m+t.length+1,c,f+1),t,i)):(p=d._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=1===p.length?i:null);for(const e of p)r.addTrackedEditOperation(e.range,e.text)}static _createRemoveBlockCommentOperations(e,t,i){const n=[];return s.e.isEmpty(e)?n.push(l.h.delete(new s.e(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(n.push(l.h.delete(new s.e(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),n.push(l.h.delete(new s.e(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),n}static _createAddBlockCommentOperations(e,t,i,n){const o=[];return s.e.isEmpty(e)?o.push(l.h.replace(new s.e(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(o.push(l.h.insert(new c.L(e.startLineNumber,e.startColumn),t+(n?" ":""))),o.push(l.h.insert(new c.L(e.endLineNumber,e.endColumn),(n?" ":"")+i))),o}getEditOperations(e,t){const i=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const o=e.getLanguageIdAtPosition(i,n),s=this.languageConfigurationService.getLanguageConfiguration(o).comments;s&&s.blockCommentStartToken&&s.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,s.blockCommentStartToken,s.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(2===i.length){const e=i[0],t=i[1];return new h.Y(e.range.endLineNumber,e.range.endColumn,t.range.startLineNumber,t.range.startColumn)}{const e=i[0].range,t=this._usedEndToken?-this._usedEndToken.length-1:0;return new h.Y(e.endLineNumber,e.endColumn+t,e.endLineNumber,e.endColumn+t)}}}var u=i(97295);class g{constructor(e,t,i,n,o,s,r){this.languageConfigurationService=e,this._selection=t,this._tabSize=i,this._type=n,this._insertSpace=o,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=s,this._ignoreFirstLine=r||!1}static _gatherPreflightCommentStrings(e,t,i,n){e.tokenization.tokenizeIfCheap(t);const o=e.getLanguageIdAtPosition(t,1),s=n.getLanguageConfiguration(o).comments,r=s?s.lineCommentToken:null;if(!r)return null;const a=[];for(let e=0,n=i-t+1;er?o-1:o}}}var p=i(63580),m=i(84144);class f extends o.R6{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(a.c_);if(!t.hasModel())return;const n=[],o=t.getModel().getOptions(),r=t.getOption(21),l=t.getSelections().map(((e,t)=>({selection:e,index:t,ignoreFirstLine:!1})));l.sort(((e,t)=>s.e.compareRangesUsingStarts(e.selection,t.selection)));let c=l[0];for(let e=1;e{"use strict";i.r(t),i.d(t,{ContextMenuController:()=>v});var n=i(65321),o=i(88609),s=i(74741),r=i(5976),a=i(1432),l=i(16830),c=i(29102),h=i(63580),d=i(84144),u=i(93983),g=i(5606),p=i(91847),m=i(33108),f=i(40382),_=function(e,t){return function(i,n){t(i,n,e)}};let v=class e{static get(t){return t.getContribution(e.ID)}constructor(e,t,i,o,s,a,l,c){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=o,this._keybindingService=s,this._menuService=a,this._configurationService=l,this._workspaceContextService=c,this._toDispose=new r.SL,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu((e=>this._onContextMenu(e)))),this._toDispose.add(this._editor.onMouseWheel((e=>{if(this._contextMenuIsBeingShownCount>0){const t=this._contextViewService.getContextViewElement(),i=e.srcElement;i.shadowRoot&&n.Ay(t)===i.shadowRoot||this._contextViewService.hideContextView()}}))),this._toDispose.add(this._editor.onKeyDown((e=>{this._editor.getOption(22)&&58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.showContextMenu())})))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(22))return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(12===e.target.type)return;if(6===e.target.type&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),11===e.target.type)return this._showScrollbarContextMenu({x:e.event.posx-1,width:2,y:e.event.posy-1,height:2});if(6!==e.target.type&&7!==e.target.type&&1!==e.target.type)return;if(this._editor.focus(),e.target.position){let t=!1;for(const i of this._editor.getSelections())if(i.containsPosition(e.target.position)){t=!0;break}t||this._editor.setPosition(e.target.position)}let t=null;1!==e.target.type&&(t={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(22))return;if(!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?d.eH.SimpleEditorContext:d.eH.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],n=this._menuService.createMenu(t,this._contextKeyService),o=n.getActions({arg:e.uri});n.dispose();for(const t of o){const[,n]=t;let o=0;for(const t of n)if(t instanceof d.NZ){const n=this._getMenuActions(e,t.item.submenu);n.length>0&&(i.push(new s.wY(t.id,t.label,n)),o++)}else i.push(t),o++;o&&i.push(new s.Z0)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const i=this._editor.getOption(58);if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const e=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),i=n.i(this._editor.getDomNode()),o=i.left+e.left,s=i.top+e.top+e.height;t={x:o,y:s}}const s=this._editor.getOption(122)&&!a.gn;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:s?this._editor.getDomNode():void 0,getAnchor:()=>t,getActions:()=>e,getActionViewItem:e=>{const t=this._keybindingFor(e);if(t)return new o.gU(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0});const i=e;return"function"==typeof i.getActionViewItem?i.getActionViewItem():new o.gU(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:e=>this._keybindingFor(e),onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;if((0,f.x)(this._workspaceContextService.getWorkspace()))return;const t=this._editor.getOption(70);let i=0;const n=e=>({id:"menu-action-"+ ++i,label:e.label,tooltip:"",class:void 0,enabled:void 0===e.enabled||e.enabled,checked:e.checked,run:e.run}),o=(e,t,o,r,a)=>{if(!t)return n({label:e,enabled:t,run:()=>{}});const l=e=>()=>{this._configurationService.updateValue(o,e)},c=[];for(const e of a)c.push(n({label:e.label,checked:r===e.value,run:l(e.value)}));return((e,t)=>new s.wY("menu-action-"+ ++i,e,t,void 0))(e,c)},r=[];r.push(n({label:h.NC("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),r.push(new s.Z0),r.push(n({label:h.NC("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),r.push(o(h.NC("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:h.NC("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:h.NC("context.minimap.size.fill","Fill"),value:"fill"},{label:h.NC("context.minimap.size.fit","Fit"),value:"fit"}])),r.push(o(h.NC("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:h.NC("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:h.NC("context.minimap.slider.always","Always"),value:"always"}]));const l=this._editor.getOption(122)&&!a.gn;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>r,onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};v.ID="editor.contrib.contextmenu",v=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([_(1,g.i),_(2,g.u),_(3,u.i6),_(4,p.d),_(5,d.co),_(6,m.Ui),_(7,f.ec)],v);class b extends l.R6{constructor(){super({id:"editor.action.showContextMenu",label:h.NC("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:c.u.textInputFocus,primary:1092,weight:100}})}run(e,t){var i;null===(i=v.get(t))||void 0===i||i.showContextMenu()}}(0,l._K)(v.ID,v,2),(0,l.Qr)(b)},14907:(e,t,i)=>{"use strict";i.r(t);var n=i(16830),o=i(800),s=i(65321),r=i(15393),a=i(73278),l=i(5976),c=i(81170),h=i(66663),d=i(98e3),u=i(92944),g=i(66007),p=i(24314),m=i(3860),f=i(71922),_=i(16467),v=i(4074),b=i(35084),C=i(63580),y=i(84972),w=i(33108),S=i(72065),k=function(e,t){return function(i,n){t(i,n,e)}},x=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};const L="application/vnd.code.copyMetadata";let E=class extends l.JT{constructor(e,t,i,n,o,r){super(),this._bulkEditService=i,this._clipboardService=n,this._configurationService=o,this._languageFeaturesService=r,this.operationIdPool=0,this._editor=e;const a=e.getContainerDomNode();this._register((0,s.nm)(a,"copy",(e=>this.handleCopy(e)))),this._register((0,s.nm)(a,"cut",(e=>this.handleCopy(e)))),this._register((0,s.nm)(a,"paste",(e=>this.handlePaste(e)),!0)),this._pasteProgressManager=this._register(new v.InlineProgressManager("pasteIntoEditor",e,t))}arePasteActionsEnabled(e){return!!this._configurationService.getValue("editor.experimental.pasteActions.enabled",{resource:e.uri})||e.uri.scheme===h.lg.vscodeNotebookCell}handleCopy(e){var t;if(!e.clipboardData||!this._editor.hasTextFocus())return;const i=this._editor.getModel(),n=this._editor.getSelections();if(!i||!(null==n?void 0:n.length))return;if(!this.arePasteActionsEnabled(i))return;const o=[...n],s=n[0],a=s.isEmpty();if(a){if(!this._editor.getOption(35))return;o[0]=new p.e(s.startLineNumber,0,s.startLineNumber,i.getLineLength(s.startLineNumber))}const l=this._languageFeaturesService.documentPasteEditProvider.ordered(i).filter((e=>!!e.prepareDocumentPaste));if(!l.length)return void this.setCopyMetadata(e.clipboardData,{wasFromEmptySelection:a});const c=(0,u.B)(e.clipboardData),h=(0,d.R)();this.setCopyMetadata(e.clipboardData,{id:h,wasFromEmptySelection:a});const g=(0,r.PG)((e=>x(this,void 0,void 0,(function*(){const t=yield Promise.all(l.map((t=>t.prepareDocumentPaste(i,o,c,e))));for(const e of t)null==e||e.forEach(((e,t)=>{c.replace(t,e)}));return c}))));null===(t=this._currentClipboardItem)||void 0===t||t.dataTransferPromise.cancel(),this._currentClipboardItem={handle:h,dataTransferPromise:g}}setCopyMetadata(e,t){e.setData(L,JSON.stringify(t))}handlePaste(e){var t,i;return x(this,void 0,void 0,(function*(){if(!e.clipboardData||!this._editor.hasTextFocus())return;const n=this.operationIdPool++;null===(t=this._currentOperation)||void 0===t||t.promise.cancel(),this._pasteProgressManager.clear();const o=this._editor.getSelections();if(!(null==o?void 0:o.length)||!this._editor.hasModel())return;const s=this._editor.getModel();if(!this.arePasteActionsEnabled(s))return;let l;const h=null===(i=e.clipboardData)||void 0===i?void 0:i.getData(L);h&&"string"==typeof h&&(l=JSON.parse(h));const d=this._languageFeaturesService.documentPasteEditProvider.ordered(s);if(!d.length)return;e.preventDefault(),e.stopImmediatePropagation();const p=(0,r.PG)((t=>x(this,void 0,void 0,(function*(){var i,r,h,p;const f=this._editor;if(!f.hasModel())return;const v=new _.Dl(f,3,void 0,t);try{this._pasteProgressManager.setAtPosition(o[0].getEndPosition(),(0,C.NC)("pasteIntoEditorProgress","Running paste handlers. Click to cancel"),{cancel:()=>v.cancel()});const t=(0,u.B)(e.clipboardData);if((null==l?void 0:l.id)&&(null===(i=this._currentClipboardItem)||void 0===i?void 0:i.handle)===l.id){const e=yield this._currentClipboardItem.dataTransferPromise;if(v.token.isCancellationRequested)return;e.forEach(((e,i)=>{t.replace(i,e)}))}if(!t.has(c.v.uriList)){const e=yield this._clipboardService.readResources();if(v.token.isCancellationRequested)return;e.length&&t.append(c.v.uriList,(0,a.ZO)(a.Z0.create(e)))}t.delete(L);const n=yield this.getProviderPasteEdit(d,t,s,o,v.token);if(v.token.isCancellationRequested)return;if(n){const e="string"==typeof n.insertText?b.Yj.escape(n.insertText):n.insertText.snippet,t={edits:[new g.Gl(s.uri,{range:m.Y.liftSelection(f.getSelection()),text:e,insertAsSnippet:!0}),...null!==(h=null===(r=n.additionalEdit)||void 0===r?void 0:r.edits)&&void 0!==h?h:[]]};return void(yield this._bulkEditService.apply(t,{editor:f}))}yield this.applyDefaultPasteHandler(t,l,v.token)}finally{v.dispose(),(null===(p=this._currentOperation)||void 0===p?void 0:p.id)===n&&(this._pasteProgressManager.clear(),this._currentOperation=void 0)}}))));this._currentOperation={id:n,promise:p}}))}getProviderPasteEdit(e,t,i,n,o){return(0,r.eP)((()=>x(this,void 0,void 0,(function*(){for(const s of e){if(o.isCancellationRequested)return;if(!N(s,t))continue;const e=yield s.provideDocumentPasteEdits(i,n,t,o);if(e)return e}})))(),o)}applyDefaultPasteHandler(e,t,i){var n;return x(this,void 0,void 0,(function*(){const o=null!==(n=e.get(c.v.text))&&void 0!==n?n:e.get("text");if(!o)return;const s=yield o.asString();i.isCancellationRequested||this._editor.trigger("keyboard","paste",{text:s,pasteOnNewLine:null==t?void 0:t.wasFromEmptySelection,multicursorText:null})}))}};function N(e,t){return e.pasteMimeTypes.some((e=>t.matches(e)))}E.ID="editor.contrib.copyPasteActionController",E=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([k(1,S.TG),k(2,g.vu),k(3,y.p),k(4,w.Ui),k(5,f.p)],E);var D=i(23193),T=i(89872);(0,n._K)(E.ID,E,0),T.B.as(D.IP.Configuration).registerConfiguration(Object.assign(Object.assign({},o.wk),{properties:{"editor.experimental.pasteActions.enabled":{type:"boolean",scope:5,description:C.NC("pasteActions","Enable/disable running edits from extensions on paste."),default:!1}}}))},41895:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CursorRedo:()=>d,CursorUndo:()=>h,CursorUndoRedoController:()=>c});var n=i(5976),o=i(16830),s=i(29102),r=i(63580);class a{constructor(e){this.selections=e}equals(e){const t=this.selections.length;if(t!==e.selections.length)return!1;for(let i=0;i{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeModelContent((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeCursorSelection((t=>{if(this._isCursorUndoRedo)return;if(!t.oldSelections)return;if(t.oldModelVersionId!==t.modelVersionId)return;const i=new a(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new l(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())})))}cursorUndo(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new l(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new l(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}c.ID="editor.contrib.cursorUndoRedoController";class h extends o.R6{constructor(){super({id:"cursorUndo",label:r.NC("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:s.u.textInputFocus,primary:2099,weight:100}})}run(e,t,i){var n;null===(n=c.get(t))||void 0===n||n.cursorUndo()}}class d extends o.R6{constructor(){super({id:"cursorRedo",label:r.NC("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){var n;null===(n=c.get(t))||void 0===n||n.cursorRedo()}}(0,o._K)(c.ID,c,0),(0,o.Qr)(h),(0,o.Qr)(d)},36022:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DragAndDropController:()=>u});var n=i(5976),o=i(1432),s=i(16830),r=i(50187),a=i(24314),l=i(3860),c=i(1231);class h{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new a.e(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new l.Y(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new l.Y(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumberthis._onEditorMouseDown(e)))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(e)))),this._register(this._editor.onMouseDrag((e=>this._onEditorMouseDrag(e)))),this._register(this._editor.onMouseDrop((e=>this._onEditorMouseDrop(e)))),this._register(this._editor.onMouseDropCanceled((()=>this._onEditorMouseDropCanceled()))),this._register(this._editor.onKeyDown((e=>this.onEditorKeyDown(e)))),this._register(this._editor.onKeyUp((e=>this.onEditorKeyUp(e)))),this._register(this._editor.onDidBlurEditorWidget((()=>this.onEditorBlur()))),this._register(this._editor.onDidBlurEditorText((()=>this.onEditorBlur()))),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){this._editor.getOption(33)&&!this._editor.getOption(20)&&(d(e)&&(this._modifierPressed=!0),this._mouseDown&&d(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){this._editor.getOption(33)&&!this._editor.getOption(20)&&(d(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===u.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(null===this._dragSelection){const e=(this._editor.getSelections()||[]).filter((e=>t.position&&e.containsPosition(t.position)));if(1!==e.length)return;this._dragSelection=e[0]}d(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new r.L(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){let i=null;if(e.event.shiftKey){const e=this._editor.getSelection();if(e){const{selectionStartLineNumber:n,selectionStartColumn:o}=e;i=[new l.Y(n,o,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map((e=>e.containsPosition(t)?new l.Y(t.lineNumber,t.column,t.lineNumber,t.column):e));this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(d(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(u.ID,new h(this._dragSelection,t,d(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){this._dndDecorationIds.set([{range:new a.e(e.lineNumber,e.column,e.lineNumber,e.column),options:u._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return 6===e.type||7===e.type}_hitMargin(e){return 2===e.type||3===e.type||4===e.type}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}u.ID="editor.contrib.dragAndDrop",u.TRIGGER_KEY_VALUE=o.dz?6:5,u._DECORATION_OPTIONS=c.qx.register({description:"dnd-target",className:"dnd-target"}),(0,s._K)(u.ID,u,2)},76917:(e,t,i)=>{"use strict";i.r(t);var n=i(71050),o=i(98401),s=i(70666),r=i(88216),a=i(30335),l=i(94565);l.P.registerCommand("_executeDocumentSymbolProvider",(function(e,...t){return i=this,l=void 0,h=function*(){const[i]=t;(0,o.p_)(s.o.isUri(i));const l=e.get(a.Je),c=e.get(r.S),h=yield c.createModelReference(i);try{return(yield l.getOrCreate(h.object.textEditorModel,n.T.None)).getTopLevelSymbols()}finally{h.dispose()}},new((c=void 0)||(c=Promise))((function(e,t){function n(e){try{s(h.next(e))}catch(e){t(e)}}function o(e){try{s(h.throw(e))}catch(e){t(e)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof c?i:new c((function(e){e(i)}))).then(n,o)}s((h=h.apply(i,l||[])).next())}));var i,l,c,h}))},30335:(e,t,i)=>{"use strict";i.d(t,{C3:()=>C,H3:()=>b,Je:()=>y,sT:()=>v});var n=i(9488),o=i(71050),s=i(17301),r=i(53725),a=i(43702),l=i(50187),c=i(24314),h=i(88191),d=i(72065),u=i(65026),g=i(73733),p=i(5976),m=i(71922),f=function(e,t){return function(i,n){t(i,n,e)}};class _{remove(){var e;null===(e=this.parent)||void 0===e||e.children.delete(this.id)}static findId(e,t){let i;"string"==typeof e?i=`${t.id}/${e}`:(i=`${t.id}/${e.name}`,void 0!==t.children.get(i)&&(i=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let n=i;for(let e=0;void 0!==t.children.get(n);e++)n=`${i}_${e}`;return n}static empty(e){return 0===e.children.size}}class v extends _{constructor(e,t,i){super(),this.id=e,this.parent=t,this.symbol=i,this.children=new Map}}class b extends _{constructor(e,t,i,n){super(),this.id=e,this.parent=t,this.label=i,this.order=n,this.children=new Map}}class C extends _{static create(e,t,i){const r=new o.A(i),a=new C(t.uri),l=e.ordered(t),c=l.map(((e,i)=>{var n;const o=_.findId(`provider_${i}`,a),l=new b(o,a,null!==(n=e.displayName)&&void 0!==n?n:"Unknown Outline Provider",i);return Promise.resolve(e.provideDocumentSymbols(t,r.token)).then((e=>{for(const t of e||[])C._makeOutlineElement(t,l);return l}),(e=>((0,s.Cp)(e),l))).then((e=>{_.empty(e)?e.remove():a._groups.set(o,e)}))})),h=e.onDidChange((()=>{const i=e.ordered(t);(0,n.fS)(i,l)||r.cancel()}));return Promise.all(c).then((()=>r.token.isCancellationRequested&&!i.isCancellationRequested?C.create(e,t,i):a._compact())).finally((()=>{h.dispose()}))}static _makeOutlineElement(e,t){const i=_.findId(e,t),n=new v(i,t,e);if(e.children)for(const t of e.children)C._makeOutlineElement(t,n);t.children.set(n.id,n)}constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}_compact(){let e=0;for(const[t,i]of this._groups)0===i.children.size?this._groups.delete(t):e+=1;if(1!==e)this.children=this._groups;else{const e=r.$.first(this._groups.values());for(const[,t]of e.children)t.parent=this,this.children.set(t.id,t)}return this}getTopLevelSymbols(){const e=[];for(const t of this.children.values())t instanceof v?e.push(t.symbol):e.push(...r.$.map(t.children.values(),(e=>e.symbol)));return e.sort(((e,t)=>c.e.compareRangesUsingStarts(e.range,t.range)))}asListOfDocumentSymbols(){const e=this.getTopLevelSymbols(),t=[];return C._flattenDocumentSymbols(t,e,""),t.sort(((e,t)=>l.L.compare(c.e.getStartPosition(e.range),c.e.getStartPosition(t.range))||l.L.compare(c.e.getEndPosition(t.range),c.e.getEndPosition(e.range))))}static _flattenDocumentSymbols(e,t,i){for(const n of t)e.push({kind:n.kind,tags:n.tags,name:n.name,detail:n.detail,containerName:n.containerName||i,range:n.range,selectionRange:n.selectionRange,children:void 0}),n.children&&C._flattenDocumentSymbols(e,n.children,n.name)}}const y=(0,d.yh)("IOutlineModelService");let w=class{constructor(e,t,i){this._languageFeaturesService=e,this._disposables=new p.SL,this._cache=new a.z6(10,.7),this._debounceInformation=t.for(e.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(i.onModelRemoved((e=>{this._cache.delete(e.id)})))}dispose(){this._disposables.dispose()}getOrCreate(e,t){return i=this,s=void 0,a=function*(){const i=this._languageFeaturesService.documentSymbolProvider,s=i.ordered(e);let r=this._cache.get(e.id);if(!r||r.versionId!==e.getVersionId()||!(0,n.fS)(r.provider,s)){const t=new o.A;r={versionId:e.getVersionId(),provider:s,promiseCnt:0,source:t,promise:C.create(i,e,t.token),model:void 0},this._cache.set(e.id,r);const n=Date.now();r.promise.then((t=>{r.model=t,this._debounceInformation.update(e,Date.now()-n)})).catch((t=>{this._cache.delete(e.id)}))}if(r.model)return r.model;r.promiseCnt+=1;const a=t.onCancellationRequested((()=>{0==--r.promiseCnt&&(r.source.cancel(),this._cache.delete(e.id))}));try{return yield r.promise}finally{a.dispose()}},new((r=void 0)||(r=Promise))((function(e,t){function n(e){try{l(a.next(e))}catch(e){t(e)}}function o(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r((function(e){e(i)}))).then(n,o)}l((a=a.apply(i,s||[])).next())}));var i,s,r,a}};w=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([f(0,m.p),f(1,h.A),f(2,g.q)],w),(0,u.z)(y,w,1)},22111:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DropIntoEditorController:()=>Q});var n=i(9488),o=i(15393),s=i(73278),r=i(5976),a=i(92944),l=i(16830),c=i(66007),h=i(24314),d=i(71922);class u{constructor(e){this.identifier=e}}var g=i(65026),p=i(72065);const m=(0,p.yh)("treeViewsDndService");(0,g.z)(m,class{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}},1);var f=i(65321),_=i(43416),v=i(74741),b=i(4669),C=i(63580),y=i(93983),w=i(5606),S=i(91847),k=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},x=function(e,t){return function(i,n){t(i,n,e)}};const L="editor.changeDropType",E=new y.uy("dropWidgetVisible",!1,(0,C.NC)("dropWidgetVisible","Whether the drop widget is showing"));let N=class e extends r.JT{constructor(e,t,i,n,o,s,a){super(),this.editor=e,this.range=t,this.edits=i,this.onSelectNewEdit=n,this._contextMenuService=o,this._keybindingService=a,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.dropWidgetVisible=E.bindTo(s),this.dropWidgetVisible.set(!0),this._register((0,r.OF)((()=>this.dropWidgetVisible.reset()))),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register((0,r.OF)((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition((e=>{t.containsPosition(e.position)||this.dispose()}))),this._register(b.ju.runAndSubscribe(a.onDidUpdateKeybindings,(()=>{this._updateButtonTitle()})))}_updateButtonTitle(){var e;const t=null===(e=this._keybindingService.lookupKeybinding(L))||void 0===e?void 0:e.getLabel();this.button.element.title=t?(0,C.NC)("postDropWidgetTitleWithBinding","Show drop options... ({0})",t):(0,C.NC)("postDropWidgetTitle","Show drop options...")}create(){this.domNode=f.$(".post-drop-widget"),this.button=this._register(new _.z(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(f.nm(this.domNode,f.tw.CLICK,(()=>this.showDropSelector())))}getId(){return e.ID}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showDropSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=f.i(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map(((e,t)=>(0,v.xw)({id:"",label:e.label,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}})))})}};N.ID="editor.widget.postDropWidget",N=k([x(4,w.i),x(5,y.i6),x(6,S.d)],N);let D=class extends r.JT{constructor(e,t){super(),this._editor=e,this._instantiationService=t,this._currentWidget=this._register(new r.XK),this._register(b.ju.any(e.onDidChangeModel,e.onDidChangeModelContent)((()=>this.clear())))}show(e,t,i){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(N,this._editor,e,t,i))}clear(){this._currentWidget.clear()}changeExistingDropType(){var e;null===(e=this._currentWidget.value)||void 0===e||e.showDropSelector()}};D=k([x(1,p.TG)],D);var T=i(16467),I=i(4074),A=i(35084),M=i(16021),R=i(40382),O=i(81170),P=i(66663),F=i(95935),B=i(70666),H=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class V{constructor(){this.dropMimeTypes=[O.v.text,"text"]}provideDocumentOnDropEdits(e,t,i,n){var o;return H(this,void 0,void 0,(function*(){const e=null!==(o=i.get("text"))&&void 0!==o?o:i.get(O.v.text);if(!e)return;if(i.has(O.v.uriList))return;const t=yield e.asString();return{label:(0,C.NC)("defaultDropProvider.text.label","Insert Plain Text"),insertText:t}}))}}class W{constructor(){this.dropMimeTypes=[O.v.uriList]}provideDocumentOnDropEdits(e,t,i,n){return H(this,void 0,void 0,(function*(){const e=yield U(i);if(!e.length||n.isCancellationRequested)return;let t=0;const o=e.map((({uri:e,originalText:i})=>e.scheme===P.lg.file?e.fsPath:(t++,i))).join(" ");let s;return s=t>0?e.length>1?(0,C.NC)("defaultDropProvider.uriList.uris","Insert Uris"):(0,C.NC)("defaultDropProvider.uriList.uri","Insert Uri"):e.length>1?(0,C.NC)("defaultDropProvider.uriList.paths","Insert Paths"):(0,C.NC)("defaultDropProvider.uriList.path","Insert Path"),{insertText:o,label:s}}))}}let z=class{constructor(e){this._workspaceContextService=e,this.dropMimeTypes=[O.v.uriList]}provideDocumentOnDropEdits(e,t,i,o){return H(this,void 0,void 0,(function*(){const e=yield U(i);if(!e.length||o.isCancellationRequested)return;const t=(0,n.kX)(e.map((({uri:e})=>{const t=this._workspaceContextService.getWorkspaceFolder(e);return t?(0,F.lX)(t.uri,e):void 0})));return t.length?{insertText:t.join(" "),label:e.length>1?(0,C.NC)("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):(0,C.NC)("defaultDropProvider.uriList.relativePath","Insert Relative Path")}:void 0}))}};function U(e){return H(this,void 0,void 0,(function*(){const t=e.get(O.v.uriList);if(!t)return[];const i=yield t.asString(),n=[];for(const e of s.Z0.parse(i))try{n.push({uri:B.o.parse(e),originalText:e})}catch(e){}return n}))}var j,K;z=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(j=0,K=R.ec,function(e,t){K(e,t,j)})],z);let q=!1;var $=function(e,t){return function(i,n){t(i,n,e)}},G=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let Q=class e extends r.JT{static get(t){return t.getContribution(e.ID)}constructor(e,t,i,n,o,s){super(),this._bulkEditService=n,this._languageFeaturesService=o,this._treeViewsDragAndDropService=s,this.operationIdPool=0,this.treeItemsTransfer=M.Ej.getInstance(),this._dropProgressManager=this._register(t.createInstance(I.InlineProgressManager,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(D,e)),this._register(e.onDropIntoEditor((t=>this.onDropIntoEditor(e,t.position,t.event)))),function(e,t){q||(q=!0,e.documentOnDropEditProvider.register("*",new V),e.documentOnDropEditProvider.register("*",new W),e.documentOnDropEditProvider.register("*",new z(t)))}(this._languageFeaturesService,i)}changeDropType(){this._postDropWidgetManager.changeExistingDropType()}onDropIntoEditor(e,t,i){var s;return G(this,void 0,void 0,(function*(){if(!i.dataTransfer||!e.hasModel())return;null===(s=this._currentOperation)||void 0===s||s.promise.cancel(),this._dropProgressManager.clear(),e.focus(),e.setPosition(t);const r=this.operationIdPool++,a=(0,o.PG)((s=>G(this,void 0,void 0,(function*(){var a;const l=new T.Dl(e,1,void 0,s);this._dropProgressManager.setAtPosition(t,(0,C.NC)("dropIntoEditorProgress","Running drop handlers. Click to cancel"),{cancel:()=>l.cancel()});try{const r=yield this.extractDataTransferData(i);if(0===r.size||l.token.isCancellationRequested)return;const a=e.getModel();if(!a)return;const c=this._languageFeaturesService.documentOnDropEditProvider.ordered(a).filter((e=>!e.dropMimeTypes||e.dropMimeTypes.some((e=>r.matches(e))))),h=yield(0,o.eP)(Promise.all(c.map((e=>e.provideDocumentOnDropEdits(a,t,r,l.token)))),l.token);if(l.token.isCancellationRequested)return;h&&(yield this.applyDropResult(e,t,0,(0,n.kX)(h),s))}finally{l.dispose(),(null===(a=this._currentOperation)||void 0===a?void 0:a.id)===r&&(this._dropProgressManager.clear(),this._currentOperation=void 0)}}))));this._currentOperation={id:r,promise:a}}))}extractDataTransferData(e){return G(this,void 0,void 0,(function*(){if(!e.dataTransfer)return new s.Hl;const t=(0,a.B)(e.dataTransfer);if((0,a.d)(t,e),this.treeItemsTransfer.hasData(u.prototype)){const e=this.treeItemsTransfer.getData(u.prototype);if(Array.isArray(e))for(const i of e){const e=yield this._treeViewsDragAndDropService.removeDragOperationTransfer(i.identifier);if(e)for(const[i,n]of e.entries())t.replace(i,n)}}return t}))}applyDropResult(e,t,i,n,o){var s,r;return G(this,void 0,void 0,(function*(){const a=e.getModel();if(!a)return;const l=n[i];if(!l)return;const d="string"==typeof l.insertText?A.Yj.escape(l.insertText):l.insertText.snippet,u={edits:[new c.Gl(a.uri,{range:h.e.fromPositions(t),text:d,insertAsSnippet:!0}),...null!==(r=null===(s=l.additionalEdit)||void 0===s?void 0:s.edits)&&void 0!==r?r:[]]},g=a.deltaDecorations([],[{range:h.e.fromPositions(t),options:{description:"drop-line-suffix",stickiness:0}}]),p=yield this._bulkEditService.apply(u,{editor:e,token:o}),m=a.getDecorationRange(g[0]);a.deltaDecorations(g,[]),p.isApplied&&n.length>1&&"afterDrop"===e.getOptions().get(34).showDropSelector&&this._postDropWidgetManager.show(null!=m?m:h.e.fromPositions(t),{activeEditIndex:i,allEdits:n},(i=>G(this,void 0,void 0,(function*(){yield a.undo(),this.applyDropResult(e,t,i,n,o)}))))}))}};Q.ID="editor.contrib.dropIntoEditorController",Q=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([$(1,p.TG),$(2,R.ec),$(3,c.vu),$(4,d.p),$(5,m)],Q),(0,l._K)(Q.ID,Q,2),(0,l.fK)(new class extends l._l{constructor(){super({id:L,precondition:E,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t,i){var n;null===(n=Q.get(t))||void 0===n||n.changeDropType()}})},16467:(e,t,i)=>{"use strict";i.d(t,{yy:()=>f,Dl:()=>_,YQ:()=>v});var n=i(97295),o=i(24314),s=i(71050),r=i(5976),a=i(16830),l=i(93983),c=i(91741),h=i(72065),d=i(65026),u=i(63580);const g=(0,h.yh)("IEditorCancelService"),p=new l.uy("cancellableOperation",!1,(0,u.NC)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));(0,d.z)(g,class{constructor(){this._tokens=new WeakMap}add(e,t){let i,n=this._tokens.get(e);return n||(n=e.invokeWithinContext((e=>({key:p.bindTo(e.get(l.i6)),tokens:new c.S}))),this._tokens.set(e,n)),n.key.set(!0),i=n.tokens.push(t),()=>{i&&(i(),n.key.set(!n.tokens.isEmpty()),i=void 0)}}cancel(e){const t=this._tokens.get(e);if(!t)return;const i=t.tokens.pop();i&&(i.cancel(),t.key.set(!t.tokens.isEmpty()))}},1);class m extends s.A{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext((t=>t.get(g).add(e,this)))}dispose(){this._unregister(),super.dispose()}}(0,a.fK)(new class extends a._l{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:p})}runEditorCommand(e,t){e.get(g).cancel(t)}});class f{constructor(e,t){if(this.flags=t,0!=(1&this.flags)){const t=e.getModel();this.modelVersionId=t?n.WU("{0}#{1}",t.uri.toString(),t.getVersionId()):null}else this.modelVersionId=null;0!=(4&this.flags)?this.position=e.getPosition():this.position=null,0!=(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!=(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof f))return!1;const t=e;return this.modelVersionId===t.modelVersionId&&this.scrollLeft===t.scrollLeft&&this.scrollTop===t.scrollTop&&!(!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position))&&!(!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))}validate(e){return this._equals(new f(e,this.flags))}}class _ extends m{constructor(e,t,i,n){super(e,n),this._listener=new r.SL,4&t&&this._listener.add(e.onDidChangeCursorPosition((e=>{i&&o.e.containsPosition(i,e.position)||this.cancel()}))),2&t&&this._listener.add(e.onDidChangeCursorSelection((e=>{i&&o.e.containsRange(i,e.selection)||this.cancel()}))),8&t&&this._listener.add(e.onDidScrollChange((e=>this.cancel()))),1&t&&(this._listener.add(e.onDidChangeModel((e=>this.cancel()))),this._listener.add(e.onDidChangeModelContent((e=>this.cancel()))))}dispose(){this._listener.dispose(),super.dispose()}}class v extends s.A{constructor(e,t){super(t),this._listener=e.onDidChangeContent((()=>this.cancel()))}dispose(){this._listener.dispose(),super.dispose()}}},31633:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CommonFindController:()=>st,FindController:()=>rt,MatchFindAction:()=>dt,MoveToMatchFindAction:()=>pt,NextMatchFindAction:()=>ut,NextSelectionMatchFindAction:()=>ft,PreviousMatchFindAction:()=>gt,PreviousSelectionMatchFindAction:()=>_t,SelectionMatchFindAction:()=>mt,StartFindAction:()=>at,StartFindReplaceAction:()=>vt,StartFindWithArgsAction:()=>ct,StartFindWithSelectionAction:()=>ht,getSelectionSearchString:()=>ot});var n=i(15393),o=i(5976),s=i(97295),r=i(16830),a=i(8625),l=i(29102),c=i(84973),h=i(9488),d=i(61329),u=i(50187),g=i(24314),p=i(3860),m=i(77277),f=i(1231),_=i(73910),v=i(97781);class b{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map((e=>this._editor.getModel().getDecorationRange(e))).filter((e=>!!e));if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){const t=e{if(null!==this._highlightedDecorationId&&(e.changeDecorationOptions(this._highlightedDecorationId,b._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),null!==t&&(this._highlightedDecorationId=t,e.changeDecorationOptions(this._highlightedDecorationId,b._CURRENT_FIND_MATCH_DECORATION)),null!==this._rangeHighlightDecorationId&&(e.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),null!==t){let i=this._editor.getModel().getDecorationRange(t);if(i.startLineNumber!==i.endLineNumber&&1===i.endColumn){const e=i.endLineNumber-1,t=this._editor.getModel().getLineMaxColumn(e);i=new g.e(i.startLineNumber,i.startColumn,e,t)}this._rangeHighlightDecorationId=e.addDecoration(i,b._RANGE_HIGHLIGHT_DECORATION)}})),i}set(e,t){this._editor.changeDecorations((i=>{let n=b._FIND_MATCH_DECORATION;const o=[];if(e.length>1e3){n=b._FIND_MATCH_NO_OVERVIEW_DECORATION;const t=this._editor.getModel().getLineCount(),i=this._editor.getLayoutInfo().height/t,s=Math.max(2,Math.ceil(3/i));let r=e[0].range.startLineNumber,a=e[0].range.endLineNumber;for(let t=1,i=e.length;t=i.startLineNumber?i.endLineNumber>a&&(a=i.endLineNumber):(o.push({range:new g.e(r,1,a,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),r=i.startLineNumber,a=i.endLineNumber)}o.push({range:new g.e(r,1,a,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const s=new Array(e.length);for(let t=0,i=e.length;ti.removeDecoration(e))),this._findScopeDecorationIds=[]),(null==t?void 0:t.length)&&(this._findScopeDecorationIds=t.map((e=>i.addDecoration(e,b._FIND_SCOPE_DECORATION))))}))}matchBeforePosition(e){if(0===this._decorations.length)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(n&&!(n.endLineNumber>e.lineNumber)){if(n.endLineNumbere.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(0===this._decorations.length)return null;for(let t=0,i=this._decorations.length;te.lineNumber)return n;if(!(n.startColumn0){const e=[];for(let t=0;tg.e.compareRangesUsingStarts(e.range,t.range)));const i=[];let n=e[0];for(let t=1;t0?t[0].toUpperCase()+t.substr(1):e[0][0].toUpperCase()!==e[0][0]&&t.length>0?t[0].toLowerCase()+t.substr(1):t}return t}function w(e,t,i){return-1!==e[0].indexOf(i)&&-1!==t.indexOf(i)&&e[0].split(i).length===t.split(i).length}function S(e,t,i){const n=t.split(i),o=e[0].split(i);let s="";return n.forEach(((e,t)=>{s+=y([o[t]],e)+i})),s.slice(0,-1)}class k{constructor(e){this.staticValue=e,this.kind=0}}class x{constructor(e){this.pieces=e,this.kind=1}}class L{static fromStaticValue(e){return new L([E.staticValue(e)])}get hasReplacementPatterns(){return 1===this._state.kind}constructor(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new k(e[0].staticValue):this._state=new x(e):this._state=new k("")}buildReplaceString(e,t){if(0===this._state.kind)return t?y(e,this._state.staticValue):this._state.staticValue;let i="";for(let t=0,n=this._state.pieces.length;t0){const e=[],t=n.caseOps.length;let i=0;for(let s=0,r=o.length;s=t){e.push(o.slice(s));break}switch(n.caseOps[i]){case"U":e.push(o[s].toUpperCase());break;case"u":e.push(o[s].toUpperCase()),i++;break;case"L":e.push(o[s].toLowerCase());break;case"l":e.push(o[s].toLowerCase()),i++;break;default:e.push(o[s])}}o=e.join("")}i+=o}return i}static _substitute(e,t){if(null===t)return"";if(0===e)return t[0];let i="";for(;e>0;){if(ethis.research(!1)),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition((e=>{3!==e.reason&&5!==e.reason&&6!==e.reason||this._decorations.setStartPosition(this._editor.getPosition())}))),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent((e=>{this._ignoreModelContentChanged||(e.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())}))),this._toDispose.add(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,(0,o.B9)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){!this._isDisposed&&this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet((()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}),240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;void 0!==t?null!==t&&(i=Array.isArray(t)?t:[t]):i=this._decorations.getFindScopes(),null!==i&&(i=i.map((e=>{if(e.startLineNumber!==e.endLineNumber){let t=e.endLineNumber;return 1===e.endColumn&&(t-=1),new g.e(e.startLineNumber,1,t,this._editor.getModel().getLineMaxColumn(t))}return e})));const n=this._findMatches(i,!1,G);this._decorations.set(n,i);const o=this._editor.getSelection();let s=this._decorations.getCurrentMatchesPosition(o);if(0===s&&n.length>0){const e=(0,h.lG)(n.map((e=>e.range)),(e=>g.e.compareRangesUsingStarts(e,o)>=0));s=e>0?e-1+1:s}this._state.changeMatchInfo(s,this._decorations.getCount(),void 0),e&&this._editor.getOption(39).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){const t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const o=this._editor.getModel();return t||1===n?(1===i?i=o.getLineCount():i--,n=o.getLineMaxColumn(i)):n--,new u.L(i,n)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){const t=this._decorations.matchAfterPosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const o=this._editor.getModel();return t||n===o.getLineMaxColumn(i)?(i===o.getLineCount()?i=1:i++,n=1):n++,new u.L(i,n)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const t=this._decorations.matchBeforePosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()=o)break;const s=e.charCodeAt(n);if(36===s){i.emitUnchanged(n-1),i.emitStatic("$",n+1);continue}if(48===s||38===s){i.emitUnchanged(n-1),i.emitMatchIndex(0,n+1,t),t.length=0;continue}if(49<=s&&s<=57){let r=s-48;if(n+1=o)break;const s=e.charCodeAt(n);switch(s){case 92:i.emitUnchanged(n-1),i.emitStatic("\\",n+1);break;case 110:i.emitUnchanged(n-1),i.emitStatic("\n",n+1);break;case 116:i.emitUnchanged(n-1),i.emitStatic("\t",n+1);break;case 117:case 85:case 108:case 76:i.emitUnchanged(n-1),i.emitStatic("",n+1),t.push(String.fromCharCode(s))}}}return i.finalize()}(this._state.replaceString):L.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;const e=this._getReplacePattern(),t=this._editor.getSelection(),i=this._getNextMatch(t.getStartPosition(),!0,!1);if(i)if(t.equalsRange(i.range)){const n=e.buildReplaceString(i.matches,this._state.preserveCase),o=new d.T4(t,n);this._executeEditorCommand("replace",o),this._decorations.setStartPosition(new u.L(t.startLineNumber,t.startColumn+n.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(i.range)}_findMatches(e,t,i){const n=(e||[null]).map((e=>Q._getSearchRange(this._editor.getModel(),e)));return this._editor.getModel().findMatches(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(125):null,t,i)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();null===e&&this._state.matchesCount>=G?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const e=new m.bc(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(125):null).parseSearchRequest();if(!e)return;let t=e.regex;if(!t.multiline){let e="mu";t.ignoreCase&&(e+="i"),t.global&&(e+="g"),t=new RegExp(t.source,e)}const i=this._editor.getModel(),n=i.getValue(1),o=i.getFullModelRange(),s=this._getReplacePattern();let r;const a=this._state.preserveCase;r=s.hasReplacementPatterns||a?n.replace(t,(function(){return s.buildReplaceString(arguments,a)})):n.replace(t,s.buildReplaceString(null,a));const l=new d.hP(o,r,this._editor.getSelection());this._executeEditorCommand("replaceAll",l)}_regularReplaceAll(e){const t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),n=[];for(let e=0,o=i.length;ee.range)),n);this._executeEditorCommand("replaceAll",o)}selectAllMatches(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();let t=this._findMatches(e,!1,1073741824).map((e=>new p.Y(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)));const i=this._editor.getSelection();for(let e=0,n=t.length;ethis._hide()),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.style.zIndex="12",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const o={inputActiveOptionBorder:(0,_.n_1)(_.PRb),inputActiveOptionForeground:(0,_.n_1)(_.Pvw),inputActiveOptionBackground:(0,_.n_1)(_.XEs)};this.caseSensitive=this._register(new Z.rk(Object.assign({appendTitle:this._keybindingLabelFor(W),isChecked:this._state.matchCase},o))),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange((()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)}))),this.wholeWords=this._register(new Z.Qx(Object.assign({appendTitle:this._keybindingLabelFor(z),isChecked:this._state.wholeWord},o))),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange((()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)}))),this.regex=this._register(new Z.eH(Object.assign({appendTitle:this._keybindingLabelFor(U),isChecked:this._state.isRegex},o))),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange((()=>{this._state.change({isRegex:this.regex.checked},!1)}))),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange((e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()}))),this._register(Y.nm(this._domNode,Y.tw.MOUSE_LEAVE,(e=>this._onMouseLeave()))),this._register(Y.nm(this._domNode,"mouseover",(e=>this._onMouseOver())))}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return J.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}}J.ID="editor.contrib.findOptionsWidget";var ee=i(4669);function te(e,t){return 1===e||2!==e&&t}class ie extends o.JT{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return te(this._isRegexOverride,this._isRegex)}get wholeWord(){return te(this._wholeWordOverride,this._wholeWord)}get matchCase(){return te(this._matchCaseOverride,this._matchCase)}get preserveCase(){return te(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}constructor(){super(),this._onFindReplaceStateChange=this._register(new ee.Q5),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}changeMatchInfo(e,t,i){const n={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let o=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,n.matchesPosition=!0,o=!0),this._matchesCount!==t&&(this._matchesCount=t,n.matchesCount=!0,o=!0),void 0!==i&&(g.e.equalsRange(this._currentMatch,i)||(this._currentMatch=i,n.currentMatch=!0,o=!0)),o&&this._onFindReplaceStateChange.fire(n)}change(e,t,i=!0){var n;const o={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let s=!1;const r=this.isRegex,a=this.wholeWord,l=this.matchCase,c=this.preserveCase;void 0!==e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,o.searchString=!0,s=!0),void 0!==e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,o.replaceString=!0,s=!0),void 0!==e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,o.isRevealed=!0,s=!0),void 0!==e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,o.isReplaceRevealed=!0,s=!0),void 0!==e.isRegex&&(this._isRegex=e.isRegex),void 0!==e.wholeWord&&(this._wholeWord=e.wholeWord),void 0!==e.matchCase&&(this._matchCase=e.matchCase),void 0!==e.preserveCase&&(this._preserveCase=e.preserveCase),void 0!==e.searchScope&&((null===(n=e.searchScope)||void 0===n?void 0:n.every((e=>{var t;return null===(t=this._searchScope)||void 0===t?void 0:t.some((t=>!g.e.equalsRange(t,e)))})))||(this._searchScope=e.searchScope,o.searchScope=!0,s=!0)),void 0!==e.loop&&this._loop!==e.loop&&(this._loop=e.loop,o.loop=!0,s=!0),void 0!==e.isSearching&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,o.isSearching=!0,s=!0),void 0!==e.filters&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,o.filters=!0,s=!0),this._isRegexOverride=void 0!==e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride=void 0!==e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride=void 0!==e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride=void 0!==e.preserveCaseOverride?e.preserveCaseOverride:0,r!==this.isRegex&&(s=!0,o.isRegex=!0),a!==this.wholeWord&&(s=!0,o.wholeWord=!0),l!==this.matchCase&&(s=!0,o.matchCase=!0),c!==this.preserveCase&&(s=!0,o.preserveCase=!0),s&&this._onFindReplaceStateChange.fire(o)}canNavigateBack(){return this.canNavigateInLoop()||1!==this.matchesPosition}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition=G}}var ne=i(85152),oe=i(82900),se=i(73098),re=i(73046),ae=i(17301),le=i(1432),ce=i(63580),he=i(22980);function de(e){var t,i;return"Up"===(null===(t=e.lookupKeybinding("history.showPrevious"))||void 0===t?void 0:t.getElectronAccelerator())&&"Down"===(null===(i=e.lookupKeybinding("history.showNext"))||void 0===i?void 0:i.getElectronAccelerator())}var ue=i(59554),ge=i(25670),pe=i(92321),me=i(98401),fe=i(86253);const _e=(0,ue.q5)("find-selection",re.l.selection,ce.NC("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),ve=(0,ue.q5)("find-collapsed",re.l.chevronRight,ce.NC("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),be=(0,ue.q5)("find-expanded",re.l.chevronDown,ce.NC("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),Ce=(0,ue.q5)("find-replace",re.l.replace,ce.NC("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),ye=(0,ue.q5)("find-replace-all",re.l.replaceAll,ce.NC("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),we=(0,ue.q5)("find-previous-match",re.l.arrowUp,ce.NC("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Se=(0,ue.q5)("find-next-match",re.l.arrowDown,ce.NC("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),ke=ce.NC("label.find","Find"),xe=ce.NC("placeholder.find","Find"),Le=ce.NC("label.previousMatchButton","Previous Match"),Ee=ce.NC("label.nextMatchButton","Next Match"),Ne=ce.NC("label.toggleSelectionFind","Find in Selection"),De=ce.NC("label.closeButton","Close"),Te=ce.NC("label.replace","Replace"),Ie=ce.NC("placeholder.replace","Replace"),Ae=ce.NC("label.replaceButton","Replace"),Me=ce.NC("label.replaceAllButton","Replace All"),Re=ce.NC("label.toggleReplaceButton","Toggle Replace"),Oe=ce.NC("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",G),Pe=ce.NC("label.matchesLocation","{0} of {1}"),Fe=ce.NC("label.noResults","No results"),Be=419;let He=69;const Ve="ctrlEnterReplaceAll.windows.donotask",We=le.dz?256:2048;class ze{constructor(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function Ue(e,t,i){const n=!!t.match(/\n/);i&&n&&i.selectionStart>0&&e.stopPropagation()}function je(e,t,i){const n=!!t.match(/\n/);i&&n&&i.selectionEndthis._updateHistoryDelayer.cancel()))),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration((e=>{if(e.hasChanged(87)&&(this._codeEditor.getOption(87)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),e.hasChanged(139)&&this._tryUpdateWidgetWidth(),e.hasChanged(2)&&this.updateAccessibilitySupport(),e.hasChanged(39)){const e=this._codeEditor.getOption(39).loop;this._state.change({loop:e},!1);const t=this._codeEditor.getOption(39).addExtraSpaceOnTop;t&&!this._viewZone&&(this._viewZone=new ze(0),this._showViewZone()),!t&&this._viewZone&&this._removeViewZone()}}))),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection((()=>{this._isVisible&&this._updateToggleSelectionFindButton()}))),this._register(this._codeEditor.onDidFocusEditorWidget((()=>{return e=this,t=void 0,n=function*(){if(this._isVisible){const e=yield this._controller.getGlobalBufferTerm();e&&e!==this._state.searchString&&(this._state.change({searchString:e},!1),this._findInput.select())}},new((i=void 0)||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}));var e,t,i,n}))),this._findInputFocused=I.bindTo(a),this._findFocusTracker=this._register(Y.go(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus((()=>{this._findInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._findFocusTracker.onDidBlur((()=>{this._findInputFocused.set(!1)}))),this._replaceInputFocused=A.bindTo(a),this._replaceFocusTracker=this._register(Y.go(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus((()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._replaceFocusTracker.onDidBlur((()=>{this._replaceInputFocused.set(!1)}))),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(39).addExtraSpaceOnTop&&(this._viewZone=new ze(0)),this._register(this._codeEditor.onDidChangeModel((()=>{this._isVisible&&(this._viewZoneId=void 0)}))),this._register(this._codeEditor.onDidScrollChange((e=>{e.scrollTopChanged?this._layoutViewZone():setTimeout((()=>{this._layoutViewZone()}),0)})))}getId(){return Ke.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(87)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=Y.w(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){const e=this._state.searchString.length>0&&0===this._state.matchesCount;this._domNode.classList.toggle("no-results",e),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,ae.dL)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){let e;if(this._matchesCount.style.minWidth=He+"px",this._state.matchesCount>=G?this._matchesCount.title=Oe:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=G&&(t+="+");let i=String(this._state.matchesPosition);"0"===i&&(i="?"),e=s.WU(Pe,i,t)}else e=Fe;this._matchesCount.appendChild(document.createTextNode(e)),(0,ne.Z9)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),He=Math.max(He,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===Fe)return""===i?ce.NC("ariaSearchNoResultEmpty","{0} found",e):ce.NC("ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){const n=ce.NC("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),o=this._codeEditor.getModel();return o&&t.startLineNumber<=o.getLineCount()&&t.startLineNumber>=1?`${o.getLineContent(t.startLineNumber)}, ${n}`:n}return ce.NC("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){const e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const i=!this._codeEditor.getOption(87);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(39).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const t=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=t;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout((()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")}),0)),this._revealTimeouts.push(setTimeout((()=>{this._findInput.validate()}),200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(39).seedSearchStringFromSelection&&e){const i=this._codeEditor.getDomNode();if(i){const n=Y.i(i),o=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),s=n.left+(o?o.left:0),r=o?o.top:0;if(this._viewZone&&re.startLineNumber&&(t=!1);const i=Y.xQ(this._domNode).left;s>i&&(t=!1);const o=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());n.left+(o?o.left:0)>i&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(39).addExtraSpaceOnTop)return void this._removeViewZone();if(!this._isVisible)return;const t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones((i=>{t.heightInPx=this._getHeight(),this._viewZoneId=i.addZone(t),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+t.heightInPx)}))}_showViewZone(e=!0){if(!this._isVisible)return;if(!this._codeEditor.getOption(39).addExtraSpaceOnTop)return;void 0===this._viewZone&&(this._viewZone=new ze(0));const t=this._viewZone;this._codeEditor.changeViewZones((i=>{if(void 0!==this._viewZoneId){const n=this._getHeight();if(n===t.heightInPx)return;const o=n-t.heightInPx;return t.heightInPx=n,i.layoutZone(this._viewZoneId),void(e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+o))}{let n=this._getHeight();if(n-=this._codeEditor.getOption(81).top,n<=0)return;t.heightInPx=n,this._viewZoneId=i.addZone(t),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+n)}}))}_removeViewZone(){this._codeEditor.changeViewZones((e=>{void 0!==this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))}))}_tryUpdateWidgetWidth(){if(!this._isVisible)return;if(!Y.Uw(this._domNode))return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)return void this._domNode.classList.add("hiddenEditor");this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const t=e.width,i=e.minimap.minimapWidth;let n=!1,o=!1,s=!1;if(this._resized&&Y.w(this._domNode)>Be)return this._domNode.style.maxWidth=t-28-i-15+"px",void(this._replaceInput.width=Y.w(this._findInput.domNode));if(447+i>=t&&(o=!0),447+i-He>=t&&(s=!0),447+i-He>=t+50&&(n=!0),this._domNode.classList.toggle("collapsed-find-widget",n),this._domNode.classList.toggle("narrow-find-widget",s),this._domNode.classList.toggle("reduced-find-widget",o),s||n||(this._domNode.style.maxWidth=t-28-i-15+"px"),this._findInput.layout({collapsedFindWidget:n,narrowFindWidget:s,reducedFindWidget:o}),this._resized){const e=this._findInput.inputBox.element.clientWidth;e>0&&(this._replaceInput.width=e)}else this._isReplaceVisible&&(this._replaceInput.width=Y.w(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const e=this._codeEditor.getSelections();e.map((e=>{1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));const t=this._state.currentMatch;return e.startLineNumber===e.endLineNumber||g.e.equalsRange(e,t)?null:e})).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){return e.equals(3|We)?(this._keybindingService.dispatchEvent(e,e.target)||this._findInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Ue(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?je(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}_onReplaceInputKeyDown(e){return e.equals(3|We)?(this._keybindingService.dispatchEvent(e,e.target)||(le.ED&&le.tY&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(ce.NC("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Ve,!0,0,0)),this._replaceInput.inputBox.insertAtCursor("\n")),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Ue(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?je(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new he.Yb(null,this._contextViewProvider,{width:221,label:ke,placeholder:xe,appendCaseSensitiveLabel:this._keybindingLabelFor(W),appendWholeWordsLabel:this._keybindingLabelFor(z),appendRegexLabel:this._keybindingLabelFor(U),validation:e=>{if(0===e.length||!this._findInput.getRegex())return null;try{return new RegExp(e,"gu"),null}catch(e){return{content:e.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>de(this._keybindingService),inputBoxStyles:fe.Hc,toggleStyles:fe.pl},this._contextKeyService)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown((e=>this._onFindInputKeyDown(e)))),this._register(this._findInput.inputBox.onDidChange((()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)}))),this._register(this._findInput.onDidOptionChange((()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)}))),this._register(this._findInput.onCaseSensitiveKeyDown((e=>{e.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),e.preventDefault())}))),this._register(this._findInput.onRegexKeyDown((e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),e.preventDefault())}))),this._register(this._findInput.inputBox.onDidHeightChange((e=>{this._tryUpdateHeight()&&this._showViewZone()}))),le.IJ&&this._register(this._findInput.onMouseDown((e=>this._onFindInputMouseDown(e)))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new qe({label:Le+this._keybindingLabelFor(H),icon:we,onTrigger:()=>{(0,me.cW)(this._codeEditor.getAction(H)).run().then(void 0,ae.dL)}})),this._nextBtn=this._register(new qe({label:Ee+this._keybindingLabelFor(B),icon:Se,onTrigger:()=>{(0,me.cW)(this._codeEditor.getAction(B)).run().then(void 0,ae.dL)}}));const e=document.createElement("div");e.className="find-part",e.appendChild(this._findInput.domNode);const t=document.createElement("div");t.className="find-actions",e.appendChild(t),t.appendChild(this._matchesCount),t.appendChild(this._prevBtn.domNode),t.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new oe.Z({icon:_e,title:Ne+this._keybindingLabelFor(j),isChecked:!1,inputActiveOptionBackground:(0,_.n_1)(_.XEs),inputActiveOptionBorder:(0,_.n_1)(_.PRb),inputActiveOptionForeground:(0,_.n_1)(_.Pvw)})),this._register(this._toggleSelectionFind.onChange((()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){const e=this._codeEditor.getSelections();e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}else this._state.change({searchScope:null},!0)}))),t.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new qe({label:De+this._keybindingLabelFor(V),icon:ue.s_,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),e.preventDefault())}})),t.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new he.Nq(null,void 0,{label:Te,placeholder:Ie,appendPreserveCaseLabel:this._keybindingLabelFor(K),history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>de(this._keybindingService),inputBoxStyles:fe.Hc,toggleStyles:fe.pl},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown((e=>this._onReplaceInputKeyDown(e)))),this._register(this._replaceInput.inputBox.onDidChange((()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)}))),this._register(this._replaceInput.inputBox.onDidHeightChange((e=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()}))),this._register(this._replaceInput.onDidOptionChange((()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)}))),this._register(this._replaceInput.onPreserveCaseKeyDown((e=>{e.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),e.preventDefault())}))),this._replaceBtn=this._register(new qe({label:Ae+this._keybindingLabelFor(q),icon:Ce,onTrigger:()=>{this._controller.replace()},onKeyDown:e=>{e.equals(1026)&&(this._closeBtn.focus(),e.preventDefault())}})),this._replaceAllBtn=this._register(new qe({label:Me+this._keybindingLabelFor($),icon:ye,onTrigger:()=>{this._controller.replaceAll()}}));const i=document.createElement("div");i.className="replace-part",i.appendChild(this._replaceInput.domNode);const n=document.createElement("div");n.className="replace-actions",i.appendChild(n),n.appendChild(this._replaceBtn.domNode),n.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new qe({label:Re,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=Y.w(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(e),this._domNode.appendChild(i),this._resizeSash=new se.g(this._domNode,this,{orientation:0,size:2}),this._resized=!1;let o=Be;this._register(this._resizeSash.onDidStart((()=>{o=Y.w(this._domNode)}))),this._register(this._resizeSash.onDidChange((e=>{this._resized=!0;const t=o+e.startX-e.currentX;t(parseFloat(Y.Dx(this._domNode).maxWidth)||0)||(this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=Y.w(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())}))),this._register(this._resizeSash.onDidReset((()=>{const e=Y.w(this._domNode);if(e{this._opts.onTrigger(),e.preventDefault()})),this.onkeydown(this._domNode,(e=>{var t,i;if(e.equals(10)||e.equals(3))return this._opts.onTrigger(),void e.preventDefault();null===(i=(t=this._opts).onKeyDown)||void 0===i||i.call(t,e)}))}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...ge.k.asClassNameArray(ve)),this._domNode.classList.add(...ge.k.asClassNameArray(be))):(this._domNode.classList.remove(...ge.k.asClassNameArray(be)),this._domNode.classList.add(...ge.k.asClassNameArray(ve)))}}(0,v.Ic)(((e,t)=>{const i=(e,i)=>{i&&t.addRule(`.monaco-editor ${e} { background-color: ${i}; }`)};i(".findMatch",e.getColor(_.MUv)),i(".currentFindMatch",e.getColor(_.nyM)),i(".findScope",e.getColor(_.jUe)),i(".find-widget",e.getColor(_.D0T));const n=e.getColor(_.rh);n&&t.addRule(`.monaco-editor .find-widget { box-shadow: 0 0 8px 2px ${n}; }`);const o=e.getColor(_.A42);o&&t.addRule(`.monaco-editor .find-widget { border-left: 1px solid ${o}; border-right: 1px solid ${o}; border-bottom: 1px solid ${o}; }`);const s=e.getColor(_.EiJ);s&&t.addRule(`.monaco-editor .findMatch { border: 1px ${(0,pe.c3)(e.type)?"dotted":"solid"} ${s}; box-sizing: border-box; }`);const r=e.getColor(_.pnM);r&&t.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${r}; padding: 1px; box-sizing: border-box; }`);const a=e.getColor(_.gkn);a&&t.addRule(`.monaco-editor .findScope { border: 1px ${(0,pe.c3)(e.type)?"dashed":"solid"} ${a}; }`);const l=e.getColor(_.lRK);l&&t.addRule(`.monaco-editor .find-widget { border: 1px solid ${l}; }`);const c=e.getColor(_.Hfx);c&&t.addRule(`.monaco-editor .find-widget { color: ${c}; }`);const h=e.getColor(_.Ido);h&&t.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${h}; }`);const d=e.getColor(_.Ng6);if(d)t.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${d}; }`);else{const i=e.getColor(_.D1_);i&&t.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${i}; }`)}const u=e.getColor(_.lUq);u&&t.addRule(`\n\t\t.monaco-editor .find-widget .button:not(.disabled):hover,\n\t\t.monaco-editor .find-widget .codicon-find-selection:hover {\n\t\t\tbackground-color: ${u} !important;\n\t\t}\n\t`);const g=e.getColor(_.R80);g&&t.addRule(`.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ${g}; }`)}));var $e=i(84144),Ge=i(84972),Qe=i(5606),Ye=i(91847),Ze=i(59422),Xe=i(41157),Je=i(26904),et=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},tt=function(e,t){return function(i,n){t(i,n,e)}},it=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};const nt=524288;function ot(e,t="single",i=!1){if(!e.hasModel())return null;const n=e.getSelection();if("single"===t&&n.startLineNumber===n.endLineNumber||"multiple"===t)if(n.isEmpty()){const t=e.getConfiguredWordAtPosition(n.getStartPosition());if(t&&!1===i)return t.word}else if(e.getModel().getValueLengthInRange(n)this._onStateChanged(e)))),this._model=null,this._register(this._editor.onDidChangeModel((()=>{const e=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(39).loop})})))}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,0),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,0),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,0),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,0)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!I.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){const e=this._editor.getSelections();e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=s.ec(e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=!1){}_start(e,t){return it(this,void 0,void 0,(function*(){if(this.disposeModel(),!this._editor.hasModel())return;const i=Object.assign(Object.assign({},t),{isRevealed:!0});if("single"===e.seedSearchStringFromSelection){const t=ot(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);t&&(this._state.isRegex?i.searchString=s.ec(t):i.searchString=t)}else if("multiple"===e.seedSearchStringFromSelection&&!e.updateSearchScope){const t=ot(this._editor,e.seedSearchStringFromSelection);t&&(i.searchString=t)}if(!i.searchString&&e.seedSearchStringFromGlobalClipboard){const e=yield this.getGlobalBufferTerm();if(!this._editor.hasModel())return;e&&(i.searchString=e)}if(e.forceRevealReplace||i.isReplaceRevealed?i.isReplaceRevealed=!0:this._findWidgetVisible.get()||(i.isReplaceRevealed=!1),e.updateSearchScope){const e=this._editor.getSelections();e.some((e=>!e.isEmpty()))&&(i.searchScope=e)}i.loop=e.loop,this._state.change(i,!1),this._model||(this._model=new Q(this._editor,this._state))}))}start(e,t){return this._start(e,t)}moveToNextMatch(){return!!this._model&&(this._model.moveToNextMatch(),!0)}moveToPrevMatch(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}goToMatch(e){return!!this._model&&(this._model.moveToMatch(e),!0)}replace(){return!!this._model&&(this._model.replace(),!0)}replaceAll(){return!!this._model&&(this._model.replaceAll(),!0)}selectAllMatches(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}getGlobalBufferTerm(){return it(this,void 0,void 0,(function*(){return this._editor.getOption(39).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}))}setGlobalBufferTerm(e){this._editor.getOption(39).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};st.ID="editor.contrib.findController",st=et([tt(1,D.i6),tt(2,Je.Uy),tt(3,Ge.p)],st);let rt=class extends st{constructor(e,t,i,n,o,s,r,a){super(e,i,r,a),this._contextViewService=t,this._keybindingService=n,this._themeService=o,this._notificationService=s,this._widget=null,this._findOptionsWidget=null}_start(e,t){const i=Object.create(null,{_start:{get:()=>super._start}});return it(this,void 0,void 0,(function*(){this._widget||this._createFindWidget();const n=this._editor.getSelection();let o=!1;switch(this._editor.getOption(39).autoFindInSelection){case"always":o=!0;break;case"never":o=!1;break;case"multiline":o=!!n&&n.startLineNumber!==n.endLineNumber}e.updateSearchScope=e.updateSearchScope||o,yield i._start.call(this,e,t),this._widget&&(2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&this._widget.focusFindInput())}))}highlightFindOptions(e=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!e?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new Ke(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new J(this._editor,this._state,this._keybindingService))}};rt=et([tt(1,Qe.u),tt(2,D.i6),tt(3,Ye.d),tt(4,v.XE),tt(5,Ze.lT),tt(6,Je.Uy),tt(7,Ge.p)],rt);const at=(0,r.rn)(new r.jY({id:"actions.find",label:ce.NC("startFindAction","Find"),alias:"Find",precondition:D.Ao.or(l.u.focus,D.Ao.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:$e.eH.MenubarEditMenu,group:"3_find",title:ce.NC({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}}));at.addImplementation(0,((e,t,i)=>{const n=st.get(t);return!!n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(39).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(39).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(39).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(39).loop})}));const lt={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},regex:{type:"boolean"},regexOverride:{type:"number",description:ce.NC("actions.find.isRegexOverride",'Overrides "Use Regular Expression" flag.\nThe flag will not be saved for the future.\n0: Do Nothing\n1: True\n2: False')},wholeWord:{type:"boolean"},wholeWordOverride:{type:"number",description:ce.NC("actions.find.wholeWordOverride",'Overrides "Match Whole Word" flag.\nThe flag will not be saved for the future.\n0: Do Nothing\n1: True\n2: False')},matchCase:{type:"boolean"},matchCaseOverride:{type:"number",description:ce.NC("actions.find.matchCaseOverride",'Overrides "Math Case" flag.\nThe flag will not be saved for the future.\n0: Do Nothing\n1: True\n2: False')},preserveCase:{type:"boolean"},preserveCaseOverride:{type:"number",description:ce.NC("actions.find.preserveCaseOverride",'Overrides "Preserve Case" flag.\nThe flag will not be saved for the future.\n0: Do Nothing\n1: True\n2: False')},findInSelection:{type:"boolean"}}}}]};class ct extends r.R6{constructor(){super({id:"editor.actions.findWithArgs",label:ce.NC("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},description:lt})}run(e,t,i){return it(this,void 0,void 0,(function*(){const e=st.get(t);if(e){const n=i?{searchString:i.searchString,replaceString:i.replaceString,isReplaceRevealed:void 0!==i.replaceString,isRegex:i.isRegex,wholeWord:i.matchWholeWord,matchCase:i.isCaseSensitive,preserveCase:i.preserveCase}:{};yield e.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===e.getState().searchString.length&&"never"!==t.getOption(39).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(39).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:(null==i?void 0:i.findInSelection)||!1,loop:t.getOption(39).loop},n),e.setGlobalBufferTerm(e.getState().searchString)}}))}}class ht extends r.R6{constructor(){super({id:"actions.findWithSelection",label:ce.NC("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}run(e,t){return it(this,void 0,void 0,(function*(){const e=st.get(t);e&&(yield e.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(39).loop}),e.setGlobalBufferTerm(e.getState().searchString))}))}}class dt extends r.R6{run(e,t){return it(this,void 0,void 0,(function*(){const e=st.get(t);e&&!this._run(e)&&(yield e.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===e.getState().searchString.length&&"never"!==t.getOption(39).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(39).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(39).loop}),this._run(e))}))}}class ut extends dt{constructor(){super({id:B,label:ce.NC("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:l.u.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:D.Ao.and(l.u.focus,I),primary:3,weight:100}]})}_run(e){return!!e.moveToNextMatch()&&(e.editor.pushUndoStop(),!0)}}class gt extends dt{constructor(){super({id:H,label:ce.NC("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:l.u.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:D.Ao.and(l.u.focus,I),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}}class pt extends r.R6{constructor(){super({id:"editor.action.goToMatchFindAction",label:ce.NC("findMatchAction.goToMatch","Go to Match..."),alias:"Go to Match...",precondition:T}),this._highlightDecorations=[]}run(e,t,i){const n=st.get(t);if(!n)return;const o=n.getState().matchesCount;if(o<1)return void e.get(Ze.lT).notify({severity:Ze.zb.Warning,message:ce.NC("findMatchAction.noResults","No matches. Try searching for something else.")});const s=e.get(Xe.eJ).createInputBox();s.placeholder=ce.NC("findMatchAction.inputPlaceHolder","Type a number to go to a specific match (between 1 and {0})",o);const r=e=>{const t=parseInt(e);if(isNaN(t))return;const i=n.getState().matchesCount;return t>0&&t<=i?t-1:t<0&&t>=-i?i+t:void 0},a=e=>{const i=r(e);if("number"==typeof i){s.validationMessage=void 0,n.goToMatch(i);const e=n.getState().currentMatch;e&&this.addDecorations(t,e)}else s.validationMessage=ce.NC("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",n.getState().matchesCount),this.clearDecorations(t)};s.onDidChangeValue((e=>{a(e)})),s.onDidAccept((()=>{const e=r(s.value);"number"==typeof e?(n.goToMatch(e),s.hide()):s.validationMessage=ce.NC("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",n.getState().matchesCount)})),s.onDidHide((()=>{this.clearDecorations(t),s.dispose()})),s.show()}clearDecorations(e){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[])}))}addDecorations(e,t){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[{range:t,options:{description:"find-match-quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"find-match-quick-access-range-highlight-overview",overviewRuler:{color:(0,v.EN)(a.m9),position:c.sh.Full}}}])}))}}class mt extends r.R6{run(e,t){return it(this,void 0,void 0,(function*(){const e=st.get(t);if(!e)return;const i=ot(t,"single",!1);i&&e.setSearchString(i),this._run(e)||(yield e.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(39).loop}),this._run(e))}))}}class ft extends mt{constructor(){super({id:"editor.action.nextSelectionMatchFindAction",label:ce.NC("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:l.u.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}}class _t extends mt{constructor(){super({id:"editor.action.previousSelectionMatchFindAction",label:ce.NC("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:l.u.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}}const vt=(0,r.rn)(new r.jY({id:"editor.action.startFindReplaceAction",label:ce.NC("startReplace","Replace"),alias:"Replace",precondition:D.Ao.or(l.u.focus,D.Ao.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:$e.eH.MenubarEditMenu,group:"3_find",title:ce.NC({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}}));vt.addImplementation(0,((e,t,i)=>{if(!t.hasModel()||t.getOption(87))return!1;const n=st.get(t);if(!n)return!1;const o=t.getSelection(),s=n.isFindInputFocused(),r=!o.isEmpty()&&o.startLineNumber===o.endLineNumber&&"never"!==t.getOption(39).seedSearchStringFromSelection&&!s,a=s||r?2:1;return n.start({forceRevealReplace:!0,seedSearchStringFromSelection:r?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(39).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:"never"!==t.getOption(39).seedSearchStringFromSelection,shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(39).loop})})),(0,r._K)(st.ID,rt,0),(0,r.Qr)(ct),(0,r.Qr)(ht),(0,r.Qr)(ut),(0,r.Qr)(gt),(0,r.Qr)(pt),(0,r.Qr)(ft),(0,r.Qr)(_t);const bt=r._l.bindToContribution(st.get);(0,r.fK)(new bt({id:V,precondition:T,handler:e=>e.closeFindWidget(),kbOpts:{weight:105,kbExpr:D.Ao.and(l.u.focus,D.Ao.not("isComposing")),primary:9,secondary:[1033]}})),(0,r.fK)(new bt({id:W,precondition:void 0,handler:e=>e.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:M.primary,mac:M.mac,win:M.win,linux:M.linux}})),(0,r.fK)(new bt({id:z,precondition:void 0,handler:e=>e.toggleWholeWords(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:R.primary,mac:R.mac,win:R.win,linux:R.linux}})),(0,r.fK)(new bt({id:U,precondition:void 0,handler:e=>e.toggleRegex(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:O.primary,mac:O.mac,win:O.win,linux:O.linux}})),(0,r.fK)(new bt({id:j,precondition:void 0,handler:e=>e.toggleSearchScope(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:P.primary,mac:P.mac,win:P.win,linux:P.linux}})),(0,r.fK)(new bt({id:K,precondition:void 0,handler:e=>e.togglePreserveCase(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:F.primary,mac:F.mac,win:F.win,linux:F.linux}})),(0,r.fK)(new bt({id:q,precondition:T,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:3094}})),(0,r.fK)(new bt({id:q,precondition:T,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:D.Ao.and(l.u.focus,A),primary:3}})),(0,r.fK)(new bt({id:$,precondition:T,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:2563}})),(0,r.fK)(new bt({id:$,precondition:T,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:D.Ao.and(l.u.focus,A),primary:void 0,mac:{primary:2051}}})),(0,r.fK)(new bt({id:"editor.action.selectAllMatches",precondition:T,handler:e=>e.selectAllMatches(),kbOpts:{weight:105,kbExpr:l.u.focus,primary:515}}))},8060:(e,t,i)=>{"use strict";i.r(t),i.d(t,{FoldingController:()=>ne,RangesLimitReporter:()=>oe});var n=i(15393),o=i(71050),s=i(17301),r=i(22258),a=i(5976),l=i(97295),c=i(98401),h=i(43407),d=i(16830),u=i(29102),g=i(96887),p=i(51381),m=i(4669),f=i(37702),_=i(89954);class v{get regions(){return this._regions}get textModel(){return this._textModel}constructor(e,t){this._updateEventEmitter=new m.Q5,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new f.MN(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}toggleCollapseState(e){if(!e.length)return;e=e.sort(((e,t)=>e.regionIndex-t.regionIndex));const t={};this._decorationProvider.changeDecorations((i=>{let n=0,o=-1,s=-1;const r=e=>{for(;ns&&(s=e),n++}};for(const i of e){const e=i.regionIndex,n=this._editorDecorationIds[e];if(n&&!t[n]){t[n]=!0,r(e);const i=!this._regions.isCollapsed(e);this._regions.setCollapsed(e,i),o=Math.max(o,this._regions.getEndLineNumber(e))}}r(this._regions.length)})),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}removeManualRanges(e){const t=new Array,i=t=>{for(const i of e)if(!(i.startLineNumber>t.endLineNumber||t.startLineNumber>i.endLineNumber))return!0;return!1};for(let e=0;ei&&(i=s)}this._decorationProvider.changeDecorations((e=>this._editorDecorationIds=e.deltaDecorations(this._editorDecorationIds,t))),this._regions=e,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(e=[]){const t=(t,i)=>{for(const n of e)if(t=o.endLineNumber||o.startLineNumber<1||o.endLineNumber>i)continue;const s=this._getLinesChecksum(o.startLineNumber+1,o.endLineNumber);t.push({startLineNumber:o.startLineNumber,endLineNumber:o.endLineNumber,isCollapsed:o.isCollapsed,source:o.source,checksum:s})}return t.length>0?t:void 0}applyMemento(e){var t,i;if(!Array.isArray(e))return;const n=[],o=this._textModel.getLineCount();for(const s of e){if(s.startLineNumber>=s.endLineNumber||s.startLineNumber<1||s.endLineNumber>o)continue;const e=this._getLinesChecksum(s.startLineNumber+1,s.endLineNumber);s.checksum&&e!==s.checksum||n.push({startLineNumber:s.startLineNumber,endLineNumber:s.endLineNumber,type:void 0,isCollapsed:null===(t=s.isCollapsed)||void 0===t||t,source:null!==(i=s.source)&&void 0!==i?i:0})}const s=f.MN.sanitizeAndMerge(this._regions,n,o);this.updatePost(f.MN.fromFoldRanges(s))}_getLinesChecksum(e,t){return(0,_.vp)(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){const i=[];if(this._regions){let n=this._regions.findRange(e),o=1;for(;n>=0;){const e=this._regions.toRegion(n);t&&!t(e,o)||i.push(e),o++,n=e.parentIndex}}return i}getRegionAtLine(e){if(this._regions){const t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){const i=[],n=e?e.regionIndex+1:0,o=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length){const e=[];for(let s=n,r=this._regions.length;s0&&!n.containedBy(e[e.length-1]);)e.pop();e.push(n),t(n,e.length)&&i.push(n)}}else for(let e=n,s=this._regions.length;e0)for(const s of n){const n=e.getRegionAtLine(s);if(n&&(n.isCollapsed!==t&&o.push(n),i>1)){const s=e.getRegionsInside(n,((e,n)=>e.isCollapsed!==t&&ne.isCollapsed!==t&&ne.isCollapsed!==t&&n<=i));o.push(...n)}e.toggleCollapseState(o)}function y(e,t,i){const n=[];for(const t of i){const i=e.getAllRegionsAtLine(t,void 0);i.length>0&&n.push(i[0])}const o=e.getRegionsInside(null,(e=>n.every((t=>!t.containedBy(e)&&!e.containedBy(t)))&&e.isCollapsed!==t));e.toggleCollapseState(o)}function w(e,t,i){const n=e.textModel,o=e.regions,s=[];for(let e=o.length-1;e>=0;e--)if(i!==o.isCollapsed(e)){const i=o.getStartLineNumber(e);t.test(n.getLineContent(i))&&s.push(o.toRegion(e))}e.toggleCollapseState(s)}function S(e,t,i){const n=e.regions,o=[];for(let e=n.length-1;e>=0;e--)i!==n.isCollapsed(e)&&t===n.getType(e)&&o.push(n.toRegion(e));e.toggleCollapseState(o)}var k=i(9488),x=i(24314),L=i(23795);class E{get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}constructor(e){this._updateEventEmitter=new m.Q5,this._hasLineChanges=!1,this._foldingModel=e,this._foldingModelListener=e.onDidChange((e=>this.updateHiddenRanges())),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}notifyChangeModelContent(e){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=e.changes.some((e=>e.range.endLineNumber!==e.range.startLineNumber||0!==(0,L.Q)(e.text)[0])))}updateHiddenRanges(){let e=!1;const t=[];let i=0,n=0,o=Number.MAX_VALUE,s=-1;const r=this._foldingModel.regions;for(;i0}isHidden(e){return null!==N(this._hiddenRanges,e)}adjustSelections(e){let t=!1;const i=this._foldingModel.textModel;let n=null;const o=e=>(n&&function(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}(e,n)||(n=N(this._hiddenRanges,e)),n?n.startLineNumber-1:null);for(let n=0,s=e.length;n0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function N(e,t){const i=(0,k.lG)(e,(e=>t=0&&e[i].endLineNumber>=t?e[i]:null}var D=i(84990),T=i(63580),I=i(93983),A=i(73046),M=i(84973),R=i(1231),O=i(73910),P=i(59554),F=i(97781),B=i(25670);const H=(0,O.P6G)("editor.foldBackground",{light:(0,O.ZnX)(O.hEj,.3),dark:(0,O.ZnX)(O.hEj,.3),hcDark:null,hcLight:null},(0,T.NC)("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0);(0,O.P6G)("editorGutter.foldingControlForeground",{dark:O.XZx,light:O.XZx,hcDark:O.XZx,hcLight:O.XZx},(0,T.NC)("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));const V=(0,P.q5)("folding-expanded",A.l.chevronDown,(0,T.NC)("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),W=(0,P.q5)("folding-collapsed",A.l.chevronRight,(0,T.NC)("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),z=(0,P.q5)("folding-manual-collapsed",W,(0,T.NC)("foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),U=(0,P.q5)("folding-manual-expanded",V,(0,T.NC)("foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),j={color:(0,F.EN)(H),position:M.F5.Inline};class K{constructor(e){this.editor=e,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(e,t,i){return t?K.HIDDEN_RANGE_DECORATION:"never"===this.showFoldingControls?e?this.showFoldingHighlights?K.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION:K.NO_CONTROLS_COLLAPSED_RANGE_DECORATION:K.NO_CONTROLS_EXPANDED_RANGE_DECORATION:e?i?this.showFoldingHighlights?K.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:K.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?K.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:K.COLLAPSED_VISUAL_DECORATION:"mouseover"===this.showFoldingControls?i?K.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:K.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:i?K.MANUALLY_EXPANDED_VISUAL_DECORATION:K.EXPANDED_VISUAL_DECORATION}changeDecorations(e){return this.editor.changeDecorations(e)}removeDecorations(e){this.editor.removeDecorations(e)}}K.COLLAPSED_VISUAL_DECORATION=R.qx.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:B.k.asClassName(W)}),K.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=R.qx.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:j,isWholeLine:!0,firstLineDecorationClassName:B.k.asClassName(W)}),K.MANUALLY_COLLAPSED_VISUAL_DECORATION=R.qx.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:B.k.asClassName(z)}),K.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=R.qx.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:j,isWholeLine:!0,firstLineDecorationClassName:B.k.asClassName(z)}),K.NO_CONTROLS_COLLAPSED_RANGE_DECORATION=R.qx.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0}),K.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION=R.qx.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:j,isWholeLine:!0}),K.EXPANDED_VISUAL_DECORATION=R.qx.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+B.k.asClassName(V)}),K.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=R.qx.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:B.k.asClassName(V)}),K.MANUALLY_EXPANDED_VISUAL_DECORATION=R.qx.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+B.k.asClassName(U)}),K.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=R.qx.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:B.k.asClassName(U)}),K.NO_CONTROLS_EXPANDED_RANGE_DECORATION=R.qx.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0}),K.HIDDEN_RANGE_DECORATION=R.qx.register({description:"folding-hidden-range-decoration",stickiness:1});var q=i(99155),$=i(59422),G=i(88191),Q=i(84013),Y=i(71922),Z=i(94565),X=i(70666),J=i(73733),ee=i(33108),te=function(e,t){return function(i,n){t(i,n,e)}};const ie=new I.uy("foldingEnabled",!1);let ne=class e extends a.JT{static get(t){return t.getContribution(e.ID)}static getFoldingRangeProviders(t,i){var n,o;const s=t.foldingRangeProvider.ordered(i);return null!==(o=null===(n=e._foldingRangeSelector)||void 0===n?void 0:n.call(e,s,i))&&void 0!==o?o:s}constructor(e,t,i,n,o,s){super(),this.contextKeyService=t,this.languageConfigurationService=i,this.languageFeaturesService=s,this.localToDispose=this._register(new a.SL),this.editor=e,this._foldingLimitReporter=new oe(e);const r=this.editor.getOptions();this._isEnabled=r.get(41),this._useFoldingProviders="indentation"!==r.get(42),this._unfoldOnClickAfterEndOfLine=r.get(46),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=r.get(44),this.updateDebounceInfo=o.for(s.foldingRangeProvider,"Folding",{min:200}),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new K(e),this.foldingDecorationProvider.showFoldingControls=r.get(105),this.foldingDecorationProvider.showFoldingHighlights=r.get(43),this.foldingEnabled=ie.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel((()=>this.onModelChanged()))),this._register(this.editor.onDidChangeConfiguration((e=>{if(e.hasChanged(41)&&(this._isEnabled=this.editor.getOptions().get(41),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),e.hasChanged(45)&&this.onModelChanged(),e.hasChanged(105)||e.hasChanged(43)){const e=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=e.get(105),this.foldingDecorationProvider.showFoldingHighlights=e.get(43),this.triggerFoldingModelChanged()}e.hasChanged(42)&&(this._useFoldingProviders="indentation"!==this.editor.getOptions().get(42),this.onFoldingStrategyChanged()),e.hasChanged(46)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(46)),e.hasChanged(44)&&(this._foldingImportsByDefault=this.editor.getOptions().get(44))}))),this.onModelChanged()}saveViewState(){const e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){const t=this.foldingModel.getMemento(),i=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:i,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(e){const t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&(this._currentModelHasFoldedImports=!!e.foldedImports,e.collapsedRegions&&e.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(e.collapsedRegions)}finally{this._restoringViewState=!1}}}onModelChanged(){this.localToDispose.clear();const e=this.editor.getModel();this._isEnabled&&e&&!e.isTooLargeForTokenization()&&(this._currentModelHasFoldedImports=!1,this.foldingModel=new v(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new E(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange((e=>this.onHiddenRangesChanges(e)))),this.updateScheduler=new n.vp(this.updateDebounceInfo.get(e)),this.cursorChangedScheduler=new n.pY((()=>this.revealCursor()),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(this.languageFeaturesService.foldingRangeProvider.onDidChange((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelContent((e=>this.onDidChangeModelContent(e)))),this.localToDispose.add(this.editor.onDidChangeCursorPosition((()=>this.onCursorPositionChanged()))),this.localToDispose.add(this.editor.onMouseDown((e=>this.onEditorMouseDown(e)))),this.localToDispose.add(this.editor.onMouseUp((e=>this.onEditorMouseUp(e)))),this.localToDispose.add({dispose:()=>{var e,t;this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),null===(e=this.updateScheduler)||void 0===e||e.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,null===(t=this.rangeProvider)||void 0===t||t.dispose(),this.rangeProvider=null}}),this.triggerFoldingModelChanged())}onFoldingStrategyChanged(){var e;null===(e=this.rangeProvider)||void 0===e||e.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}getRangeProvider(t){if(this.rangeProvider)return this.rangeProvider;const i=new D.aI(t,this.languageConfigurationService,this._foldingLimitReporter);if(this.rangeProvider=i,this._useFoldingProviders&&this.foldingModel){const n=e.getFoldingRangeProviders(this.languageFeaturesService,t);n.length>0&&(this.rangeProvider=new q.e(t,n,(()=>this.triggerFoldingModelChanged()),this._foldingLimitReporter,i))}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onDidChangeModelContent(e){var t;null===(t=this.hiddenRangeModel)||void 0===t||t.notifyChangeModelContent(e),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger((()=>{const e=this.foldingModel;if(!e)return null;const t=new Q.G(!0),i=this.getRangeProvider(e.textModel),o=this.foldingRegionPromise=(0,n.PG)((e=>i.compute(e)));return o.then((i=>{if(i&&o===this.foldingRegionPromise){let n;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){const e=i.setCollapsedAllOfType(g.AD.Imports.value,!0);e&&(n=h.Z.capture(this.editor),this._currentModelHasFoldedImports=e)}const o=this.editor.getSelections(),s=o?o.map((e=>e.startLineNumber)):[];e.update(i,s),null==n||n.restore(this.editor);const r=this.updateDebounceInfo.update(e.textModel,t.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=r)}return e}))})).then(void 0,(e=>((0,s.dL)(e),null))))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){const e=this.editor.getSelections();e&&this.hiddenRangeModel.adjustSelections(e)&&this.editor.setSelections(e)}this.editor.setHiddenAreas(e,this)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){const e=this.getFoldingModel();e&&e.then((e=>{if(e){const t=this.editor.getSelections();if(t&&t.length>0){const i=[];for(const n of t){const t=n.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(t)&&i.push(...e.getAllRegionsAtLine(t,(e=>e.isCollapsed&&t>e.startLineNumber)))}i.length&&(e.toggleCollapseState(i),this.reveal(t[0].getPosition()))}}})).then(void 0,s.dL)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range)return;if(!e.event.leftButton&&!e.event.middleButton)return;const t=e.target.range;let i=!1;switch(e.target.type){case 4:{const t=e.target.detail,n=e.target.element.offsetLeft;if(t.offsetX-n<5)return;i=!0;break}case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()&&!e.target.detail.isAfterLines)break;return;case 6:if(this.hiddenRangeModel.hasRanges()){const e=this.editor.getModel();if(e&&t.startColumn===e.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:i}}onEditorMouseUp(e){const t=this.foldingModel;if(!t||!this.mouseDownInfo||!e.target)return;const i=this.mouseDownInfo.lineNumber,n=this.mouseDownInfo.iconClicked,o=e.target.range;if(!o||o.startLineNumber!==i)return;if(n){if(4!==e.target.type)return}else{const e=this.editor.getModel();if(!e||o.startColumn!==e.getLineMaxColumn(i))return}const s=t.getRegionAtLine(i);if(s&&s.startLineNumber===i){const o=s.isCollapsed;if(n||o){let n=[];if(e.event.altKey){const e=e=>!e.containedBy(s)&&!s.containedBy(e),i=t.getRegionsInside(null,e);for(const e of i)e.isCollapsed&&n.push(e);0===n.length&&(n=i)}else{const i=e.event.middleButton||e.event.shiftKey;if(i)for(const e of t.getRegionsInside(s))e.isCollapsed===o&&n.push(e);!o&&i&&0!==n.length||n.push(s)}t.toggleCollapseState(n),this.reveal({lineNumber:i,column:1})}}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};ne.ID="editor.contrib.folding",ne=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([te(1,I.i6),te(2,p.c_),te(3,$.lT),te(4,G.A),te(5,Y.p)],ne);class oe{constructor(e){this.editor=e,this._onDidChange=new m.Q5,this._computed=0,this._limited=!1}get limit(){return this.editor.getOptions().get(45)}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}class se extends d.R6{runEditorCommand(e,t,i){const n=e.get(p.c_),o=ne.get(t);if(!o)return;const s=o.getFoldingModel();return s?(this.reportTelemetry(e,t),s.then((e=>{if(e){this.invoke(o,e,t,i,n);const s=t.getSelection();s&&o.reveal(s.getStartPosition())}}))):void 0}getSelectedLines(e){const t=e.getSelections();return t?t.map((e=>e.startLineNumber)):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map((e=>e+1)):this.getSelectedLines(t)}run(e,t){}}function re(e){if(!c.o8(e)){if(!c.Kn(e))return!1;const t=e;if(!c.o8(t.levels)&&!c.hj(t.levels))return!1;if(!c.o8(t.direction)&&!c.HD(t.direction))return!1;if(!(c.o8(t.selectionLines)||Array.isArray(t.selectionLines)&&t.selectionLines.every(c.hj)))return!1}return!0}class ae extends se{getFoldingLevel(){return parseInt(this.id.substr(ae.ID_PREFIX.length))}invoke(e,t,i){!function(e,t,i,n){const o=e.getRegionsInside(null,((e,i)=>i===t&&true!==e.isCollapsed&&!n.some((t=>e.containsLine(t)))));e.toggleCollapseState(o)}(t,this.getFoldingLevel(),0,this.getSelectedLines(i))}}ae.ID_PREFIX="editor.foldLevel",ae.ID=e=>ae.ID_PREFIX+e,(0,d._K)(ne.ID,ne,0),(0,d.Qr)(class extends se{constructor(){super({id:"editor.unfold",label:T.NC("unfoldAction.label","Unfold"),alias:"Unfold",precondition:ie,kbOpts:{kbExpr:u.u.editorTextFocus,primary:3166,mac:{primary:2654},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:re,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){const o=n&&n.levels||1,s=this.getLineNumbers(n,i);n&&"up"===n.direction?C(t,!1,o,s):b(t,!1,o,s)}}),(0,d.Qr)(class extends se{constructor(){super({id:"editor.unfoldRecursively",label:T.NC("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:ie,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2142),weight:100}})}invoke(e,t,i,n){b(t,!1,Number.MAX_VALUE,this.getSelectedLines(i))}}),(0,d.Qr)(class extends se{constructor(){super({id:"editor.fold",label:T.NC("foldAction.label","Fold"),alias:"Fold",precondition:ie,kbOpts:{kbExpr:u.u.editorTextFocus,primary:3164,mac:{primary:2652},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:re,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){const o=this.getLineNumbers(n,i),s=n&&n.levels,r=n&&n.direction;"number"!=typeof s&&"string"!=typeof r?function(e,t,i){const n=[];for(const t of i){const i=e.getAllRegionsAtLine(t,(e=>true!==e.isCollapsed));i.length>0&&n.push(i[0])}e.toggleCollapseState(n)}(t,0,o):"up"===r?C(t,!0,s||1,o):b(t,!0,s||1,o)}}),(0,d.Qr)(class extends se{constructor(){super({id:"editor.foldRecursively",label:T.NC("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:ie,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2140),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);b(t,!0,Number.MAX_VALUE,n)}}),(0,d.Qr)(class extends se{constructor(){super({id:"editor.foldAll",label:T.NC("foldAllAction.label","Fold All"),alias:"Fold All",precondition:ie,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2069),weight:100}})}invoke(e,t,i){b(t,!0)}}),(0,d.Qr)(class extends se{constructor(){super({id:"editor.unfoldAll",label:T.NC("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:ie,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2088),weight:100}})}invoke(e,t,i){b(t,!1)}}),(0,d.Qr)(class extends se{constructor(){super({id:"editor.foldAllBlockComments",label:T.NC("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:ie,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2138),weight:100}})}invoke(e,t,i,n,o){if(t.regions.hasTypes())S(t,g.AD.Comment.value,!0);else{const e=i.getModel();if(!e)return;const n=o.getLanguageConfiguration(e.getLanguageId()).comments;n&&n.blockCommentStartToken&&w(t,new RegExp("^\\s*"+(0,l.ec)(n.blockCommentStartToken)),!0)}}}),(0,d.Qr)(class extends se{constructor(){super({id:"editor.foldAllMarkerRegions",label:T.NC("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:ie,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2077),weight:100}})}invoke(e,t,i,n,o){if(t.regions.hasTypes())S(t,g.AD.Region.value,!0);else{const e=i.getModel();if(!e)return;const n=o.getLanguageConfiguration(e.getLanguageId()).foldingRules;n&&n.markers&&n.markers.start&&w(t,new RegExp(n.markers.start),!0)}}}),(0,d.Qr)(class extends se{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:T.NC("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:ie,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2078),weight:100}})}invoke(e,t,i,n,o){if(t.regions.hasTypes())S(t,g.AD.Region.value,!1);else{const e=i.getModel();if(!e)return;const n=o.getLanguageConfiguration(e.getLanguageId()).foldingRules;n&&n.markers&&n.markers.start&&w(t,new RegExp(n.markers.start),!1)}}}),(0,d.Qr)(class extends se{constructor(){super({id:"editor.foldAllExcept",label:T.NC("foldAllExcept.label","Fold All Regions Except Selected"),alias:"Fold All Regions Except Selected",precondition:ie,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2136),weight:100}})}invoke(e,t,i){y(t,!0,this.getSelectedLines(i))}}),(0,d.Qr)(class extends se{constructor(){super({id:"editor.unfoldAllExcept",label:T.NC("unfoldAllExcept.label","Unfold All Regions Except Selected"),alias:"Unfold All Regions Except Selected",precondition:ie,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2134),weight:100}})}invoke(e,t,i){y(t,!1,this.getSelectedLines(i))}}),(0,d.Qr)(class extends se{constructor(){super({id:"editor.toggleFold",label:T.NC("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:ie,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2090),weight:100}})}invoke(e,t,i){!function(e,t,i){const n=[];for(const t of i){const i=e.getRegionAtLine(t);if(i){i.isCollapsed;n.push(i),0}}e.toggleCollapseState(n)}(t,0,this.getSelectedLines(i))}}),(0,d.Qr)(class extends se{constructor(){super({id:"editor.gotoParentFold",label:T.NC("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:ie,kbOpts:{kbExpr:u.u.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=function(e,t){let i=null;const n=t.getRegionAtLine(e);if(null!==n&&(i=n.startLineNumber,e===i)){const e=n.parentIndex;i=-1!==e?t.regions.getStartLineNumber(e):null}return i}(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,d.Qr)(class extends se{constructor(){super({id:"editor.gotoPreviousFold",label:T.NC("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:ie,kbOpts:{kbExpr:u.u.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=function(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){if(e!==i.startLineNumber)return i.startLineNumber;{const e=i.parentIndex;let n=0;for(-1!==e&&(n=t.regions.getStartLineNumber(i.parentIndex));null!==i;){if(!(i.regionIndex>0))return null;if(i=t.regions.toRegion(i.regionIndex-1),i.startLineNumber<=n)return null;if(i.parentIndex===e)return i.startLineNumber}}}else if(t.regions.length>0)for(i=t.regions.toRegion(t.regions.length-1);null!==i;){if(i.startLineNumber0?t.regions.toRegion(i.regionIndex-1):null}return null}(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,d.Qr)(class extends se{constructor(){super({id:"editor.gotoNextFold",label:T.NC("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:ie,kbOpts:{kbExpr:u.u.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=function(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){const e=i.parentIndex;let n=0;if(-1!==e)n=t.regions.getEndLineNumber(i.parentIndex);else{if(0===t.regions.length)return null;n=t.regions.getEndLineNumber(t.regions.length-1)}for(;null!==i;){if(!(i.regionIndex=n)return null;if(i.parentIndex===e)return i.startLineNumber}}else if(t.regions.length>0)for(i=t.regions.toRegion(0);null!==i;){if(i.startLineNumber>e)return i.startLineNumber;i=i.regionIndexe.startLineNumber&&(o.push({startLineNumber:e.startLineNumber,endLineNumber:t,type:void 0,isCollapsed:!0,source:1}),i.setSelection({startLineNumber:e.startLineNumber,startColumn:1,endLineNumber:e.startLineNumber,endColumn:1}))}if(o.length>0){o.sort(((e,t)=>e.startLineNumber-t.startLineNumber));const e=f.MN.sanitizeAndMerge(t.regions,o,null===(n=i.getModel())||void 0===n?void 0:n.getLineCount());t.updatePost(f.MN.fromFoldRanges(e))}}}}),(0,d.Qr)(class extends se{constructor(){super({id:"editor.removeManualFoldingRanges",label:T.NC("removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:ie,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2137),weight:100}})}invoke(e,t,i){const n=i.getSelections();if(n){const i=[];for(const e of n){const{startLineNumber:t,endLineNumber:n}=e;i.push(n>=t?{startLineNumber:t,endLineNumber:n}:{endLineNumber:n,startLineNumber:t})}t.removeManualRanges(i),e.triggerFoldingModelChanged()}}});for(let e=1;e<=7;e++)(0,d.QG)(new ae({id:ae.ID(e),label:T.NC("foldLevelAction.label","Fold Level {0}",e),alias:`Fold Level ${e}`,precondition:ie,kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2048|21+e),weight:100}}));Z.P.registerCommand("_executeFoldingRangeProvider",(function(e,...t){return i=this,n=void 0,a=function*(){const[i]=t;if(!(i instanceof X.o))throw(0,s.b1)();const n=e.get(Y.p),r=e.get(J.q).getModel(i);if(!r)throw(0,s.b1)();const a=e.get(ee.Ui);if(!a.getValue("editor.folding",{resource:i}))return[];const l=e.get(p.c_),c=a.getValue("editor.foldingStrategy",{resource:i}),h={get limit(){return a.getValue("editor.foldingMaximumRegions",{resource:i})},update:(e,t)=>{}},d=new D.aI(r,l,h);let u=d;if("indentation"!==c){const e=ne.getFoldingRangeProviders(n,r);e.length&&(u=new q.e(r,e,(()=>{}),h,d))}const m=yield u.compute(o.T.None),f=[];try{if(m)for(let e=0;e{"use strict";i.d(t,{MN:()=>a,Xl:()=>o});const n={0:" ",1:"u",2:"r"},o=16777215,s=4278190080;class r{constructor(e){const t=Math.ceil(e/32);this._states=new Uint32Array(t)}get(e){const t=e/32|0,i=e%32;return 0!=(this._states[t]&1<65535)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new r(e.length),this._userDefinedStates=new r(e.length),this._recoveredStates=new r(e.length),this._types=i,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;const e=[],t=(t,i)=>{const n=e[e.length-1];return this.getStartLineNumber(n)<=t&&this.getEndLineNumber(n)>=i};for(let i=0,n=this._startIndexes.length;io||s>o)throw new Error("startLineNumber or endLineNumber must not exceed "+o);for(;e.length>0&&!t(n,s);)e.pop();const r=e.length>0?e[e.length-1]:-1;e.push(i),this._startIndexes[i]=n+((255&r)<<24),this._endIndexes[i]=s+((65280&r)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&o}getEndLineNumber(e){return this._endIndexes[e]&o}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){return this._collapseStates.get(e)}setCollapsed(e,t){this._collapseStates.set(e,t)}isUserDefined(e){return this._userDefinedStates.get(e)}setUserDefined(e,t){return this._userDefinedStates.set(e,t)}isRecovered(e){return this._recoveredStates.get(e)}setRecovered(e,t){return this._recoveredStates.set(e,t)}getSource(e){return this.isUserDefined(e)?1:this.isRecovered(e)?2:0}setSource(e,t){1===t?(this.setUserDefined(e,!0),this.setRecovered(e,!1)):2===t?(this.setUserDefined(e,!1),this.setRecovered(e,!0)):(this.setUserDefined(e,!1),this.setRecovered(e,!1))}setCollapsedAllOfType(e,t){let i=!1;if(this._types)for(let n=0;n>>24)+((this._endIndexes[e]&s)>>>16);return 65535===t?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,i=this._startIndexes.length;if(0===i)return-1;for(;t=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){const e=[];for(let t=0;tArray.isArray(e)?i=>ii=c.startLineNumber))l&&l.startLineNumber===c.startLineNumber?(1===c.source?e=c:(e=l,e.isCollapsed=c.isCollapsed&&l.endLineNumber===c.endLineNumber,e.source=0),l=o(++r)):(e=c,c.isCollapsed&&0===c.source&&(e.source=2)),c=s(++a);else{let t=a,i=c;for(;;){if(!i||i.startLineNumber>l.endLineNumber){e=l;break}if(1===i.source&&i.endLineNumber>l.endLineNumber)break;i=s(++t)}l=o(++r)}if(e){for(;d&&d.endLineNumbere.startLineNumber&&e.startLineNumber>u&&e.endLineNumber<=i&&(!d||d.endLineNumber>=e.endLineNumber)&&(g.push(e),u=e.startLineNumber,d&&h.push(d),d=e)}}return g}}class l{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}},84990:(e,t,i)=>{"use strict";i.d(t,{aI:()=>s});var n=i(59616),o=i(37702);class s{constructor(e,t,i){this.editorModel=e,this.languageConfigurationService=t,this.foldingRangesLimit=i,this.id="indent"}dispose(){}compute(e){const t=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,i=t&&!!t.offSide,o=t&&t.markers;return Promise.resolve(function(e,t,i,o=a){const s=e.getOptions().tabSize,l=new r(o);let c;i&&(c=new RegExp(`(${i.start.source})|(?:${i.end.source})`));const h=[],d=e.getLineCount()+1;h.push({indent:-1,endAbove:d,line:d});for(let i=e.getLineCount();i>0;i--){const o=e.getLineContent(i),r=(0,n.q)(o,s);let a,d=h[h.length-1];if(-1!==r){if(c&&(a=o.match(c))){if(!a[1]){h.push({indent:-2,endAbove:i,line:i});continue}{let e=h.length-1;for(;e>0&&-2!==h[e].indent;)e--;if(e>0){h.length=e+1,d=h[e],l.insertFirst(i,d.line,r),d.line=i,d.indent=r,d.endAbove=i;continue}}}if(d.indent>r){do{h.pop(),d=h[h.length-1]}while(d.indent>r);const e=d.endAbove-1;e-i>=1&&l.insertFirst(i,e,r)}d.indent===r?d.endAbove=i:h.push({indent:r,endAbove:i,line:i})}else t&&(d.endAbove=i)}return l.toIndentRanges(e)}(this.editorModel,i,o,this.foldingRangesLimit))}}class r{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,i){if(e>o.Xl||t>o.Xl)return;const n=this._length;this._startIndexes[n]=e,this._endIndexes[n]=t,this._length++,i<1e3&&(this._indentOccurrences[i]=(this._indentOccurrences[i]||0)+1)}toIndentRanges(e){const t=this._foldingRangesLimit.limit;if(this._length<=t){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=this._length-1,n=0;i>=0;i--,n++)e[n]=this._startIndexes[i],t[n]=this._endIndexes[i];return new o.MN(e,t)}{this._foldingRangesLimit.update(this._length,t);let i=0,s=this._indentOccurrences.length;for(let e=0;et){s=e;break}i+=n}}const r=e.getOptions().tabSize,a=new Uint32Array(t),l=new Uint32Array(t);for(let o=this._length-1,c=0;o>=0;o--){const h=this._startIndexes[o],d=e.getLineContent(h),u=(0,n.q)(d,r);(u{}}},99155:(e,t,i)=>{"use strict";i.d(t,{e:()=>a});var n=i(17301),o=i(5976),s=i(37702);const r={};class a{constructor(e,t,i,n,s){this.editorModel=e,this.providers=t,this.handleFoldingRangesChange=i,this.foldingRangesLimit=n,this.fallbackRangeProvider=s,this.id="syntax",this.disposables=new o.SL,s&&this.disposables.add(s);for(const e of t)"function"==typeof e.onDidChange&&this.disposables.add(e.onDidChange(i))}compute(e){return function(e,t,i){let o=null;const s=e.map(((e,s)=>Promise.resolve(e.provideFoldingRanges(t,r,i)).then((e=>{if(!i.isCancellationRequested&&Array.isArray(e)){Array.isArray(o)||(o=[]);const i=t.getLineCount();for(const t of e)t.start>0&&t.end>t.start&&t.end<=i&&o.push({start:t.start,end:t.end,rank:s,kind:t.kind})}}),n.Cp)));return Promise.all(s).then((e=>o))}(this.providers,this.editorModel,e).then((t=>{var i,n;return t?function(e,t){const i=e.sort(((e,t)=>{let i=e.start-t.start;return 0===i&&(i=e.rank-t.rank),i})),n=new l(t);let o;const s=[];for(const e of i)if(o){if(e.start>o.start)if(e.end<=o.end)s.push(o),o=e,n.add(e.start,e.end,e.kind&&e.kind.value,s.length);else{if(e.start>o.end){do{o=s.pop()}while(o&&e.start>o.end);o&&s.push(o),o=e}n.add(e.start,e.end,e.kind&&e.kind.value,s.length)}}else o=e,n.add(e.start,e.end,e.kind&&e.kind.value,s.length);return n.toIndentRanges()}(t,this.foldingRangesLimit):null!==(n=null===(i=this.fallbackRangeProvider)||void 0===i?void 0:i.compute(e))&&void 0!==n?n:null}))}dispose(){this.disposables.dispose()}}class l{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,i,n){if(e>s.Xl||t>s.Xl)return;const o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t,this._nestingLevels[o]=n,this._types[o]=i,this._length++,n<30&&(this._nestingLevelCounts[n]=(this._nestingLevelCounts[n]||0)+1)}toIndentRanges(){const e=this._foldingRangesLimit.limit;if(this._length<=e){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=0;ie){i=n;break}t+=o}}const n=new Uint32Array(e),o=new Uint32Array(e),r=[];for(let s=0,a=0;s{"use strict";i.r(t);var n=i(16830),o=i(82334),s=i(63580);class r extends n.R6{constructor(){super({id:"editor.action.fontZoomIn",label:s.NC("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})}run(e,t){o.C.setZoomLevel(o.C.getZoomLevel()+1)}}class a extends n.R6{constructor(){super({id:"editor.action.fontZoomOut",label:s.NC("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})}run(e,t){o.C.setZoomLevel(o.C.getZoomLevel()-1)}}class l extends n.R6{constructor(){super({id:"editor.action.fontZoomReset",label:s.NC("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})}run(e,t){o.C.setZoomLevel(0)}}(0,n.Qr)(r),(0,n.Qr)(a),(0,n.Qr)(l)},58823:(e,t,i)=>{"use strict";i.d(t,{xC:()=>D,Zg:()=>E,x$:()=>T,Qq:()=>A,Qs:()=>R});var n=i(85152),o=i(9488),s=i(71050),r=i(17301),a=i(53725),l=i(91741),c=i(98401),h=i(70666),d=i(16467),u=i(65520),g=i(50187),p=i(24314),m=i(3860),f=i(85215),_=i(88216),v=i(35120),b=i(63580),C=i(94565);class y{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return"string"==typeof e?e.toLowerCase():e._lower}}class w{constructor(e){if(this._set=new Set,e)for(const t of e)this.add(t)}add(e){this._set.add(y.toKey(e))}has(e){return this._set.has(y.toKey(e))}}var S=i(72065),k=i(71922),x=i(43557),L=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function E(e){if(!(e=e.filter((e=>e.range))).length)return;let{range:t}=e[0];for(let i=1;ie.provideDocumentRangeFormattingEdits(t,t.getFullModelRange(),i,n)})}return n}class D{static setFormatterSelector(e){return{dispose:D._selectors.unshift(e)}}static select(e,t,i){return L(this,void 0,void 0,(function*(){if(0===e.length)return;const n=a.$.first(D._selectors);return n?yield n(e,t,i):void 0}))}}function T(e,t,i,n,o,s){return L(this,void 0,void 0,(function*(){const r=e.get(S.TG),{documentRangeFormattingEditProvider:a}=e.get(k.p),l=(0,u.CL)(t)?t.getModel():t,c=a.ordered(l),h=yield D.select(c,l,n);h&&(o.report(h),yield r.invokeFunction(I,h,t,i,s))}))}function I(e,t,i,n,s){var r,a;return L(this,void 0,void 0,(function*(){const l=e.get(f.p),c=e.get(x.VZ);let h,g;(0,u.CL)(i)?(h=i.getModel(),g=new d.Dl(i,5,void 0,s)):(h=i,g=new d.YQ(i,s));const _=[];let b=0;for(const e of(0,o._2)(n).sort(p.e.compareRangesUsingStarts))b>0&&p.e.areIntersectingOrTouching(_[b-1],e)?_[b-1]=p.e.fromPositions(_[b-1].getStartPosition(),e.getEndPosition()):b=_.push(e);const C=e=>L(this,void 0,void 0,(function*(){var i,n;c.trace("[format][provideDocumentRangeFormattingEdits] (request)",null===(i=t.extensionId)||void 0===i?void 0:i.value,e);const o=(yield t.provideDocumentRangeFormattingEdits(h,e,h.getFormattingOptions(),g.token))||[];return c.trace("[format][provideDocumentRangeFormattingEdits] (response)",null===(n=t.extensionId)||void 0===n?void 0:n.value,o),o})),y=(e,t)=>{if(!e.length||!t.length)return!1;const i=e.reduce(((e,t)=>p.e.plusRange(e,t.range)),e[0].range);if(!t.some((e=>p.e.intersectRanges(i,e.range))))return!1;for(const i of e)for(const e of t)if(p.e.intersectRanges(i.range,e.range))return!0;return!1},w=[],S=[];try{if("function"==typeof t.provideDocumentRangesFormattingEdits){c.trace("[format][provideDocumentRangeFormattingEdits] (request)",null===(r=t.extensionId)||void 0===r?void 0:r.value,_);const e=(yield t.provideDocumentRangesFormattingEdits(h,_,h.getFormattingOptions(),g.token))||[];c.trace("[format][provideDocumentRangeFormattingEdits] (response)",null===(a=t.extensionId)||void 0===a?void 0:a.value,e),S.push(e)}else{for(const e of _){if(g.token.isCancellationRequested)return!0;S.push(yield C(e))}for(let e=0;e<_.length;++e)for(let t=e+1;t<_.length;++t){if(g.token.isCancellationRequested)return!0;if(y(S[e],S[t])){const i=p.e.plusRange(_[e],_[t]),n=yield C(i);_.splice(t,1),_.splice(e,1),_.push(i),S.splice(t,1),S.splice(e,1),S.push(n),e=0,t=0}}}for(const e of S){if(g.token.isCancellationRequested)return!0;const t=yield l.computeMoreMinimalEdits(h.uri,e);t&&w.push(...t)}}finally{g.dispose()}if(0===w.length)return!1;if((0,u.CL)(i))v.V.execute(i,w,!0),E(w),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=w,t=new m.Y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);h.pushEditOperations([t],w.map((e=>({text:e.text,range:p.e.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(p.e.areIntersectingOrTouching(i,t))return[new m.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return!0}))}function A(e,t,i,n,o){return L(this,void 0,void 0,(function*(){const s=e.get(S.TG),r=e.get(k.p),a=(0,u.CL)(t)?t.getModel():t,l=N(r.documentFormattingEditProvider,r.documentRangeFormattingEditProvider,a),c=yield D.select(l,a,i);c&&(n.report(c),yield s.invokeFunction(M,c,t,i,o))}))}function M(e,t,i,n,o){return L(this,void 0,void 0,(function*(){const s=e.get(f.p);let r,a,l;(0,u.CL)(i)?(r=i.getModel(),a=new d.Dl(i,5,void 0,o)):(r=i,a=new d.YQ(i,o));try{const e=yield t.provideDocumentFormattingEdits(r,r.getFormattingOptions(),a.token);if(l=yield s.computeMoreMinimalEdits(r.uri,e),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||0===l.length)return!1;if((0,u.CL)(i))v.V.execute(i,l,2!==n),2!==n&&(E(l),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1));else{const[{range:e}]=l,t=new m.Y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);r.pushEditOperations([t],l.map((e=>({text:e.text,range:p.e.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(p.e.areIntersectingOrTouching(i,t))return[new m.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return!0}))}function R(e,t,i,n,o,s,a){const l=t.onTypeFormattingEditProvider.ordered(i);return 0===l.length||l[0].autoFormatTriggerCharacters.indexOf(o)<0?Promise.resolve(void 0):Promise.resolve(l[0].provideOnTypeFormattingEdits(i,n,o,s,a)).catch(r.Cp).then((t=>e.computeMoreMinimalEdits(i.uri,t)))}D._selectors=new l.S,C.P.registerCommand("_executeFormatRangeProvider",(function(e,...t){return L(this,void 0,void 0,(function*(){const[i,n,a]=t;(0,c.p_)(h.o.isUri(i)),(0,c.p_)(p.e.isIRange(n));const l=e.get(_.S),d=e.get(f.p),u=e.get(k.p),g=yield l.createModelReference(i);try{return function(e,t,i,n,s,a){return L(this,void 0,void 0,(function*(){const l=t.documentRangeFormattingEditProvider.ordered(i);for(const t of l){const l=yield Promise.resolve(t.provideDocumentRangeFormattingEdits(i,n,s,a)).catch(r.Cp);if((0,o.Of)(l))return yield e.computeMoreMinimalEdits(i.uri,l)}}))}(d,u,g.object.textEditorModel,p.e.lift(n),a,s.T.None)}finally{g.dispose()}}))})),C.P.registerCommand("_executeFormatDocumentProvider",(function(e,...t){return L(this,void 0,void 0,(function*(){const[i,n]=t;(0,c.p_)(h.o.isUri(i));const a=e.get(_.S),l=e.get(f.p),d=e.get(k.p),u=yield a.createModelReference(i);try{return function(e,t,i,n,s){return L(this,void 0,void 0,(function*(){const a=N(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,i);for(const t of a){const a=yield Promise.resolve(t.provideDocumentFormattingEdits(i,n,s)).catch(r.Cp);if((0,o.Of)(a))return yield e.computeMoreMinimalEdits(i.uri,a)}}))}(l,d,u.object.textEditorModel,n,s.T.None)}finally{u.dispose()}}))})),C.P.registerCommand("_executeFormatOnTypeProvider",(function(e,...t){return L(this,void 0,void 0,(function*(){const[i,n,o,r]=t;(0,c.p_)(h.o.isUri(i)),(0,c.p_)(g.L.isIPosition(n)),(0,c.p_)("string"==typeof o);const a=e.get(_.S),l=e.get(f.p),d=e.get(k.p),u=yield a.createModelReference(i);try{return R(l,d,u.object.textEditorModel,g.L.lift(n),o,r,s.T.None)}finally{u.dispose()}}))}))},61097:(e,t,i)=>{"use strict";i.r(t);var n=i(9488),o=i(71050),s=i(17301),r=i(22258),a=i(5976),l=i(16830),c=i(11640),h=i(44906),d=i(24314),u=i(29102),g=i(85215),p=i(71922),m=i(58823),f=i(35120),_=i(63580),v=i(94565),b=i(93983),C=i(72065),y=i(90535),w=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},S=function(e,t){return function(i,n){t(i,n,e)}},k=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let x=class{constructor(e,t,i){this._editor=e,this._languageFeaturesService=t,this._workerService=i,this._disposables=new a.SL,this._sessionDisposables=new a.SL,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(54)&&this._update()}))),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(54))return;if(!this._editor.hasModel())return;const e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;const i=new h.q;for(const e of t.autoFormatTriggerCharacters)i.add(e.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType((e=>{const t=e.charCodeAt(e.length-1);i.has(t)&&this._trigger(String.fromCharCode(t))})))}_trigger(e){if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const t=this._editor.getModel(),i=this._editor.getPosition(),s=new o.A,r=this._editor.onDidChangeModelContent((e=>{if(e.isFlush)return s.cancel(),void r.dispose();for(let t=0,n=e.changes.length;t{s.token.isCancellationRequested||(0,n.Of)(e)&&(f.V.execute(this._editor,e,!0),(0,m.Zg)(e))})).finally((()=>{r.dispose()}))}};x.ID="editor.contrib.autoFormat",x=w([S(1,p.p),S(2,g.p)],x);let L=class{constructor(e,t,i){this.editor=e,this._languageFeaturesService=t,this._instantiationService=i,this._callOnDispose=new a.SL,this._callOnModel=new a.SL,this._callOnDispose.add(e.onDidChangeConfiguration((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModel((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModelLanguage((()=>this._update()))),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(53)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste((({range:e})=>this._trigger(e))))}_trigger(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(m.x$,this.editor,e,2,y.Ex.None,o.T.None).catch(s.dL))}};L.ID="editor.contrib.formatOnPaste",L=w([S(1,p.p),S(2,C.TG)],L);class E extends l.R6{constructor(){super({id:"editor.action.formatDocument",label:_.NC("formatDocument.label","Format Document"),alias:"Format Document",precondition:b.Ao.and(u.u.notInCompositeEditor,u.u.writable,u.u.hasDocumentFormattingProvider),kbOpts:{kbExpr:u.u.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}run(e,t){return k(this,void 0,void 0,(function*(){if(t.hasModel()){const i=e.get(C.TG),n=e.get(y.ek);yield n.showWhile(i.invokeFunction(m.Qq,t,1,y.Ex.None,o.T.None),250)}}))}}class N extends l.R6{constructor(){super({id:"editor.action.formatSelection",label:_.NC("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:b.Ao.and(u.u.writable,u.u.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2084),weight:100},contextMenuOpts:{when:u.u.hasNonEmptySelection,group:"1_modification",order:1.31}})}run(e,t){return k(this,void 0,void 0,(function*(){if(!t.hasModel())return;const i=e.get(C.TG),n=t.getModel(),s=t.getSelections().map((e=>e.isEmpty()?new d.e(e.startLineNumber,1,e.startLineNumber,n.getLineMaxColumn(e.startLineNumber)):e)),r=e.get(y.ek);yield r.showWhile(i.invokeFunction(m.x$,t,s,1,y.Ex.None,o.T.None),250)}))}}(0,l._K)(x.ID,x,2),(0,l._K)(L.ID,L,2),(0,l.Qr)(E),(0,l.Qr)(N),v.P.registerCommand("editor.action.format",(e=>k(void 0,void 0,void 0,(function*(){const t=e.get(c.$).getFocusedCodeEditor();if(!t||!t.hasModel())return;const i=e.get(v.H);t.getSelection().isEmpty()?yield i.executeCommand("editor.action.formatDocument"):yield i.executeCommand("editor.action.formatSelection")}))))},35120:(e,t,i)=>{"use strict";i.d(t,{V:()=>r});var n=i(69386),o=i(24314),s=i(43407);class r{static _handleEolEdits(e,t){let i;const n=[];for(const e of t)"number"==typeof e.eol&&(i=e.eol),e.range&&"string"==typeof e.text&&n.push(e);return"number"==typeof i&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const a=s.Z.capture(e),l=r._handleEolEdits(e,t);1===l.length&&r._isFullModelReplaceEdit(e,l[0])?e.executeEdits("formatEditsCommand",l.map((e=>n.h.replace(o.e.lift(e.range),e.text)))):e.executeEdits("formatEditsCommand",l.map((e=>n.h.replaceMove(o.e.lift(e.range),e.text)))),i&&e.pushUndoStop(),a.restoreRelativeVerticalPositionOfCursor(e)}}},64970:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MarkerController:()=>ne,NextMarkerAction:()=>se});var n=i(73046),o=i(5976),s=i(16830),r=i(11640),a=i(50187),l=i(24314),c=i(29102),h=i(9488),d=i(4669),u=i(91741),g=i(97295),p=i(70666),m=i(65026),f=i(72065),_=i(98674),v=i(33108),b=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};class y{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let w=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new d.Q5,this.onDidChange=this._onDidChange.event,this._dispoables=new o.SL,this._markers=[],this._nextIdx=-1,p.o.isUri(e)?this._resourceFilter=t=>t.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),s=(e,t)=>{let i=(0,g.qu)(e.resource.toString(),t.resource.toString());return 0===i&&(i="position"===n?l.e.compareRangesUsingStarts(e,t)||_.ZL.compare(e.severity,t.severity):_.ZL.compare(e.severity,t.severity)||l.e.compareRangesUsingStarts(e,t)),i},r=()=>{this._markers=this._markerService.read({resource:p.o.isUri(e)?e:void 0,severities:_.ZL.Error|_.ZL.Warning|_.ZL.Info}),"function"==typeof e&&(this._markers=this._markers.filter((e=>this._resourceFilter(e.resource)))),this._markers.sort(s)};r(),this._dispoables.add(t.onMarkerChanged((e=>{this._resourceFilter&&!e.some((e=>this._resourceFilter(e)))||(r(),this._nextIdx=-1,this._onDidChange.fire())})))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!(!this._resourceFilter||!e)&&this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new y(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,o=this._markers.findIndex((t=>t.resource.toString()===e.uri.toString()));o<0&&(o=(0,h.ry)(this._markers,{resource:e.uri},((e,t)=>(0,g.qu)(e.resource.toString(),t.resource.toString()))),o<0&&(o=~o));for(let i=o;it.resource.toString()===e.toString()));if(!(i<0))for(;i{e.preventDefault();const t=this._relatedDiagnostics.get(e.target);t&&i(t)}))),this._scrollable=new I.NB(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll((e=>{r.style.left=`-${e.scrollLeft}px`,r.style.top=`-${e.scrollTop}px`}))),this._disposables.add(this._scrollable)}dispose(){(0,o.B9)(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:o}=e;let s=((null==t?void 0:t.length)||0)+2;o&&(s+="string"==typeof o?o.length:o.value.length);const r=(0,g.uq)(i);this._lines=r.length,this._longestLineLength=0;for(const e of r)this._longestLineLength=Math.max(e.length+s,this._longestLineLength);T.PO(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let a=this._messageBlock;for(const e of r)a=document.createElement("div"),a.innerText=e,""===e&&(a.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(a);if(t||o){const e=document.createElement("span");if(e.classList.add("details"),a.appendChild(e),t){const i=document.createElement("span");i.innerText=t,i.classList.add("source"),e.appendChild(i)}if(o)if("string"==typeof o){const t=document.createElement("span");t.innerText=`(${o})`,t.classList.add("code"),e.appendChild(t)}else this._codeLink=T.$("a.code-link"),this._codeLink.setAttribute("href",`${o.target.toString()}`),this._codeLink.onclick=e=>{this._openerService.open(o.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()},T.R3(this._codeLink,T.$("span")).innerText=o.value,e.appendChild(this._codeLink)}if(T.PO(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),(0,h.Of)(n)){const e=this._relatedBlock.appendChild(document.createElement("div"));e.style.paddingTop=`${Math.floor(.66*this._editor.getOption(64))}px`,this._lines+=1;for(const t of n){const i=document.createElement("div"),n=document.createElement("a");n.classList.add("filename"),n.innerText=`${this._labelService.getUriBasenameLabel(t.resource)}(${t.startLineNumber}, ${t.startColumn}): `,n.title=this._labelService.getUriLabel(t.resource),this._relatedDiagnostics.set(n,t);const o=document.createElement("span");o.innerText=t.message,i.appendChild(n),i.appendChild(o),this._lines+=1,e.appendChild(i)}}const l=this._editor.getOption(48),c=Math.ceil(l.typicalFullwidthCharacterWidth*this._longestLineLength*.75),d=l.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:c,scrollHeight:d})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case _.ZL.Error:t=L.NC("Error","Error");break;case _.ZL.Warning:t=L.NC("Warning","Warning");break;case _.ZL.Info:t=L.NC("Info","Info");break;case _.ZL.Hint:t=L.NC("Hint","Hint")}let i=L.NC("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(i=`${n.getLineContent(e.startLineNumber)}, ${i}`),i}}let j=class e extends R.vk{constructor(e,t,i,n,s,r,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},s),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=r,this._labelService=a,this._callOnDispose=new o.SL,this._onDidSelectRelatedInformation=new d.Q5,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=_.ZL.Warning,this._backgroundColor=A.Il.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(ee);let t=G,i=Q;this._severity===_.ZL.Warning?(t=Y,i=Z):this._severity===_.ZL.Info&&(t=X,i=J);const n=e.getColor(t),o=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:o,primaryHeadingColor:e.getColor(R.IH),secondaryHeadingColor:e.getColor(R.R7)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(t){super._fillHead(t),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun((e=>this.editor.focus())));const i=[],n=this._menuService.createMenu(e.TitleMenu,this._contextKeyService);(0,O.vr)(n,void 0,i),this._actionbarWidget.push(i,{label:!1,icon:!0,index:0}),n.dispose()}_fillTitleIcon(e){this._icon=T.R3(e,T.$(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new U(this._container,this.editor,(e=>this._onDidSelectRelatedInformation.fire(e)),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=l.e.lift(e),o=this.editor.getPosition(),s=o&&n.containsPosition(o)?o:n.getStartPosition();super.show(s,this.computeRequiredHeight());const r=this.editor.getModel();if(r){const e=i>1?L.NC("problems","{0} of {1} problems",t,i):L.NC("change","{0} of {1} problem",t,i);this.setTitle((0,M.EZ)(r.uri),e)}this._icon.className=`codicon ${x.className(_.ZL.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(s,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};j.TitleMenu=new E.eH("gotoErrorTitleMenu"),j=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([z(1,W.XE),z(2,F.v4),z(3,E.co),z(4,f.TG),z(5,N.i6),z(6,P.e)],j);const K=(0,V.kwl)(V.lXJ,V.b6y),q=(0,V.kwl)(V.uoC,V.pW3),$=(0,V.kwl)(V.c63,V.T83),G=(0,V.P6G)("editorMarkerNavigationError.background",{dark:K,light:K,hcDark:V.lRK,hcLight:V.lRK},L.NC("editorMarkerNavigationError","Editor marker navigation widget error color.")),Q=(0,V.P6G)("editorMarkerNavigationError.headerBackground",{dark:(0,V.ZnX)(G,.1),light:(0,V.ZnX)(G,.1),hcDark:null,hcLight:null},L.NC("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),Y=(0,V.P6G)("editorMarkerNavigationWarning.background",{dark:q,light:q,hcDark:V.lRK,hcLight:V.lRK},L.NC("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Z=(0,V.P6G)("editorMarkerNavigationWarning.headerBackground",{dark:(0,V.ZnX)(Y,.1),light:(0,V.ZnX)(Y,.1),hcDark:"#0C141F",hcLight:(0,V.ZnX)(Y,.2)},L.NC("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),X=(0,V.P6G)("editorMarkerNavigationInfo.background",{dark:$,light:$,hcDark:V.lRK,hcLight:V.lRK},L.NC("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),J=(0,V.P6G)("editorMarkerNavigationInfo.headerBackground",{dark:(0,V.ZnX)(X,.1),light:(0,V.ZnX)(X,.1),hcDark:null,hcLight:null},L.NC("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),ee=(0,V.P6G)("editorMarkerNavigation.background",{dark:V.cvW,light:V.cvW,hcDark:V.cvW,hcLight:V.cvW},L.NC("editorMarkerNavigationBackground","Editor marker navigation widget background."));var te=function(e,t){return function(i,n){t(i,n,e)}},ie=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let ne=class e{static get(t){return t.getContribution(e.ID)}constructor(e,t,i,n,s){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=s,this._sessionDispoables=new o.SL,this._editor=e,this._widgetVisible=ae.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(j,this._editor),this._widget.onDidClose((()=>this.close()),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition((e=>{var t,i,n;(null===(t=this._model)||void 0===t?void 0:t.selected)&&l.e.containsPosition(null===(i=this._model)||void 0===i?void 0:i.selected.marker,e.position)||null===(n=this._model)||void 0===n||n.resetIndex()}))),this._sessionDispoables.add(this._model.onDidChange((()=>{if(!this._widget||!this._widget.position||!this._model)return;const e=this._model.find(this._editor.getModel().uri,this._widget.position);e?this._widget.updateMarker(e.marker):this._widget.showStale()}))),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation((e=>{this._editorService.openCodeEditor({resource:e.resource,options:{pinned:!0,revealIfOpened:!0,selection:l.e.lift(e).collapseToStart()}},this._editor),this.close(!1)}))),this._sessionDispoables.add(this._editor.onDidChangeModel((()=>this._cleanUp()))),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new a.L(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(t,i){var n,o;return ie(this,void 0,void 0,(function*(){if(this._editor.hasModel()){const s=this._getOrCreateModel(i?void 0:this._editor.getModel().uri);if(s.move(t,this._editor.getModel(),this._editor.getPosition()),!s.selected)return;if(s.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const r=yield this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);r&&(null===(n=e.get(r))||void 0===n||n.close(),null===(o=e.get(r))||void 0===o||o.nagivate(t,i))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}}))}};ne.ID="editor.contrib.markerController",ne=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([te(1,S),te(2,N.i6),te(3,r.$),te(4,f.TG)],ne);class oe extends s.R6{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}run(e,t){var i;return ie(this,void 0,void 0,(function*(){t.hasModel()&&(null===(i=ne.get(t))||void 0===i||i.nagivate(this._next,this._multiFile))}))}}class se extends oe{constructor(){super(!0,!1,{id:se.ID,label:se.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:c.u.focus,primary:578,weight:100},menuOpts:{menuId:j.TitleMenu,title:se.LABEL,icon:(0,D.q5)("marker-navigation-next",n.l.arrowDown,L.NC("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}se.ID="editor.action.marker.next",se.LABEL=L.NC("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class re extends oe{constructor(){super(!1,!1,{id:re.ID,label:re.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:c.u.focus,primary:1602,weight:100},menuOpts:{menuId:j.TitleMenu,title:re.LABEL,icon:(0,D.q5)("marker-navigation-previous",n.l.arrowUp,L.NC("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}re.ID="editor.action.marker.prev",re.LABEL=L.NC("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)"),(0,s._K)(ne.ID,ne,4),(0,s.Qr)(se),(0,s.Qr)(re),(0,s.Qr)(class extends oe{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:L.NC("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:c.u.focus,primary:66,weight:100},menuOpts:{menuId:E.eH.MenubarGoMenu,title:L.NC({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}),(0,s.Qr)(class extends oe{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:L.NC("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:c.u.focus,primary:1090,weight:100},menuOpts:{menuId:E.eH.MenubarGoMenu,title:L.NC({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}});const ae=new N.uy("markersNavigationVisible",!1),le=s._l.bindToContribution(ne.get);(0,s.fK)(new le({id:"closeMarkersNavigation",precondition:ae,handler:e=>e.close(),kbOpts:{weight:150,kbExpr:c.u.focus,primary:9,secondary:[1033]}}))},60628:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DefinitionAction:()=>ie,SymbolNavigationAction:()=>te,SymbolNavigationAnchor:()=>ee});var n=i(16268),o=i(85152),s=i(15393),r=i(22258),a=i(1432),l=i(98401),c=i(70666),h=i(16467),d=i(65520),u=i(16830),g=i(11640),p=i(84527),m=i(50187),f=i(24314),_=i(29102),v=i(96887),b=i(27376),C=i(1293),y=i(4669),w=i(5976),S=i(95935),k=i(63580),x=i(93983),L=i(65026),E=i(72065),N=i(91847),D=i(49989),T=i(59422),I=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},A=function(e,t){return function(i,n){t(i,n,e)}};const M=new x.uy("hasSymbols",!1,(0,k.NC)("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),R=(0,E.yh)("ISymbolNavigationService");let O=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=M.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),null===(e=this._currentState)||void 0===e||e.dispose(),null===(t=this._currentMessage)||void 0===t||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1)return void this.reset();this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new P(this._editorService),n=i.onDidChange((e=>{if(this._ignoreEditorChange)return;const i=this._editorService.getActiveCodeEditor();if(!i)return;const n=i.getModel(),o=i.getPosition();if(!n||!o)return;let s=!1,r=!1;for(const e of t.references)if((0,S.Xy)(e.uri,n.uri))s=!0,r=r||f.e.containsPosition(e.range,o);else if(s)break;s&&r||this.reset()}));this._currentState=(0,w.F8)(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:f.e.collapseToStart(t.range),selectionRevealType:3}},e).finally((()=>{this._ignoreEditorChange=!1}))}_showMessage(){var e;null===(e=this._currentMessage)||void 0===e||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?(0,k.NC)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):(0,k.NC)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};O=I([A(0,x.i6),A(1,g.$),A(2,T.lT),A(3,N.d)],O),(0,L.z)(R,O,1),(0,u.fK)(new class extends u._l{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:M,kbOpts:{weight:100,primary:70}})}runEditorCommand(e,t){return e.get(R).revealNext(t)}}),D.W.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:M,primary:9,handler(e){e.get(R).reset()}});let P=class{constructor(e){this._listener=new Map,this._disposables=new w.SL,this._onDidChange=new y.Q5,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),(0,w.B9)(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,(0,w.F8)(e.onDidChangeCursorPosition((t=>this._onDidChange.fire({editor:e}))),e.onDidChangeModelContent((t=>this._onDidChange.fire({editor:e})))))}_onDidRemoveEditor(e){var t;null===(t=this._listener.get(e))||void 0===t||t.dispose(),this._listener.delete(e)}};P=I([A(0,g.$)],P);var F,B,H,V,W,z,U,j,K=i(27753),q=i(52049),$=i(84144),G=i(94565),Q=i(90535),Y=i(40184),Z=i(71922),X=i(53725),J=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};$.BH.appendMenuItem($.eH.EditorContext,{submenu:$.eH.EditorContextPeek,title:k.NC("peek.submenu","Peek"),group:"navigation",order:100});class ee{static is(e){return!(!e||"object"!=typeof e)&&(e instanceof ee||!(!m.L.isIPosition(e.position)||!e.model))}constructor(e,t){this.model=e,this.position=t}}class te extends u.x1{static all(){return te._allSymbolNavigationCommands.values()}static _patchConfig(e){const t=Object.assign(Object.assign({},e),{f1:!0});if(t.menu)for(const i of X.$.wrap(t.menu))i.id!==$.eH.EditorContext&&i.id!==$.eH.EditorContextPeek||(i.when=x.Ao.and(e.precondition,i.when));return t}constructor(e,t){super(te._patchConfig(t)),this.configuration=e,te._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,n){if(!t.hasModel())return Promise.resolve(void 0);const r=e.get(T.lT),a=e.get(g.$),l=e.get(Q.ek),c=e.get(R),d=e.get(Z.p),u=e.get(E.TG),p=t.getModel(),m=t.getPosition(),f=ee.is(i)?i:new ee(p,m),_=new h.Dl(t,5),v=(0,s.eP)(this._getLocationModel(d,f.model,f.position,_.token),_.token).then((e=>J(this,void 0,void 0,(function*(){var s;if(!e||_.token.isCancellationRequested)return;let r;if((0,o.Z9)(e.ariaMessage),e.referenceAt(p.uri,m)){const e=this._getAlternativeCommand(t);!te._activeAlternativeCommands.has(e)&&te._allSymbolNavigationCommands.has(e)&&(r=te._allSymbolNavigationCommands.get(e))}const l=e.references.length;if(0===l){if(!this.configuration.muteMessage){const e=p.getWordAtPosition(m);null===(s=K.O.get(t))||void 0===s||s.showMessage(this._getNoResultFoundMessage(e),m)}}else{if(1!==l||!r)return this._onResult(a,c,t,e,n);te._activeAlternativeCommands.add(this.desc.id),u.invokeFunction((e=>r.runEditorCommand(e,t,i,n).finally((()=>{te._activeAlternativeCommands.delete(this.desc.id)}))))}}))),(e=>{r.error(e)})).finally((()=>{_.dispose()}));return l.showWhile(v,250),v}_onResult(e,t,i,n,o){return J(this,void 0,void 0,(function*(){const s=this._getGoToPreference(i);if(i instanceof p.H||!(this.configuration.openInPeek||"peek"===s&&n.references.length>1)){const r=n.firstReference(),a=n.references.length>1&&"gotoAndPeek"===s,l=yield this._openReference(i,e,r,this.configuration.openToSide,!a);a&&l?this._openInPeek(l,n,o):n.dispose(),"goto"===s&&t.put(r)}else this._openInPeek(i,n,o)}))}_openReference(e,t,i,n,o){return J(this,void 0,void 0,(function*(){let s;if((0,v.vx)(i)&&(s=i.targetSelectionRange),s||(s=i.range),!s)return;const r=yield t.openCodeEditor({resource:i.uri,options:{selection:f.e.collapseToStart(s),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(r){if(o){const e=r.getModel(),t=r.createDecorationsCollection([{range:s,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout((()=>{r.getModel()===e&&t.clear()}),350)}return r}}))}_openInPeek(e,t,i){const n=b.J.get(e);n&&e.hasModel()?n.toggleWidget(null!=i?i:e.getSelection(),(0,s.PG)((e=>Promise.resolve(t))),this.configuration.openInPeek):t.dispose()}}te._allSymbolNavigationCommands=new Map,te._activeAlternativeCommands=new Set;class ie extends te{_getLocationModel(e,t,i,n){return J(this,void 0,void 0,(function*(){return new C.oQ(yield(0,Y.nD)(e.definitionProvider,t,i,n),k.NC("def.title","Definitions"))}))}_getNoResultFoundMessage(e){return e&&e.word?k.NC("noResultWord","No definition found for '{0}'",e.word):k.NC("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(56).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(56).multipleDefinitions}}const ne=a.$L&&!(0,n.isStandalone)()?2118:70;(0,$.r1)(((F=class e extends ie{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,title:{value:k.NC("actions.goToDecl.label","Go to Definition"),original:"Go to Definition",mnemonicTitle:k.NC({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:x.Ao.and(_.u.hasDefinitionProvider,_.u.isInWalkThroughSnippet.toNegated()),keybinding:{when:_.u.editorTextFocus,primary:ne,weight:100},menu:[{id:$.eH.EditorContext,group:"navigation",order:1.1},{id:$.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),G.P.registerCommandAlias("editor.action.goToDeclaration",e.id)}}).id="editor.action.revealDefinition",F)),(0,$.r1)(((B=class e extends ie{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:e.id,title:{value:k.NC("actions.goToDeclToSide.label","Open Definition to the Side"),original:"Open Definition to the Side"},precondition:x.Ao.and(_.u.hasDefinitionProvider,_.u.isInWalkThroughSnippet.toNegated()),keybinding:{when:_.u.editorTextFocus,primary:(0,r.gx)(2089,ne),weight:100}}),G.P.registerCommandAlias("editor.action.openDeclarationToTheSide",e.id)}}).id="editor.action.revealDefinitionAside",B)),(0,$.r1)(((H=class e extends ie{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.id,title:{value:k.NC("actions.previewDecl.label","Peek Definition"),original:"Peek Definition"},precondition:x.Ao.and(_.u.hasDefinitionProvider,q.Jy.notInPeekEditor,_.u.isInWalkThroughSnippet.toNegated()),keybinding:{when:_.u.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:$.eH.EditorContextPeek,group:"peek",order:2}}),G.P.registerCommandAlias("editor.action.previewDeclaration",e.id)}}).id="editor.action.peekDefinition",H));class oe extends te{_getLocationModel(e,t,i,n){return J(this,void 0,void 0,(function*(){return new C.oQ(yield(0,Y.zq)(e.declarationProvider,t,i,n),k.NC("decl.title","Declarations"))}))}_getNoResultFoundMessage(e){return e&&e.word?k.NC("decl.noResultWord","No declaration found for '{0}'",e.word):k.NC("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(56).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(56).multipleDeclarations}}(0,$.r1)(((V=class e extends oe{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,title:{value:k.NC("actions.goToDeclaration.label","Go to Declaration"),original:"Go to Declaration",mnemonicTitle:k.NC({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:x.Ao.and(_.u.hasDeclarationProvider,_.u.isInWalkThroughSnippet.toNegated()),menu:[{id:$.eH.EditorContext,group:"navigation",order:1.3},{id:$.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?k.NC("decl.noResultWord","No declaration found for '{0}'",e.word):k.NC("decl.generic.noResults","No declaration found")}}).id="editor.action.revealDeclaration",V)),(0,$.r1)(class extends oe{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:{value:k.NC("actions.peekDecl.label","Peek Declaration"),original:"Peek Declaration"},precondition:x.Ao.and(_.u.hasDeclarationProvider,q.Jy.notInPeekEditor,_.u.isInWalkThroughSnippet.toNegated()),menu:{id:$.eH.EditorContextPeek,group:"peek",order:3}})}});class se extends te{_getLocationModel(e,t,i,n){return J(this,void 0,void 0,(function*(){return new C.oQ(yield(0,Y.L3)(e.typeDefinitionProvider,t,i,n),k.NC("typedef.title","Type Definitions"))}))}_getNoResultFoundMessage(e){return e&&e.word?k.NC("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):k.NC("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(56).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(56).multipleTypeDefinitions}}(0,$.r1)(((W=class e extends se{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,title:{value:k.NC("actions.goToTypeDefinition.label","Go to Type Definition"),original:"Go to Type Definition",mnemonicTitle:k.NC({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:x.Ao.and(_.u.hasTypeDefinitionProvider,_.u.isInWalkThroughSnippet.toNegated()),keybinding:{when:_.u.editorTextFocus,primary:0,weight:100},menu:[{id:$.eH.EditorContext,group:"navigation",order:1.4},{id:$.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}}).ID="editor.action.goToTypeDefinition",W)),(0,$.r1)(((z=class e extends se{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,title:{value:k.NC("actions.peekTypeDefinition.label","Peek Type Definition"),original:"Peek Type Definition"},precondition:x.Ao.and(_.u.hasTypeDefinitionProvider,q.Jy.notInPeekEditor,_.u.isInWalkThroughSnippet.toNegated()),menu:{id:$.eH.EditorContextPeek,group:"peek",order:4}})}}).ID="editor.action.peekTypeDefinition",z));class re extends te{_getLocationModel(e,t,i,n){return J(this,void 0,void 0,(function*(){return new C.oQ(yield(0,Y.f4)(e.implementationProvider,t,i,n),k.NC("impl.title","Implementations"))}))}_getNoResultFoundMessage(e){return e&&e.word?k.NC("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):k.NC("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(56).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(56).multipleImplementations}}(0,$.r1)(((U=class e extends re{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,title:{value:k.NC("actions.goToImplementation.label","Go to Implementations"),original:"Go to Implementations",mnemonicTitle:k.NC({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:x.Ao.and(_.u.hasImplementationProvider,_.u.isInWalkThroughSnippet.toNegated()),keybinding:{when:_.u.editorTextFocus,primary:2118,weight:100},menu:[{id:$.eH.EditorContext,group:"navigation",order:1.45},{id:$.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}}).ID="editor.action.goToImplementation",U)),(0,$.r1)(((j=class e extends re{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,title:{value:k.NC("actions.peekImplementation.label","Peek Implementations"),original:"Peek Implementations"},precondition:x.Ao.and(_.u.hasImplementationProvider,q.Jy.notInPeekEditor,_.u.isInWalkThroughSnippet.toNegated()),keybinding:{when:_.u.editorTextFocus,primary:3142,weight:100},menu:{id:$.eH.EditorContextPeek,group:"peek",order:5}})}}).ID="editor.action.peekImplementation",j));class ae extends te{_getNoResultFoundMessage(e){return e?k.NC("references.no","No references found for '{0}'",e.word):k.NC("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(56).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(56).multipleReferences}}(0,$.r1)(class extends ae{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{value:k.NC("goToReferences.label","Go to References"),original:"Go to References",mnemonicTitle:k.NC({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:x.Ao.and(_.u.hasReferenceProvider,q.Jy.notInPeekEditor,_.u.isInWalkThroughSnippet.toNegated()),keybinding:{when:_.u.editorTextFocus,primary:1094,weight:100},menu:[{id:$.eH.EditorContext,group:"navigation",order:1.45},{id:$.eH.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}_getLocationModel(e,t,i,n){return J(this,void 0,void 0,(function*(){return new C.oQ(yield(0,Y.aA)(e.referenceProvider,t,i,!0,n),k.NC("ref.title","References"))}))}}),(0,$.r1)(class extends ae{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:{value:k.NC("references.action.label","Peek References"),original:"Peek References"},precondition:x.Ao.and(_.u.hasReferenceProvider,q.Jy.notInPeekEditor,_.u.isInWalkThroughSnippet.toNegated()),menu:{id:$.eH.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i,n){return J(this,void 0,void 0,(function*(){return new C.oQ(yield(0,Y.aA)(e.referenceProvider,t,i,!1,n),k.NC("ref.title","References"))}))}});class le extends te{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:{value:k.NC("label.generic","Go to Any Symbol"),original:"Go to Any Symbol"},precondition:x.Ao.and(q.Jy.notInPeekEditor,_.u.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}_getLocationModel(e,t,i,n){return J(this,void 0,void 0,(function*(){return new C.oQ(this._references,k.NC("generic.title","Locations"))}))}_getNoResultFoundMessage(e){return e&&k.NC("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return null!==(t=this._gotoMultipleBehaviour)&&void 0!==t?t:e.getOption(56).multipleReferences}_getAlternativeCommand(){return""}}G.P.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:c.o},{name:"position",description:"The position at which to start",constraint:m.L.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(e,t,i,n,o,s,r)=>J(void 0,void 0,void 0,(function*(){(0,l.p_)(c.o.isUri(t)),(0,l.p_)(m.L.isIPosition(i)),(0,l.p_)(Array.isArray(n)),(0,l.p_)(void 0===o||"string"==typeof o),(0,l.p_)(void 0===r||"boolean"==typeof r);const a=e.get(g.$),h=yield a.openCodeEditor({resource:t},a.getFocusedCodeEditor());if((0,d.CL)(h))return h.setPosition(i),h.revealPositionInCenterIfOutsideViewport(i,0),h.invokeWithinContext((e=>{const t=new class extends le{_getNoResultFoundMessage(e){return s||super._getNoResultFoundMessage(e)}}({muteMessage:!Boolean(s),openInPeek:Boolean(r),openToSide:!1},n,o);e.get(E.TG).invokeFunction(t.run.bind(t),h)}))}))}),G.P.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:c.o},{name:"position",description:"The position at which to start",constraint:m.L.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(e,t,i,n,o)=>J(void 0,void 0,void 0,(function*(){e.get(G.H).executeCommand("editor.action.goToLocations",t,i,n,o,void 0,!0)}))}),G.P.registerCommand({id:"editor.action.findReferences",handler:(e,t,i)=>{(0,l.p_)(c.o.isUri(t)),(0,l.p_)(m.L.isIPosition(i));const n=e.get(Z.p),o=e.get(g.$);return o.openCodeEditor({resource:t},o.getFocusedCodeEditor()).then((e=>{if(!(0,d.CL)(e)||!e.hasModel())return;const t=b.J.get(e);if(!t)return;const o=(0,s.PG)((t=>(0,Y.aA)(n.referenceProvider,e.getModel(),m.L.lift(i),!1,t).then((e=>new C.oQ(e,k.NC("ref.title","References")))))),r=new f.e(i.lineNumber,i.column,i.lineNumber,i.column);return Promise.resolve(t.toggleWidget(r,o,!1))}))}}),G.P.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},40184:(e,t,i)=>{"use strict";i.d(t,{L3:()=>p,aA:()=>m,f4:()=>g,nD:()=>d,zq:()=>u});var n=i(9488),o=i(71050),s=i(17301),r=i(16830),a=i(71922),l=i(1293),c=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function h(e,t,i,o){return c(this,void 0,void 0,(function*(){const r=i.ordered(e).map((i=>Promise.resolve(o(i,e,t)).then(void 0,(e=>{(0,s.Cp)(e)})))),a=yield Promise.all(r);return(0,n.kX)(a.flat())}))}function d(e,t,i,n){return h(t,i,e,((e,t,i)=>e.provideDefinition(t,i,n)))}function u(e,t,i,n){return h(t,i,e,((e,t,i)=>e.provideDeclaration(t,i,n)))}function g(e,t,i,n){return h(t,i,e,((e,t,i)=>e.provideImplementation(t,i,n)))}function p(e,t,i,n){return h(t,i,e,((e,t,i)=>e.provideTypeDefinition(t,i,n)))}function m(e,t,i,n,o){return h(t,i,e,((e,t,i)=>c(this,void 0,void 0,(function*(){const s=yield e.provideReferences(t,i,{includeDeclaration:!0},o);if(!n||!s||2!==s.length)return s;const r=yield e.provideReferences(t,i,{includeDeclaration:!1},o);return r&&1===r.length?r:s}))))}function f(e){return c(this,void 0,void 0,(function*(){const t=yield e(),i=new l.oQ(t,""),n=i.references.map((e=>e.link));return i.dispose(),n}))}(0,r.sb)("_executeDefinitionProvider",((e,t,i)=>{const n=d(e.get(a.p).definitionProvider,t,i,o.T.None);return f((()=>n))})),(0,r.sb)("_executeTypeDefinitionProvider",((e,t,i)=>{const n=p(e.get(a.p).typeDefinitionProvider,t,i,o.T.None);return f((()=>n))})),(0,r.sb)("_executeDeclarationProvider",((e,t,i)=>{const n=u(e.get(a.p).declarationProvider,t,i,o.T.None);return f((()=>n))})),(0,r.sb)("_executeReferenceProvider",((e,t,i)=>{const n=m(e.get(a.p).referenceProvider,t,i,!1,o.T.None);return f((()=>n))})),(0,r.sb)("_executeImplementationProvider",((e,t,i)=>{const n=g(e.get(a.p).implementationProvider,t,i,o.T.None);return f((()=>n))}))},82005:(e,t,i)=>{"use strict";i.d(t,{yN:()=>d});var n=i(4669),o=i(5976),s=i(1432);function r(e,t){return!!e[t]}class a{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=r(e.event,t.triggerModifier),this.hasSideBySideModifier=r(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class l{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=r(e,t.triggerModifier)}}class c{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function h(e){return"altKey"===e?s.dz?new c(57,"metaKey",6,"altKey"):new c(5,"ctrlKey",6,"altKey"):s.dz?new c(6,"altKey",57,"metaKey"):new c(6,"altKey",5,"ctrlKey")}class d extends o.JT{constructor(e,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new n.Q5),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new n.Q5),this.onExecute=this._onExecute.event,this._onCancel=this._register(new n.Q5),this.onCancel=this._onCancel.event,this._editor=e,this._alwaysFireExecuteOnMouseUp=t,this._opts=h(this._editor.getOption(75)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration((e=>{if(e.hasChanged(75)){const e=h(this._editor.getOption(75));if(this._opts.equals(e))return;this._opts=e,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}}))),this._register(this._editor.onMouseMove((e=>this._onEditorMouseMove(new a(e,this._opts))))),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(new a(e,this._opts))))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(new a(e,this._opts))))),this._register(this._editor.onKeyDown((e=>this._onEditorKeyDown(new l(e,this._opts))))),this._register(this._editor.onKeyUp((e=>this._onEditorKeyUp(new l(e,this._opts))))),this._register(this._editor.onMouseDrag((()=>this._resetHandler()))),this._register(this._editor.onDidChangeCursorSelection((e=>this._onDidChangeCursorSelection(e)))),this._register(this._editor.onDidChangeModel((e=>this._resetHandler()))),this._register(this._editor.onDidChangeModelContent((()=>this._resetHandler()))),this._register(this._editor.onDidScrollChange((e=>{(e.scrollTopChanged||e.scrollLeftChanged)&&this._resetHandler()})))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){const t=e.target.position?e.target.position.lineNumber:0;(this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t||this._alwaysFireExecuteOnMouseUp)&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}},22470:(e,t,i)=>{"use strict";i.r(t),i.d(t,{GotoDefinitionAtPositionEditorContribution:()=>S});var n=i(15393),o=i(17301),s=i(59365),r=i(5976),a=i(98401),l=i(16467),c=i(16830),h=i(24314),d=i(72042),u=i(88216),g=i(82005),p=i(52049),m=i(63580),f=i(93983),_=i(60628),v=i(40184),b=i(71922),C=i(1231),y=function(e,t){return function(i,n){t(i,n,e)}},w=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let S=class e{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new r.SL,this.toUnhookForKeyboard=new r.SL,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const s=new g.yN(e);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown((([e,t])=>{this.startFindDefinitionFromMouse(e,(0,a.f6)(t))}))),this.toUnhook.add(s.onExecute((e=>{this.isEnabled(e)&&this.gotoDefinition(e.target.position,e.hasSideBySideModifier).catch((e=>{(0,o.dL)(e)})).finally((()=>{this.removeLinkDecorations()}))}))),this.toUnhook.add(s.onCancel((()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null})))}static get(t){return t.getContribution(e.ID)}startFindDefinitionFromCursor(e){return w(this,void 0,void 0,(function*(){yield this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition((()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()}))),this.toUnhookForKeyboard.add(this.editor.onKeyDown((e=>{e&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())})))}))}startFindDefinitionFromMouse(e,t){if(9===e.target.type&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();const i=e.target.position;this.startFindDefinition(i)}startFindDefinition(e){var t;return w(this,void 0,void 0,(function*(){this.toUnhookForKeyboard.clear();const i=e?null===(t=this.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(e):null;if(!i)return this.currentWordAtPosition=null,void this.removeLinkDecorations();if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return;this.currentWordAtPosition=i;const r=new l.yy(this.editor,15);let a;this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=(0,n.PG)((t=>this.findDefinition(e,t)));try{a=yield this.previousPromise}catch(e){return void(0,o.dL)(e)}if(!a||!a.length||!r.validate(this.editor))return void this.removeLinkDecorations();const c=a[0].originSelectionRange?h.e.lift(a[0].originSelectionRange):new h.e(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);if(a.length>1){let e=c;for(const{originSelectionRange:t}of a)t&&(e=h.e.plusRange(e,t));this.addDecoration(e,(new s.W5).appendText(m.NC("multipleResults","Click to show {0} definitions.",a.length)))}else{const e=a[0];if(!e.uri)return;this.textModelResolverService.createModelReference(e.uri).then((t=>{if(!t.object||!t.object.textEditorModel)return void t.dispose();const{object:{textEditorModel:i}}=t,{startLineNumber:n}=e.range;if(n<1||n>i.getLineCount())return void t.dispose();const o=this.getPreviewValue(i,n,e),r=this.languageService.guessLanguageIdByFilepathOrFirstLine(i.uri);this.addDecoration(c,o?(new s.W5).appendCodeblock(r||"",o):void 0),t.dispose()}))}}))}getPreviewValue(t,i,n){let o=n.range;return o.endLineNumber-o.startLineNumber>=e.MAX_SOURCE_PREVIEW_LINES&&(o=this.getPreviewRangeBasedOnIndentation(t,i)),this.stripIndentationFromPreviewRange(t,i,o)}stripIndentationFromPreviewRange(e,t,i){let n=e.getLineFirstNonWhitespaceColumn(t);for(let o=t+1;o{const i=!t&&this.editor.getOption(84)&&!this.isInPeekEditor(e);return new _.DefinitionAction({openToSide:t,openInPeek:i,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e)}))}isInPeekEditor(e){const t=e.get(f.i6);return p.Jy.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};S.ID="editor.contrib.gotodefinitionatposition",S.MAX_SOURCE_PREVIEW_LINES=8,S=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([y(1,u.S),y(2,d.O),y(3,b.p)],S),(0,c._K)(S.ID,S,2)},27376:(e,t,i)=>{"use strict";i.d(t,{J:()=>le});var n=i(15393),o=i(17301),s=i(22258),r=i(5976),a=i(11640),l=i(50187),c=i(24314),h=i(52049),d=i(63580),u=i(94565),g=i(33108),p=i(93983),m=i(72065),f=i(49989),_=i(46763),v=i(59422),b=i(26904),C=i(1293),y=i(65321),w=i(23937),S=i(41264),k=i(4669),x=i(66663),L=i(95935),E=i(84527),N=i(1231),D=i(51381),T=i(68801),I=i(72042),A=i(88216),M=i(67488),R=i(34650),O=i(59834),P=i(75392),F=i(91847),B=i(44349),H=i(86253),V=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},W=function(e,t){return function(i,n){t(i,n,e)}};let z=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof C.oQ||e instanceof C.F2}getChildren(e){if(e instanceof C.oQ)return e.groups;if(e instanceof C.F2)return e.resolve(this._resolverService).then((e=>e.children));throw new Error("bad tree")}};z=V([W(0,A.S)],z);class U{getHeight(){return 23}getTemplateId(e){return e instanceof C.F2?$.id:Q.id}}let j=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof C.WX){const i=null===(t=e.parent.getPreview(e))||void 0===t?void 0:t.preview(e.range);if(i)return i.value}return(0,L.EZ)(e.uri)}};j=V([W(0,F.d)],j);class K{getId(e){return e instanceof C.WX?e.id:e.uri}}let q=class extends r.JT{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new O.g(i,{supportHighlights:!0})),this.badge=new M.Z(y.R3(i,y.$(".count")),{},H.ku),e.appendChild(i)}set(e,t){const i=(0,L.XX)(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat((0,d.NC)("referencesCount","{0} references",n)):this.badge.setTitleFormat((0,d.NC)("referenceCount","{0} reference",n))}};q=V([W(1,B.e)],q);let $=class e{constructor(t){this._instantiationService=t,this.templateId=e.id}renderTemplate(e){return this._instantiationService.createInstance(q,e)}renderElement(e,t,i){i.set(e.element,(0,P.mB)(e.filterData))}disposeTemplate(e){e.dispose()}};$.id="FileReferencesRenderer",$=V([W(0,m.TG)],$);class G{constructor(e){this.label=new R.q(e)}set(e,t){var i;const n=null===(i=e.parent.getPreview(e))||void 0===i?void 0:i.preview(e.range);if(n&&n.value){const{value:e,highlight:i}=n;t&&!P.CL.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(e,(0,P.mB)(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(e,[i]))}else this.label.set(`${(0,L.EZ)(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`)}}class Q{constructor(){this.templateId=Q.id}renderTemplate(e){return new G(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(){}}Q.id="OneReferenceRenderer";class Y{getWidgetAriaLabel(){return(0,d.NC)("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var Z=i(97781),X=i(64862),J=function(e,t){return function(i,n){t(i,n,e)}},ee=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class te{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new r.SL,this._callOnModelChange=new r.SL,this._callOnDispose.add(this._editor.onDidChangeModel((()=>this._onModelChanged()))),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e)for(const t of this._model.references)if(t.uri.toString()===e.uri.toString())return void this._addDecorations(t.parent)}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations((()=>this._onDecorationChanged())));const t=[],i=[];for(let n=0,o=e.children.length;n{const o=n.deltaDecorations([],t);for(let t=0;t{e.equals(9)&&(this._keybindingService.dispatchEvent(e,e.target),e.stopPropagation())}),!0)),this._tree=this._instantiationService.createInstance(ne,"ReferencesWidget",this._treeContainer,new U,[this._instantiationService.createInstance($),this._instantiationService.createInstance(Q)],this._instantiationService.createInstance(z),t),this._splitView.addView({onDidChange:k.ju.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:e=>{this._preview.layout({height:this._dim.height,width:e})}},w.M.Distribute),this._splitView.addView({onDidChange:k.ju.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:e=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${e}px`,this._tree.layout(this._dim.height,e)}},w.M.Distribute),this._disposables.add(this._splitView.onDidSashChange((()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)}),void 0));const i=(e,t)=>{e instanceof C.WX&&("show"===t&&this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:t,source:"tree"}))};this._tree.onDidOpen((e=>{e.sideBySide?i(e.element,"side"):e.editorOptions.pinned?i(e.element,"goto"):i(e.element,"show")})),y.Cp(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new y.Ro(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then((()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))}))}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=d.NC("noResults","No results"),y.$Z(this._messageContainer),Promise.resolve(void 0)):(y.Cp(this._messageContainer),this._decorationsManager=new te(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange((e=>this._tree.rerender(e)))),this._disposeOnNewModel.add(this._preview.onMouseDown((e=>{const{event:t,target:i}=e;if(2!==t.detail)return;const n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})}))),this.container.classList.add("results-loaded"),y.$Z(this._treeContainer),y.$Z(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();return e instanceof C.WX?e:e instanceof C.F2&&e.children.length>0?e.children[0]:void 0}revealReference(e){return ee(this,void 0,void 0,(function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})}))}_revealReference(e,t){return ee(this,void 0,void 0,(function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==x.lg.inMemory?this.setTitle((0,L.Hx)(e.uri),this._uriLabel.getUriLabel((0,L.XX)(e.uri))):this.setTitle(d.NC("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent||(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent)),this._tree.reveal(e);const n=yield i;if(!this._model)return void n.dispose();(0,r.B9)(this._previewModelReference);const o=n.object;if(o){const t=this._preview.getModel()===o.textEditorModel?0:1,i=c.e.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(o.textEditorModel),this._preview.setSelection(i),this._preview.revealRangeInCenter(i,t)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()}))}};oe=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([J(3,Z.XE),J(4,A.S),J(5,m.TG),J(6,h.Fw),J(7,B.e),J(8,X.tJ),J(9,F.d),J(10,I.O),J(11,D.c_)],oe);var se=function(e,t){return function(i,n){t(i,n,e)}},re=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};const ae=new p.uy("referenceSearchVisible",!1,d.NC("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let le=class e{static get(t){return t.getContribution(e.ID)}constructor(e,t,i,n,o,s,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=o,this._instantiationService=s,this._storageService=a,this._configurationService=l,this._disposables=new r.SL,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=ae.bindTo(i)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),null===(e=this._widget)||void 0===e||e.dispose(),null===(t=this._model)||void 0===t||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>{this.closeWidget()}))),this._disposables.add(this._editor.onDidChangeModel((()=>{this._ignoreModelChangeEvent||this.closeWidget()})));const o="peekViewLayout",s=ie.fromJSON(this._storageService.get(o,0,"{}"));this._widget=this._instantiationService.createInstance(oe,this._editor,this._defaultTreeKeyboardSupport,s),this._widget.setTitle(d.NC("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose((()=>{t.cancel(),this._widget&&(this._storageService.store(o,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()}))),this._disposables.add(this._widget.onDidSelectReference((e=>{const{element:t,kind:n}=e;if(t)switch(n){case"open":"editor"===e.source&&this._configurationService.getValue("editor.stablePeek")||this.openReference(t,!1,!1);break;case"side":this.openReference(t,!0,!1);break;case"goto":i?this._gotoReference(t,!0):this.openReference(t,!1,!0)}})));const r=++this._requestIdPool;t.then((t=>{var i;if(r===this._requestIdPool&&this._widget)return null===(i=this._model)||void 0===i||i.dispose(),this._model=t,this._widget.setModel(this._model).then((()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(d.NC("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const t=this._editor.getModel().uri,i=new l.L(e.startLineNumber,e.startColumn),n=this._model.nearestReference(t,i);if(n)return this._widget.setSelection(n).then((()=>{this._widget&&"editor"===this._editor.getOption(83)&&this._widget.focusOnPreviewEditor()}))}}));t.dispose()}),(e=>{this._notificationService.error(e)}))}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return re(this,void 0,void 0,(function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),o=this._editor.hasTextFocus(),s=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(n),yield this._gotoReference(n,!1),o?this._editor.focus():this._widget&&s&&this._widget.focusOnPreviewEditor()}))}revealReference(e){return re(this,void 0,void 0,(function*(){this._editor.hasModel()&&this._model&&this._widget&&(yield this._widget.revealReference(e))}))}closeWidget(e=!0){var t,i;null===(t=this._widget)||void 0===t||t.dispose(),null===(i=this._model)||void 0===i||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(t,i){var s;null===(s=this._widget)||void 0===s||s.hide(),this._ignoreModelChangeEvent=!0;const r=c.e.lift(t.range).collapseToStart();return this._editorService.openCodeEditor({resource:t.uri,options:{selection:r,selectionSource:"code.jump",pinned:i}},this._editor).then((t=>{var i;if(this._ignoreModelChangeEvent=!1,t&&this._widget)if(this._editor===t)this._widget.show(r),this._widget.focusOnReferenceTree();else{const o=e.get(t),s=this._model.clone();this.closeWidget(),t.focus(),null==o||o.toggleWidget(r,(0,n.PG)((e=>Promise.resolve(s))),null!==(i=this._peekMode)&&void 0!==i&&i)}else this.closeWidget()}),(e=>{this._ignoreModelChangeEvent=!1,(0,o.dL)(e)}))}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:o}=e;this._editorService.openCodeEditor({resource:n,options:{selection:o,selectionSource:"code.jump",pinned:i}},this._editor,t)}};function ce(e,t){const i=(0,h.rc)(e);if(!i)return;const n=le.get(i);n&&t(n)}le.ID="editor.contrib.referencesController",le=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([se(2,p.i6),se(3,a.$),se(4,v.lT),se(5,m.TG),se(6,b.Uy),se(7,g.Ui)],le),f.W.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:(0,s.gx)(2089,60),when:p.Ao.or(ae,h.Jy.inPeekEditor),handler(e){ce(e,(e=>{e.changeFocusBetweenPreviewAndReferences()}))}}),f.W.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:p.Ao.or(ae,h.Jy.inPeekEditor),handler(e){ce(e,(e=>{e.goToNextOrPreviousReference(!0)}))}}),f.W.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:p.Ao.or(ae,h.Jy.inPeekEditor),handler(e){ce(e,(e=>{e.goToNextOrPreviousReference(!1)}))}}),u.P.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),u.P.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),u.P.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),u.P.registerCommand("closeReferenceSearch",(e=>ce(e,(e=>e.closeWidget())))),f.W.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:p.Ao.and(h.Jy.inPeekEditor,p.Ao.not("config.editor.stablePeek"))}),f.W.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:p.Ao.and(ae,p.Ao.not("config.editor.stablePeek"))}),f.W.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:p.Ao.and(ae,_.CQ,_.PS.negate(),_.uJ.negate()),handler(e){var t;const i=null===(t=e.get(_.Lw).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof C.WX&&ce(e,(e=>e.revealReference(i[0])))}}),f.W.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:p.Ao.and(ae,_.CQ,_.PS.negate(),_.uJ.negate()),handler(e){var t;const i=null===(t=e.get(_.Lw).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof C.WX&&ce(e,(e=>e.openReference(i[0],!0,!0)))}}),u.P.registerCommand("openReference",(e=>{var t;const i=null===(t=e.get(_.Lw).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof C.WX&&ce(e,(e=>e.openReference(i[0],!1,!0)))}))},1293:(e,t,i)=>{"use strict";i.d(t,{F2:()=>p,WX:()=>u,oQ:()=>m});var n=i(17301),o=i(4669),s=i(44742),r=i(5976),a=i(43702),l=i(95935),c=i(97295),h=i(24314),d=i(63580);class u{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=s.a.nextId()}get uri(){return this.link.uri}get range(){var e,t;return null!==(t=null!==(e=this._range)&&void 0!==e?e:this.link.targetSelectionRange)&&void 0!==t?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=null===(e=this.parent.getPreview(this))||void 0===e?void 0:e.preview(this.range);return t?(0,d.NC)({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"symbol in {0} on line {1} at column {2}, {3}",(0,l.EZ)(this.uri),this.range.startLineNumber,this.range.startColumn,t.value):(0,d.NC)("aria.oneReference","symbol in {0} on line {1} at column {2}",(0,l.EZ)(this.uri),this.range.startLineNumber,this.range.startColumn)}}class g{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:o,endLineNumber:s,endColumn:r}=e,a=i.getWordUntilPosition({lineNumber:n,column:o-t}),l=new h.e(n,a.startColumn,n,o),c=new h.e(s,r,s,1073741824),d=i.getValueInRange(l).replace(/^\s+/,""),u=i.getValueInRange(e);return{value:d+u+i.getValueInRange(c).replace(/\s+$/,""),highlight:{start:d.length,end:d.length+u.length}}}}class p{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new a.Y9}dispose(){(0,r.B9)(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return 1===e?(0,d.NC)("aria.fileReferences.1","1 symbol in {0}, full path {1}",(0,l.EZ)(this.uri),this.uri.fsPath):(0,d.NC)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,(0,l.EZ)(this.uri),this.uri.fsPath)}resolve(e){return t=this,i=void 0,s=function*(){if(0!==this._previews.size)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const i=yield e.createModelReference(t.uri);this._previews.set(t.uri,new g(i))}catch(e){(0,n.dL)(e)}return this},new((o=void 0)||(o=Promise))((function(e,n){function r(e){try{l(s.next(e))}catch(e){n(e)}}function a(e){try{l(s.throw(e))}catch(e){n(e)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof o?i:new o((function(e){e(i)}))).then(r,a)}l((s=s.apply(t,i||[])).next())}));var t,i,o,s}}class m{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new o.Q5,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;let n;e.sort(m._compareReferences);for(const t of e)if(n&&l.SF.isEqual(n.uri,t.uri,!0)||(n=new p(this,t.uri),this.groups.push(n)),0===n.children.length||0!==m._compareReferences(t,n.children[n.children.length-1])){const e=new u(i===t,n,t,(e=>this._onDidChangeReferenceRange.fire(e)));this.references.push(e),n.children.push(e)}}dispose(){(0,r.B9)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new m(this._links,this._title)}get title(){return this._title}get isEmpty(){return 0===this.groups.length}get ariaMessage(){return this.isEmpty?(0,d.NC)("aria.result.0","No results found"):1===this.references.length?(0,d.NC)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?(0,d.NC)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):(0,d.NC)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const o=i.children.length,s=i.parent.groups.length;return 1===s||t&&n+10?(n=t?(n+1)%o:(n+o-1)%o,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%s,i.parent.groups[n].children[0]):(n=(n+s-1)%s,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map(((i,n)=>({idx:n,prefixLen:c.Mh(i.uri.toString(),e.toString()),offsetDist:100*Math.abs(i.range.startLineNumber-t.lineNumber)+Math.abs(i.range.startColumn-t.column)}))).sort(((e,t)=>e.prefixLen>t.prefixLen?-1:e.prefixLent.offsetDist?1:0))[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&h.e.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return l.SF.compare(e.uri,t.uri)||h.e.compareRangesUsingStarts(e.range,t.range)}}},7286:(e,t,i)=>{"use strict";i.d(t,{Hb:()=>L,hT:()=>w,mR:()=>E});var n=i(65321),o=i(30986),s=i(9488),r=i(5976),a=i(50187),l=i(24314),c=i(1231),h=i(96887),d=i(12457),u=i(66520),g=i(93983),p=i(72065),m=i(91847),f=i(55621),_=i(15393),v=i(29102),b=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};const y=n.$;let w=class e extends r.JT{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._widget=this._register(this._instantiationService.createInstance(L,this._editor)),this._currentResult=null,this._participants=[];for(const e of u.Ae.getAll())this._participants.push(this._instantiationService.createInstance(e,this._editor));this._participants.sort(((e,t)=>e.hoverOrdinal-t.hoverOrdinal)),this._computer=new N(this._editor,this._participants),this._hoverOperation=this._register(new d.H(this._editor,this._computer)),this._register(this._hoverOperation.onResult((e=>{if(!this._computer.anchor)return;const t=e.hasLoadingMessage?this._addLoadingMessage(e.value):e.value;this._withResult(new S(this._computer.anchor,t,e.isComplete))}))),this._register(n.mu(this._widget.getDomNode(),"keydown",(e=>{e.equals(9)&&this.hide()}))),this._register(h.RW.onDidChange((()=>{this._widget.position&&this._currentResult&&(this._widget.clear(),this._setCurrentResult(this._currentResult))})))}maybeShowAt(e){const t=[];for(const i of this._participants)if(i.suggestHoverAnchor){const n=i.suggestHoverAnchor(e);n&&t.push(n)}const i=e.target;if(6===i.type&&t.push(new u.Qj(0,i.range,e.event.posx,e.event.posy)),7===i.type){const n=this._editor.getOption(48).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&"number"==typeof i.detail.horizontalDistanceToText&&i.detail.horizontalDistanceToTextt.priority-e.priority)),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,i,n){this._startShowingOrUpdateHover(new u.Qj(0,e,void 0,void 0),t,i,n,null)}_startShowingOrUpdateHover(e,t,i,n,o){return this._widget.position&&this._currentResult?this._editor.getOption(58).sticky&&o&&this._widget.isMouseGettingCloser(o.event.posx,o.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,i,n,!0),!0):e?!(!e||!this._currentResult.anchor.equals(e))||(e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0)):(this._setCurrentResult(null),!1):!!e&&(this._startHoverOperationIfNecessary(e,t,i,n,!1),!0)}_startHoverOperationIfNecessary(e,t,i,n,o){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=o,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&0===e.messages.length&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}isColorPickerVisible(){return this._widget.isColorPickerVisible}isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}isVisible(){return this._widget.isVisible}containsNode(e){return!!e&&this._widget.getDomNode().contains(e)}_addLoadingMessage(e){if(this._computer.anchor)for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}return e}_withResult(e){if(this._widget.position&&this._currentResult&&this._currentResult.isComplete){if(!e.isComplete)return;if(this._computer.insistOnKeepingHoverVisible&&0===e.messages.length)return}this._setCurrentResult(e)}_renderMessages(t,i){const{showAtPosition:n,showAtSecondaryPosition:o,highlightRange:s}=e.computeHoverRanges(this._editor,t.range,i),a=new r.SL,l=a.add(new E(this._keybindingService)),c=document.createDocumentFragment();let h=null;const d={fragment:c,statusBar:l,setColorPicker:e=>h=e,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const e of this._participants){const t=i.filter((t=>t.owner===e));t.length>0&&a.add(e.renderHoverParts(d,t))}const u=i.some((e=>e.isBeforeContent));if(l.hasContent&&c.appendChild(l.hoverElement),c.hasChildNodes()){if(s){const t=this._editor.createDecorationsCollection();t.set([{range:s,options:e._DECORATION_OPTIONS}]),a.add((0,r.OF)((()=>{t.clear()})))}this._widget.showAt(c,new x(h,n,o,this._editor.getOption(58).above,this._computer.shouldFocus,this._computer.source,u,t.initialMousePosX,t.initialMousePosY,a))}else a.dispose()}static computeHoverRanges(e,t,i){let n=1;if(e.hasModel()){const i=e._getViewModel(),o=i.coordinatesConverter,s=o.convertModelRangeToViewRange(t),r=new a.L(s.startLineNumber,i.getLineMinColumn(s.startLineNumber));n=o.convertViewPositionToModelPosition(r).column}const o=t.startLineNumber;let s=t.startColumn,r=i[0].range,c=null;for(const e of i)r=l.e.plusRange(r,e.range),e.range.startLineNumber===o&&e.range.endLineNumber===o&&(s=Math.max(Math.min(s,e.range.startColumn),n)),e.forceShowAtRange&&(c=e.range);return{showAtPosition:c?c.getStartPosition():new a.L(o,t.startColumn),showAtSecondaryPosition:c?c.getStartPosition():new a.L(o,s),highlightRange:r}}focus(){this._widget.focus()}scrollUp(){this._widget.scrollUp()}scrollDown(){this._widget.scrollDown()}scrollLeft(){this._widget.scrollLeft()}scrollRight(){this._widget.scrollRight()}pageUp(){this._widget.pageUp()}pageDown(){this._widget.pageDown()}goToTop(){this._widget.goToTop()}goToBottom(){this._widget.goToBottom()}escape(){this._widget.escape()}};w._DECORATION_OPTIONS=c.qx.register({description:"content-hover-highlight",className:"hoverHighlight"}),w=b([C(1,p.TG),C(2,m.d)],w);class S{constructor(e,t,i){this.anchor=e,this.messages=t,this.isComplete=i}filter(e){const t=this.messages.filter((t=>t.isValidForHoverAnchor(e)));return t.length===this.messages.length?this:new k(this,this.anchor,t,this.isComplete)}}class k extends S{constructor(e,t,i,n){super(t,i,n),this.original=e}filter(e){return this.original.filter(e)}}class x{constructor(e,t,i,n,o,s,r,a,l,c){this.colorPicker=e,this.showAtPosition=t,this.showAtSecondaryPosition=i,this.preferAbove=n,this.stoleFocus=o,this.source=s,this.isBeforeContent=r,this.initialMousePosX=a,this.initialMousePosY=l,this.disposables=c,this.closestMouseDistance=void 0}}let L=class e extends r.JT{get position(){var e,t;return null!==(t=null===(e=this._visibleData)||void 0===e?void 0:e.showAtPosition)&&void 0!==t?t:null}get isColorPickerVisible(){var e;return Boolean(null===(e=this._visibleData)||void 0===e?void 0:e.colorPicker)}get isVisibleFromKeyboard(){var e;return 1===(null===(e=this._visibleData)||void 0===e?void 0:e.source)}get isVisible(){var e;return null!==(e=this._hoverVisibleKey.get())&&void 0!==e&&e}constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this.allowEditorOverflow=!0,this._hoverVisibleKey=v.u.hoverVisible.bindTo(this._contextKeyService),this._hoverFocusedKey=v.u.hoverFocused.bindTo(this._contextKeyService),this._hover=this._register(new o.c),this._focusTracker=this._register(n.go(this.getDomNode())),this._horizontalScrollingBy=30,this._visibleData=null,this._register(this._editor.onDidLayoutChange((()=>this._layout()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(48)&&this._updateFont()}))),this._setVisibleData(null),this._layout(),this._editor.addContentWidget(this),this._register(this._focusTracker.onDidFocus((()=>{this._hoverFocusedKey.set(!0)}))),this._register(this._focusTracker.onDidBlur((()=>{this._hoverFocusedKey.set(!1)})))}dispose(){this._editor.removeContentWidget(this),this._visibleData&&this._visibleData.disposables.dispose(),super.dispose()}getId(){return e.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){if(!this._visibleData)return null;let e=this._visibleData.preferAbove;!e&&this._contextKeyService.getContextKeyValue(f._y.Visible.key)&&(e=!0);const t=this._visibleData.isBeforeContent?3:void 0;return{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,preference:e?[1,2]:[2,1],positionAffinity:t}}isMouseGettingCloser(e,t){if(!this._visibleData)return!1;if(void 0===this._visibleData.initialMousePosX||void 0===this._visibleData.initialMousePosY)return this._visibleData.initialMousePosX=e,this._visibleData.initialMousePosY=t,!1;const i=n.i(this.getDomNode());void 0===this._visibleData.closestMouseDistance&&(this._visibleData.closestMouseDistance=D(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,i.left,i.top,i.width,i.height));const o=D(e,t,i.left,i.top,i.width,i.height);return!(o>this._visibleData.closestMouseDistance+4||(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,o),0))}_setVisibleData(e){this._visibleData&&this._visibleData.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!this._visibleData),this._hover.containerDomNode.classList.toggle("hidden",!this._visibleData)}_layout(){const e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:i}=this._editor.getOption(48);this._hover.contentsDomNode.style.fontSize=`${t}px`,this._hover.contentsDomNode.style.lineHeight=""+i/t,this._hover.contentsDomNode.style.maxHeight=`${e}px`,this._hover.contentsDomNode.style.maxWidth=`${Math.max(.66*this._editor.getLayoutInfo().width,500)}px`}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}showAt(e,t){var i;this._setVisibleData(t),this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._hover.contentsDomNode.style.paddingBottom="",this._updateFont(),this.onContentsChanged(),this._editor.render(),this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),null===(i=t.colorPicker)||void 0===i||i.layout()}hide(){if(this._visibleData){const e=this._visibleData.stoleFocus;this._setVisibleData(null),this._editor.layoutContentWidget(this),e&&this._editor.focus()}}onContentsChanged(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged();const e=this._hover.scrollbar.getScrollDimensions();if(e.scrollWidth>e.width){const e=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingBottom!==e&&(this._hover.contentsDomNode.style.paddingBottom=e,this._editor.layoutContentWidget(this),this._hover.onContentsChanged())}}clear(){this._hover.contentsDomNode.textContent=""}focus(){this._hover.containerDomNode.focus()}scrollUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(48);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(48);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-this._horizontalScrollingBy})}scrollRight(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+this._horizontalScrollingBy})}pageUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e+t})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}escape(){this._editor.focus()}};L.ID="editor.contrib.contentHoverWidget",L=b([C(1,g.i6)],L);let E=class extends r.JT{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=y("div.hover-row.status-bar"),this.actionsElement=n.R3(this.hoverElement,y("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(o.S.render(this.actionsElement,e,i))}append(e){const t=n.R3(this.actionsElement,e);return this._hasContent=!0,t}};E=b([C(0,m.d)],E);class N{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(1!==t.type&&!t.supportsMarkerHover)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const o=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter((e=>{if(e.options.isWholeLine)return!0;const i=e.range.startLineNumber===n?e.range.startColumn:1,s=e.range.endLineNumber===n?e.range.endColumn:o;if(e.options.showIfCollapsed){if(i>t.range.startColumn+1||t.range.endColumn-1>s)return!1}else if(i>t.range.startColumn||t.range.endColumn>s)return!1;return!0}))}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return _.Aq.EMPTY;const i=N._getLineDecorations(this._editor,t);return _.Aq.merge(this._participants.map((n=>n.computeAsync?n.computeAsync(t,i,e):_.Aq.EMPTY)))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=N._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return(0,s.kX)(t)}}function D(e,t,i,n,o,s){const r=i+o/2,a=n+s/2,l=Math.max(Math.abs(e-r)-o/2,0),c=Math.max(Math.abs(t-a)-s/2,0);return Math.sqrt(l*l+c*c)}},41095:(e,t,i)=>{"use strict";i.d(t,{R8:()=>h});var n=i(15393),o=i(71050),s=i(17301),r=i(16830),a=i(71922),l=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class c{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function h(e,t,i,o){const r=e.ordered(t).map(((e,n)=>function(e,t,i,n,o){return l(this,void 0,void 0,(function*(){try{const s=yield Promise.resolve(e.provideHover(i,n,o));if(s&&function(e){const t=void 0!==e.range,i=void 0!==e.contents&&e.contents&&e.contents.length>0;return t&&i}(s))return new c(e,s,t)}catch(e){(0,s.Cp)(e)}}))}(e,n,t,i,o)));return n.Aq.fromPromises(r).coalesce()}(0,r.sb)("_executeHoverProvider",((e,t,i)=>function(e,t,i,n){return h(e,t,i,n).map((e=>e.hover)).toPromise()}(e.get(a.p).hoverProvider,t,i,o.T.None)))},49817:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ModesHoverController:()=>q});var n=i(22258),o=i(5976),s=i(16830),r=i(24314),a=i(29102),l=i(72042),c=i(22470),h=i(7286),d=i(65321),u=i(9488),g=i(59365),p=i(45241),m=i(12457),f=i(30986);const _=d.$;class v extends o.JT{constructor(e,t,i){super(),this._renderDisposeables=this._register(new o.SL),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new f.c),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new p.$({editor:this._editor},t,i)),this._computer=new b(this._editor),this._hoverOperation=this._register(new m.H(this._editor,this._computer)),this._register(this._hoverOperation.onResult((e=>{this._withResult(e.value)}))),this._register(this._editor.onDidChangeModelDecorations((()=>this._onModelDecorationsChanged()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(48)&&this._updateFont()}))),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return v.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const e of t){const t=_("div.hover-row.markdown-hover"),n=d.R3(t,_("div.hover-contents")),o=this._renderDisposeables.add(this._markdownRenderer.render(e.value));n.appendChild(o.element),i.appendChild(t)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),o=this._editor.getOption(64),s=i-n-(this._hover.containerDomNode.clientHeight-o)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(s),0)}px`}}v.ID="editor.contrib.modesGlyphHoverWidget";class b{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}constructor(e){this._editor=e,this._lineNumber=-1}computeSync(){const e=e=>({value:e}),t=this._editor.getLineDecorations(this._lineNumber),i=[];if(!t)return i;for(const n of t){if(!n.options.glyphMarginClassName)continue;const t=n.options.glyphMarginHoverMessage;t&&!(0,g.CP)(t)&&i.push(...(0,u._2)(t).map(e))}return i}}var C=i(63580),y=i(72065),w=i(50988),S=i(73910),k=i(97781),x=i(66520),L=i(22374),E=i(15393),N=i(17301),D=i(95935),T=i(71922),I=i(36357),A=i(75396),M=i(792),R=i(87997),O=i(64970),P=i(98674),F=i(90535),B=function(e,t){return function(i,n){t(i,n,e)}};const H=d.$;class V{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const W={type:1,filter:{include:R.yN.QuickFix},triggerAction:R.aQ.QuickFixHover};let z=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,o=i.getLineMaxColumn(n),s=[];for(const a of t){const t=a.range.startLineNumber===n?a.range.startColumn:1,l=a.range.endLineNumber===n?a.range.endColumn:o,c=this._markerDecorationsService.getMarker(i.uri,a);if(!c)continue;const h=new r.e(e.range.startLineNumber,t,e.range.startLineNumber,l);s.push(new V(this,h,c))}return s}renderHoverParts(e,t){if(!t.length)return o.JT.None;const i=new o.SL;t.forEach((t=>e.fragment.appendChild(this.renderMarkerHover(t,i))));const n=1===t.length?t[0]:t.sort(((e,t)=>P.ZL.compare(e.marker.severity,t.marker.severity)))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=H("div.hover-row"),n=d.R3(i,H("div.marker.hover-contents")),{source:o,message:s,code:r,relatedInformation:a}=e.marker;this._editor.applyFontInfo(n);const l=d.R3(n,H("span"));if(l.style.whiteSpace="pre-wrap",l.innerText=s,o||r)if(r&&"string"!=typeof r){const e=H("span");o&&(d.R3(e,H("span")).innerText=o);const i=d.R3(e,H("a.code-link"));i.setAttribute("href",r.target.toString()),t.add(d.nm(i,"click",(e=>{this._openerService.open(r.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()}))),d.R3(i,H("span")).innerText=r.value;const s=d.R3(n,e);s.style.opacity="0.6",s.style.paddingLeft="6px"}else{const e=d.R3(n,H("span"));e.style.opacity="0.6",e.style.paddingLeft="6px",e.innerText=o&&r?`${o}(${r})`:o||`(${r})`}if((0,u.Of)(a))for(const{message:e,resource:i,startLineNumber:o,startColumn:s}of a){const r=d.R3(n,H("div"));r.style.marginTop="8px";const a=d.R3(r,H("a"));a.innerText=`${(0,D.EZ)(i)}(${o}, ${s}): `,a.style.cursor="pointer",t.add(d.nm(a,"click",(e=>{e.stopPropagation(),e.preventDefault(),this._openerService&&this._openerService.open(i,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:o,startColumn:s}}}).catch(N.dL)})));const l=d.R3(r,H("span"));l.innerText=e,this._editor.applyFontInfo(l)}return i}renderMarkerStatusbar(e,t,i){if(t.marker.severity!==P.ZL.Error&&t.marker.severity!==P.ZL.Warning&&t.marker.severity!==P.ZL.Info||e.statusBar.addAction({label:C.NC("view problem","View Problem"),commandId:O.NextMarkerAction.ID,run:()=>{var i;e.hide(),null===(i=O.MarkerController.get(this._editor))||void 0===i||i.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(87)){const n=e.statusBar.append(H("div"));this.recentMarkerCodeActionsInfo&&(P.H0.makeKey(this.recentMarkerCodeActionsInfo.marker)===P.H0.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=C.NC("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?o.JT.None:i.add((0,E.Vg)((()=>n.textContent=C.NC("checkingForQuickFixes","Checking for quick fixes...")),200));n.textContent||(n.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add((0,o.OF)((()=>r.cancel()))),r.then((r=>{if(s.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:r.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions)return r.dispose(),void(n.textContent=C.NC("noQuickFixes","No quick fixes available"));n.style.display="none";let a=!1;i.add((0,o.OF)((()=>{a||r.dispose()}))),e.statusBar.addAction({label:C.NC("quick fixes","Quick Fix..."),commandId:A.cz,run:t=>{a=!0;const i=M.G.get(this._editor),n=d.i(t);e.hide(),null==i||i.showCodeActions(W,r,{x:n.left+6,y:n.top+n.height+6,width:n.width,height:n.height})}})}),N.dL)}}getCodeActions(e){return(0,E.PG)((t=>(0,A.aI)(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new r.e(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),W,F.Ex.None,t)))}};z=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([B(1,I.i),B(2,w.v4),B(3,T.p)],z);var U=i(47298),j=i(91847),K=function(e,t){return function(i,n){t(i,n,e)}};let q=class e{static get(t){return t.getContribution(e.ID)}constructor(e,t,i,n,s){this._editor=e,this._instantiationService=t,this._openerService=i,this._languageService=n,this._keybindingService=s,this._toUnhook=new o.SL,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration((e=>{e.hasChanged(58)&&(this._unhookEvents(),this._hookEvents())}))}_hookEvents(){const e=this._editor.getOption(58);this._isHoverEnabled=e.enabled,this._isHoverSticky=e.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._toUnhook.add(this._editor.onMouseUp((e=>this._onEditorMouseUp(e)))),this._toUnhook.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._toUnhook.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))):(this._toUnhook.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._toUnhook.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))),this._toUnhook.add(this._editor.onMouseLeave((e=>this._onEditorMouseLeave(e)))),this._toUnhook.add(this._editor.onDidChangeModel((()=>this._hideWidgets()))),this._toUnhook.add(this._editor.onDidScrollChange((e=>this._onEditorScrollChanged(e))))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;const t=e.target;9!==t.type||t.detail!==h.Hb.ID?12===t.type&&t.detail===v.ID||(12!==t.type&&(this._hoverClicked=!1),this._hideWidgets()):this._hoverClicked=!0}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t;const i=e.event.browserEvent.relatedTarget;(null===(t=this._contentWidget)||void 0===t?void 0:t.containsNode(i))||this._hideWidgets()}_onEditorMouseMove(e){var t,i,n,o,s,r,a,l;const c=e.target;if((!this._isMouseDown||!this._hoverClicked)&&(!this._isHoverSticky||9!==c.type||c.detail!==h.Hb.ID)&&(!this._isHoverSticky||!(null===(t=this._contentWidget)||void 0===t?void 0:t.containsNode(null===(i=e.event.browserEvent.view)||void 0===i?void 0:i.document.activeElement))||(null===(o=null===(n=e.event.browserEvent.view)||void 0===n?void 0:n.getSelection())||void 0===o?void 0:o.isCollapsed))&&(this._isHoverSticky||9!==c.type||c.detail!==h.Hb.ID||!(null===(s=this._contentWidget)||void 0===s?void 0:s.isColorPickerVisible()))&&!(this._isHoverSticky&&12===c.type&&c.detail===v.ID||this._isHoverSticky&&(null===(r=this._contentWidget)||void 0===r?void 0:r.isVisibleFromKeyboard()))){if(this._isHoverEnabled)return this._getOrCreateContentWidget().maybeShowAt(e)?void(null===(a=this._glyphWidget)||void 0===a||a.hide()):2===c.type&&c.position?(null===(l=this._contentWidget)||void 0===l||l.hide(),this._glyphWidget||(this._glyphWidget=new v(this._editor,this._languageService,this._openerService)),void this._glyphWidget.startShowingAt(c.position.lineNumber)):void this._hideWidgets();this._hideWidgets()}}_onKeyDown(e){var t;if(!this._editor.hasModel())return;const i=this._keybindingService.softDispatch(e,this._editor.getDomNode()),n=1===(null==i?void 0:i.kind)||i&&2===i.kind&&"editor.action.showHover"===i.commandId&&(null===(t=this._contentWidget)||void 0===t?void 0:t.isVisible());5===e.keyCode||6===e.keyCode||57===e.keyCode||4===e.keyCode||n||this._hideWidgets()}_hideWidgets(){var e,t,i;this._isMouseDown&&this._hoverClicked&&(null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible())||U.Q.dropDownVisible||(this._hoverClicked=!1,null===(t=this._glyphWidget)||void 0===t||t.hide(),null===(i=this._contentWidget)||void 0===i||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(h.hT,this._editor)),this._contentWidget}isColorPickerVisible(){var e;return(null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible())||!1}showContentHover(e,t,i,n){this._getOrCreateContentWidget().startShowingAtRange(e,t,i,n)}focus(){var e;null===(e=this._contentWidget)||void 0===e||e.focus()}scrollUp(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollUp()}scrollDown(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollDown()}scrollLeft(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollLeft()}scrollRight(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollRight()}pageUp(){var e;null===(e=this._contentWidget)||void 0===e||e.pageUp()}pageDown(){var e;null===(e=this._contentWidget)||void 0===e||e.pageDown()}goToTop(){var e;null===(e=this._contentWidget)||void 0===e||e.goToTop()}goToBottom(){var e;null===(e=this._contentWidget)||void 0===e||e.goToBottom()}escape(){var e;null===(e=this._contentWidget)||void 0===e||e.escape()}isHoverVisible(){var e;return null===(e=this._contentWidget)||void 0===e?void 0:e.isVisible()}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),null===(e=this._glyphWidget)||void 0===e||e.dispose(),null===(t=this._contentWidget)||void 0===t||t.dispose()}};q.ID="editor.contrib.hover",q=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([K(1,y.TG),K(2,w.v4),K(3,l.O),K(4,j.d)],q);class $ extends s.R6{constructor(){super({id:"editor.action.showHover",label:C.NC({key:"showOrFocusHover",comment:["Label for action that will trigger the showing/focusing of a hover in the editor.","If the hover is not visible, it will show the hover.","This allows for users to show the hover without using the mouse.","If the hover is already visible, it will take focus."]},"Show or Focus Hover"),description:{description:"Show or Focus Hover",args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if when triggered with the keyboard, the hover should take focus immediately.",type:"boolean",default:!1}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:a.u.editorTextFocus,primary:(0,n.gx)(2089,2087),weight:100}})}run(e,t,i){if(!t.hasModel())return;const n=q.get(t);if(!n)return;const o=t.getPosition(),s=new r.e(o.lineNumber,o.column,o.lineNumber,o.column),a=2===t.getOption(2)||!!(null==i?void 0:i.focus);n.isHoverVisible()?n.focus():n.showContentHover(s,1,1,a)}}class G extends s.R6{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:C.NC({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const i=q.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const o=new r.e(n.lineNumber,n.column,n.lineNumber,n.column),s=c.GotoDefinitionAtPositionEditorContribution.get(t);s&&s.startFindDefinitionFromCursor(n).then((()=>{i.showContentHover(o,1,1,!0)}))}}class Q extends s.R6{constructor(){super({id:"editor.action.scrollUpHover",label:C.NC({key:"scrollUpHover",comment:["Action that allows to scroll up in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Up Hover"),alias:"Scroll Up Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:16,weight:100}})}run(e,t){const i=q.get(t);i&&i.scrollUp()}}class Y extends s.R6{constructor(){super({id:"editor.action.scrollDownHover",label:C.NC({key:"scrollDownHover",comment:["Action that allows to scroll down in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Down Hover"),alias:"Scroll Down Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:18,weight:100}})}run(e,t){const i=q.get(t);i&&i.scrollDown()}}class Z extends s.R6{constructor(){super({id:"editor.action.scrollLeftHover",label:C.NC({key:"scrollLeftHover",comment:["Action that allows to scroll left in the hover widget with the left arrow when the hover widget is focused."]},"Scroll Left Hover"),alias:"Scroll Left Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:15,weight:100}})}run(e,t){const i=q.get(t);i&&i.scrollLeft()}}class X extends s.R6{constructor(){super({id:"editor.action.scrollRightHover",label:C.NC({key:"scrollRightHover",comment:["Action that allows to scroll right in the hover widget with the right arrow when the hover widget is focused."]},"Scroll Right Hover"),alias:"Scroll Right Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:17,weight:100}})}run(e,t){const i=q.get(t);i&&i.scrollRight()}}class J extends s.R6{constructor(){super({id:"editor.action.pageUpHover",label:C.NC({key:"pageUpHover",comment:["Action that allows to page up in the hover widget with the page up command when the hover widget is focused."]},"Page Up Hover"),alias:"Page Up Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:11,secondary:[528],weight:100}})}run(e,t){const i=q.get(t);i&&i.pageUp()}}class ee extends s.R6{constructor(){super({id:"editor.action.pageDownHover",label:C.NC({key:"pageDownHover",comment:["Action that allows to page down in the hover widget with the page down command when the hover widget is focused."]},"Page Down Hover"),alias:"Page Down Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:12,secondary:[530],weight:100}})}run(e,t){const i=q.get(t);i&&i.pageDown()}}class te extends s.R6{constructor(){super({id:"editor.action.goToTopHover",label:C.NC({key:"goToTopHover",comment:["Action that allows to go to the top of the hover widget with the home command when the hover widget is focused."]},"Go To Top Hover"),alias:"Go To Bottom Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:14,secondary:[2064],weight:100}})}run(e,t){const i=q.get(t);i&&i.goToTop()}}class ie extends s.R6{constructor(){super({id:"editor.action.goToBottomHover",label:C.NC({key:"goToBottomHover",comment:["Action that allows to go to the bottom in the hover widget with the end command when the hover widget is focused."]},"Go To Bottom Hover"),alias:"Go To Bottom Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:13,secondary:[2066],weight:100}})}run(e,t){const i=q.get(t);i&&i.goToBottom()}}class ne extends s.R6{constructor(){super({id:"editor.action.escapeFocusHover",label:C.NC({key:"escapeFocusHover",comment:["Action that allows to escape from the hover widget with the escape command when the hover widget is focused."]},"Escape Focus Hover"),alias:"Escape Focus Hover",precondition:a.u.hoverFocused,kbOpts:{kbExpr:a.u.hoverFocused,primary:9,weight:100}})}run(e,t){const i=q.get(t);i&&i.escape()}}(0,s._K)(q.ID,q,2),(0,s.Qr)($),(0,s.Qr)(G),(0,s.Qr)(Q),(0,s.Qr)(Y),(0,s.Qr)(Z),(0,s.Qr)(X),(0,s.Qr)(J),(0,s.Qr)(ee),(0,s.Qr)(te),(0,s.Qr)(ie),(0,s.Qr)(ne),x.Ae.register(L.D5),x.Ae.register(z),(0,k.Ic)(((e,t)=>{const i=e.getColor(S.CNo);i&&(t.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${i.transparent(.5)}; }`))}))},12457:(e,t,i)=>{"use strict";i.d(t,{H:()=>l});var n=i(15393),o=i(17301),s=i(4669),r=i(5976);class a{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}}class l extends r.JT{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new s.Q5),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new n.pY((()=>this._triggerAsyncComputation()),0)),this._secondWaitScheduler=this._register(new n.pY((()=>this._triggerSyncComputation()),0)),this._loadingMessageScheduler=this._register(new n.pY((()=>this._triggerLoadingMessage()),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(58).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=(0,n.zS)((e=>this._computer.computeAsync(e))),(()=>{var e,t,i,n;e=this,t=void 0,n=function*(){var e,t,i,n;try{try{for(var s,r=!0,a=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(t){return new Promise((function(n,o){!function(e,t,i,n){Promise.resolve(n).then((function(t){e({value:t,done:i})}),t)}(n,o,(t=e[i](t)).done,t.value)}))}}}(this._asyncIterable);!(e=(s=yield a.next()).done);){n=s.value,r=!1;try{const e=n;e&&(this._result.push(e),this._fireResult())}finally{r=!0}}}catch(e){t={error:e}}finally{try{r||e||!(i=a.return)||(yield i.call(a))}finally{if(t)throw t.error}}this._asyncIterableDone=!0,3!==this._state&&4!==this._state||this._setState(0)}catch(e){(0,o.dL)(e)}},new((i=void 0)||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))})()):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){3===this._state&&this._setState(4)}_fireResult(){if(1===this._state||2===this._state)return;const e=0===this._state,t=4===this._state;this._onResult.fire(new a(this._result.slice(0),e,t))}start(e){if(0===e)0===this._state&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}},66520:(e,t,i)=>{"use strict";i.d(t,{Ae:()=>s,Qj:()=>n,YM:()=>o});class n{constructor(e,t,i,n){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=n,this.type=1}equals(e){return 1===e.type&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return 1===e.type&&t.lineNumber===this.range.startLineNumber}}class o{constructor(e,t,i,n,o,s){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=n,this.initialMousePosY=o,this.supportsMarkerHover=s,this.type=2}equals(e){return 2===e.type&&this.owner===e.owner}canAdoptVisibleHover(e,t){return 2===e.type&&this.owner===e.owner}}const s=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}}},22374:(e,t,i)=>{"use strict";i.d(t,{D5:()=>C,c:()=>y,hU:()=>b});var n=i(65321),o=i(9488),s=i(15393),r=i(59365),a=i(5976),l=i(45241),c=i(50187),h=i(24314),d=i(72042),u=i(41095),g=i(63580),p=i(33108),m=i(50988),f=i(71922),_=function(e,t){return function(i,n){t(i,n,e)}};const v=n.$;class b{constructor(e,t,i,n,o){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=n,this.ordinal=o}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let C=class{constructor(e,t,i,n,o){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=o,this.hoverOrdinal=3}createLoadingMessage(e){return new b(this,e.range,[(new r.W5).appendText(g.NC("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),a=[];let l=1e3;const c=i.getLineLength(n),d=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),u=this._editor.getOption(112),p=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:d});let m=!1;u>=0&&c>u&&e.range.startColumn>=u&&(m=!0,a.push(new b(this,e.range,[{value:g.NC("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,l++))),!m&&"number"==typeof p&&c>=p&&a.push(new b(this,e.range,[{value:g.NC("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,l++));let f=!1;for(const i of t){const t=i.range.startLineNumber===n?i.range.startColumn:1,c=i.range.endLineNumber===n?i.range.endColumn:s,d=i.options.hoverMessage;if(!d||(0,r.CP)(d))continue;i.options.beforeContentClassName&&(f=!0);const u=new h.e(e.range.startLineNumber,t,e.range.startLineNumber,c);a.push(new b(this,u,(0,o._2)(d),f,l++))}return a}computeAsync(e,t,i){if(!this._editor.hasModel()||1!==e.type)return s.Aq.EMPTY;const n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return s.Aq.EMPTY;const o=new c.L(e.range.startLineNumber,e.range.startColumn);return(0,u.R8)(this._languageFeaturesService.hoverProvider,n,o,i).filter((e=>!(0,r.CP)(e.hover.contents))).map((t=>{const i=t.hover.range?h.e.lift(t.hover.range):e.range;return new b(this,i,t.hover.contents,!1,t.ordinal)}))}renderHoverParts(e,t){return y(e,t,this._editor,this._languageService,this._openerService)}};function y(e,t,i,o,s){t.sort(((e,t)=>e.ordinal-t.ordinal));const c=new a.SL;for(const a of t)for(const t of a.contents){if((0,r.CP)(t))continue;const a=v("div.hover-row.markdown-hover"),h=n.R3(a,v("div.hover-contents")),d=c.add(new l.$({editor:i},o,s));c.add(d.onDidRenderAsync((()=>{h.className="hover-contents code-hover-contents",e.onContentsChanged()})));const u=c.add(d.render(t));h.appendChild(u.element),e.fragment.appendChild(a)}return c}C=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([_(1,d.O),_(2,m.v4),_(3,p.Ui),_(4,f.p)],C)},56353:(e,t,i)=>{"use strict";i.r(t);var n=i(15393),o=i(17301),s=i(16467),r=i(16830),a=i(24314),l=i(3860),c=i(29102),h=i(1231),d=i(85215),u=i(63580);class g{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new l.Y(i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new l.Y(i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)}}let p=class e{static get(t){return t.getContribution(e.ID)}constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}dispose(){}run(t,i){var r;null===(r=this.currentRequest)||void 0===r||r.cancel();const c=this.editor.getSelection(),h=this.editor.getModel();if(!h||!c)return;let d=c;if(d.startLineNumber!==d.endLineNumber)return;const u=new s.yy(this.editor,5),p=h.uri;return this.editorWorkerService.canNavigateValueSet(p)?(this.currentRequest=(0,n.PG)((e=>this.editorWorkerService.navigateValueSet(p,d,i))),this.currentRequest.then((i=>{var s;if(!i||!i.range||!i.value)return;if(!u.validate(this.editor))return;const r=a.e.lift(i.range);let c=i.range;const h=i.value.length-(d.endColumn-d.startColumn);c={startLineNumber:c.startLineNumber,startColumn:c.startColumn,endLineNumber:c.endLineNumber,endColumn:c.startColumn+i.value.length},h>1&&(d=new l.Y(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn+h-1));const p=new g(r,d,i.value);this.editor.pushUndoStop(),this.editor.executeCommand(t,p),this.editor.pushUndoStop(),this.decorations.set([{range:c,options:e.DECORATION}]),null===(s=this.decorationRemover)||void 0===s||s.cancel(),this.decorationRemover=(0,n.Vs)(350),this.decorationRemover.then((()=>this.decorations.clear())).catch(o.dL)})).catch(o.dL)):Promise.resolve(void 0)}};var m,f;p.ID="editor.contrib.inPlaceReplaceController",p.DECORATION=h.qx.register({description:"in-place-replace",className:"valueSetReplacement"}),p=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(m=1,f=d.p,function(e,t){f(e,t,m)})],p);class _ extends r.R6{constructor(){super({id:"editor.action.inPlaceReplace.up",label:u.NC("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:c.u.writable,kbOpts:{kbExpr:c.u.editorTextFocus,primary:3159,weight:100}})}run(e,t){const i=p.get(t);return i?i.run(this.id,!1):Promise.resolve(void 0)}}class v extends r.R6{constructor(){super({id:"editor.action.inPlaceReplace.down",label:u.NC("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:c.u.writable,kbOpts:{kbExpr:c.u.editorTextFocus,primary:3161,weight:100}})}run(e,t){const i=p.get(t);return i?i.run(this.id,!0):Promise.resolve(void 0)}}(0,r._K)(p.ID,p,4),(0,r.Qr)(_),(0,r.Qr)(v)},18279:(e,t,i)=>{"use strict";function n(e,t){let i=0;for(let n=0;no,Y:()=>n})},84602:(e,t,i)=>{"use strict";i.r(t),i.d(t,{AutoIndentOnPaste:()=>D,AutoIndentOnPasteCommand:()=>N,ChangeIndentationSizeAction:()=>y,ChangeTabDisplaySize:()=>k,DetectIndentation:()=>x,IndentUsingSpaces:()=>S,IndentUsingTabs:()=>w,IndentationToSpacesAction:()=>b,IndentationToSpacesCommand:()=>M,IndentationToTabsAction:()=>C,IndentationToTabsCommand:()=>R,ReindentLinesAction:()=>L,ReindentSelectedLinesAction:()=>E,getReindentEditOperations:()=>v});var n=i(5976),o=i(97295),s=i(16830),r=i(10291),a=i(69386),l=i(24314),c=i(3860),h=i(29102),d=i(51381),u=i(73733),g=i(18279),p=i(63580),m=i(41157),f=i(83158),_=i(75383);function v(e,t,i,n,s){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];const l=t.getLanguageConfiguration(e.getLanguageId()).indentationRules;if(!l)return[];for(n=Math.min(n,e.getLineCount());i<=n&&l.unIndentedLinePattern;){const t=e.getLineContent(i);if(!l.unIndentedLinePattern.test(t))break;i++}if(i>n-1)return[];const{tabSize:h,indentSize:d,insertSpaces:u}=e.getOptions(),g=(e,t)=>(t=t||1,r.U.shiftIndent(e,e.length+t,h,d,u)),p=(e,t)=>(t=t||1,r.U.unshiftIndent(e,e.length+t,h,d,u)),m=[];let _;const v=e.getLineContent(i);let b=v;if(null!=s){_=s;const e=o.V8(v);b=_+v.substring(e.length),l.decreaseIndentPattern&&l.decreaseIndentPattern.test(b)&&(_=p(_),b=_+v.substring(e.length)),v!==b&&m.push(a.h.replaceMove(new c.Y(i,1,i,e.length+1),(0,f.x)(_,d,u)))}else _=o.V8(v);let C=_;l.increaseIndentPattern&&l.increaseIndentPattern.test(b)?(C=g(C),_=g(_)):l.indentNextLinePattern&&l.indentNextLinePattern.test(b)&&(C=g(C));for(let t=++i;t<=n;t++){const i=e.getLineContent(t),n=o.V8(i),s=C+i.substring(n.length);l.decreaseIndentPattern&&l.decreaseIndentPattern.test(s)&&(C=p(C),_=p(_)),n!==C&&m.push(a.h.replaceMove(new c.Y(t,1,t,n.length+1),(0,f.x)(C,d,u))),l.unIndentedLinePattern&&l.unIndentedLinePattern.test(i)||(l.increaseIndentPattern&&l.increaseIndentPattern.test(s)?(_=g(_),C=_):C=l.indentNextLinePattern&&l.indentNextLinePattern.test(s)?g(C):_)}return m}class b extends s.R6{constructor(){super({id:b.ID,label:p.NC("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:h.u.writable})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),o=t.getSelection();if(!o)return;const s=new M(o,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop(),i.updateOptions({insertSpaces:!0})}}b.ID="editor.action.indentationToSpaces";class C extends s.R6{constructor(){super({id:C.ID,label:p.NC("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:h.u.writable})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),o=t.getSelection();if(!o)return;const s=new R(o,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop(),i.updateOptions({insertSpaces:!1})}}C.ID="editor.action.indentationToTabs";class y extends s.R6{constructor(e,t,i){super(i),this.insertSpaces=e,this.displaySizeOnly=t}run(e,t){const i=e.get(m.eJ),n=e.get(u.q),o=t.getModel();if(!o)return;const s=n.getCreationOptions(o.getLanguageId(),o.uri,o.isForSimpleWidget),r=o.getOptions(),a=[1,2,3,4,5,6,7,8].map((e=>({id:e.toString(),label:e.toString(),description:e===s.tabSize&&e===r.tabSize?p.NC("configuredTabSize","Configured Tab Size"):e===s.tabSize?p.NC("defaultTabSize","Default Tab Size"):e===r.tabSize?p.NC("currentTabSize","Current Tab Size"):void 0}))),l=Math.min(o.getOptions().tabSize-1,7);setTimeout((()=>{i.pick(a,{placeHolder:p.NC({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:a[l]}).then((e=>{if(e&&o&&!o.isDisposed()){const t=parseInt(e.label,10);this.displaySizeOnly?o.updateOptions({tabSize:t}):o.updateOptions({tabSize:t,indentSize:t,insertSpaces:this.insertSpaces})}}))}),50)}}class w extends y{constructor(){super(!1,!1,{id:w.ID,label:p.NC("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}w.ID="editor.action.indentUsingTabs";class S extends y{constructor(){super(!0,!1,{id:S.ID,label:p.NC("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}S.ID="editor.action.indentUsingSpaces";class k extends y{constructor(){super(!0,!0,{id:k.ID,label:p.NC("changeTabDisplaySize","Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0})}}k.ID="editor.action.changeTabDisplaySize";class x extends s.R6{constructor(){super({id:x.ID,label:p.NC("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){const i=e.get(u.q),n=t.getModel();if(!n)return;const o=i.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget);n.detectIndentation(o.insertSpaces,o.tabSize)}}x.ID="editor.action.detectIndentation";class L extends s.R6{constructor(){super({id:"editor.action.reindentlines",label:p.NC("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:h.u.writable})}run(e,t){const i=e.get(d.c_),n=t.getModel();if(!n)return;const o=v(n,i,1,n.getLineCount());o.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop())}}class E extends s.R6{constructor(){super({id:"editor.action.reindentselectedlines",label:p.NC("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:h.u.writable})}run(e,t){const i=e.get(d.c_),n=t.getModel();if(!n)return;const o=t.getSelections();if(null===o)return;const s=[];for(const e of o){let t=e.startLineNumber,o=e.endLineNumber;if(t!==o&&1===e.endColumn&&o--,1===t){if(t===o)continue}else t--;const r=v(n,i,t,o);s.push(...r)}s.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop())}}class N{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(const t of e)t.range&&"string"==typeof t.text&&this._edits.push(t)}getEditOperations(e,t){for(const e of this._edits)t.addEditOperation(l.e.lift(e.range),e.text);let i=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),i||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}let D=class{constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new n.SL,this.callOnModel=new n.SL,this.callOnDispose.add(e.onDidChangeConfiguration((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModel((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModelLanguage((()=>this.update())))}update(){this.callOnModel.clear(),this.editor.getOption(10)<4||this.editor.getOption(53)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste((({range:e})=>{this.trigger(e)})))}trigger(e){const t=this.editor.getSelections();if(null===t||t.length>1)return;const i=this.editor.getModel();if(!i)return;if(!i.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;const n=this.editor.getOption(10),{tabSize:s,indentSize:a,insertSpaces:c}=i.getOptions(),h=[],d={shiftIndent:e=>r.U.shiftIndent(e,e.length+1,s,a,c),unshiftIndent:e=>r.U.unshiftIndent(e,e.length+1,s,a,c)};let u=e.startLineNumber;for(;u<=e.endLineNumber&&this.shouldIgnoreLine(i,u);)u++;if(u>e.endLineNumber)return;let p=i.getLineContent(u);if(!/\S/.test(p.substring(0,e.startColumn-1))){const e=(0,_.n8)(n,i,i.getLanguageId(),u,d,this._languageConfigurationService);if(null!==e){const t=o.V8(p),n=g.Y(e,s);if(n!==g.Y(t,s)){const e=g.J(n,s,c);h.push({range:new l.e(u,1,u,t.length+1),text:e}),p=e+p.substr(t.length)}else{const e=(0,_.tI)(i,u,this._languageConfigurationService);if(0===e||8===e)return}}}const m=u;for(;ui.tokenization.getLineTokens(e),getLanguageId:()=>i.getLanguageId(),getLanguageIdAtPosition:(e,t)=>i.getLanguageIdAtPosition(e,t)},getLineContent:e=>e===m?p:i.getLineContent(e)},r=(0,_.n8)(n,t,i.getLanguageId(),u+1,d,this._languageConfigurationService);if(null!==r){const t=g.Y(r,s),n=g.Y(o.V8(i.getLineContent(u+1)),s);if(t!==n){const r=t-n;for(let t=u+1;t<=e.endLineNumber;t++){const e=i.getLineContent(t),n=o.V8(e),a=g.Y(n,s)+r,d=g.J(a,s,c);d!==n&&h.push({range:new l.e(t,1,t,n.length+1),text:d})}}}}if(h.length>0){this.editor.pushUndoStop();const e=new N(h,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",e),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);const i=e.getLineFirstNonWhitespaceColumn(t);if(0===i)return!0;const n=e.tokenization.getLineTokens(t);if(n.getCount()>0){const e=n.findTokenIndexAtOffset(i);if(e>=0&&1===n.getStandardTokenType(e))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};function T(e,t,i,n){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let o="";for(let e=0;e=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(I=1,A=d.c_,function(e,t){A(e,t,I)})],D);class M{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),T(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}class R{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),T(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}(0,s._K)(D.ID,D,2),(0,s.Qr)(b),(0,s.Qr)(C),(0,s.Qr)(w),(0,s.Qr)(S),(0,s.Qr)(k),(0,s.Qr)(x),(0,s.Qr)(L),(0,s.Qr)(E)},66348:(e,t,i)=>{"use strict";i.r(t);var n=i(16830),o=i(66520),s=i(65321),r=i(9488),a=i(15393),l=i(71050),c=i(17301),h=i(5976),d=i(43702),u=i(98401),g=i(70666),p=i(29994),m=i(43407),f=i(64141),_=i(69386),v=i(24314),b=i(96887),C=i(84973),y=i(1231),w=i(88191),S=i(71922),k=i(88216),x=i(82005),L=i(50187),E=i(66663),N=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class D{constructor(e,t){this.range=e,this.direction=t}}class T{constructor(e,t,i){this.hint=e,this.anchor=t,this.provider=i,this._isResolved=!1}with(e){const t=new T(this.hint,e.anchor,this.provider);return t._isResolved=this._isResolved,t._currentResolve=this._currentResolve,t}resolve(e){return N(this,void 0,void 0,(function*(){if("function"==typeof this.provider.resolveInlayHint){if(this._currentResolve){if(yield this._currentResolve,e.isCancellationRequested)return;return this.resolve(e)}this._isResolved||(this._currentResolve=this._doResolve(e).finally((()=>this._currentResolve=void 0))),yield this._currentResolve}}))}_doResolve(e){var t,i;return N(this,void 0,void 0,(function*(){try{const n=yield Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=null!==(t=null==n?void 0:n.tooltip)&&void 0!==t?t:this.hint.tooltip,this.hint.label=null!==(i=null==n?void 0:n.label)&&void 0!==i?i:this.hint.label,this._isResolved=!0}catch(e){(0,c.Cp)(e),this._isResolved=!1}}))}}class I{static create(e,t,i,n){return N(this,void 0,void 0,(function*(){const o=[],s=e.ordered(t).reverse().map((e=>i.map((i=>N(this,void 0,void 0,(function*(){try{const s=yield e.provideInlayHints(t,i,n);(null==s?void 0:s.hints.length)&&o.push([s,e])}catch(e){(0,c.Cp)(e)}}))))));if(yield Promise.all(s.flat()),n.isCancellationRequested||t.isDisposed())throw new c.FU;return new I(i,o,t)}))}constructor(e,t,i){this._disposables=new h.SL,this.ranges=e,this.provider=new Set;const n=[];for(const[e,o]of t){this._disposables.add(e),this.provider.add(o);for(const t of e.hints){const e=i.validatePosition(t.position);let s="before";const r=I._getRangeAtPosition(i,e);let a;r.getStartPosition().isBefore(e)?(a=v.e.fromPositions(r.getStartPosition(),e),s="after"):(a=v.e.fromPositions(e,r.getEndPosition()),s="before"),n.push(new T(t,new D(a,s),o))}}this.items=n.sort(((e,t)=>L.L.compare(e.hint.position,t.hint.position)))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){const i=t.lineNumber,n=e.getWordAtPosition(t);if(n)return new v.e(i,n.startColumn,i,n.endColumn);e.tokenization.tokenizeIfCheap(i);const o=e.tokenization.getLineTokens(i),s=t.column-1,r=o.findTokenIndexAtOffset(s);let a=o.getStartOffset(r),l=o.getEndOffset(r);return l-a==1&&(a===s&&r>1?(a=o.getStartOffset(r-1),l=o.getEndOffset(r-1)):l===s&&rthis._update()))),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(135)&&this._update()}))),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const e=this._editor.getOption(135);if("off"===e.enabled)return;const t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;const i=this._inlayHintsCache.get(t);let n;i&&this._updateHintsDecorators([t.getFullModelRange()],i),this._sessionDisposables.add((0,h.OF)((()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)})));const o=new Set,r=new a.pY((()=>V(this,void 0,void 0,(function*(){const e=Date.now();null==n||n.dispose(!0),n=new l.A;const i=t.onWillDispose((()=>null==n?void 0:n.cancel()));try{const i=n.token,s=yield I.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),i);if(r.delay=this._debounceInfo.update(t,Date.now()-e),i.isCancellationRequested)return void s.dispose();for(const e of s.provider)"function"!=typeof e.onDidChangeInlayHints||o.has(e)||(o.add(e),this._sessionDisposables.add(e.onDidChangeInlayHints((()=>{r.isScheduled()||r.schedule()}))));this._sessionDisposables.add(s),this._updateHintsDecorators(s.ranges,s.items),this._cacheHintsForFastRestore(t)}catch(e){(0,c.dL)(e)}finally{n.dispose(),i.dispose()}}))),this._debounceInfo.get(t));if(this._sessionDisposables.add(r),this._sessionDisposables.add((0,h.OF)((()=>null==n?void 0:n.dispose(!0)))),r.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange((e=>{!e.scrollTopChanged&&r.isScheduled()||r.schedule()}))),this._sessionDisposables.add(this._editor.onDidChangeModelContent((e=>{const t=Math.max(r.delay,1250);r.schedule(t)}))),"on"===e.enabled)this._activeRenderMode=0;else{let t,i;"onUnlessPressed"===e.enabled?(t=0,i=1):(t=1,i=0),this._activeRenderMode=t,this._sessionDisposables.add(s._q.getInstance().event((e=>{if(!this._editor.hasModel())return;const n=e.altKey&&e.ctrlKey&&!e.shiftKey&&!e.metaKey?i:t;if(n!==this._activeRenderMode){this._activeRenderMode=n;const e=this._editor.getModel(),t=this._copyInlayHintsWithCurrentAnchor(e);this._updateHintsDecorators([e.getFullModelRange()],t),r.schedule(0)}})))}this._sessionDisposables.add(this._installDblClickGesture((()=>r.schedule(0)))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const e=new h.SL,t=e.add(new x.yN(this._editor)),i=new h.SL;return e.add(i),e.add(t.onMouseMoveOrRelevantKeyDown((e=>{const[t]=e,n=this._getInlayHintLabelPart(t),o=this._editor.getModel();if(!n||!o)return void i.clear();const s=new l.A;i.add((0,h.OF)((()=>s.dispose(!0)))),n.item.resolve(s.token),this._activeInlayHintPart=n.part.command||n.part.location?new j(n,t.hasTriggerModifier):void 0;const r=o.validatePosition(n.item.hint.position).lineNumber,a=new v.e(r,1,r,o.getLineMaxColumn(r)),c=this._getInlineHintsForRange(a);this._updateHintsDecorators([a],c),i.add((0,h.OF)((()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([a],c)})))}))),e.add(t.onCancel((()=>i.clear()))),e.add(t.onExecute((e=>V(this,void 0,void 0,(function*(){const t=this._getInlayHintLabelPart(e);if(t){const i=t.part;i.location?this._instaService.invokeFunction(A.K,e,this._editor,i.location):b.mY.is(i.command)&&(yield this._invokeCommand(i.command,t.item))}}))))),e}_getInlineHintsForRange(e){const t=new Set;for(const i of this._decorationsMetadata.values())e.containsRange(i.item.anchor.range)&&t.add(i.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp((t=>V(this,void 0,void 0,(function*(){if(2!==t.event.detail)return;const i=this._getInlayHintLabelPart(t);if(i&&(t.event.preventDefault(),yield i.item.resolve(l.T.None),(0,r.Of)(i.item.hint.textEdits))){const t=i.item.hint.textEdits.map((e=>_.h.replace(v.e.lift(e.range),e.text)));this._editor.executeEdits("inlayHint.default",t),e()}}))))}_installContextMenu(){return this._editor.onContextMenu((e=>V(this,void 0,void 0,(function*(){if(!(e.event.target instanceof HTMLElement))return;const t=this._getInlayHintLabelPart(e);t&&(yield this._instaService.invokeFunction(A.u,this._editor,e.event.target,t))}))))}_getInlayHintLabelPart(e){var t;if(6!==e.target.type)return;const i=null===(t=e.target.detail.injectedText)||void 0===t?void 0:t.options;return i instanceof y.HS&&(null==i?void 0:i.attachedData)instanceof U?i.attachedData:void 0}_invokeCommand(e,t){var i;return V(this,void 0,void 0,(function*(){try{yield this._commandService.executeCommand(e.id,...null!==(i=e.arguments)&&void 0!==i?i:[])}catch(e){this._notificationService.notify({severity:P.zb.Error,source:t.provider.displayName,message:e})}}))}_cacheHintsForFastRestore(e){const t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){const t=new Map;for(const[i,n]of this._decorationsMetadata){if(t.has(n.item))continue;const o=e.getDecorationRange(i);if(o){const e=new D(o,n.item.anchor.direction),i=n.item.with({anchor:e});t.set(n.item,i)}}return Array.from(t.values())}_getHintsRanges(){const e=this._editor.getModel(),t=this._editor.getVisibleRangesPlusViewportAboveBelow(),i=[];for(const n of t.sort(v.e.compareRangesUsingStarts)){const t=e.validateRange(new v.e(n.startLineNumber-30,n.startColumn,n.endLineNumber+30,n.endColumn));0!==i.length&&v.e.areIntersectingOrTouching(i[i.length-1],t)?i[i.length-1]=v.e.plusRange(i[i.length-1],t):i.push(t)}return i}_updateHintsDecorators(t,i){var n,o;const s=[],a=(e,t,i,n,o)=>{const r={content:i,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:t.className,cursorStops:n,attachedData:o};s.push({item:e,classNameRef:t,decoration:{range:e.anchor.range,options:{description:"InlayHint",showIfCollapsed:e.anchor.range.isEmpty(),collapseOnReplaceEdit:!e.anchor.range.isEmpty(),stickiness:0,[e.anchor.direction]:0===this._activeRenderMode?r:void 0}}})},l=(e,t)=>{const i=this._ruleFactory.createClassNameRef({width:(c/3|0)+"px",display:"inline-block"});a(e,i," ",t?C.RM.Right:C.RM.None)},{fontSize:c,fontFamily:h,padding:d,isUniform:u}=this._getLayoutInfo(),g="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(g,h);for(const t of i){t.hint.paddingLeft&&l(t,!1);const i="string"==typeof t.hint.label?[{label:t.hint.label}]:t.hint.label;for(let e=0;ee._MAX_DECORATORS)break}const p=[];for(const e of t)for(const{id:t}of null!==(o=this._editor.getDecorationsInRange(e))&&void 0!==o?o:[]){const e=this._decorationsMetadata.get(t);e&&(p.push(t),e.classNameRef.dispose(),this._decorationsMetadata.delete(t))}const _=m.Z.capture(this._editor);this._editor.changeDecorations((e=>{const t=e.deltaDecorations(p,s.map((e=>e.decoration)));for(let e=0;ei)&&(o=i);const s=e.fontFamily||n;return{fontSize:o,fontFamily:s,padding:t,isUniform:!t&&s===n&&o===i}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};K.ID="editor.contrib.InlayHints",K._MAX_DECORATORS=1500,K=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([H(1,S.p),H(2,w.A),H(3,z),H(4,M.H),H(5,P.lT),H(6,O.TG)],K),M.P.registerCommand("_executeInlayHintProvider",((e,...t)=>V(void 0,void 0,void 0,(function*(){const[i,n]=t;(0,u.p_)(g.o.isUri(i)),(0,u.p_)(v.e.isIRange(n));const{inlayHintsProvider:o}=e.get(S.p),s=yield e.get(k.S).createModelReference(i);try{const e=yield I.create(o,s.object.textEditorModel,[v.e.lift(n)],l.T.None),t=e.items.map((e=>e.hint));return setTimeout((()=>e.dispose()),0),t}finally{s.dispose()}}))));var q=i(59365),$=i(72042),G=i(41095),Q=i(22374),Y=i(33108),Z=i(50988),X=i(63580),J=i(1432),ee=function(e,t){return function(i,n){t(i,n,e)}},te=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class ie extends o.YM{constructor(e,t,i,n){super(10,t,e.item.anchor.range,i,n,!0),this.part=e}}let ne=class extends Q.D5{constructor(e,t,i,n,o,s){super(e,t,i,n,s),this._resolverService=o,this.hoverOrdinal=6}suggestHoverAnchor(e){var t;if(!K.get(this._editor))return null;if(6!==e.target.type)return null;const i=null===(t=e.target.detail.injectedText)||void 0===t?void 0:t.options;return i instanceof y.HS&&i.attachedData instanceof U?new ie(i.attachedData,this,e.event.posx,e.event.posy):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof ie?new a.Aq((t=>te(this,void 0,void 0,(function*(){var n,o,s,a;const{part:l}=e;if(yield l.item.resolve(i),i.isCancellationRequested)return;let c,h;if("string"==typeof l.item.hint.tooltip?c=(new q.W5).appendText(l.item.hint.tooltip):l.item.hint.tooltip&&(c=l.item.hint.tooltip),c&&t.emitOne(new Q.hU(this,e.range,[c],!1,0)),(0,r.Of)(l.item.hint.textEdits)&&t.emitOne(new Q.hU(this,e.range,[(new q.W5).appendText((0,X.NC)("hint.dbl","Double-click to insert"))],!1,10001)),"string"==typeof l.part.tooltip?h=(new q.W5).appendText(l.part.tooltip):l.part.tooltip&&(h=l.part.tooltip),h&&t.emitOne(new Q.hU(this,e.range,[h],!1,1)),l.part.location||l.part.command){let i;const n="altKey"===this._editor.getOption(75)?J.dz?(0,X.NC)("links.navigate.kb.meta.mac","cmd + click"):(0,X.NC)("links.navigate.kb.meta","ctrl + click"):J.dz?(0,X.NC)("links.navigate.kb.alt.mac","option + click"):(0,X.NC)("links.navigate.kb.alt","alt + click");l.part.location&&l.part.command?i=(new q.W5).appendText((0,X.NC)("hint.defAndCommand","Go to Definition ({0}), right click for more",n)):l.part.location?i=(new q.W5).appendText((0,X.NC)("hint.def","Go to Definition ({0})",n)):l.part.command&&(i=new q.W5(`[${(0,X.NC)("hint.cmd","Execute Command")}](${d=l.part.command,g.o.from({scheme:E.lg.command,path:d.id,query:d.arguments&&encodeURIComponent(JSON.stringify(d.arguments))}).toString()} "${l.part.command.title}") (${n})`,{isTrusted:!0})),i&&t.emitOne(new Q.hU(this,e.range,[i],!1,1e4))}var d;const u=yield this._resolveInlayHintLabelPartHover(l,i);try{for(var p,m=!0,f=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(t){return new Promise((function(n,o){!function(e,t,i,n){Promise.resolve(n).then((function(t){e({value:t,done:i})}),t)}(n,o,(t=e[i](t)).done,t.value)}))}}}(u);!(n=(p=yield f.next()).done);){a=p.value,m=!1;try{const e=a;t.emitOne(e)}finally{m=!0}}}catch(e){o={error:e}}finally{try{m||n||!(s=f.return)||(yield s.call(f))}finally{if(o)throw o.error}}})))):a.Aq.EMPTY}_resolveInlayHintLabelPartHover(e,t){return te(this,void 0,void 0,(function*(){if(!e.part.location)return a.Aq.EMPTY;const{uri:i,range:n}=e.part.location,o=yield this._resolverService.createModelReference(i);try{const i=o.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(i)?(0,G.R8)(this._languageFeaturesService.hoverProvider,i,new L.L(n.startLineNumber,n.startColumn),t).filter((e=>!(0,q.CP)(e.hover.contents))).map((t=>new Q.hU(this,e.item.anchor.range,t.hover.contents,!1,2+t.ordinal))):a.Aq.EMPTY}finally{o.dispose()}}))}};ne=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([ee(1,$.O),ee(2,Z.v4),ee(3,Y.Ui),ee(4,k.S),ee(5,S.p)],ne),(0,n._K)(K.ID,K,1),o.Ae.register(ne)},58722:(e,t,i)=>{"use strict";i.d(t,{K:()=>b,u:()=>v});var n=i(65321),o=i(74741),s=i(71050),r=i(98e3),a=i(24314),l=i(88216),c=i(60628),h=i(52049),d=i(84144),u=i(94565),g=i(93983),p=i(5606),m=i(72065),f=i(59422),_=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function v(e,t,i,h){var g;return _(this,void 0,void 0,(function*(){const v=e.get(l.S),b=e.get(p.i),C=e.get(u.H),y=e.get(m.TG),w=e.get(f.lT);if(yield h.item.resolve(s.T.None),!h.part.location)return;const S=h.part.location,k=[],x=new Set(d.BH.getMenuItems(d.eH.EditorContext).map((e=>(0,d.vr)(e)?e.command.id:(0,r.R)())));for(const e of c.SymbolNavigationAction.all())x.has(e.desc.id)&&k.push(new o.aU(e.desc.id,d.U8.label(e.desc,{renderShortTitle:!0}),void 0,!0,(()=>_(this,void 0,void 0,(function*(){const i=yield v.createModelReference(S.uri);try{const n=new c.SymbolNavigationAnchor(i.object.textEditorModel,a.e.getStartPosition(S.range)),o=h.item.anchor.range;yield y.invokeFunction(e.runEditorCommand.bind(e),t,n,o)}finally{i.dispose()}})))));if(h.part.command){const{command:e}=h.part;k.push(new o.Z0),k.push(new o.aU(e.id,e.title,void 0,!0,(()=>_(this,void 0,void 0,(function*(){var t;try{yield C.executeCommand(e.id,...null!==(t=e.arguments)&&void 0!==t?t:[])}catch(e){w.notify({severity:f.zb.Error,source:h.item.provider.displayName,message:e})}})))))}const L=t.getOption(122);b.showContextMenu({domForShadowRoot:L&&null!==(g=t.getDomNode())&&void 0!==g?g:void 0,getAnchor:()=>{const e=n.i(i);return{x:e.left,y:e.top+e.height+8}},getActions:()=>k,onHide:()=>{t.focus()},autoSelectFirstItem:!0})}))}function b(e,t,i,n){return _(this,void 0,void 0,(function*(){const o=e.get(l.S),s=yield o.createModelReference(n.uri);yield i.invokeWithinContext((e=>_(this,void 0,void 0,(function*(){const o=t.hasSideBySideModifier,r=e.get(g.i6),l=h.Jy.inPeekEditor.getValue(r),d=!o&&i.getOption(84)&&!l;return new c.DefinitionAction({openToSide:o,openInPeek:d,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e,new c.SymbolNavigationAnchor(s.object.textEditorModel,a.e.getStartPosition(n.range)),a.e.lift(n.range))})))),s.dispose()}))}},96020:(e,t,i)=>{"use strict";i.d(t,{Np:()=>o,OW:()=>s,Ou:()=>n});const n="editor.action.inlineSuggest.commit",o="editor.action.inlineSuggest.showPrevious",s="editor.action.inlineSuggest.showNext"},78573:(e,t,i)=>{"use strict";i.d(t,{f:()=>c});var n=i(72495),o=i(97295),s=i(7988),r=i(93983),a=i(5976),l=i(63580);class c extends a.JT{constructor(e,t){super(),this.contextKeyService=e,this.model=t,this.inlineCompletionVisible=c.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=c.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=c.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=c.suppressSuggestions.bindTo(this.contextKeyService),this._register((0,n.EH)("update context key: inlineCompletionVisible, suppressSuggestions",(e=>{const t=this.model.read(e),i=null==t?void 0:t.selectedInlineCompletion.read(e),n=null==t?void 0:t.ghostText.read(e),o=null==t?void 0:t.selectedSuggestItem.read(e);this.inlineCompletionVisible.set(void 0===o&&void 0!==n),n&&i&&this.suppressSuggestions.set(i.inlineCompletion.source.inlineCompletions.suppressSuggestions)}))),this._register((0,n.EH)("update context key: inlineCompletionSuggestsIndentation, inlineCompletionSuggestsIndentationLessThanTabSize",(e=>{const t=this.model.read(e);let i=!1,n=!0;const r=null==t?void 0:t.ghostText.read(e);if((null==t?void 0:t.selectedSuggestItem)&&r&&r.parts.length>0){const{column:e,lines:a}=r.parts[0],l=a[0];if(e<=t.textModel.getLineIndentColumn(r.lineNumber)){let e=(0,o.LC)(l);-1===e&&(e=l.length-1),i=e>0;const r=t.textModel.getOptions().tabSize;n=s.i.visibleColumnFromColumn(l,e+1,r){"use strict";i.r(t);var n=i(16830),o=i(66520),s=i(72495),r=i(29102),a=i(96020),l=i(78573),c=i(85152),h=i(4669),d=i(5976),u=i(29869),g=i(69317),p=i(50187),m=i(88191),f=i(71922),_=i(97295),v=i(52136),b=i(64141),C=i(24314),y=i(50072),w=i(72042),S=i(84973),k=i(77378),x=i(92550),L=i(91557),E=i(17301);class N{constructor(e){this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;tt)throw new E.he(`startColumn ${e} cannot be after endColumnExclusive ${t}`)}toRange(e){return new C.e(e,this.startColumn,e,this.endColumnExclusive)}}function I(e,t){return new p.L(e.lineNumber+t.lineNumber-1,1===t.lineNumber?e.column+t.column-1:t.column)}function A(e){let t=1,i=1;for(const n of e)"\n"===n?(t++,i=1):i++;return new p.L(t,i)}class M{constructor(e,t){this.lineNumber=e,this.parts=t}renderForScreenReader(e){if(0===this.parts.length)return"";const t=this.parts[this.parts.length-1];return function(e,t){const i=new N(e),n=t.map((e=>{const t=C.e.lift(e.range);return{startOffset:i.getOffset(t.getStartPosition()),endOffset:i.getOffset(t.getEndPosition()),text:e.text}}));n.sort(((e,t)=>t.startOffset-e.startOffset));for(const t of n)e=e.substring(0,t.startOffset)+t.text+e.substring(t.endOffset);return e}(e.substr(0,t.column-1),this.parts.map((e=>({range:{startLineNumber:1,endLineNumber:1,startColumn:e.column,endColumn:e.column},text:e.lines.join("\n")})))).substring(this.parts[0].column-1)}get lineCount(){return 1+this.parts.reduce(((e,t)=>e+t.lines.length-1),0)}}class R{constructor(e,t,i){this.column=e,this.lines=t,this.preview=i}}class O{constructor(e,t,i,n=0){this.lineNumber=e,this.columnRange=t,this.newLines=i,this.additionalReservedLineCount=n,this.parts=[new R(this.columnRange.endColumnExclusive,this.newLines,!1)]}}var P;let F=class extends d.JT{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=(0,s.uh)("isDisposed",!1),this.currentTextModel=(0,s.rD)(this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=(0,s.nK)("uiState",(e=>{if(this.isDisposed.read(e))return;const t=this.currentTextModel.read(e);if(t!==this.model.targetTextModel.read(e))return;const i=this.model.ghostText.read(e);if(!i)return;const n=i instanceof O?i.columnRange:void 0,o=[],s=[];function r(e,t){if(s.length>0){const i=s[s.length-1];t&&i.decorations.push(new x.Kp(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)s.push({content:i,decorations:t?[new x.Kp(1,i.length+1,t,0)]:[]})}const a=t.getLineContent(i.lineNumber);let l,c=0;for(const e of i.parts){let t=e.lines;void 0===l?(o.push({column:e.column,text:t[0],preview:e.preview}),t=t.slice(1)):r([a.substring(c,e.column-1)],void 0),t.length>0&&(r(t,"ghost-text"),void 0===l&&e.column<=a.length&&(l=e.column)),c=e.column-1}void 0!==l&&r([a.substring(c)],void 0);const h=void 0!==l?new T(l,a.length+1):void 0;return{replacedRange:n,inlineTexts:o,additionalLines:s,hiddenRange:h,lineNumber:i.lineNumber,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:t}})),this.decorations=(0,s.nK)("decorations",(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];t.replacedRange&&i.push({range:t.replacedRange.toRange(t.lineNumber),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}),t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});for(const e of t.inlineTexts)i.push({range:C.e.fromPositions(new p.L(t.lineNumber,e.column)),options:{description:"ghost-text",after:{content:e.text,inlineClassName:e.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:S.RM.Left},showIfCollapsed:!0}});return i})),this.additionalLinesWidget=this._register(new V(this.editor,this.languageService.languageIdCodec,(0,s.nK)("lines",(e=>{const t=this.uiState.read(e);return t?{lineNumber:t.lineNumber,additionalLines:t.additionalLines,minReservedLineCount:t.additionalReservedLineCount,targetTextModel:t.targetTextModel}:void 0})))),this._register((0,d.OF)((()=>{this.isDisposed.set(!0,void 0)}))),this._register(function(e,t){const i=new d.SL,n=e.createDecorationsCollection();return i.add((0,s.EH)(`Apply decorations from ${t.debugName}`,(e=>{const i=t.read(e);n.set(i)}))),i.add({dispose:()=>{n.clear()}}),i}(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};var B,H;F=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(B=2,H=w.O,function(e,t){H(e,t,B)})],F);class V extends d.JT{get viewZoneId(){return this._viewZoneId}constructor(e,t,i){super(),this.editor=e,this.languageIdCodec=t,this.lines=i,this._viewZoneId=void 0,this.editorOptionsChanged=(0,s.aq)("editorOptionChanged",h.ju.filter(this.editor.onDidChangeConfiguration,(e=>e.hasChanged(31)||e.hasChanged(112)||e.hasChanged(94)||e.hasChanged(89)||e.hasChanged(49)||e.hasChanged(48)||e.hasChanged(64)))),this._register((0,s.EH)("update view zone",(e=>{const t=this.lines.read(e);this.editorOptionsChanged.read(e),t?this.updateLines(t.lineNumber,t.additionalLines,t.minReservedLineCount):this.clear()})))}dispose(){super.dispose(),this.clear()}clear(){this.editor.changeViewZones((e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)}))}updateLines(e,t,i){const n=this.editor.getModel();if(!n)return;const{tabSize:o}=n.getOptions();this.editor.changeViewZones((n=>{this._viewZoneId&&(n.removeZone(this._viewZoneId),this._viewZoneId=void 0);const s=Math.max(t.length,i);if(s>0){const i=document.createElement("div");!function(e,t,i,n,o){const s=n.get(31),r=n.get(112),a=n.get(89),l=n.get(49),c=n.get(48),h=n.get(64),d=new y.HT(1e4);d.appendString('
    ');for(let e=0,n=i.length;e');const g=_.$i(u),p=_.Ut(u),m=k.A.createEmpty(u,o);(0,L.d1)(new L.IJ(c.isMonospace&&!s,c.canUseHalfwidthRightwardsArrow,u,!1,g,p,0,m,n.decorations,t,0,c.spaceWidth,c.middotWidth,c.wsmiddotWidth,r,"none",a,l!==b.n0.OFF,null),d),d.appendString("
    ")}d.appendString(""),(0,v.N)(e,c);const u=d.build(),g=W?W.createHTML(u):u;e.innerHTML=g}(i,o,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=n.addZone({afterLineNumber:e,heightInLines:s,domNode:i,afterColumnAffinity:1})}}))}}const W=null===(P=window.trustedTypes)||void 0===P?void 0:P.createPolicy("editorGhostText",{createHTML:e=>e});var z=i(47298),U=i(9488),j=i(98401),K=i(69386),q=i(96887),$=i(51381),G=i(71050),Q=i(75392),Y=i(2484);class Z{constructor(e,t){this.range=e,this.text=t}removeCommonPrefix(e,t){const i=t?this.range.intersectRanges(t):this.range;if(!i)return this;const n=e.getValueInRange(i,1),o=(0,_.Mh)(n,this.text),s=I(this.range.getStartPosition(),A(n.substring(0,o))),r=this.text.substring(o),a=C.e.fromPositions(s,this.range.getEndPosition());return new Z(a,r)}augments(e){return this.text.startsWith(e.text)&&(t=this.range,(i=e.range).getStartPosition().equals(t.getStartPosition())&&i.getEndPosition().isBeforeOrEqual(t.getEndPosition()));var t,i}computeGhostText(e,t,i,n=0){let o=this.removeCommonPrefix(e);if(o.range.endLineNumber!==o.range.startLineNumber)return;const s=e.getLineContent(o.range.startLineNumber),r=(0,_.V8)(s).length;if(o.range.startColumn-1<=r){const e=(0,_.V8)(o.text).length,t=s.substring(o.range.startColumn-1,r),i=C.e.fromPositions(o.range.getStartPosition().delta(0,t.length),o.range.getEndPosition()),n=o.text.startsWith(t)?o.text.substring(t.length):o.text.substring(e);o=new Z(i,n)}const a=e.getValueInRange(o.range),l=function(e,t){if((null==X?void 0:X.originalValue)===e&&(null==X?void 0:X.newValue)===t)return null==X?void 0:X.changes;{let i=ee(e,t,!0);if(i){const n=J(i);if(n>0){const o=ee(e,t,!1);o&&J(o)0===e.originalLength));if(e.length>1||1===e.length&&e[0].originalStart!==a.length)return}const d=o.text.length-n;for(const e of l){const n=o.range.startColumn+e.originalStart+e.originalLength;if("subwordSmart"===t&&i&&i.lineNumber===o.range.startLineNumber&&n0)return;if(0===e.modifiedLength)continue;const s=e.modifiedStart+e.modifiedLength,r=Math.max(e.modifiedStart,Math.min(s,d)),a=o.text.substring(e.modifiedStart,r),l=o.text.substring(r,Math.max(e.modifiedStart,s));if(a.length>0){const e=(0,_.uq)(a);h.push(new R(n,e,!1))}if(l.length>0){const e=(0,_.uq)(l);h.push(new R(n,e,!0))}}return new M(c,h)}}let X;function J(e){let t=0;for(const i of e)t+=i.originalLength;return t}function ee(e,t,i){if(e.length>5e3||t.length>5e3)return;function n(e){let t=0;for(let i=0,n=e.length;it&&(t=n)}return t}const o=Math.max(n(e),n(t));function s(e){if(e<0)throw new Error("unexpected");return o+e+1}function r(e){let t=0,n=0;const o=new Int32Array(e.length);for(let r=0,a=e.length;ra},{getElements:()=>l}).ComputeDiff(!1).changes}var te=i(35146),ie=i(35382),ne=i(45035),oe=i(13883),se=i(61761),re=i(6735);class ae{constructor(e){this.lines=e,this.tokenization={getLineTokens:e=>this.lines[e-1]}}getLineCount(){return this.lines.length}getLineLength(e){return this.lines[e-1].getLineContent().length}}var le=i(35084),ce=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class he{constructor(e,t,i){this.completions=e,this.hashs=t,this.providerResults=i}has(e){return this.hashs.has(e.hash())}dispose(){for(const e of this.providerResults)e.removeRef()}}class de{constructor(e,t){this.inlineCompletions=e,this.provider=t,this.refCount=1}addRef(){this.refCount++}removeRef(){this.refCount--,0===this.refCount&&this.provider.freeInlineCompletions(this.inlineCompletions)}}class ue{static from(e,t,i,n,o){let s,r,a=e.range?C.e.lift(e.range):i;if("string"==typeof e.insertText){if(s=e.insertText,o&&e.completeBracketPairs){s=ge(s,a.getStartPosition(),n,o);const t=s.length-e.insertText.length;0!==t&&(a=new C.e(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn+t))}r=void 0}else if("snippet"in e.insertText){const t=e.insertText.snippet.length;if(o&&e.completeBracketPairs){e.insertText.snippet=ge(e.insertText.snippet,a.getStartPosition(),n,o);const i=e.insertText.snippet.length-t;0!==i&&(a=new C.e(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn+i))}const i=(new le.Yj).parse(e.insertText.snippet);1===i.children.length&&i.children[0]instanceof le.xv?(s=i.children[0].value,r=void 0):(s=i.toString(),r={snippet:e.insertText.snippet,range:a})}else(0,te.vE)(e.insertText);return new ue(s,e.command,a,s,r,e.additionalTextEdits||D,e,t)}constructor(e,t,i,n,o,s,r,a){this.filterText=e,this.command=t,this.range=i,this.insertText=n,this.snippetInfo=o,this.additionalTextEdits=s,this.sourceInlineCompletion=r,this.source=a,n=(e=e.replace(/\r\n|\r/g,"\n")).replace(/\r\n|\r/g,"\n")}withRange(e){return new ue(this.filterText,this.command,e,this.insertText,this.snippetInfo,this.additionalTextEdits,this.sourceInlineCompletion,this.source)}hash(){return JSON.stringify({insertText:this.insertText,range:this.range.toString()})}}function ge(e,t,i,n){const o=i.getLineContent(t.lineNumber).substring(0,t.column-1)+e,s=i.tokenization.tokenizeLineWithEdit(t,o.length-(t.column-1),e),r=null==s?void 0:s.sliceAndInflate(t.column-1,o.length,0);if(!r)return e;const a=function(e,t){const i=new se.FE,n=new ie.Z(i,(e=>t.getLanguageConfiguration(e))),o=new re.xH(new ae([e]),n),s=(0,oe.w)(o,[],void 0,!0);let r="";const a=e.getLineContent();return function e(t,i){if(2===t.kind)if(e(t.openingBracket,i),i=(0,ne.Ii)(i,t.openingBracket.length),t.child&&(e(t.child,i),i=(0,ne.Ii)(i,t.child.length)),t.closingBracket)e(t.closingBracket,i),i=(0,ne.Ii)(i,t.closingBracket.length);else{const e=n.getSingleLanguageBracketTokens(t.openingBracket.languageId).findClosingTokenText(t.openingBracket.bracketIds);r+=e}else if(3===t.kind);else if(0===t.kind||1===t.kind)r+=a.substring((0,ne.F_)(i),(0,ne.F_)((0,ne.Ii)(i,t.length)));else if(4===t.kind)for(const n of t.children)e(n,i),i=(0,ne.Ii)(i,n.length)}(s,ne.xl),r}(r,n);return a}var pe=function(e,t){return function(i,n){t(i,n,e)}};let me=class extends d.JT{constructor(e,t,i,n,o){super(),this.textModel=e,this.versionId=t,this._debounceValue=i,this.languageFeaturesService=n,this.languageConfigurationService=o,this.updateOperation=this._register(new d.XK),this.inlineCompletions=(0,u.DN)("inlineCompletions",void 0),this.suggestWidgetInlineCompletions=(0,u.DN)("suggestWidgetInlineCompletions",void 0),this._register(this.textModel.onDidChangeContent((()=>{this.updateOperation.clear()})))}clear(e){this.updateOperation.clear(),this.inlineCompletions.set(void 0,e),this.suggestWidgetInlineCompletions.set(void 0,e)}clearSuggestWidgetInlineCompletions(){var e;(null===(e=this.updateOperation.value)||void 0===e?void 0:e.request.context.selectedSuggestionInfo)&&this.updateOperation.clear(),this.suggestWidgetInlineCompletions.set(void 0,void 0)}update(e,t,i){var n,o;const s=new fe(e,t,this.textModel.getVersionId()),r=t.selectedSuggestionInfo?this.suggestWidgetInlineCompletions:this.inlineCompletions;if(null===(n=this.updateOperation.value)||void 0===n?void 0:n.request.satisfies(s))return this.updateOperation.value.promise;if(null===(o=r.get())||void 0===o?void 0:o.request.satisfies(s))return Promise.resolve(!0);const a=!!this.updateOperation.value;this.updateOperation.clear();const l=new G.A,c=(()=>{return n=this,o=void 0,h=function*(){var n;if((a||t.triggerKind===q.bw.Automatic)&&(yield(n=this._debounceValue.get(this.textModel),new Promise((e=>{let t;setTimeout((()=>{t&&t.dispose(),e()}),n)})))),l.token.isCancellationRequested||this.textModel.getVersionId()!==s.versionId)return!1;const o=new Date,c=yield function(e,t,i,n,o=G.T.None,s){return ce(this,void 0,void 0,(function*(){const r=function(e,t){const i=t.getWordAtPosition(e),n=t.getLineMaxColumn(e.lineNumber);return i?new C.e(e.lineNumber,i.startColumn,e.lineNumber,n):C.e.fromPositions(e,e.with(void 0,n))}(t,i),a=e.all(i),l=yield Promise.all(a.map((e=>ce(this,void 0,void 0,(function*(){try{const s=yield e.provideInlineCompletions(i,t,n,o);return{provider:e,completions:s}}catch(e){(0,E.Cp)(e)}return{provider:e,completions:void 0}}))))),c=new Map,h=[];for(const e of l){const t=e.completions;if(!t)continue;const n=new de(t,e.provider);h.push(n);for(const e of t.items){const t=ue.from(e,n,r,i,s);c.set(t.hash(),t)}}return new he(Array.from(c.values()),new Set(c.keys()),h)}))}(this.languageFeaturesService.inlineCompletionsProvider,e,this.textModel,t,l.token,this.languageConfigurationService);if(l.token.isCancellationRequested||this.textModel.getVersionId()!==s.versionId)return!1;const h=new Date;this._debounceValue.update(this.textModel,h.getTime()-o.getTime());const d=new ve(c,s,this.textModel,this.versionId);if(i){const t=i.toInlineCompletion(void 0);i.canBeReused(this.textModel,e)&&!c.has(t)&&d.prepend(i.inlineCompletion,t.range,!0)}return(0,u.PS)((e=>{r.set(d,e)})),this.updateOperation.clear(),!0},new((c=void 0)||(c=Promise))((function(e,t){function i(e){try{r(h.next(e))}catch(e){t(e)}}function s(e){try{r(h.throw(e))}catch(e){t(e)}}function r(t){var n;t.done?e(t.value):(n=t.value,n instanceof c?n:new c((function(e){e(n)}))).then(i,s)}r((h=h.apply(n,o||[])).next())}));var n,o,c,h})(),h=new _e(s,l,c);return this.updateOperation.value=h,c}};me=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([pe(3,f.p),pe(4,$.c_)],me);class fe{constructor(e,t,i){this.position=e,this.context=t,this.versionId=i}satisfies(e){return this.position.equals(e.position)&&(t=this.context.selectedSuggestionInfo,i=e.context.selectedSuggestionInfo,t&&i?((e,t)=>e.equals(t))(t,i):t===i)&&(e.context.triggerKind===q.bw.Automatic||this.context.triggerKind===q.bw.Explicit)&&this.versionId===e.versionId;var t,i}}class _e{constructor(e,t,i){this.request=e,this.cancellationTokenSource=t,this.promise=i}dispose(){this.cancellationTokenSource.cancel()}}class ve{get inlineCompletions(){return this._inlineCompletions}constructor(e,t,i,n){this.inlineCompletionProviderResult=e,this.request=t,this.textModel=i,this.versionId=n,this.refCount=1,this.prependedInlineCompletionItems=[],this.counter=0,this.rangeVersion=(0,s.nK)("ranges",(e=>{this.versionId.read(e);let t=!1;for(const e of this._inlineCompletions)t=t||e._updateRange(this.textModel);return t&&this.counter++,this.counter}));const o=i.deltaDecorations([],e.completions.map((e=>({range:e.range,options:{description:"inline-completion-tracking-range"}}))));this._inlineCompletions=e.completions.map(((e,t)=>new be(e,o[t],this.rangeVersion)))}prepend(e,t,i){i&&e.source.addRef();const n=this.textModel.deltaDecorations([],[{range:t,options:{description:"inline-completion-tracking-range"}}])[0];this._inlineCompletions.unshift(new be(e,n,this.rangeVersion,t)),this.prependedInlineCompletionItems.push(e)}clone(){return this.refCount++,this}dispose(){if(this.refCount--,0===this.refCount){this.textModel.deltaDecorations(this._inlineCompletions.map((e=>e.decorationId)),[]),this.inlineCompletionProviderResult.dispose();for(const e of this.prependedInlineCompletionItems)e.source.removeRef()}}}class be{constructor(e,t,i,n){this.inlineCompletion=e,this.decorationId=t,this.rangeVersion=i,this.semanticId=JSON.stringify([this.inlineCompletion.filterText,this.inlineCompletion.insertText,this.inlineCompletion.range.getStartPosition().toString()]),this._isValid=!0,this._updatedRange=null!=n?n:e.range}getUpdatedRange(e){return this.rangeVersion.read(e),this._updatedRange}_updateRange(e){const t=e.getDecorationRange(this.decorationId);return t?!this._updatedRange.equalsRange(t)&&(this._updatedRange=t,!0):(this._isValid=!1,!0)}toInlineCompletion(e){return this.inlineCompletion.withRange(this.getUpdatedRange(e))}toSingleTextEdit(e){return new Z(this.getUpdatedRange(e),this.inlineCompletion.insertText)}isVisible(e,t,i){const n=this.toFilterTextReplacement(i).removeCommonPrefix(e);if(!this._isValid||!this.inlineCompletion.range.getStartPosition().equals(this.getUpdatedRange(i).getStartPosition())||t.lineNumber!==n.range.startLineNumber)return!1;const o=e.getValueInRange(n.range,1).toLowerCase(),s=n.text.toLowerCase(),r=Math.max(0,t.column-n.range.startColumn);let a=s.substring(0,r),l=s.substring(r),c=o.substring(0,r),h=o.substring(r);const d=e.getLineIndentColumn(n.range.startLineNumber);return n.range.startColumn<=d&&(c=c.trimStart(),0===c.length&&(h=h.trimStart()),a=a.trimStart(),0===a.length&&(l=l.trimStart())),a.startsWith(c)&&!!(0,Q.Sy)(h,l)}toFilterTextReplacement(e){return new Z(this.getUpdatedRange(e),this.inlineCompletion.filterText)}canBeReused(e,t){return this._isValid&&this.getUpdatedRange(void 0).containsPosition(t)&&this.isVisible(e,t,void 0)&&!this.isSmallerThanOriginal(void 0)}isSmallerThanOriginal(e){return Ce(this.getUpdatedRange(e)).isBefore(Ce(this.inlineCompletion.range))}}function Ce(e){return e.startLineNumber===e.endLineNumber?new p.L(1,1+e.endColumn-e.startColumn):new p.L(1+e.endLineNumber-e.startLineNumber,e.endColumn)}var ye,we=i(98762),Se=i(94565),ke=i(72065),xe=function(e,t){return function(i,n){t(i,n,e)}},Le=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};!function(e){e[e.Undo=0]="Undo",e[e.Redo=1]="Redo",e[e.AcceptWord=2]="AcceptWord",e[e.Other=3]="Other"}(ye||(ye={}));let Ee=class extends d.JT{get isAcceptingPartially(){return this._isAcceptingPartially}get isNavigatingCurrentInlineCompletion(){return this._isNavigatingCurrentInlineCompletion}constructor(e,t,i,n,o,r,a,l,c,h,d,u){super(),this.textModel=e,this.selectedSuggestItem=t,this.cursorPosition=i,this.textModelVersionId=n,this._debounceValue=o,this._suggestPreviewEnabled=r,this._suggestPreviewMode=a,this._inlineSuggestMode=l,this._enabled=c,this._instantiationService=h,this._commandService=d,this._languageConfigurationService=u,this._source=this._register(this._instantiationService.createInstance(me,this.textModel,this.textModelVersionId,this._debounceValue)),this._isActive=(0,s.uh)("isActive",!1),this._forceUpdate=(0,s.GN)("forceUpdate"),this._isAcceptingPartially=!1,this._isNavigatingCurrentInlineCompletion=!1,this._filteredInlineCompletionItems=(0,s.nK)("filteredInlineCompletionItems",(e=>{const t=this._source.inlineCompletions.read(e);if(!t)return[];const i=this.cursorPosition.read(e),n=t.inlineCompletions.filter((t=>t.isVisible(this.textModel,i,e)));return n})),this._selectedInlineCompletionId=void 0,this._selectedInlineCompletionIdChangeSignal=(0,s.GN)("selectedCompletionIdChanged"),this.selectedInlineCompletionIndex=(0,s.nK)("selectedCachedCompletionIndex",(e=>{this._selectedInlineCompletionIdChangeSignal.read(e);const t=this._filteredInlineCompletionItems.read(e),i=void 0===this._selectedInlineCompletionId?-1:t.findIndex((e=>e.semanticId===this._selectedInlineCompletionId));return-1===i?(this._selectedInlineCompletionId=void 0,0):i})),this.selectedInlineCompletion=(0,s.nK)("selectedCachedCompletion",(e=>this._filteredInlineCompletionItems.read(e)[this.selectedInlineCompletionIndex.read(e)])),this.lastTriggerKind=this._source.inlineCompletions.map((e=>null==e?void 0:e.request.context.triggerKind)),this.inlineCompletionsCount=(0,s.nK)("selectedInlineCompletionsCount",(e=>this.lastTriggerKind.read(e)===q.bw.Explicit?this._filteredInlineCompletionItems.read(e).length:void 0)),this.ghostTextAndCompletion=(0,s.nK)("ghostTextAndCompletion",(e=>{var t;const i=this.textModel,n=this.selectedSuggestItem.read(e);if(n){const o=this._source.suggestWidgetInlineCompletions.read(e),s=o?o.inlineCompletions:[this.selectedInlineCompletion.read(e)].filter(j.$K),r=n.toSingleTextEdit().removeCommonPrefix(i),a=(0,U.bX)(s,(t=>{let o=t.toSingleTextEdit(e);return o=o.removeCommonPrefix(i,C.e.fromPositions(o.range.getStartPosition(),n.range.getEndPosition())),o.augments(r)?{edit:o,completion:t}:void 0}));if(!this._suggestPreviewEnabled.read(e)&&!a)return;const l=null!==(t=null==a?void 0:a.edit)&&void 0!==t?t:r,c=a?a.edit.text.length-r.text.length:0,h=this._suggestPreviewMode.read(e),d=this.cursorPosition.read(e),u=l.computeGhostText(i,h,d,c);return{ghostText:null!=u?u:new M(l.range.endLineNumber,[]),completion:null==a?void 0:a.completion}}{if(!this._isActive.read(e))return;const t=this.selectedInlineCompletion.read(e);if(!t)return;const n=t.toSingleTextEdit(e),o=this._inlineSuggestMode.read(e),s=this.cursorPosition.read(e),r=n.computeGhostText(i,o,s);return r?{ghostText:r,completion:t}:void 0}})),this.ghostText=(0,s.nK)("ghostText",(e=>{const t=this.ghostTextAndCompletion.read(e);if(t)return t.ghostText}));const g=new Set([ye.Redo,ye.Undo,ye.AcceptWord]);let p,m=!1,f=q.bw.Automatic;this._register((0,s.nJ)("update",{handleChange:e=>(e.didChange(this.textModelVersionId)&&g.has(e.change)?m=!0:e.didChange(this._forceUpdate)&&(f=e.change),!0)},(e=>{var t,i;if(this._forceUpdate.read(e),this._enabled.read(e)&&this.selectedSuggestItem.read(e)||this._isActive.read(e)){const n=m||null!==(i=null===(t=this.selectedInlineCompletion.get())||void 0===t?void 0:t.inlineCompletion.source.inlineCompletions.enableForwardStability)&&void 0!==i&&i,o=this.selectedSuggestItem.read(e),s=this.cursorPosition.read(e);this.textModelVersionId.read(e);const r=this._source.suggestWidgetInlineCompletions.get();if(r&&!o){const e=this._source.inlineCompletions.get();e&&r.request.versionId>e.request.versionId&&this._source.inlineCompletions.set(r.clone(),void 0),this._source.clearSuggestWidgetInlineCompletions()}this._updatePromise=this._source.update(s,{triggerKind:f,selectedSuggestionInfo:null==o?void 0:o.toSelectedSuggestionInfo()},n?this.selectedInlineCompletion.get():void 0)}else this._updatePromise=void 0;m=!1,f=q.bw.Automatic}))),this._register((0,s.EH)("call handleItemDidShow",(e=>{var t,i;const n=this.ghostTextAndCompletion.read(e),o=null==n?void 0:n.completion;if((null==o?void 0:o.semanticId)!==(null==p?void 0:p.semanticId)&&(p=o,o)){const e=o.inlineCompletion,n=e.source;null===(i=(t=n.provider).handleItemDidShow)||void 0===i||i.call(t,n.inlineCompletions,e.sourceInlineCompletion,e.insertText)}})))}trigger(e){return Le(this,void 0,void 0,(function*(){this._isActive.set(!0,e),yield this._updatePromise}))}triggerExplicitly(){return Le(this,void 0,void 0,(function*(){(0,s.PS)((e=>{this._isActive.set(!0,e),this._forceUpdate.trigger(e,q.bw.Explicit)})),yield this._updatePromise}))}stop(e){e?(this._isActive.set(!1,e),this._source.clear(e)):(0,s.PS)((e=>this.stop(e)))}deltaIndex(e){return Le(this,void 0,void 0,(function*(){yield this.triggerExplicitly(),this._isNavigatingCurrentInlineCompletion=!0;try{const t=this._filteredInlineCompletionItems.get()||[];if(t.length>0){const i=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId=t[i].semanticId}else this._selectedInlineCompletionId=void 0;this._selectedInlineCompletionIdChangeSignal.trigger(void 0)}finally{this._isNavigatingCurrentInlineCompletion=!1}}))}next(){return Le(this,void 0,void 0,(function*(){yield this.deltaIndex(1)}))}previous(){return Le(this,void 0,void 0,(function*(){yield this.deltaIndex(-1)}))}accept(e){var t,i;if(e.getModel()!==this.textModel)throw new E.he;const n=this.ghostText.get(),o=null===(t=this.selectedInlineCompletion.get())||void 0===t?void 0:t.toInlineCompletion(void 0);n&&o&&(e.pushUndoStop(),o.snippetInfo?(e.executeEdits("inlineSuggestion.accept",[K.h.replaceMove(o.range,""),...o.additionalTextEdits]),e.setPosition(o.snippetInfo.range.getStartPosition()),null===(i=we.SnippetController2.get(e))||void 0===i||i.insert(o.snippetInfo.snippet,{undoStopBefore:!1})):e.executeEdits("inlineSuggestion.accept",[K.h.replaceMove(o.range,o.insertText),...o.additionalTextEdits]),o.command?this._commandService.executeCommand(o.command.id,...o.command.arguments||[]).finally((()=>{(0,s.PS)((e=>{this._source.clear(e)}))})).then(void 0,E.Cp):(0,s.PS)((e=>{this._source.clear(e)})))}acceptNextWord(e){this.acceptNext(e,((e,t)=>{const i=this.textModel.getLanguageIdAtPosition(e.lineNumber,e.column),n=this._languageConfigurationService.getLanguageConfiguration(i),o=new RegExp(n.wordDefinition.source,n.wordDefinition.flags.replace("g","")),s=t.match(o);let r=0;r=s&&void 0!==s.index?0===s.index?s[0].length:s.index:t.length;const a=/\s+/g.exec(t);return a&&void 0!==a.index&&a.index+a[0].length{const i=t.match(/\n/);return i&&void 0!==i.index?i.index+1:t.length}))}acceptNext(e,t){var i;if(e.getModel()!==this.textModel)throw new E.he;const n=this.ghostText.get(),o=null===(i=this.selectedInlineCompletion.get())||void 0===i?void 0:i.toInlineCompletion(void 0);if(!n||!o)return;if(o.snippetInfo||o.filterText!==o.insertText)return void this.accept(e);if(0===n.parts.length)return;const s=n.parts[0],r=new p.L(n.lineNumber,s.column),a=s.lines.join("\n"),l=t(r,a);if(l===a.length&&1===n.parts.length)return void this.accept(e);const c=a.substring(0,l);this._isAcceptingPartially=!0;try{e.pushUndoStop(),e.executeEdits("inlineSuggestion.accept",[K.h.replace(C.e.fromPositions(r),c)]);const t=A(c);e.setPosition(I(r,t))}finally{this._isAcceptingPartially=!1}if(o.source.provider.handlePartialAccept){const t=C.e.fromPositions(o.range.getStartPosition(),I(r,A(c))),i=e.getModel().getValueInRange(t,1);o.source.provider.handlePartialAccept(o.source.inlineCompletions,o.sourceInlineCompletion,i.length)}}};Ee=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([xe(9,ke.TG),xe(10,Se.H),xe(11,$.c_)],Ee);var Ne=i(29561),De=i(24804);class Te extends d.JT{get selectedItem(){return this._selectedItem}constructor(e,t,i){super(),this.editor=e,this.suggestControllerPreselector=t,this.checkModelVersion=i,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._selectedItem=(0,s.uh)("suggestWidgetInlineCompletionProvider.selectedItem",void 0),this._register(e.onKeyDown((e=>{e.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))}))),this._register(e.onKeyUp((e=>{e.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))})));const n=De.SuggestController.get(this.editor);if(n){this._register(n.registerSelector({priority:100,select:(e,t,i)=>{var o;(0,s.PS)((e=>this.checkModelVersion(e)));const r=this.editor.getModel();if(!r)return-1;const a=null===(o=this.suggestControllerPreselector())||void 0===o?void 0:o.removeCommonPrefix(r);if(!a)return-1;const l=p.L.lift(t),c=i.map(((e,t)=>{const i=Ie.fromSuggestion(n,r,l,e,this.isShiftKeyPressed).toSingleTextEdit().removeCommonPrefix(r);return{index:t,valid:a.augments(i),prefixLength:i.text.length,suggestItem:e}})).filter((e=>e&&e.valid&&e.prefixLength>0)),h=(0,U.Dc)(c,(0,U.tT)((e=>e.prefixLength),U.fv));return h?h.index:-1}}));let e=!1;const t=()=>{e||(e=!0,this._register(n.widget.value.onDidShow((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))),this._register(n.widget.value.onDidHide((()=>{this.isSuggestWidgetVisible=!1,this.update(!1)}))),this._register(n.widget.value.onDidFocus((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))))};this._register(h.ju.once(n.model.onDidTrigger)((e=>{t()})))}this.update(this._isActive)}update(e){const t=this.getSuggestItemInfo();var i,n;this._isActive===e&&((i=this._currentSuggestItemInfo)===(n=t)||i&&n&&i.equals(n))||(this._isActive=e,this._currentSuggestItemInfo=t,(0,s.PS)((e=>{this.checkModelVersion(e),this._selectedItem.set(this._isActive?this._currentSuggestItemInfo:void 0,e)})))}getSuggestItemInfo(){const e=De.SuggestController.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;const t=e.widget.value.getFocusedItem(),i=this.editor.getPosition(),n=this.editor.getModel();return t&&i&&n?Ie.fromSuggestion(e,n,i,t.item,this.isShiftKeyPressed):void 0}stopForceRenderingAbove(){const e=De.SuggestController.get(this.editor);null==e||e.stopForceRenderingAbove()}forceRenderingAbove(){const e=De.SuggestController.get(this.editor);null==e||e.forceRenderingAbove()}}class Ie{static fromSuggestion(e,t,i,n,o){let{insertText:s}=n.completion,r=!1;if(4&n.completion.insertTextRules){const e=(new le.Yj).parse(s);e.children.length<100&&Ne.l.adjustWhitespace(t,i,!0,e),s=e.toString(),r=!0}const a=e.getOverwriteInfo(n,o);return new Ie(C.e.fromPositions(i.delta(0,-a.overwriteBefore),i.delta(0,Math.max(a.overwriteAfter,0))),s,n.completion.kind,r)}constructor(e,t,i,n){this.range=e,this.insertText=t,this.completionItemKind=i,this.isSnippetText=n}equals(e){return this.range.equalsRange(e.range)&&this.insertText===e.insertText&&this.completionItemKind===e.completionItemKind&&this.isSnippetText===e.isSnippetText}toSelectedSuggestionInfo(){return new q.ln(this.range,this.insertText,this.completionItemKind,this.isSnippetText)}toSingleTextEdit(){return new Z(this.range,this.insertText)}}var Ae=i(69149),Me=i(33108),Re=i(93983),Oe=function(e,t){return function(i,n){t(i,n,e)}};let Pe=class e extends d.JT{static get(t){return t.getContribution(e.ID)}constructor(e,t,i,n,o,r,m,f){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.configurationService=n,this.commandService=o,this.debounceService=r,this.languageFeaturesService=m,this.audioCueService=f,this.suggestWidgetAdaptor=this._register(new Te(this.editor,(()=>{var e,t;return null===(t=null===(e=this.model.get())||void 0===e?void 0:e.selectedInlineCompletion.get())||void 0===t?void 0:t.toSingleTextEdit(void 0)}),(e=>this.updateObservables(e,ye.Other)))),this.textModelVersionId=(0,s.uh)("textModelVersionId",-1),this.cursorPosition=(0,s.uh)("cursorPosition",new p.L(1,1)),this.model=(0,u.DN)("inlineCompletionModel",void 0),this.ghostTextWidget=this._register(this.instantiationService.createInstance(F,this.editor,{ghostText:this.model.map(((e,t)=>null==e?void 0:e.ghostText.read(t))),minReservedLineCount:(0,s.Dz)(0),targetTextModel:this.model.map((e=>null==e?void 0:e.textModel))})),this._debounceValue=this.debounceService.for(this.languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this._register(new l.f(this.contextKeyService,this.model));const _=(0,s.rD)(e.onDidChangeConfiguration,(()=>e.getOption(60).enabled));let v;this._register(h.ju.runAndSubscribe(e.onDidChangeModel,(()=>{(0,u.PS)((i=>{this.model.set(void 0,i),this.updateObservables(i,ye.Other);const n=e.getModel();if(n){const o=t.createInstance(Ee,n,this.suggestWidgetAdaptor.selectedItem,this.cursorPosition,this.textModelVersionId,this._debounceValue,(0,s.rD)(e.onDidChangeConfiguration,(()=>e.getOption(113).preview)),(0,s.rD)(e.onDidChangeConfiguration,(()=>e.getOption(113).previewMode)),(0,s.rD)(e.onDidChangeConfiguration,(()=>e.getOption(60).mode)),_);this.model.set(o,i)}}))}))),this._register(e.onDidChangeModelContent((e=>(0,u.PS)((t=>{var i;return this.updateObservables(t,e.isUndoing?ye.Undo:e.isRedoing?ye.Redo:(null===(i=this.model.get())||void 0===i?void 0:i.isAcceptingPartially)?ye.AcceptWord:ye.Other)}))))),this._register(e.onDidChangeCursorPosition((e=>(0,u.PS)((t=>{var i;this.updateObservables(t,ye.Other),3===e.reason&&(null===(i=this.model.get())||void 0===i||i.stop(t))}))))),this._register(e.onDidType((()=>(0,u.PS)((e=>{var t;this.updateObservables(e,ye.Other),_.get()&&(null===(t=this.model.get())||void 0===t||t.trigger(e))}))))),this._register(this.commandService.onDidExecuteCommand((t=>{new Set([g.CoreEditingCommands.Tab.id,g.CoreEditingCommands.DeleteLeft.id,g.CoreEditingCommands.DeleteRight.id,a.Ou,"acceptSelectedSuggestion"]).has(t.commandId)&&e.hasTextFocus()&&_.get()&&(0,u.PS)((e=>{var t;null===(t=this.model.get())||void 0===t||t.trigger(e)}))}))),this._register(this.editor.onDidBlurEditorWidget((()=>{this.configurationService.getValue("editor.inlineSuggest.keepOnBlur")||e.getOption(60).keepOnBlur||z.Q.dropDownVisible||(0,u.PS)((e=>{var t;null===(t=this.model.get())||void 0===t||t.stop(e)}))}))),this._register((0,s.EH)("forceRenderingAbove",(e=>{const t=this.model.read(e),i=null==t?void 0:t.ghostText.read(e);this.suggestWidgetAdaptor.selectedItem.read(e)?i&&i.lineCount>=2&&this.suggestWidgetAdaptor.forceRenderingAbove():this.suggestWidgetAdaptor.stopForceRenderingAbove()}))),this._register((0,d.OF)((()=>{this.suggestWidgetAdaptor.stopForceRenderingAbove()}))),this._register((0,s.EH)("play audio cue & read suggestion",(e=>{const t=this.model.read(e),i=null==t?void 0:t.selectedInlineCompletion.read(e);if(!t||!i)return void(v=void 0);const n=null==t?void 0:t.ghostText.get();if(!n)return void(v=void 0);const o=t.textModel.getLineContent(n.lineNumber);if(i.semanticId!==v){if(v=i.semanticId,t.isNavigatingCurrentInlineCompletion)return;this.audioCueService.playAudioCue(Ae.y$.inlineSuggestion).then((()=>{this.editor.getOption(6)&&(0,c.Z9)(n.renderForScreenReader(o))}))}})))}updateObservables(e,t){var i,n;const o=this.editor.getModel();this.textModelVersionId.set(null!==(i=null==o?void 0:o.getVersionId())&&void 0!==i?i:-1,e,t),this.cursorPosition.set(null!==(n=this.editor.getPosition())&&void 0!==n?n:new p.L(1,1),e)}shouldShowHoverAt(e){var t;const i=null===(t=this.model.get())||void 0===t?void 0:t.ghostText.get();return!!i&&i.parts.some((t=>e.containsPosition(new p.L(i.lineNumber,t.column))))}shouldShowHoverAtViewZone(e){return this.ghostTextWidget.ownsViewZone(e)}};Pe.ID="editor.contrib.inlineCompletionsController",Pe=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Oe(1,ke.TG),Oe(2,Re.i6),Oe(3,Me.Ui),Oe(4,Se.H),Oe(5,m.A),Oe(6,f.p),Oe(7,Ae.e7)],Pe);var Fe=i(63580),Be=i(84144),He=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class Ve extends n.R6{constructor(){super({id:Ve.ID,label:Fe.NC("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:Re.Ao.and(r.u.writable,l.f.inlineSuggestionVisible),kbOpts:{weight:100,primary:606}})}run(e,t){var i;return He(this,void 0,void 0,(function*(){const e=Pe.get(t);null===(i=null==e?void 0:e.model.get())||void 0===i||i.next()}))}}Ve.ID=a.OW;class We extends n.R6{constructor(){super({id:We.ID,label:Fe.NC("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:Re.Ao.and(r.u.writable,l.f.inlineSuggestionVisible),kbOpts:{weight:100,primary:604}})}run(e,t){var i;return He(this,void 0,void 0,(function*(){const e=Pe.get(t);null===(i=null==e?void 0:e.model.get())||void 0===i||i.previous()}))}}We.ID=a.Np;class ze extends n.R6{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:Fe.NC("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:r.u.writable})}run(e,t){var i;return He(this,void 0,void 0,(function*(){const e=Pe.get(t);null===(i=null==e?void 0:e.model.get())||void 0===i||i.triggerExplicitly()}))}}class Ue extends n.R6{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:Fe.NC("action.inlineSuggest.acceptNextWord","Accept Next Word Of Inline Suggestion"),alias:"Accept Next Word Of Inline Suggestion",precondition:Re.Ao.and(r.u.writable,l.f.inlineSuggestionVisible),kbOpts:{weight:101,primary:2065},menuOpts:[{menuId:Be.eH.InlineSuggestionToolbar,title:Fe.NC("acceptWord","Accept Word"),group:"primary",order:2}]})}run(e,t){var i;return He(this,void 0,void 0,(function*(){const e=Pe.get(t);null===(i=null==e?void 0:e.model.get())||void 0===i||i.acceptNextWord(e.editor)}))}}class je extends n.R6{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:Fe.NC("action.inlineSuggest.acceptNextLine","Accept Next Line Of Inline Suggestion"),alias:"Accept Next Line Of Inline Suggestion",precondition:Re.Ao.and(r.u.writable,l.f.inlineSuggestionVisible),kbOpts:{weight:101},menuOpts:[{menuId:Be.eH.InlineSuggestionToolbar,title:Fe.NC("acceptLine","Accept Line"),group:"secondary",order:2}]})}run(e,t){var i;return He(this,void 0,void 0,(function*(){const e=Pe.get(t);null===(i=null==e?void 0:e.model.get())||void 0===i||i.acceptNextLine(e.editor)}))}}class Ke extends n.R6{constructor(){super({id:a.Ou,label:Fe.NC("action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:l.f.inlineSuggestionVisible,menuOpts:[{menuId:Be.eH.InlineSuggestionToolbar,title:Fe.NC("accept","Accept"),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:Re.Ao.and(l.f.inlineSuggestionVisible,r.u.tabMovesFocus.toNegated(),l.f.inlineSuggestionHasIndentationLessThanTabSize)}})}run(e,t){var i;return He(this,void 0,void 0,(function*(){const e=Pe.get(t);e&&(null===(i=e.model.get())||void 0===i||i.accept(e.editor),e.editor.focus())}))}}class qe extends n.R6{constructor(){super({id:qe.ID,label:Fe.NC("action.inlineSuggest.hide","Hide Inline Suggestion"),alias:"Hide Inline Suggestion",precondition:l.f.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}run(e,t){return He(this,void 0,void 0,(function*(){const e=Pe.get(t);(0,s.PS)((t=>{var i;null===(i=null==e?void 0:e.model.get())||void 0===i||i.stop(t)}))}))}}qe.ID="editor.action.inlineSuggest.hide";class $e extends Be.Ke{constructor(){super({id:$e.ID,title:Fe.NC("action.inlineSuggest.alwaysShowToolbar","Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:Be.eH.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:l.f.alwaysShowInlineSuggestionToolbar})}run(e,t){return He(this,void 0,void 0,(function*(){const t=e.get(Me.Ui),i="always"===t.getValue("editor.inlineSuggest.showToolbar")?"onHover":"always";t.updateValue("editor.inlineSuggest.showToolbar",i)}))}}$e.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar";var Ge=i(65321),Qe=i(59365),Ye=i(45241),Ze=i(31106),Xe=i(50988),Je=i(10829),et=function(e,t){return function(i,n){t(i,n,e)}};class tt{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let it=class{constructor(e,t,i,n,o,s){this._editor=e,this._languageService=t,this._openerService=i,this.accessibilityService=n,this._instantiationService=o,this._telemetryService=s,this.hoverOrdinal=4}suggestHoverAnchor(e){const t=Pe.get(this._editor);if(!t)return null;const i=e.target;if(8===i.type){const n=i.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId))return new o.YM(1e3,this,C.e.fromPositions(this._editor.getModel().validatePosition(n.positionBefore||n.position)),e.event.posx,e.event.posy,!1)}return 7===i.type&&t.shouldShowHoverAt(i.range)||6===i.type&&i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range)?new o.YM(1e3,this,i.range,e.event.posx,e.event.posy,!1):null}computeSync(e,t){if("always"===this._editor.getOption(60).showToolbar)return[];const i=Pe.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new tt(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new d.SL,n=t[0];this._telemetryService.publicLog2("inlineCompletionHover.shown"),this.accessibilityService.isScreenReaderOptimized()&&this.renderScreenReaderText(e,n,i);const o=n.controller.model.get(),r=this._instantiationService.createInstance(z.Q,this._editor,!1,(0,s.Dz)(null),o.selectedInlineCompletionIndex,o.inlineCompletionsCount,o.selectedInlineCompletion.map((e=>{var t;return null!==(t=null==e?void 0:e.inlineCompletion.source.inlineCompletions.commands)&&void 0!==t?t:[]})));return e.fragment.appendChild(r.getDomNode()),o.triggerExplicitly(),i.add(r),i}renderScreenReaderText(e,t,i){const n=Ge.$,o=n("div.hover-row.markdown-hover"),r=Ge.R3(o,n("div.hover-contents",{"aria-live":"assertive"})),a=i.add(new Ye.$({editor:this._editor},this._languageService,this._openerService));i.add((0,s.EH)("update hover",(n=>{var o;const s=null===(o=t.controller.model.read(n))||void 0===o?void 0:o.ghostText.read(n);if(s){const t=this._editor.getModel().getLineContent(s.lineNumber);(t=>{i.add(a.onDidRenderAsync((()=>{r.className="hover-contents code-hover-contents",e.onContentsChanged()})));const n=Fe.NC("inlineSuggestionFollows","Suggestion:"),o=i.add(a.render((new Qe.W5).appendText(n).appendCodeblock("text",t)));r.replaceChildren(o.element)})(s.renderForScreenReader(t))}else Ge.mc(r)}))),e.fragment.appendChild(o)}};it=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([et(1,w.O),et(2,Xe.v4),et(3,Ze.F),et(4,ke.TG),et(5,Je.b)],it),(0,n._K)(Pe.ID,Pe,3),(0,n.Qr)(ze),(0,n.Qr)(Ve),(0,n.Qr)(We),(0,n.Qr)(Ue),(0,n.Qr)(je),(0,n.Qr)(Ke),(0,n.Qr)(qe),(0,Be.r1)($e),o.Ae.register(it)},47298:(e,t,i)=>{"use strict";i.d(t,{Q:()=>P});var n=i(65321),o=i(90317),s=i(55496),r=i(74741),a=i(9488),l=i(15393),c=i(73046),h=i(5976),d=i(72495),u=i(1432),g=i(25670),p=i(96020),m=i(63580),f=i(22444),_=i(61364),v=i(4669),b=i(98401);class C extends h.JT{constructor(e,t,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new v.z5),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=new h.SL,this.options=i,this.lookupKeybindings="function"==typeof this.options.getKeyBinding,this.toggleMenuAction=this._register(new y((()=>{var e;return null===(e=this.toggleMenuActionViewItem)||void 0===e?void 0:e.show()}),i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new o.o(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,actionViewItemProvider:(e,n)=>{var o;if(e.id===y.ID)return this.toggleMenuActionViewItem=new _.C(e,e.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:g.k.asClassNameArray(null!==(o=i.moreIcon)&&void 0!==o?o:c.l.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const t=i.actionViewItemProvider(e,n);if(t)return t}if(e instanceof r.wY){const i=new _.C(e,e.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:e.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement});return i.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(i),this.disposables.add(this._onDidChangeDropdownVisibility.add(i.onDidChangeVisibility)),i}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach((e=>{this.actionBar.push(e,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(e)})}))}getKeybindingLabel(e){var t,i;const n=this.lookupKeybindings?null===(i=(t=this.options).getKeyBinding)||void 0===i?void 0:i.call(t,e):void 0;return(0,b.f6)(null==n?void 0:n.getLabel())}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),super.dispose()}}class y extends r.aU{constructor(e,t){t=t||m.NC("moreActions","More Actions..."),super(y.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}run(){return e=this,t=void 0,n=function*(){this.toggleDropdownMenu()},new((i=void 0)||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}));var e,t,i,n}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}y.ID="toolbar.toggle.more";var w=i(84144),S=i(93983),k=i(5606),x=i(91847),L=i(10829),E=function(e,t){return function(i,n){t(i,n,e)}};let N=class extends C{constructor(e,t,i,n,o,s,r){super(e,o,Object.assign(Object.assign({getKeyBinding:e=>{var t;return null!==(t=s.lookupKeybinding(e.id))&&void 0!==t?t:void 0}},t),{allowContextMenu:!0})),this._options=t,this._menuService=i,this._contextKeyService=n,this._contextMenuService=o,this._sessionDisposables=this._store.add(new h.SL),(null==t?void 0:t.telemetrySource)&&this._store.add(this.actionBar.onDidRun((e=>r.publicLog2("workbenchActionExecuted",{id:e.action.id,from:t.telemetrySource}))))}setActions(e,t=[],i){var o,s,l;this._sessionDisposables.clear();const c=e.slice(),h=t.slice(),d=[];let u=0;const g=[];let p=!1;if(-1!==(null===(o=this._options)||void 0===o?void 0:o.hiddenItemStrategy))for(let e=0;e=this._options.maxNumberOfItems&&(c[t]=void 0,g[t]=i)}}(0,a.Rs)(c),(0,a.Rs)(g),super.setActions(c,r.Z0.join(g,h)),d.length>0&&this._sessionDisposables.add((0,n.nm)(this.getElement(),"contextmenu",(e=>{var t,n,o,s;const a=this.getItemAction(e.target);if(!a)return;e.preventDefault(),e.stopPropagation();let l,c=!1;if(1===u&&0===(null===(t=this._options)||void 0===t?void 0:t.hiddenItemStrategy)){c=!0;for(let e=0;ethis._menuService.resetHiddenStates(i)}))),this._contextMenuService.showContextMenu({getAnchor:()=>e,getActions:()=>h,menuId:null===(o=this._options)||void 0===o?void 0:o.contextMenu,menuActionOptions:Object.assign({renderShortTitle:!0},null===(s=this._options)||void 0===s?void 0:s.menuOptions),contextKeyService:this._contextKeyService})})))}};N=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([E(2,w.co),E(3,S.i6),E(4,k.i),E(5,x.d),E(6,L.b)],N);var D=i(94565),T=i(72065),I=i(59554),A=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},M=function(e,t){return function(i,n){t(i,n,e)}};const R=(0,I.q5)("inline-suggestion-hints-next",c.l.chevronRight,(0,m.NC)("parameterHintsNextIcon","Icon for show next parameter hint.")),O=(0,I.q5)("inline-suggestion-hints-previous",c.l.chevronLeft,(0,m.NC)("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let P=class e extends h.JT{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,i){const n=new r.aU(e,t,i,!0,(()=>this._commandService.executeCommand(e))),o=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let s=t;return o&&(s=(0,m.NC)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,o.getLabel())),n.tooltip=s,n}constructor(t,i,s,c,h,u,f,_,v,b,C){super(),this.editor=t,this.withBorder=i,this._position=s,this._currentSuggestionIdx=c,this._suggestionCount=h,this._extraCommands=u,this._commandService=f,this.keybindingService=v,this._contextKeyService=b,this._menuService=C,this.id="InlineSuggestionHintsContentWidget"+e.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,n.h)("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[(0,n.h)("div",{style:{display:"flex"}},[(0,n.h)("div@actionBar",{className:"custom-actions"}),(0,n.h)("div@toolBar")])]),this.previousAction=this.createCommandAction(p.Np,(0,m.NC)("previous","Previous"),g.k.asClassName(O)),this.availableSuggestionCountAction=new r.aU("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(p.OW,(0,m.NC)("next","Next"),g.k.asClassName(R)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(w.eH.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new l.pY((()=>{this.availableSuggestionCountAction.label=""}),100)),this.disableButtonsDebounced=this._register(new l.pY((()=>{this.previousAction.enabled=this.nextAction.enabled=!1}),100)),this.lastCommands=[];const y=this._register(new o.o(this.nodes.actionBar));y.push(this.previousAction,{icon:!0,label:!1}),y.push(this.availableSuggestionCountAction),y.push(this.nextAction,{icon:!0,label:!1}),this.toolBar=this._register(_.createInstance(B,this.nodes.toolBar,w.eH.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>e instanceof w.U8?_.createInstance(F,e,void 0):void 0,telemetrySource:"InlineSuggestionToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility((t=>{e._dropDownVisible=t}))),this._register((0,d.EH)("update position",(e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register((0,d.EH)("counts",(e=>{const t=this._suggestionCount.read(e),i=this._currentSuggestionIdx.read(e);void 0!==t?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${i+1}/${t}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),void 0!==t&&t>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()}))),this._register((0,d.EH)("extra commands",(e=>{const t=this._extraCommands.read(e);if((0,a.fS)(this.lastCommands,t))return;this.lastCommands=t;const i=t.map((e=>({class:void 0,id:e.id,enabled:!0,tooltip:e.tooltip||"",label:e.title,run:t=>this._commandService.executeCommand(e.id)})));for(const[e,t]of this.inlineCompletionsActionsMenus.getActions())for(const e of t)e instanceof w.U8&&i.push(e);i.length>0&&i.unshift(new r.Z0),this.toolBar.setAdditionalSecondaryActions(i)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};P._dropDownVisible=!1,P.id=0,P=A([M(6,D.H),M(7,T.TG),M(8,x.d),M(9,S.i6),M(10,w.co)],P);class F extends f.Mm{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=(0,n.h)("div.keybinding").root;new s.e(t,u.OS,Object.assign({disableTitle:!0},s.F)).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}}let B=class extends N{constructor(e,t,i,n,o,s,r,a){super(e,Object.assign({resetMenu:t},i),n,o,s,r,a),this.menuId=t,this.options2=i,this.menuService=n,this.contextKeyService=o,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){var e,t,i,n,o,s,r;const a=[],l=[];(0,f.vr)(this.menu,null===(e=this.options2)||void 0===e?void 0:e.menuOptions,{primary:a,secondary:l},null===(i=null===(t=this.options2)||void 0===t?void 0:t.toolbarOptions)||void 0===i?void 0:i.primaryGroup,null===(o=null===(n=this.options2)||void 0===n?void 0:n.toolbarOptions)||void 0===o?void 0:o.shouldInlineSubmenu,null===(r=null===(s=this.options2)||void 0===s?void 0:s.toolbarOptions)||void 0===r?void 0:r.useSeparatorsInPrimaryActions),l.push(...this.additionalActions),this.setActions(a,l)}setAdditionalSecondaryActions(e){(0,a.fS)(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};B=A([M(3,w.co),M(4,S.i6),M(5,k.i),M(6,x.d),M(7,L.b)],B)},4074:(e,t,i)=>{"use strict";i.r(t),i.d(t,{InlineProgressManager:()=>p});var n=i(65321),o=i(15393),s=i(73046),r=i(5976),a=i(97295),l=i(25670),c=i(24314),h=i(1231),d=i(72065);const u=h.qx.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:a.B4,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class g extends r.JT{constructor(e,t,i,n,o){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=o,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=n.$(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=n.$("span.icon");this.domNode.append(t),t.classList.add(...l.k.asClassNameArray(s.l.loading),"codicon-modifier-spin");const i=()=>{const e=this.editor.getOption(64);this.domNode.style.height=`${e}px`,this.domNode.style.width=`${Math.ceil(.8*e)}px`};i(),this._register(this.editor.onDidChangeConfiguration((e=>{(e.hasChanged(50)||e.hasChanged(64))&&i()}))),this._register(n.nm(this.domNode,n.tw.CLICK,(e=>{this.delegate.cancel()})))}getId(){return g.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}g.baseId="editor.widget.inlineProgressWidget";let p=class extends r.JT{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new r.XK),this._currentWidget=new r.XK,this._currentDecorations=t.createDecorationsCollection()}setAtPosition(e,t,i){this.clear(),this._showPromise.value=(0,o.Vg)((()=>{const n=c.e.fromPositions(e);this._currentDecorations.set([{range:n,options:u}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(g,this.id,this._editor,n,t,i))}),this._showDelay)}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};var m,f;p=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(m=2,f=d.TG,function(e,t){f(e,t,m)})],p)},97615:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ExpandLineSelectionAction:()=>a});var n=i(16830),o=i(28108),s=i(29102),r=i(63580);class a extends n.R6{constructor(){super({id:"expandLineSelection",label:r.NC("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:s.u.textInputFocus,primary:2090}})}run(e,t,i){if(i=i||{},!t.hasModel())return;const n=t._getViewModel();n.model.pushStackElement(),n.setCursorStates(i.source,3,o.P.expandLineSelection(n,n.getCursorStates())),n.revealPrimaryCursor(i.source,!0)}}(0,n.Qr)(a)},50995:(e,t,i)=>{"use strict";i.r(t),i.d(t,{AbstractCaseAction:()=>$,AbstractDeleteAllToBoundaryAction:()=>z,AbstractSortLinesAction:()=>A,CamelCaseAction:()=>J,DeleteAllLeftAction:()=>U,DeleteAllRightAction:()=>j,DeleteDuplicateLinesAction:()=>O,DeleteLinesAction:()=>F,DuplicateSelectionAction:()=>T,IndentLinesAction:()=>B,InsertLineAfterAction:()=>W,InsertLineBeforeAction:()=>V,JoinLinesAction:()=>K,KebabCaseAction:()=>ee,LowerCaseAction:()=>Q,SnakeCaseAction:()=>X,SortLinesAscendingAction:()=>M,SortLinesDescendingAction:()=>R,TitleCaseAction:()=>Z,TransposeAction:()=>q,TrimTrailingWhitespaceAction:()=>P,UpperCaseAction:()=>G});var n=i(22258),o=i(69317),s=i(16830),r=i(61329),a=i(97295),l=i(69386),c=i(24314);class h{constructor(e,t){this._selection=e,this._cursors=t,this._selectionId=null}getEditOperations(e,t){const i=function(e,t){t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber));for(let e=t.length-2;e>=0;e--)t[e].lineNumber===t[e+1].lineNumber&&t.splice(e,1);const i=[];let n=0,o=0;const s=t.length;for(let r=1,h=e.getLineCount();r<=h;r++){const h=e.getLineContent(r),d=h.length+1;let u=0;if(oe.tokenization.getLineTokens(t),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(t,i)=>e.getLanguageIdAtPosition(t,i)},getLineContent:null};if(n.startLineNumber===n.endLineNumber&&1===e.getLineMaxColumn(n.startLineNumber)){const i=n.startLineNumber,o=this._isMovingDown?i+1:i-1;1===e.getLineMaxColumn(o)?t.addEditOperation(new c.e(1,1,1,1),null):(t.addEditOperation(new c.e(i,1,i,1),e.getLineContent(o)),t.addEditOperation(new c.e(o,1,o,e.getLineMaxColumn(o)),null)),n=new g.Y(o,1,o,1)}else{let i,s;if(this._isMovingDown){i=n.endLineNumber+1,s=e.getLineContent(i),t.addEditOperation(new c.e(i-1,e.getLineMaxColumn(i-1),i,e.getLineMaxColumn(i)),null);let d=s;if(this.shouldAutoIndent(e,n)){const u=this.matchEnterRule(e,l,o,i,n.startLineNumber-1);if(null!==u){const t=a.V8(e.getLineContent(i)),n=u+b.Y(t,o),l=b.J(n,o,r);d=l+this.trimLeft(s)}else{h.getLineContent=t=>t===n.startLineNumber?e.getLineContent(i):e.getLineContent(t);const t=(0,C.n8)(this._autoIndent,h,e.getLanguageIdAtPosition(i,1),n.startLineNumber,l,this._languageConfigurationService);if(null!==t){const n=a.V8(e.getLineContent(i)),l=b.Y(t,o);if(l!==b.Y(n,o)){const e=b.J(l,o,r);d=e+this.trimLeft(s)}}}t.addEditOperation(new c.e(n.startLineNumber,1,n.startLineNumber,1),d+"\n");const g=this.matchEnterRuleMovingDown(e,l,o,n.startLineNumber,i,d);if(null!==g)0!==g&&this.getIndentEditsOfMovingBlock(e,t,n,o,r,g);else{h.getLineContent=t=>t===n.startLineNumber?d:t>=n.startLineNumber+1&&t<=n.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t);const s=(0,C.n8)(this._autoIndent,h,e.getLanguageIdAtPosition(i,1),n.startLineNumber+1,l,this._languageConfigurationService);if(null!==s){const i=a.V8(e.getLineContent(n.startLineNumber)),l=b.Y(s,o),c=b.Y(i,o);if(l!==c){const i=l-c;this.getIndentEditsOfMovingBlock(e,t,n,o,r,i)}}}}else t.addEditOperation(new c.e(n.startLineNumber,1,n.startLineNumber,1),d+"\n")}else if(i=n.startLineNumber-1,s=e.getLineContent(i),t.addEditOperation(new c.e(i,1,i+1,1),null),t.addEditOperation(new c.e(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),"\n"+s),this.shouldAutoIndent(e,n)){h.getLineContent=t=>t===i?e.getLineContent(n.startLineNumber):e.getLineContent(t);const s=this.matchEnterRule(e,l,o,n.startLineNumber,n.startLineNumber-2);if(null!==s)0!==s&&this.getIndentEditsOfMovingBlock(e,t,n,o,r,s);else{const s=(0,C.n8)(this._autoIndent,h,e.getLanguageIdAtPosition(n.startLineNumber,1),i,l,this._languageConfigurationService);if(null!==s){const i=a.V8(e.getLineContent(n.startLineNumber)),l=b.Y(s,o),c=b.Y(i,o);if(l!==c){const i=l-c;this.getIndentEditsOfMovingBlock(e,t,n,o,r,i)}}}}}this._selectionId=t.trackSelection(n)}buildIndentConverter(e,t,i){return{shiftIndent:n=>f.U.shiftIndent(n,n.length+1,e,t,i),unshiftIndent:n=>f.U.unshiftIndent(n,n.length+1,e,t,i)}}parseEnterResult(e,t,i,n,o){if(o){let s=o.indentation;o.indentAction===_.wU.None||o.indentAction===_.wU.Indent?s=o.indentation+o.appendText:o.indentAction===_.wU.IndentOutdent?s=o.indentation:o.indentAction===_.wU.Outdent&&(s=t.unshiftIndent(o.indentation)+o.appendText);const r=e.getLineContent(n);if(this.trimLeft(r).indexOf(this.trimLeft(s))>=0){const o=a.V8(e.getLineContent(n));let r=a.V8(s);const l=(0,C.tI)(e,n,this._languageConfigurationService);return null!==l&&2&l&&(r=t.unshiftIndent(r)),b.Y(r,i)-b.Y(o,i)}}return null}matchEnterRuleMovingDown(e,t,i,n,o,s){if(a.ow(s)>=0){const s=e.getLineMaxColumn(o),r=(0,y.A)(this._autoIndent,e,new c.e(o,s,o,s),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,r)}{let o=n-1;for(;o>=1;){const t=e.getLineContent(o);if(a.ow(t)>=0)break;o--}if(o<1||n>e.getLineCount())return null;const s=e.getLineMaxColumn(o),r=(0,y.A)(this._autoIndent,e,new c.e(o,s,o,s),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,r)}}matchEnterRule(e,t,i,n,o,s){let r=o;for(;r>=1;){let t;if(t=r===o&&void 0!==s?s:e.getLineContent(r),a.ow(t)>=0)break;r--}if(r<1||n>e.getLineCount())return null;const l=e.getLineMaxColumn(r),h=(0,y.A)(this._autoIndent,e,new c.e(r,l,r,l),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,h)}trimLeft(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4)return!1;if(!e.tokenization.isCheapToTokenize(t.startLineNumber))return!1;const i=e.getLanguageIdAtPosition(t.startLineNumber,1);return i===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==this._languageConfigurationService.getLanguageConfiguration(i).indentRulesSupport}getIndentEditsOfMovingBlock(e,t,i,n,o,s){for(let r=i.startLineNumber;r<=i.endLineNumber;r++){const l=e.getLineContent(r),h=a.V8(l),d=b.Y(h,n)+s,u=b.J(d,n,o);u!==h&&(t.addEditOperation(new c.e(r,1,r,h.length+1),u),r===i.endLineNumber&&i.endColumn<=h.length+1&&""===u&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&i.startLineNumber=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(S=3,k=v.c_,function(e,t){k(e,t,S)})],w);class x{static getCollator(){return x._COLLATOR||(x._COLLATOR=new Intl.Collator),x._COLLATOR}constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}getEditOperations(e,t){const i=function(e,t,i){const n=L(e,t,i);return n?l.h.replace(new c.e(n.startLineNumber,1,n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),n.after.join("\n")):null}(e,this.selection,this.descending);i&&t.addEditOperation(i.range,i.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,i){if(null===e)return!1;const n=L(e,t,i);if(!n)return!1;for(let e=0,t=n.before.length;e=o)return null;const s=[];for(let t=n;t<=o;t++)s.push(e.getLineContent(t));let r=s.slice(0);return r.sort(x.getCollator().compare),!0===i&&(r=r.reverse()),{startLineNumber:n,endLineNumber:o,before:s,after:r}}x._COLLATOR=null;var E=i(63580),N=i(84144);class D extends s.R6{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;const i=t.getSelections().map(((e,t)=>({selection:e,index:t,ignore:!1})));i.sort(((e,t)=>c.e.compareRangesUsingStarts(e.selection,t.selection)));let n=i[0];for(let e=1;enew u.L(e.positionLineNumber,e.positionColumn))));const o=t.getSelection();if(null===o)return;const s=new h(o,n);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop()}}P.ID="editor.action.trimTrailingWhitespace";class F extends s.R6{constructor(){super({id:"editor.action.deleteLines",label:E.NC("lines.delete","Delete Line"),alias:"Delete Line",precondition:p.u.writable,kbOpts:{kbExpr:p.u.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;const i=this._getLinesToRemove(t),n=t.getModel();if(1===n.getLineCount()&&1===n.getLineMaxColumn(1))return;let o=0;const s=[],r=[];for(let e=0,t=i.length;e1&&(a-=1,h=n.getLineMaxColumn(a)),s.push(l.h.replace(new g.Y(a,h,c,d),"")),r.push(new g.Y(a-o,t.positionColumn,a-o,t.positionColumn)),o+=t.endLineNumber-t.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,s,r),t.pushUndoStop()}_getLinesToRemove(e){const t=e.getSelections().map((e=>{let t=e.endLineNumber;return e.startLineNumbere.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber));const i=[];let n=t[0];for(let e=1;e=t[e].startLineNumber?n.endLineNumber=t[e].endLineNumber:(i.push(n),n=t[e]);return i.push(n),i}}class B extends s.R6{constructor(){super({id:"editor.action.indentLines",label:E.NC("lines.indent","Indent Line"),alias:"Indent Line",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:2142,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,d.u6.indent(i.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}}class H extends s.R6{constructor(){super({id:"editor.action.outdentLines",label:E.NC("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:2140,weight:100}})}run(e,t){o.CoreEditingCommands.Outdent.runEditorCommand(e,t,null)}}class V extends s.R6{constructor(){super({id:"editor.action.insertLineBefore",label:E.NC("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:3075,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,d.u6.lineInsertBefore(i.cursorConfig,t.getModel(),t.getSelections())))}}class W extends s.R6{constructor(){super({id:"editor.action.insertLineAfter",label:E.NC("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:2051,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,d.u6.lineInsertAfter(i.cursorConfig,t.getModel(),t.getSelections())))}}class z extends s.R6{run(e,t){if(!t.hasModel())return;const i=t.getSelection(),n=this._getRangesToDelete(t),o=[];for(let e=0,t=n.length-1;el.h.replace(e,"")));t.pushUndoStop(),t.executeEdits(this.id,r,s),t.pushUndoStop()}}class U extends z{constructor(){super({id:"deleteAllLeft",label:E.NC("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:p.u.writable,kbOpts:{kbExpr:p.u.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(e,t){let i=null;const n=[];let o=0;return t.forEach((t=>{let s;if(1===t.endColumn&&o>0){const e=t.startLineNumber-o;s=new g.Y(e,t.startColumn,e,t.startColumn)}else s=new g.Y(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);o+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?i=s:n.push(s)})),i&&n.unshift(i),n}_getRangesToDelete(e){const t=e.getSelections();if(null===t)return[];let i=t;const n=e.getModel();return null===n?[]:(i.sort(c.e.compareRangesUsingStarts),i=i.map((e=>{if(e.isEmpty()){if(1===e.startColumn){const t=Math.max(1,e.startLineNumber-1),i=1===e.startLineNumber?1:n.getLineContent(t).length+1;return new c.e(t,i,e.startLineNumber,1)}return new c.e(e.startLineNumber,1,e.startLineNumber,e.startColumn)}return new c.e(e.startLineNumber,1,e.endLineNumber,e.endColumn)})),i)}}class j extends z{constructor(){super({id:"deleteAllRight",label:E.NC("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:p.u.writable,kbOpts:{kbExpr:p.u.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(e,t){let i=null;const n=[];for(let o=0,s=t.length,r=0;o{if(e.isEmpty()){const i=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===i?new c.e(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new c.e(e.startLineNumber,e.startColumn,e.startLineNumber,i)}return e}));return n.sort(c.e.compareRangesUsingStarts),n}}class K extends s.R6{constructor(){super({id:"editor.action.joinLines",label:E.NC("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){const i=t.getSelections();if(null===i)return;let n=t.getSelection();if(null===n)return;i.sort(c.e.compareRangesUsingStarts);const o=[],s=i.reduce(((e,t)=>e.isEmpty()?e.endLineNumber===t.startLineNumber?(n.equalsSelection(e)&&(n=t),t):t.startLineNumber>e.endLineNumber+1?(o.push(e),t):new g.Y(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(o.push(e),t):new g.Y(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)));o.push(s);const r=t.getModel();if(null===r)return;const a=[],h=[];let d=n,u=0;for(let e=0,t=o.length;e=1){let e=!0;""===v&&(e=!1),!e||" "!==v.charAt(v.length-1)&&"\t"!==v.charAt(v.length-1)||(e=!1,v=v.replace(/[\s\uFEFF\xA0]+$/g," "));const n=t.substr(i-1);v+=(e?" ":"")+n,f=e?n.length+1:n.length}else f=0}const b=new c.e(i,s,p,m);if(!b.isEmpty()){let e;t.isEmpty()?(a.push(l.h.replace(b,v)),e=new g.Y(b.startLineNumber-u,v.length-f+1,i-u,v.length-f+1)):t.startLineNumber===t.endLineNumber?(a.push(l.h.replace(b,v)),e=new g.Y(t.startLineNumber-u,t.startColumn,t.endLineNumber-u,t.endColumn)):(a.push(l.h.replace(b,v)),e=new g.Y(t.startLineNumber-u,t.startColumn,t.startLineNumber-u,v.length-_)),null!==c.e.intersectRanges(b,n)?d=e:h.push(e)}u+=b.endLineNumber-b.startLineNumber}h.unshift(d),t.pushUndoStop(),t.executeEdits(this.id,a,h),t.pushUndoStop()}}class q extends s.R6{constructor(){super({id:"editor.action.transpose",label:E.NC("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:p.u.writable})}run(e,t){const i=t.getSelections();if(null===i)return;const n=t.getModel();if(null===n)return;const o=[];for(let e=0,t=i.length;e=a){if(s.lineNumber===n.getLineCount())continue;const e=new c.e(s.lineNumber,Math.max(1,s.column-1),s.lineNumber+1,1),t=n.getValueInRange(e).split("").reverse().join("");o.push(new r.T4(new g.Y(s.lineNumber,Math.max(1,s.column-1),s.lineNumber+1,1),t))}else{const e=new c.e(s.lineNumber,Math.max(1,s.column-1),s.lineNumber,s.column+1),t=n.getValueInRange(e).split("").reverse().join("");o.push(new r.hP(e,t,new g.Y(s.lineNumber,s.column+1,s.lineNumber,s.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}class $ extends s.R6{run(e,t){const i=t.getSelections();if(null===i)return;const n=t.getModel();if(null===n)return;const o=t.getOption(125),s=[];for(const e of i)if(e.isEmpty()){const i=e.getStartPosition(),r=t.getConfiguredWordAtPosition(i);if(!r)continue;const a=new c.e(i.lineNumber,r.startColumn,i.lineNumber,r.endColumn),h=n.getValueInRange(a);s.push(l.h.replace(a,this._modifyText(h,o)))}else{const t=n.getValueInRange(e);s.push(l.h.replace(e,this._modifyText(t,o)))}t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop()}}class G extends ${constructor(){super({id:"editor.action.transformToUppercase",label:E.NC("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:p.u.writable})}_modifyText(e,t){return e.toLocaleUpperCase()}}class Q extends ${constructor(){super({id:"editor.action.transformToLowercase",label:E.NC("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:p.u.writable})}_modifyText(e,t){return e.toLocaleLowerCase()}}class Y{constructor(e,t){this._pattern=e,this._flags=t,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch(e){}}return this._actual}isSupported(){return null!==this.get()}}class Z extends ${constructor(){super({id:"editor.action.transformToTitlecase",label:E.NC("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:p.u.writable})}_modifyText(e,t){const i=Z.titleBoundary.get();return i?e.toLocaleLowerCase().replace(i,(e=>e.toLocaleUpperCase())):e}}Z.titleBoundary=new Y("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu");class X extends ${constructor(){super({id:"editor.action.transformToSnakecase",label:E.NC("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:p.u.writable})}_modifyText(e,t){const i=X.caseBoundary.get(),n=X.singleLetters.get();return i&&n?e.replace(i,"$1_$2").replace(n,"$1_$2$3").toLocaleLowerCase():e}}X.caseBoundary=new Y("(\\p{Ll})(\\p{Lu})","gmu"),X.singleLetters=new Y("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu");class J extends ${constructor(){super({id:"editor.action.transformToCamelcase",label:E.NC("editor.transformToCamelcase","Transform to Camel Case"),alias:"Transform to Camel Case",precondition:p.u.writable})}_modifyText(e,t){const i=J.wordBoundary.get();if(!i)return e;const n=e.split(i);return n.shift()+n.map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join("")}}J.wordBoundary=new Y("[_\\s-]","gm");class ee extends ${static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every((e=>e.isSupported()))}constructor(){super({id:"editor.action.transformToKebabcase",label:E.NC("editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:p.u.writable})}_modifyText(e,t){const i=ee.caseBoundary.get(),n=ee.singleLetters.get(),o=ee.underscoreBoundary.get();return i&&n&&o?e.replace(o,"$1-$3").replace(i,"$1-$2").replace(n,"$1-$2").toLocaleLowerCase():e}}ee.caseBoundary=new Y("(\\p{Ll})(\\p{Lu})","gmu"),ee.singleLetters=new Y("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu"),ee.underscoreBoundary=new Y("(\\S)(_)(\\S)","gm"),(0,s.Qr)(class extends D{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:E.NC("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:N.eH.MenubarSelectionMenu,group:"2_line",title:E.NC({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}}),(0,s.Qr)(class extends D{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:E.NC("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:N.eH.MenubarSelectionMenu,group:"2_line",title:E.NC({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}}),(0,s.Qr)(T),(0,s.Qr)(class extends I{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:E.NC("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:N.eH.MenubarSelectionMenu,group:"2_line",title:E.NC({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}}),(0,s.Qr)(class extends I{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:E.NC("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:p.u.writable,kbOpts:{kbExpr:p.u.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:N.eH.MenubarSelectionMenu,group:"2_line",title:E.NC({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}}),(0,s.Qr)(M),(0,s.Qr)(R),(0,s.Qr)(O),(0,s.Qr)(P),(0,s.Qr)(F),(0,s.Qr)(B),(0,s.Qr)(H),(0,s.Qr)(V),(0,s.Qr)(W),(0,s.Qr)(U),(0,s.Qr)(j),(0,s.Qr)(K),(0,s.Qr)(q),(0,s.Qr)(G),(0,s.Qr)(Q),X.caseBoundary.isSupported()&&X.singleLetters.isSupported()&&(0,s.Qr)(X),J.wordBoundary.isSupported()&&(0,s.Qr)(J),Z.titleBoundary.isSupported()&&(0,s.Qr)(Z),ee.isSupported()&&(0,s.Qr)(ee)},76:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CONTEXT_ONTYPE_RENAME_INPUT_VISIBLE:()=>E,LinkedEditingAction:()=>D,LinkedEditingContribution:()=>N,editorLinkedEditingBackground:()=>A});var n=i(9488),o=i(15393),s=i(71050),r=i(41264),a=i(17301),l=i(4669),c=i(5976),h=i(97295),d=i(70666),u=i(16830),g=i(11640),p=i(50187),m=i(24314),f=i(29102),_=i(1231),v=i(51381),b=i(63580),C=i(93983),y=i(71922),w=i(73910),S=i(88191),k=i(84013),x=function(e,t){return function(i,n){t(i,n,e)}},L=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};const E=new C.uy("LinkedEditingInputVisible",!1);let N=class e extends c.JT{static get(t){return t.getContribution(e.ID)}constructor(e,t,i,n,o){super(),this.languageConfigurationService=n,this._syncRangesToken=0,this._localToDispose=this._register(new c.SL),this._editor=e,this._providers=i.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=E.bindTo(t),this._debounceInformation=o.for(this._providers,"Linked Editing",{max:200}),this._currentDecorations=this._editor.createDecorationsCollection(),this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new c.SL),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequest=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel((()=>this.reinitialize(!0)))),this._register(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(67)||e.hasChanged(88))&&this.reinitialize(!1)}))),this._register(this._providers.onDidChange((()=>this.reinitialize(!1)))),this._register(this._editor.onDidChangeModelLanguage((()=>this.reinitialize(!0)))),this.reinitialize(!0)}reinitialize(e){const t=this._editor.getModel(),i=null!==t&&(this._editor.getOption(67)||this._editor.getOption(88))&&this._providers.has(t);if(i===this._enabled&&!e)return;if(this._enabled=i,this.clearRanges(),this._localToDispose.clear(),!i||null===t)return;this._localToDispose.add(l.ju.runAndSubscribe(t.onDidChangeLanguageConfiguration,(()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(t.getLanguageId()).getWordDefinition()})));const n=new o.vp(this._debounceInformation.get(t)),s=()=>{var e;this._rangeUpdateTriggerPromise=n.trigger((()=>this.updateRanges()),null!==(e=this._debounceDuration)&&void 0!==e?e:this._debounceInformation.get(t))},r=new o.vp(0),a=e=>{this._rangeSyncTriggerPromise=r.trigger((()=>this._syncRanges(e)))};this._localToDispose.add(this._editor.onDidChangeCursorPosition((()=>{s()}))),this._localToDispose.add(this._editor.onDidChangeModelContent((e=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const t=this._currentDecorations.getRange(0);if(t&&e.changes.every((e=>t.intersectRanges(e.range))))return void a(this._syncRangesToken)}s()}))),this._localToDispose.add({dispose:()=>{n.dispose(),r.dispose()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._syncRangesToken||0===this._currentDecorations.length)return;const t=this._editor.getModel(),i=this._currentDecorations.getRange(0);if(!i||i.startLineNumber!==i.endLineNumber)return this.clearRanges();const n=t.getValueInRange(i);if(this._currentWordPattern){const e=n.match(this._currentWordPattern);if((e?e[0].length:0)!==n.length)return this.clearRanges()}const o=[];for(let e=1,i=this._currentDecorations.length;e1)return void this.clearRanges();const n=this._editor.getModel(),s=n.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===s){if(i.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){const e=this._currentDecorations.getRange(0);if(e&&e.containsPosition(i))return}}this.clearRanges(),this._currentRequestPosition=i,this._currentRequestModelVersion=s;const r=(0,o.PG)((t=>L(this,void 0,void 0,(function*(){try{const o=new k.G(!1),a=yield I(this._providers,n,i,t);if(this._debounceInformation.update(n,o.elapsed()),r!==this._currentRequest)return;if(this._currentRequest=null,s!==n.getVersionId())return;let l=[];(null==a?void 0:a.ranges)&&(l=a.ranges),this._currentWordPattern=(null==a?void 0:a.wordPattern)||this._languageWordPattern;let c=!1;for(let e=0,t=l.length;e({range:t,options:e.DECORATION})));this._visibleContextKey.set(!0),this._currentDecorations.set(h),this._syncRangesToken++}catch(e){(0,a.n2)(e)||(0,a.dL)(e),this._currentRequest!==r&&this._currentRequest||this.clearRanges()}}))));return this._currentRequest=r,r}))}};N.ID="editor.contrib.linkedEditing",N.DECORATION=_.qx.register({description:"linked-editing",stickiness:0,className:"linked-editing-decoration"}),N=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([x(1,C.i6),x(2,y.p),x(3,v.c_),x(4,S.A)],N);class D extends u.R6{constructor(){super({id:"editor.action.linkedEditing",label:b.NC("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:C.Ao.and(f.u.writable,f.u.hasRenameProvider),kbOpts:{kbExpr:f.u.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){const i=e.get(g.$),[n,o]=Array.isArray(t)&&t||[void 0,void 0];return d.o.isUri(n)&&p.L.isIPosition(o)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(o),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),a.dL):super.runCommand(e,t)}run(e,t){const i=N.get(t);return i?Promise.resolve(i.updateRanges(!0)):Promise.resolve()}}const T=u._l.bindToContribution(N.get);function I(e,t,i,s){const r=e.ordered(t);return(0,o.Ps)(r.map((e=>()=>L(this,void 0,void 0,(function*(){try{return yield e.provideLinkedEditingRanges(t,i,s)}catch(e){return void(0,a.Cp)(e)}})))),(e=>!!e&&n.Of(null==e?void 0:e.ranges)))}(0,u.fK)(new T({id:"cancelLinkedEditingInput",precondition:E,handler:e=>e.clearRanges(),kbOpts:{kbExpr:f.u.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));const A=(0,w.P6G)("editor.linkedEditingBackground",{dark:r.Il.fromHex("#f00").transparent(.3),light:r.Il.fromHex("#f00").transparent(.3),hcDark:r.Il.fromHex("#f00").transparent(.3),hcLight:r.Il.white},b.NC("editorLinkedEditingBackground","Background color when the editor auto renames on type."));(0,u.sb)("_executeLinkedEditingProvider",((e,t,i)=>{const{linkedEditingRangeProvider:n}=e.get(y.p);return I(n,t,i,s.T.None)})),(0,u._K)(N.ID,N,1),(0,u.Qr)(D)},57253:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LinkDetector:()=>I});var n=i(15393),o=i(71050),s=i(17301),r=i(59365),a=i(5976),l=i(66663),c=i(1432),h=i(95935),d=i(84013),u=i(70666),g=i(16830),p=i(1231),m=i(88191),f=i(71922),_=i(82005),v=i(9488),b=i(98401),C=i(24314),y=i(73733),w=i(94565),S=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class k{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}resolve(e){return S(this,void 0,void 0,(function*(){return this._link.url?this._link.url:"function"==typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then((t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing"))))):Promise.reject(new Error("missing"))}))}}class x{constructor(e){this._disposables=new a.SL;let t=[];for(const[i,n]of e){const e=i.links.map((e=>new k(e,n)));t=x._union(t,e),(0,a.Wf)(i)&&this._disposables.add(i)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){const i=[];let n,o,s,r;for(n=0,s=0,o=e.length,r=t.length;nPromise.resolve(e.provideLinks(t,i)).then((t=>{t&&(n[o]=[t,e])}),s.Cp)));return Promise.all(o).then((()=>{const e=new x((0,v.kX)(n));return i.isCancellationRequested?(e.dispose(),new x([])):e}))}w.P.registerCommand("_executeLinkProvider",((e,...t)=>S(void 0,void 0,void 0,(function*(){let[i,n]=t;(0,b.p_)(i instanceof u.o),"number"!=typeof n&&(n=0);const{linkProvider:s}=e.get(f.p),r=e.get(y.q).getModel(i);if(!r)return[];const a=yield L(s,r,o.T.None);if(!a)return[];for(let e=0;ethis.computeLinksNow()),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;const r=this._register(new _.yN(e));this._register(r.onMouseMoveOrRelevantKeyDown((([e,t])=>{this._onEditorMouseMove(e,t)}))),this._register(r.onExecute((e=>{this.onEditorMouseUp(e)}))),this._register(r.onCancel((e=>{this.cleanUpActiveLinkDecoration()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(68)&&(this.updateDecorations([]),this.stop(),this.computeLinks.schedule(0))}))),this._register(e.onDidChangeModelContent((e=>{this.editor.hasModel()&&this.computeLinks.schedule(this.debounceInformation.get(this.editor.getModel()))}))),this._register(e.onDidChangeModel((e=>{this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.computeLinks.schedule(0)}))),this._register(e.onDidChangeModelLanguage((e=>{this.stop(),this.computeLinks.schedule(0)}))),this._register(this.providers.onDidChange((e=>{this.stop(),this.computeLinks.schedule(0)}))),this.computeLinks.schedule(0)}computeLinksNow(){return e=this,t=void 0,o=function*(){if(!this.editor.hasModel()||!this.editor.getOption(68))return;const e=this.editor.getModel();if(this.providers.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=(0,n.PG)((t=>L(this.providers,e,t)));try{const t=new d.G(!1);if(this.activeLinksList=yield this.computePromise,this.debounceInformation.update(e,t.elapsed()),e.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(e){(0,s.dL)(e)}finally{this.computePromise=null}}},new((i=void 0)||(i=Promise))((function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((o=o.apply(e,t||[])).next())}));var e,t,i,o}updateDecorations(e){const t="altKey"===this.editor.getOption(75),i=[],n=Object.keys(this.currentOccurrences);for(const e of n){const t=this.currentOccurrences[e];i.push(t.decorationId)}const o=[];if(e)for(const i of e)o.push(M.decoration(i,t));this.editor.changeDecorations((t=>{const n=t.deltaDecorations(i,o);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let t=0,i=n.length;t{t.activate(e,i),this.activeLinkDecorationId=t.decorationId}))}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const e="altKey"===this.editor.getOption(75);if(this.activeLinkDecorationId){const t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations((i=>{t.deactivate(i,e)})),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;const t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,i=!1){if(!this.openerService)return;const{link:n}=e;n.resolve(o.T.None).then((e=>{if("string"==typeof e&&this.editor.hasModel()){const t=this.editor.getModel().uri;if(t.scheme===l.lg.file&&e.startsWith(`${l.lg.file}:`)){const i=u.o.parse(e);if(i.scheme===l.lg.file){const n=h.z_(i);let o=null;n.startsWith("/./")?o=`.${n.substr(1)}`:n.startsWith("//./")&&(o=`.${n.substr(2)}`),o&&(e=h.Vo(t,o))}}}return this.openerService.open(e,{openToSide:t,fromUserGesture:i,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})}),(e=>{const t=e instanceof Error?e.message:e;"invalid"===t?this.notificationService.warn(E.NC("invalid.url","Failed to open this link because it is not well-formed: {0}",n.url.toString())):"missing"===t?this.notificationService.warn(E.NC("missing.url","Failed to open this link because its target is missing.")):(0,s.dL)(e)}))}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;const t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(const e of t){const t=this.currentOccurrences[e.id];if(t)return t}return null}isEnabled(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){var e;this.computeLinks.cancel(),this.activeLinksList&&(null===(e=this.activeLinksList)||void 0===e||e.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop()}};I.ID="editor.linkDetector",I=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([T(1,D.v4),T(2,N.lT),T(3,f.p),T(4,m.A)],I);const A={general:p.qx.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:p.qx.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})};class M{static decoration(e,t){return{range:e.range,options:M._getOptions(e,t,!1)}}static _getOptions(e,t,i){const n=Object.assign({},i?A.active:A.general);return n.hoverMessage=function(e,t){const i=e.url&&/^command:/i.test(e.url.toString()),n=e.tooltip?e.tooltip:i?E.NC("links.navigate.executeCmd","Execute command"):E.NC("links.navigate.follow","Follow link"),o=t?c.dz?E.NC("links.navigate.kb.meta.mac","cmd + click"):E.NC("links.navigate.kb.meta","ctrl + click"):c.dz?E.NC("links.navigate.kb.alt.mac","option + click"):E.NC("links.navigate.kb.alt","alt + click");if(e.url){let t="";if(/^command:/i.test(e.url.toString())){const i=e.url.toString().match(/^command:([^?#]+)/);if(i){const e=i[1];t=E.NC("tooltip.explanation","Execute command {0}",e)}}return new r.W5("",!0).appendLink(e.url.toString(!0).replace(/ /g,"%20"),n,t).appendMarkdown(` (${o})`)}return(new r.W5).appendText(`${n} (${o})`)}(e,t),n}constructor(e,t){this.link=e,this.decorationId=t}activate(e,t){e.changeDecorationOptions(this.decorationId,M._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,M._getOptions(this.link,t,!1))}}class R extends g.R6{constructor(){super({id:"editor.action.openLink",label:E.NC("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){const i=I.get(t);if(!i)return;if(!t.hasModel())return;const n=t.getSelections();for(const e of n){const t=i.getLinkOccurrence(e.getEndPosition());t&&i.openLinkOccurrence(t,!1)}}}(0,g._K)(I.ID,I,1),(0,g.Qr)(R)},93519:(e,t,i)=>{"use strict";i.r(t);var n=i(5976),o=i(16830);class s extends n.JT{constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown((e=>{const t=this._editor.getOption(112);t>=0&&6===e.target.type&&e.target.position.column>=t&&this._editor.updateOptions({stopRenderingLineAfter:-1})})))}}s.ID="editor.contrib.longLinesHelper",(0,o._K)(s.ID,s,2)},45241:(e,t,i)=>{"use strict";i.d(t,{$:()=>m});var n,o=i(77352),s=i(17301),r=i(4669),a=i(5976),l=i(52136),c=i(72042),h=i(68801),d=i(82963),u=i(50988),g=function(e,t){return function(i,n){t(i,n,e)}},p=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let m=class e{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new r.Q5,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e)return{element:document.createElement("span"),dispose:()=>{}};const n=new a.SL,s=n.add((0,o.ap)(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),i));return s.element.classList.add("rendered-markdown"),{element:s.element,dispose:()=>n.dispose()}}_getRenderOptions(t,i){return{codeBlockRenderer:(t,i)=>p(this,void 0,void 0,(function*(){var n,o,s;let r;t?r=this._languageService.getLanguageIdByLanguageName(t):this._options.editor&&(r=null===(n=this._options.editor.getModel())||void 0===n?void 0:n.getLanguageId()),r||(r=h.bd);const a=yield(0,d.C2)(this._languageService,i,r),c=document.createElement("span");if(c.innerHTML=null!==(s=null===(o=e._ttpTokenizer)||void 0===o?void 0:o.createHTML(a))&&void 0!==s?s:a,this._options.editor){const e=this._options.editor.getOption(48);(0,l.N)(c,e)}else this._options.codeBlockFontFamily&&(c.style.fontFamily=this._options.codeBlockFontFamily);return void 0!==this._options.codeBlockFontSize&&(c.style.fontSize=this._options.codeBlockFontSize),c})),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:e=>function(e,t,i){return p(this,void 0,void 0,(function*(){try{return yield e.open(t,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:f(i)})}catch(e){return(0,s.dL)(e),!1}}))}(this._openerService,e,t.isTrusted),disposables:i}}}};function f(e){return!0===e||!(!e||!Array.isArray(e.enabledCommands))&&e.enabledCommands}m._ttpTokenizer=null===(n=window.trustedTypes)||void 0===n?void 0:n.createPolicy("tokenizeToString",{createHTML:e=>e}),m=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([g(1,c.O),g(2,u.v4)],m)},27753:(e,t,i)=>{"use strict";i.d(t,{O:()=>h});var n=i(85152),o=i(15393),s=i(5976),r=i(16830),a=i(24314),l=i(63580),c=i(93983);let h=class e{static get(t){return t.getContribution(e.ID)}constructor(t,i){this._messageWidget=new s.XK,this._messageListeners=new s.SL,this._editor=t,this._visible=e.MESSAGE_VISIBLE.bindTo(i)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let i;(0,n.Z9)(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new p(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidChangeCursorPosition((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidDispose((()=>this.closeMessage()))),this._messageListeners.add(this._editor.onDidChangeModel((()=>this.closeMessage()))),this._messageListeners.add(new o._F((()=>this.closeMessage()),3e3)),this._messageListeners.add(this._editor.onMouseMove((e=>{e.target.position&&(i?i.containsPosition(e.target.position)||this.closeMessage():i=new a.e(t.lineNumber-3,1,e.target.position.lineNumber+3,1))})))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(p.fadeOut(this._messageWidget.value))}};var d,u;h.ID="editor.contrib.messageController",h.MESSAGE_VISIBLE=new c.uy("messageVisible",!1,l.NC("messageVisible","Whether the editor is currently showing an inline message")),h=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(d=1,u=c.i6,function(e,t){u(e,t,d)})],h);const g=r._l.bindToContribution(h.get);(0,r.fK)(new g({id:"leaveEditorMessage",precondition:h.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class p{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const s=document.createElement("div");s.classList.add("message"),s.textContent=n,this._domNode.appendChild(s);const r=document.createElement("div");r.classList.add("anchor","below"),this._domNode.appendChild(r),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",2===e)}}(0,r._K)(h.ID,h,4)},77061:(e,t,i)=>{"use strict";i.r(t),i.d(t,{AddSelectionToNextFindMatchAction:()=>D,AddSelectionToPreviousFindMatchAction:()=>T,CompatChangeAll:()=>R,FocusNextCursor:()=>W,FocusPreviousCursor:()=>z,InsertCursorAbove:()=>C,InsertCursorBelow:()=>y,MoveSelectionToNextFindMatchAction:()=>I,MoveSelectionToPreviousFindMatchAction:()=>A,MultiCursorSelectionController:()=>E,MultiCursorSelectionControllerAction:()=>N,MultiCursorSession:()=>L,MultiCursorSessionResult:()=>x,SelectHighlightsAction:()=>M,SelectionHighlighter:()=>P});var n=i(85152),o=i(15393),s=i(22258),r=i(5976),a=i(16830),l=i(28108),c=i(24314),h=i(3860),d=i(29102),u=i(31633),g=i(63580),p=i(84144),m=i(93983),f=i(71922),_=i(14495),v=i(72065);function b(e,t){const i=t.filter((t=>!e.find((e=>e.equals(t)))));if(i.length>=1){const e=i.map((e=>`line ${e.viewState.position.lineNumber} column ${e.viewState.position.column}`)).join(", "),t=1===i.length?g.NC("cursorAdded","Cursor added: {0}",e):g.NC("cursorsAdded","Cursors added: {0}",e);(0,n.i7)(t)}}class C extends a.R6{constructor(){super({id:"editor.action.insertCursorAbove",label:g.NC("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:d.u.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:p.eH.MenubarSelectionMenu,group:"3_multi",title:g.NC({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&!1===i.logicalLine&&(n=!1);const o=t._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();const s=o.getCursorStates();o.setCursorStates(i.source,3,l.P.addCursorUp(o,s,n)),o.revealTopMostCursor(i.source),b(s,o.getCursorStates())}}class y extends a.R6{constructor(){super({id:"editor.action.insertCursorBelow",label:g.NC("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:d.u.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:p.eH.MenubarSelectionMenu,group:"3_multi",title:g.NC({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&!1===i.logicalLine&&(n=!1);const o=t._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();const s=o.getCursorStates();o.setCursorStates(i.source,3,l.P.addCursorDown(o,s,n)),o.revealBottomMostCursor(i.source),b(s,o.getCursorStates())}}class w extends a.R6{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:g.NC("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:d.u.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:p.eH.MenubarSelectionMenu,group:"3_multi",title:g.NC({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,i){if(!e.isEmpty()){for(let n=e.startLineNumber;n1&&i.push(new h.Y(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=t.getSelections(),o=t._getViewModel(),s=o.getCursorStates(),r=[];n.forEach((e=>this.getCursorsForSelection(e,i,r))),r.length>0&&t.setSelections(r),b(s,o.getCursorStates())}}class S extends a.R6{constructor(){super({id:"editor.action.addCursorsToBottom",label:g.NC("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),n=t.getModel().getLineCount(),o=[];for(let e=i[0].startLineNumber;e<=n;e++)o.push(new h.Y(e,i[0].startColumn,e,i[0].endColumn));const s=t._getViewModel(),r=s.getCursorStates();o.length>0&&t.setSelections(o),b(r,s.getCursorStates())}}class k extends a.R6{constructor(){super({id:"editor.action.addCursorsToTop",label:g.NC("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),n=[];for(let e=i[0].startLineNumber;e>=1;e--)n.push(new h.Y(e,i[0].startColumn,e,i[0].endColumn));const o=t._getViewModel(),s=o.getCursorStates();n.length>0&&t.setSelections(n),b(s,o.getCursorStates())}}class x{constructor(e,t,i){this.selections=e,this.revealRange=t,this.revealScrollType=i}}class L{static create(e,t){if(!e.hasModel())return null;const i=t.getState();if(!e.hasTextFocus()&&i.isRevealed&&i.searchString.length>0)return new L(e,t,!1,i.searchString,i.wholeWord,i.matchCase,null);let n,o,s=!1;const r=e.getSelections();1===r.length&&r[0].isEmpty()?(s=!0,n=!0,o=!0):(n=i.wholeWord,o=i.matchCase);const a=e.getSelection();let l,c=null;if(a.isEmpty()){const t=e.getConfiguredWordAtPosition(a.getStartPosition());if(!t)return null;l=t.word,c=new h.Y(a.startLineNumber,t.startColumn,a.startLineNumber,t.endColumn)}else l=e.getModel().getValueInRange(a).replace(/\r\n/g,"\n");return new L(e,t,s,l,n,o,c)}constructor(e,t,i,n,o,s,r){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=i,this.searchText=n,this.wholeWord=o,this.matchCase=s,this.currentMatch=r}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(125):null,!1);return i?new h.Y(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(125):null,!1);return i?new h.Y(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();const t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(125):null,!1,1073741824):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(125):null,!1,1073741824)}}class E extends r.JT{static get(e){return e.getContribution(E.ID)}constructor(e){super(),this._sessionDispose=this._register(new r.SL),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){const t=L.create(this._editor,e);if(!t)return;this._session=t;const i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection((e=>{this._ignoreSelectionChange||this._endSession()}))),this._sessionDispose.add(this._editor.onDidBlurEditorText((()=>{this._endSession()}))),this._sessionDispose.add(e.getState().onFindReplaceStateChange((e=>{(e.matchCase||e.wholeWord)&&this._endSession()})))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;const i=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return i?new h.Y(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){const t=this._editor.getSelections();if(t.length>1){const i=e.getState().matchCase;if(!F(this._editor.getModel(),t,i)){const e=this._editor.getModel(),i=[];for(let n=0,o=t.length;n0&&i.isRegex){const e=this._editor.getModel();t=i.searchScope?e.findMatches(i.searchString,i.searchScope,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(125):null,!1,1073741824):e.findMatches(i.searchString,!0,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(125):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(i.searchScope)}if(t.length>0){const e=this._editor.getSelection();for(let i=0,n=t.length;inew h.Y(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn))))}}}E.ID="editor.contrib.multiCursorController";class N extends a.R6{run(e,t){const i=E.get(t);if(!i)return;const n=t._getViewModel();if(n){const o=n.getCursorStates(),s=u.CommonFindController.get(t);if(s)this._run(i,s);else{const n=e.get(v.TG).createInstance(u.CommonFindController,t);this._run(i,n),n.dispose()}b(o,n.getCursorStates())}}}class D extends N{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:g.NC("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:d.u.focus,primary:2082,weight:100},menuOpts:{menuId:p.eH.MenubarSelectionMenu,group:"3_multi",title:g.NC({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}class T extends N{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:g.NC("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:p.eH.MenubarSelectionMenu,group:"3_multi",title:g.NC({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}class I extends N{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:g.NC("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:d.u.focus,primary:(0,s.gx)(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}class A extends N{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:g.NC("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}class M extends N{constructor(){super({id:"editor.action.selectHighlights",label:g.NC("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:d.u.focus,primary:3114,weight:100},menuOpts:{menuId:p.eH.MenubarSelectionMenu,group:"3_multi",title:g.NC({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}class R extends N{constructor(){super({id:"editor.action.changeAll",label:g.NC("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:m.Ao.and(d.u.writable,d.u.editorTextFocus),kbOpts:{kbExpr:d.u.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}class O{constructor(e,t,i,n,o){this._model=e,this._searchText=t,this._matchCase=i,this._wordSeparators=n,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,o&&this._model===o._model&&this._searchText===o._searchText&&this._matchCase===o._matchCase&&this._wordSeparators===o._wordSeparators&&this._modelVersionId===o._modelVersionId&&(this._cachedFindMatches=o._cachedFindMatches)}findMatches(){return null===this._cachedFindMatches&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map((e=>e.range)),this._cachedFindMatches.sort(c.e.compareRangesUsingStarts)),this._cachedFindMatches}}let P=class e extends r.JT{constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(103),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new o.pY((()=>this._update()),300)),this.state=null,this._register(e.onDidChangeConfiguration((t=>{this._isEnabled=e.getOption(103)}))),this._register(e.onDidChangeCursorSelection((e=>{this._isEnabled&&(e.selection.isEmpty()?3===e.reason?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())}))),this._register(e.onDidChangeModel((e=>{this._setState(null)}))),this._register(e.onDidChangeModelContent((e=>{this._isEnabled&&this.updateSoon.schedule()})));const i=u.CommonFindController.get(e);i&&this._register(i.getState().onFindReplaceStateChange((e=>{this._update()}))),this.updateSoon.schedule()}_update(){this._setState(e._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,i){if(!t)return null;if(!i.hasModel())return null;const n=i.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;const o=E.get(i);if(!o)return null;const s=u.CommonFindController.get(i);if(!s)return null;let r=o.getSession(s);if(!r){const e=i.getSelections();if(e.length>1){const t=s.getState().matchCase;if(!F(i.getModel(),e,t))return null}r=L.create(i,s)}if(!r)return null;if(r.currentMatch)return null;if(/^[ \t]+$/.test(r.searchText))return null;if(r.searchText.length>200)return null;const a=s.getState(),l=a.matchCase;if(a.isRevealed){let e=a.searchString;l||(e=e.toLowerCase());let t=r.searchText;if(l||(t=t.toLowerCase()),e===t&&r.matchCase===a.matchCase&&r.wholeWord===a.wholeWord&&!a.isRegex)return null}return new O(i.getModel(),r.searchText,r.matchCase,r.wholeWord?i.getOption(125):null,e)}_setState(e){if(this.state=e,!this.state)return void this._decorations.clear();if(!this.editor.hasModel())return;const t=this.editor.getModel();if(t.isTooLargeForTokenization())return;const i=this.state.findMatches(),n=this.editor.getSelections();n.sort(c.e.compareRangesUsingStarts);const o=[];for(let e=0,t=0,s=i.length,r=n.length;e=r)o.push(s),e++;else{const i=c.e.compareRangesUsingStarts(s,n[t]);i<0?(!n[t].isEmpty()&&c.e.areIntersecting(s,n[t])||o.push(s),e++):(i>0||e++,t++)}}const s=this._languageFeaturesService.documentHighlightProvider.has(t)&&this.editor.getOption(78),r=o.map((e=>({range:e,options:(0,_.w)(s)})));this._decorations.set(r)}dispose(){this._setState(null),super.dispose()}};function F(e,t,i){const n=B(e,t[0],!i);for(let o=1,s=t.length;o=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(H=1,V=f.p,function(e,t){V(e,t,H)})],P);class W extends a.R6{constructor(){super({id:"editor.action.focusNextCursor",label:g.NC("mutlicursor.focusNextCursor","Focus Next Cursor"),description:{description:g.NC("mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const o=Array.from(n.getCursorStates()),s=o.shift();s&&(o.push(s),n.setCursorStates(i.source,3,o),n.revealPrimaryCursor(i.source,!0),b(o,n.getCursorStates()))}}class z extends a.R6{constructor(){super({id:"editor.action.focusPreviousCursor",label:g.NC("mutlicursor.focusPreviousCursor","Focus Previous Cursor"),description:{description:g.NC("mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const o=Array.from(n.getCursorStates()),s=o.pop();s&&(o.unshift(s),n.setCursorStates(i.source,3,o),n.revealPrimaryCursor(i.source,!0),b(o,n.getCursorStates()))}}(0,a._K)(E.ID,E,4),(0,a._K)(P.ID,P,1),(0,a.Qr)(C),(0,a.Qr)(y),(0,a.Qr)(w),(0,a.Qr)(D),(0,a.Qr)(T),(0,a.Qr)(I),(0,a.Qr)(A),(0,a.Qr)(M),(0,a.Qr)(R),(0,a.Qr)(S),(0,a.Qr)(k),(0,a.Qr)(W),(0,a.Qr)(z)},95313:(e,t,i)=>{"use strict";i.r(t),i.d(t,{TriggerParameterHintsAction:()=>q});var n=i(79579),o=i(5976),s=i(16830),r=i(29102),a=i(96887),l=i(71922),c=i(15393),h=i(17301),d=i(4669),u=i(44906),g=i(71050),p=i(98401),m=i(70666),f=i(50187),_=i(88216),v=i(94565),b=i(93983),C=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};const y={Visible:new b.uy("parameterHintsVisible",!1),MultipleSignatures:new b.uy("parameterHintsMultipleSignatures",!1)};function w(e,t,i,n,o){return C(this,void 0,void 0,(function*(){const s=e.ordered(t);for(const e of s)try{const s=yield e.provideSignatureHelp(t,i,o,n);if(s)return s}catch(e){(0,h.Cp)(e)}}))}v.P.registerCommand("_executeSignatureHelpProvider",((e,...t)=>C(void 0,void 0,void 0,(function*(){const[i,n,o]=t;(0,p.p_)(m.o.isUri(i)),(0,p.p_)(f.L.isIPosition(n)),(0,p.p_)("string"==typeof o||!o);const s=e.get(l.p),r=yield e.get(_.S).createModelReference(i);try{const e=yield w(s.signatureHelpProvider,r.object.textEditorModel,f.L.lift(n),{triggerKind:a.WW.Invoke,isRetrigger:!1,triggerCharacter:o},g.T.None);if(!e)return;return setTimeout((()=>e.dispose()),0),e.value}finally{r.dispose()}}))));var S;!function(e){e.Default={type:0},e.Pending=class{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=2}},e.Active=class{constructor(e){this.hints=e,this.type=1}}}(S||(S={}));class k extends o.JT{constructor(e,t,i=k.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new d.Q5),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=S.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new o.XK),this.triggerChars=new u.q,this.retriggerChars=new u.q,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new c.vp(i),this._register(this.editor.onDidBlurEditorWidget((()=>this.cancel()))),this._register(this.editor.onDidChangeConfiguration((()=>this.onEditorConfigurationChange()))),this._register(this.editor.onDidChangeModel((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeModelLanguage((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeCursorSelection((e=>this.onCursorChange(e)))),this._register(this.editor.onDidChangeModelContent((e=>this.onModelContentChange()))),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType((e=>this.onDidType(e)))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){2===this._state.type&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=S.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){const i=this.editor.getModel();if(!i||!this.providers.has(i))return;const n=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger((()=>this.doTrigger(n)),t).catch(h.dL)}next(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e==e-1,n=this.editor.getOption(82).cycle;!(e<2||i)||n?this.updateActiveSignature(i&&n?0:t+1):this.cancel()}previous(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=0===t,n=this.editor.getOption(82).cycle;!(e<2||i)||n?this.updateActiveSignature(i&&n?e-1:t-1):this.cancel()}updateActiveSignature(e){1===this.state.type&&(this.state=new S.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))}doTrigger(e){return t=this,i=void 0,o=function*(){const t=1===this.state.type||2===this.state.type,i=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;const n=this._pendingTriggers.reduce(x);this._pendingTriggers=[];const o={triggerKind:n.triggerKind,triggerCharacter:n.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;const s=this.editor.getModel(),r=this.editor.getPosition();this.state=new S.Pending((0,c.PG)((e=>w(this.providers,s,r,o,e))),i);try{const t=yield this.state.request;return e!==this.triggerId?(null==t||t.dispose(),!1):t&&t.value.signatures&&0!==t.value.signatures.length?(this.state=new S.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0):(null==t||t.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1)}catch(t){return e===this.triggerId&&(this.state=S.Default),(0,h.dL)(t),!1}},new((n=void 0)||(n=Promise))((function(e,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n((function(e){e(i)}))).then(r,a)}l((o=o.apply(t,i||[])).next())}));var t,i,n,o}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();const e=this.editor.getModel();if(e)for(const t of this.providers.ordered(e)){for(const e of t.signatureHelpTriggerCharacters||[])if(e.length){const t=e.charCodeAt(0);this.triggerChars.add(t),this.retriggerChars.add(t)}for(const e of t.signatureHelpRetriggerCharacters||[])e.length&&this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;const t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:a.WW.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:a.WW.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:a.WW.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(82).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function x(e,t){switch(t.triggerKind){case a.WW.Invoke:return t;case a.WW.ContentChange:return e;case a.WW.TriggerCharacter:default:return t}}k.DEFAULT_DELAY=120;var L=i(63580),E=i(72065),N=i(65321),D=i(85152),T=i(9802),I=i(73046),A=i(97295),M=i(72042),R=i(45241),O=i(50988),P=i(73910),F=i(59554),B=i(25670),H=function(e,t){return function(i,n){t(i,n,e)}};const V=N.$,W=(0,F.q5)("parameter-hints-next",I.l.chevronDown,L.NC("parameterHintsNextIcon","Icon for show next parameter hint.")),z=(0,F.q5)("parameter-hints-previous",I.l.chevronUp,L.NC("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let U=class e extends o.JT{constructor(e,t,i,n,s){super(),this.editor=e,this.model=t,this.renderDisposeables=this._register(new o.SL),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new R.$({editor:e},s,n)),this.keyVisible=y.Visible.bindTo(i),this.keyMultipleSignatures=y.MultipleSignatures.bindTo(i)}createParameterHintDOMNodes(){const e=V(".editor-widget.parameter-hints-widget"),t=N.R3(e,V(".phwrapper"));t.tabIndex=-1;const i=N.R3(t,V(".controls")),n=N.R3(i,V(".button"+B.k.asCSSSelector(z))),o=N.R3(i,V(".overloads")),s=N.R3(i,V(".button"+B.k.asCSSSelector(W)));this._register(N.nm(n,"click",(e=>{N.zB.stop(e),this.previous()}))),this._register(N.nm(s,"click",(e=>{N.zB.stop(e),this.next()})));const r=V(".body"),a=new T.s$(r,{alwaysConsumeMouseWheel:!0});this._register(a),t.appendChild(a.getDomNode());const l=N.R3(r,V(".signature")),c=N.R3(r,V(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:l,overloads:o,docs:c,scrollbar:a},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection((e=>{this.visible&&this.editor.layoutContentWidget(this)})));const h=()=>{if(!this.domNodes)return;const e=this.editor.getOption(48);this.domNodes.element.style.fontSize=`${e.fontSize}px`,this.domNodes.element.style.lineHeight=""+e.lineHeight/e.fontSize};h(),this._register(d.ju.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((e=>e.hasChanged(48))).on(h,null)),this._register(this.editor.onDidLayoutChange((e=>this.updateMaxHeight()))),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout((()=>{var e;null===(e=this.domNodes)||void 0===e||e.element.classList.add("visible")}),100),this.editor.layoutContentWidget(this))}hide(){var e;this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,null===(e=this.domNodes)||void 0===e||e.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){var t;if(this.renderDisposeables.clear(),!this.domNodes)return;const i=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",i),this.keyMultipleSignatures.set(i),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const n=e.signatures[e.activeSignature];if(!n)return;const o=N.R3(this.domNodes.signature,V(".code")),s=this.editor.getOption(48);o.style.fontSize=`${s.fontSize}px`,o.style.fontFamily=s.fontFamily;const r=n.parameters.length>0,a=null!==(t=n.activeParameter)&&void 0!==t?t:e.activeParameter;r?this.renderParameters(o,n,a):N.R3(o,V("span")).textContent=n.label;const l=n.parameters[a];if(null==l?void 0:l.documentation){const e=V("span.documentation");if("string"==typeof l.documentation)e.textContent=l.documentation;else{const t=this.renderMarkdownDocs(l.documentation);e.appendChild(t.element)}N.R3(this.domNodes.docs,V("p",{},e))}if(void 0===n.documentation);else if("string"==typeof n.documentation)N.R3(this.domNodes.docs,V("p",{},n.documentation));else{const e=this.renderMarkdownDocs(n.documentation);N.R3(this.domNodes.docs,e.element)}const c=this.hasDocs(n,l);if(this.domNodes.signature.classList.toggle("has-docs",c),this.domNodes.docs.classList.toggle("empty",!c),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,l){let e="";const t=n.parameters[a];e=Array.isArray(t.label)?n.label.substring(t.label[0],t.label[1]):t.label,t.documentation&&(e+="string"==typeof t.documentation?`, ${t.documentation}`:`, ${t.documentation.value}`),n.documentation&&(e+="string"==typeof n.documentation?`, ${n.documentation}`:`, ${n.documentation.value}`),this.announcedLabel!==e&&(D.Z9(L.NC("hint","{0}, hint",e)),this.announcedLabel=e)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){const t=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{var e;null===(e=this.domNodes)||void 0===e||e.scrollbar.scanDomNode()}}));return t.element.classList.add("markdown-docs"),t}hasDocs(e,t){return!!(t&&"string"==typeof t.documentation&&(0,p.cW)(t.documentation).length>0||t&&"object"==typeof t.documentation&&(0,p.cW)(t.documentation).value.length>0||e.documentation&&"string"==typeof e.documentation&&(0,p.cW)(e.documentation).length>0||e.documentation&&"object"==typeof e.documentation&&(0,p.cW)(e.documentation.value).length>0)}renderParameters(e,t,i){const[n,o]=this.getParameterLabelOffsets(t,i),s=document.createElement("span");s.textContent=t.label.substring(0,n);const r=document.createElement("span");r.textContent=t.label.substring(n,o),r.className="parameter active";const a=document.createElement("span");a.textContent=t.label.substring(o),N.R3(e,s,r,a)}getParameterLabelOffsets(e,t){const i=e.parameters[t];if(i){if(Array.isArray(i.label))return i.label;if(i.label.length){const t=new RegExp(`(\\W|^)${(0,A.ec)(i.label)}(?=\\W|$)`,"g");t.test(e.label);const n=t.lastIndex-i.label.length;return n>=0?[n,t.lastIndex]:[0,0]}return[0,0]}return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return e.ID}updateMaxHeight(){if(!this.domNodes)return;const e=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=e;const t=this.domNodes.element.getElementsByClassName("phwrapper");t.length&&(t[0].style.maxHeight=e)}};U.ID="editor.widget.parameterHintsWidget",U=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([H(2,b.i6),H(3,O.v4),H(4,M.O)],U),(0,P.P6G)("editorHoverWidget.highlightForeground",{dark:P.Gwp,light:P.Gwp,hcDark:P.Gwp,hcLight:P.Gwp},L.NC("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."));var j=function(e,t){return function(i,n){t(i,n,e)}};let K=class e extends o.JT{static get(t){return t.getContribution(e.ID)}constructor(e,t,i){super(),this.editor=e,this.model=this._register(new k(e,i.signatureHelpProvider)),this._register(this.model.onChangedHints((e=>{var t;e?(this.widget.value.show(),this.widget.value.render(e)):null===(t=this.widget.rawValue)||void 0===t||t.hide()}))),this.widget=new n.o((()=>this._register(t.createInstance(U,this.editor,this.model))))}cancel(){this.model.cancel()}previous(){var e;null===(e=this.widget.rawValue)||void 0===e||e.previous()}next(){var e;null===(e=this.widget.rawValue)||void 0===e||e.next()}trigger(e){this.model.trigger(e,0)}};K.ID="editor.controller.parameterHints",K=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([j(1,E.TG),j(2,l.p)],K);class q extends s.R6{constructor(){super({id:"editor.action.triggerParameterHints",label:L.NC("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:r.u.hasSignatureHelpProvider,kbOpts:{kbExpr:r.u.editorTextFocus,primary:3082,weight:100}})}run(e,t){const i=K.get(t);null==i||i.trigger({triggerKind:a.WW.Invoke})}}(0,s._K)(K.ID,K,2),(0,s.Qr)(q);const $=s._l.bindToContribution(K.get);(0,s.fK)(new $({id:"closeParameterHints",precondition:y.Visible,handler:e=>e.cancel(),kbOpts:{weight:175,kbExpr:r.u.focus,primary:9,secondary:[1033]}})),(0,s.fK)(new $({id:"showPrevParameterHint",precondition:b.Ao.and(y.Visible,y.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:175,kbExpr:r.u.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),(0,s.fK)(new $({id:"showNextParameterHint",precondition:b.Ao.and(y.Visible,y.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:175,kbExpr:r.u.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},52049:(e,t,i)=>{"use strict";i.d(t,{Fw:()=>M,Jy:()=>R,vk:()=>B,rc:()=>P,SC:()=>z,M8:()=>U,KY:()=>H,IH:()=>V,R7:()=>W});var n=i(65321),o=i(90317),s=i(74741),r=i(73046),a=i(25670),l=i(41264),c=i(4669),h=i(36248),d=i(16830),u=i(11640),g=i(84527),p=i(73098),m=i(44742),f=i(5976),_=i(24314),v=i(1231);const b=new l.Il(new l.VS(0,122,204)),C={showArrow:!0,showFrame:!0,className:"",frameColor:b,arrowColor:b,keepEditorSelection:!1};class y{constructor(e,t,i,n,o,s,r,a){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this.showInHiddenAreas=r,this.ordinal=a,this._onDomNodeTop=o,this._onComputedHeight=s}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class w{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class S{constructor(e){this._editor=e,this._ruleName=S._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),n.uN(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){n.uN(this._ruleName),n.fk(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){1===e.column&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:_.e.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}S._IdGenerator=new m.R(".arrow-decoration-");class k{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new f.SL,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=h.I8(t),h.jB(this.options,C,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange((e=>{const t=this._getWidth(e);this.domNode.style.width=t+"px",this.domNode.style.left=this._getLeft(e)+"px",this._onWidth(t)})))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null})),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new S(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){const t=e-this._decoratingElementsHeight();this.container.style.height=`${t}px`;const i=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(i))}null===(t=this._resizeSash)||void 0===t||t.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=_.e.isIRange(e)?_.e.lift(e):_.e.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:v.qx.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id)})),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),null===(e=this._arrow)||void 0===e||e.hide()}_decoratingElementsHeight(){const e=this.editor.getOption(64);let t=0;return this.options.showArrow&&(t+=2*Math.round(e/3)),this.options.showFrame&&(t+=2*Math.round(e/9)),t}_showImpl(e,t){const i=e.getStartPosition(),n=this.editor.getLayoutInfo(),o=this._getWidth(n);this.domNode.style.width=`${o}px`,this.domNode.style.left=this._getLeft(n)+"px";const s=document.createElement("div");s.style.overflow="hidden";const r=this.editor.getOption(64),a=Math.max(12,this.editor.getLayoutInfo().height/r*.8);t=Math.min(t,a);let l=0,c=0;if(this._arrow&&this.options.showArrow&&(l=Math.round(r/3),this._arrow.height=l,this._arrow.show(i)),this.options.showFrame&&(c=Math.round(r/9)),this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new y(s,i.lineNumber,i.column,t,(e=>this._onViewZoneTop(e)),(e=>this._onViewZoneHeight(e)),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=e.addZone(this._viewZone),this._overlayWidget=new w("vs.editor.contrib.zoneWidget"+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)})),this.container&&this.options.showFrame){const e=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=e+"px",this.container.style.borderBottomWidth=e+"px"}const h=t*r-this._decoratingElementsHeight();this.container&&(this.container.style.top=l+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden"),this._doLayout(h,o),this.options.keepEditorSelection||this.editor.setSelection(e);const d=this.editor.getModel();if(d){const t=d.validateRange(new _.e(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(t,t.endLineNumber===d.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones((t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))}))}_initSash(){if(this._resizeSash)return;let e;this._resizeSash=this._disposables.add(new p.g(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart((t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})}))),this._disposables.add(this._resizeSash.onDidEnd((()=>{e=void 0}))),this._disposables.add(this._resizeSash.onDidChange((t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(64),n=i<0?Math.ceil(i):Math.floor(i),o=e.heightInLines+n;o>5&&o<35&&this._relayout(o)}})))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var x=i(63580),L=i(22444),E=i(93983),N=i(65026),D=i(72065),T=i(73910),I=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},A=function(e,t){return function(i,n){t(i,n,e)}};const M=(0,D.yh)("IPeekViewService");var R;(0,N.z)(M,class{constructor(){this._widgets=new Map}addExclusiveWidget(e,t){const i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose()),this._widgets.set(e,{widget:t,listener:t.onDidClose((()=>{const i=this._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),this._widgets.delete(e))}))})}},1),function(e){e.inPeekEditor=new E.uy("inReferenceSearchEditor",!0,x.NC("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),e.notInPeekEditor=e.inPeekEditor.toNegated()}(R||(R={}));let O=class{constructor(e,t){e instanceof g.H&&R.inPeekEditor.bindTo(t)}dispose(){}};function P(e){const t=e.get(u.$).getFocusedCodeEditor();return t instanceof g.H?t.getParentEditor():t}O.ID="editor.contrib.referenceController",O=I([A(1,E.i6)],O),(0,d._K)(O.ID,O,0);const F={headerBackgroundColor:l.Il.white,primaryHeadingColor:l.Il.fromHex("#333333"),secondaryHeadingColor:l.Il.fromHex("#6c6c6cb3")};let B=class extends k{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new c.Q5,this.onDidClose=this._onDidClose.event,h.jB(this.options,F,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=n.$(".head"),this._bodyElement=n.$(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=n.$(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),n.mu(this._titleElement,"click",(e=>this._onTitleClick(e)))),n.R3(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=n.$("span.filename"),this._secondaryHeading=n.$("span.dirname"),this._metaHeading=n.$("span.meta"),n.R3(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);const i=n.$(".peekview-actions");n.R3(this._headElement,i);const l=this._getActionBarOptions();this._actionbarWidget=new o.o(i,l),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new s.aU("peekview.close",x.NC("label.close","Close"),a.k.asClassName(r.l.close),!0,(()=>(this.dispose(),Promise.resolve()))),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:L.Id.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:n.PO(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,n.$Z(this._metaHeading)):n.Cp(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0)return void this.dispose();const i=Math.ceil(1.2*this.editor.getOption(64)),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};B=I([A(2,D.TG)],B);const H=(0,T.P6G)("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:l.Il.black,hcLight:l.Il.white},x.NC("peekViewTitleBackground","Background color of the peek view title area.")),V=(0,T.P6G)("peekViewTitleLabel.foreground",{dark:l.Il.white,light:l.Il.black,hcDark:l.Il.white,hcLight:T.NOs},x.NC("peekViewTitleForeground","Color of the peek view title.")),W=(0,T.P6G)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},x.NC("peekViewTitleInfoForeground","Color of the peek view title info.")),z=(0,T.P6G)("peekView.border",{dark:T.c63,light:T.c63,hcDark:T.lRK,hcLight:T.lRK},x.NC("peekViewBorder","Color of the peek view borders and arrow.")),U=(0,T.P6G)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:l.Il.black,hcLight:l.Il.white},x.NC("peekViewResultsBackground","Background color of the peek view result list.")),j=((0,T.P6G)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:l.Il.white,hcLight:T.NOs},x.NC("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),(0,T.P6G)("peekViewResult.fileForeground",{dark:l.Il.white,light:"#1E1E1E",hcDark:l.Il.white,hcLight:T.NOs},x.NC("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),(0,T.P6G)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},x.NC("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),(0,T.P6G)("peekViewResult.selectionForeground",{dark:l.Il.white,light:"#6C6C6C",hcDark:l.Il.white,hcLight:T.NOs},x.NC("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),(0,T.P6G)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:l.Il.black,hcLight:l.Il.white},x.NC("peekViewEditorBackground","Background color of the peek view editor.")));(0,T.P6G)("peekViewEditorGutter.background",{dark:j,light:j,hcDark:j,hcLight:j},x.NC("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),(0,T.P6G)("peekViewEditorStickyScroll.background",{dark:j,light:j,hcDark:j,hcLight:j},x.NC("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor.")),(0,T.P6G)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},x.NC("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),(0,T.P6G)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},x.NC("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),(0,T.P6G)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:T.xL1,hcLight:T.xL1},x.NC("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},83943:(e,t,i)=>{"use strict";i.d(t,{X:()=>d});var n=i(88289),o=i(5976),s=i(98401),r=i(65520),a=i(84973),l=i(8625),c=i(97781),h=i(85152);class d{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var i;const n=new o.SL;e.canAcceptInBackground=!!(null===(i=this.options)||void 0===i?void 0:i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const s=n.add(new o.XK);return s.value=this.doProvide(e,t),n.add(this.onDidActiveTextEditorControlChange((()=>{s.value=void 0,s.value=this.doProvide(e,t)}))),n}doProvide(e,t){const i=new o.SL,a=this.activeTextEditorControl;if(a&&this.canProvideWithTextEditor(a)){const l={editor:a},c=(0,r.Pi)(a);if(c){let e=(0,s.f6)(a.saveViewState());i.add(c.onDidChangeCursorPosition((()=>{e=(0,s.f6)(a.saveViewState())}))),l.restoreViewState=()=>{e&&a===this.activeTextEditorControl&&a.restoreViewState(e)},i.add((0,n.I)(t.onCancellationRequested)((()=>{var e;return null===(e=l.restoreViewState)||void 0===e?void 0:e.call(l)})))}i.add((0,o.OF)((()=>this.clearDecorations(a)))),i.add(this.provideWithTextEditor(l,e,t))}else i.add(this.provideWithoutTextEditor(e,t));return i}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();const i=e.getModel();i&&"getLineContent"in i&&(0,h.Z9)(`${i.getLineContent(t.range.startLineNumber)}`)}getModel(e){var t;return(0,r.QI)(e)?null===(t=e.getModel())||void 0===t?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations((e=>{const i=[];this.rangeHighlightDecorationId&&(i.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),i.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const n=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:(0,c.EN)(l.m9),position:a.sh.Full}}}],[o,s]=e.deltaDecorations(i,n);this.rangeHighlightDecorationId={rangeHighlightId:o,overviewRulerDecorationId:s}}))}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations((e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])})),this.rangeHighlightDecorationId=void 0)}}},73945:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ReadOnlyMessageController:()=>a});var n=i(5976),o=i(16830),s=i(27753),r=i(63580);class a extends n.JT{constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit((()=>this._onDidAttemptReadOnlyEdit())))}_onDidAttemptReadOnlyEdit(){const e=s.O.get(this.editor);e&&this.editor.hasModel()&&(this.editor.isSimpleWidget?e.showMessage(r.NC("editor.simple.readonly","Cannot edit in read-only input"),this.editor.getPosition()):e.showMessage(r.NC("editor.readonly","Cannot edit in read-only editor"),this.editor.getPosition()))}}a.ID="editor.contrib.readOnlyMessageController",(0,o._K)(a.ID,a,2)},32894:(e,t,i)=>{"use strict";i.r(t),i.d(t,{RenameAction:()=>H,rename:()=>F});var n=i(85152),o=i(15393),s=i(71050),r=i(17301),a=i(5976),l=i(98401),c=i(70666),h=i(16467),d=i(16830),u=i(66007),g=i(11640),p=i(50187),m=i(24314),f=i(29102),_=i(71765),v=i(27753),b=i(63580),C=i(23193),y=i(93983),w=i(72065),S=i(43557),k=i(59422),x=i(90535),L=i(89872),E=i(91847),N=i(73910),D=i(97781),T=function(e,t){return function(i,n){t(i,n,e)}};const I=new y.uy("renameInputVisible",!1,(0,b.NC)("renameInputVisible","Whether the rename input widget is visible"));let A=class{constructor(e,t,i,n,o){this._editor=e,this._acceptKeybindings=t,this._themeService=i,this._keybindingService=n,this._disposables=new a.SL,this.allowEditorOverflow=!0,this._visibleContextKey=I.bindTo(o),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(48)&&this._updateFont()}))),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",(0,b.NC)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())),this._domNode}_updateStyles(e){var t,i,n,o;if(!this._input||!this._domNode)return;const s=e.getColor(N.rh),r=e.getColor(N.A42);this._domNode.style.backgroundColor=String(null!==(t=e.getColor(N.D0T))&&void 0!==t?t:""),this._domNode.style.boxShadow=s?` 0 0 8px 2px ${s}`:"",this._domNode.style.border=r?`1px solid ${r}`:"",this._domNode.style.color=String(null!==(i=e.getColor(N.zJb))&&void 0!==i?i:""),this._input.style.backgroundColor=String(null!==(n=e.getColor(N.sEe))&&void 0!==n?n:"");const a=e.getColor(N.dt_);this._input.style.borderWidth=a?"1px":"0px",this._input.style.borderStyle=a?"solid":"none",this._input.style.borderColor=null!==(o=null==a?void 0:a.toString())&&void 0!==o?o:"none"}_updateFont(){if(!this._input||!this._label)return;const e=this._editor.getOption(48);this._input.style.fontFamily=e.fontFamily,this._input.style.fontWeight=e.fontWeight,this._input.style.fontSize=`${e.fontSize}px`,this._label.style.fontSize=.8*e.fontSize+"px"}getPosition(){return this._visible?{position:this._position,preference:[2,1]}:null}beforeRender(){var e,t;const[i,n]=this._acceptKeybindings;return this._label.innerText=(0,b.NC)({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",null===(e=this._keybindingService.lookupKeybinding(i))||void 0===e?void 0:e.getLabel(),null===(t=this._keybindingService.lookupKeybinding(n))||void 0===t?void 0:t.getLabel()),null}afterRender(e){e||this.cancelInput(!0)}acceptInput(e){var t;null===(t=this._currentAcceptInput)||void 0===t||t.call(this,e)}cancelInput(e){var t;null===(t=this._currentCancelInput)||void 0===t||t.call(this,e)}getInput(e,t,i,n,o,s){this._domNode.classList.toggle("preview",o),this._position=new p.L(e.startLineNumber,e.startColumn),this._input.value=t,this._input.setAttribute("selectionStart",i.toString()),this._input.setAttribute("selectionEnd",n.toString()),this._input.size=Math.max(1.1*(e.endColumn-e.startColumn),20);const r=new a.SL;return new Promise((e=>{this._currentCancelInput=t=>(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,e(t),!0),this._currentAcceptInput=i=>{0!==this._input.value.trim().length&&this._input.value!==t?(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,e({newName:this._input.value,wantsPreview:o&&i})):this.cancelInput(!0)},r.add(s.onCancellationRequested((()=>this.cancelInput(!0)))),r.add(this._editor.onDidBlurEditorWidget((()=>this.cancelInput(!document.hasFocus())))),this._show()})).finally((()=>{r.dispose(),this._hide()}))}_show(){this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout((()=>{this._input.focus(),this._input.setSelectionRange(parseInt(this._input.getAttribute("selectionStart")),parseInt(this._input.getAttribute("selectionEnd")))}),100)}_hide(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}};A=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([T(2,D.XE),T(3,E.d),T(4,y.i6)],A);var M=i(71922),R=function(e,t){return function(i,n){t(i,n,e)}},O=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class P{constructor(e,t,i){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=i.ordered(e)}hasProvider(){return this._providers.length>0}resolveRenameLocation(e){return O(this,void 0,void 0,(function*(){const t=[];for(this._providerRenameIdx=0;this._providerRenameIdx0?t.join("\n"):void 0}:{range:m.e.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join("\n"):void 0}}))}provideRenameEdits(e,t){return O(this,void 0,void 0,(function*(){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)}))}_provideRenameEdits(e,t,i,n){return O(this,void 0,void 0,(function*(){const o=this._providers[t];if(!o)return{edits:[],rejectReason:i.join("\n")};const s=yield o.provideRenameEdits(this.model,this.position,e,n);return s?s.rejectReason?this._provideRenameEdits(e,t+1,i.concat(s.rejectReason),n):s:this._provideRenameEdits(e,t+1,i.concat(b.NC("no result","No result.")),n)}))}}function F(e,t,i,n){return O(this,void 0,void 0,(function*(){const o=new P(t,i,e),r=yield o.resolveRenameLocation(s.T.None);return(null==r?void 0:r.rejectReason)?{edits:[],rejectReason:r.rejectReason}:o.provideRenameEdits(n,s.T.None)}))}let B=class e{static get(t){return t.getContribution(e.ID)}constructor(e,t,i,n,o,r,l,c){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=n,this._progressService=o,this._logService=r,this._configService=l,this._languageFeaturesService=c,this._disposableStore=new a.SL,this._cts=new s.A,this._renameInputField=this._disposableStore.add(this._instaService.createInstance(A,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}run(){var e,t;return O(this,void 0,void 0,(function*(){if(this._cts.dispose(!0),this._cts=new s.A,!this.editor.hasModel())return;const i=this.editor.getPosition(),r=new P(this.editor.getModel(),i,this._languageFeaturesService.renameProvider);if(!r.hasProvider())return;const a=new h.Dl(this.editor,5,void 0,this._cts.token);let l;try{const e=r.resolveRenameLocation(a.token);this._progressService.showWhile(e,250),l=yield e}catch(t){return void(null===(e=v.O.get(this.editor))||void 0===e||e.showMessage(t||b.NC("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),i))}finally{a.dispose()}if(!l)return;if(l.rejectReason)return void(null===(t=v.O.get(this.editor))||void 0===t||t.showMessage(l.rejectReason,i));if(a.token.isCancellationRequested)return;const c=new h.Dl(this.editor,5,l.range,this._cts.token),d=this.editor.getSelection();let u=0,g=l.text.length;m.e.isEmpty(d)||m.e.spansMultipleLines(d)||!m.e.containsRange(l.range,d)||(u=Math.max(0,d.startColumn-l.range.startColumn),g=Math.min(l.range.endColumn,d.endColumn)-l.range.startColumn);const p=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),f=yield this._renameInputField.getInput(l.range,l.text,u,g,p,c.token);if("boolean"==typeof f)return f&&this.editor.focus(),void c.dispose();this.editor.focus();const _=(0,o.eP)(r.provideRenameEdits(f.newName,c.token),c.token).then((e=>O(this,void 0,void 0,(function*(){e&&this.editor.hasModel()&&(e.rejectReason?this._notificationService.info(e.rejectReason):(this.editor.setSelection(m.e.fromPositions(this.editor.getSelection().getPosition())),this._bulkEditService.apply(e,{editor:this.editor,showPreview:f.wantsPreview,label:b.NC("label","Renaming '{0}' to '{1}'",null==l?void 0:l.text,f.newName),code:"undoredo.rename",quotableLabel:b.NC("quotableLabel","Renaming {0} to {1}",null==l?void 0:l.text,f.newName),respectAutoSaveConfig:!0}).then((e=>{e.ariaSummary&&(0,n.Z9)(b.NC("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",l.text,f.newName,e.ariaSummary))})).catch((e=>{this._notificationService.error(b.NC("rename.failedApply","Rename failed to apply edits")),this._logService.error(e)}))))}))),(e=>{this._notificationService.error(b.NC("rename.failed","Rename failed to compute edits")),this._logService.error(e)})).finally((()=>{c.dispose()}));return this._progressService.showWhile(_,250),_}))}acceptRenameInput(e){this._renameInputField.acceptInput(e)}cancelRenameInput(){this._renameInputField.cancelInput(!0)}};B.ID="editor.contrib.renameController",B=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([R(1,w.TG),R(2,k.lT),R(3,u.vu),R(4,x.ek),R(5,S.VZ),R(6,_.V),R(7,M.p)],B);class H extends d.R6{constructor(){super({id:"editor.action.rename",label:b.NC("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:y.Ao.and(f.u.writable,f.u.hasRenameProvider),kbOpts:{kbExpr:f.u.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const i=e.get(g.$),[n,o]=Array.isArray(t)&&t||[void 0,void 0];return c.o.isUri(n)&&p.L.isIPosition(o)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(o),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),r.dL):super.runCommand(e,t)}run(e,t){const i=B.get(t);return i?i.run():Promise.resolve()}}(0,d._K)(B.ID,B,4),(0,d.Qr)(H);const V=d._l.bindToContribution(B.get);(0,d.fK)(new V({id:"acceptRenameInput",precondition:I,handler:e=>e.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:y.Ao.and(f.u.focus,y.Ao.not("isComposing")),primary:3}})),(0,d.fK)(new V({id:"acceptRenameInputWithPreview",precondition:y.Ao.and(I,y.Ao.has("config.editor.rename.enablePreview")),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:y.Ao.and(f.u.focus,y.Ao.not("isComposing")),primary:1027}})),(0,d.fK)(new V({id:"cancelRenameInput",precondition:I,handler:e=>e.cancelRenameInput(),kbOpts:{weight:199,kbExpr:f.u.focus,primary:9,secondary:[1033]}})),(0,d.sb)("_executeDocumentRenameProvider",(function(e,t,i,...n){const[o]=n;(0,l.p_)("string"==typeof o);const{renameProvider:s}=e.get(M.p);return F(s,t,i,o)})),(0,d.sb)("_executePrepareRename",(function(e,t,i){return O(this,void 0,void 0,(function*(){const{renameProvider:n}=e.get(M.p),o=new P(t,i,n),r=yield o.resolveRenameLocation(s.T.None);if(null==r?void 0:r.rejectReason)throw new Error(r.rejectReason);return r}))})),L.B.as(C.IP.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:b.NC("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},61168:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DocumentSemanticTokensFeature:()=>C});var n=i(5976),o=i(17301),s=i(73733),r=i(33108),a=i(15393),l=i(71050),c=i(97781),h=i(88802),d=i(34983),u=i(88191),g=i(84013),p=i(71922),m=i(73343),f=i(10637),_=i(44408),v=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},b=function(e,t){return function(i,n){t(i,n,e)}};let C=class extends n.JT{constructor(e,t,i,n,o,s){super(),this._watchers=Object.create(null);const r=t=>{this._watchers[t.uri.toString()]=new y(t,e,i,o,s)},a=(e,t)=>{t.dispose(),delete this._watchers[e.uri.toString()]},l=()=>{for(const e of t.getModels()){const t=this._watchers[e.uri.toString()];(0,_.t)(e,i,n)?t||r(e):t&&a(e,t)}};this._register(t.onModelAdded((e=>{(0,_.t)(e,i,n)&&r(e)}))),this._register(t.onModelRemoved((e=>{const t=this._watchers[e.uri.toString()];t&&a(e,t)}))),this._register(n.onDidChangeConfiguration((e=>{e.affectsConfiguration(_.e)&&l()}))),this._register(i.onDidColorThemeChange(l))}dispose(){for(const e of Object.values(this._watchers))e.dispose();super.dispose()}};C=v([b(0,m.s),b(1,s.q),b(2,c.XE),b(3,r.Ui),b(4,u.A),b(5,p.p)],C);let y=class e extends n.JT{constructor(t,i,o,s,r){super(),this._semanticTokensStylingService=i,this._isDisposed=!1,this._model=t,this._provider=r.documentSemanticTokensProvider,this._debounceInformation=s.for(this._provider,"DocumentSemanticTokens",{min:e.REQUEST_MIN_DELAY,max:e.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new a.pY((()=>this._fetchDocumentSemanticTokensNow()),e.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeAttached((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeLanguage((()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)})));const l=()=>{(0,n.B9)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const e of this._provider.all(t))"function"==typeof e.onDidChange&&this._documentProvidersChangeListeners.push(e.onDidChange((()=>{this._currentDocumentRequestCancellationTokenSource?this._providersChangedDuringRequest=!0:this._fetchDocumentSemanticTokens.schedule(0)})))};l(),this._register(this._provider.onDidChange((()=>{l(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(o.onDidColorThemeChange((e=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!(0,d.Jc)(this._provider,this._model))return void(this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1));if(!this._model.isAttachedToEditor())return;const e=new l.A,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=(0,d.ML)(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e,this._providersChangedDuringRequest=!1;const s=[],r=this._model.onDidChangeContent((e=>{s.push(e)})),a=new g.G(!1);n.then((e=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),e){const{provider:t,tokens:i}=e,n=this._semanticTokensStylingService.getStyling(t);this._setDocumentSemanticTokens(t,i||null,n,s)}else this._setDocumentSemanticTokens(null,null,null,s)}),(e=>{e&&(o.n2(e)||"string"==typeof e.message&&-1!==e.message.indexOf("busy"))||o.dL(e),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),(s.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))}))}static _copy(e,t,i,n,o){o=Math.min(o,i.length-n,e.length-t);for(let s=0;s{(o.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)t&&i&&t.releaseDocumentSemanticTokens(i.resultId);else if(t&&n){if(!i)return this._model.tokenization.setSemanticTokens(null,!0),void r();if((0,d.Vj)(i)){if(!s)return void this._model.tokenization.setSemanticTokens(null,!0);if(0===i.edits.length)i={resultId:i.resultId,data:s.data};else{let t=0;for(const e of i.edits)t+=(e.data?e.data.length:0)-e.deleteCount;const o=s.data,r=new Uint32Array(o.length+t);let a=o.length,l=r.length;for(let t=i.edits.length-1;t>=0;t--){const c=i.edits[t];if(c.start>o.length)return n.warnInvalidEditStart(s.resultId,i.resultId,t,c.start,o.length),void this._model.tokenization.setSemanticTokens(null,!0);const h=a-(c.start+c.deleteCount);h>0&&(e._copy(o,a-h,r,l-h,h),l-=h),c.data&&(e._copy(c.data,0,r,l-c.data.length,c.data.length),l-=c.data.length),a=c.start}a>0&&e._copy(o,0,r,0,a),i={resultId:i.resultId,data:r}}}if((0,d.Vl)(i)){this._currentDocumentResponse=new w(t,i.resultId,i.data);const e=(0,h.h)(i,n,this._model.getLanguageId());if(o.length>0)for(const t of o)for(const i of e)for(const e of t.changes)i.applyEdit(e.range,e.text);this._model.tokenization.setSemanticTokens(e,!0)}else this._model.tokenization.setSemanticTokens(null,!0);r()}else this._model.tokenization.setSemanticTokens(null,!1)}};y.REQUEST_MIN_DELAY=300,y.REQUEST_MAX_DELAY=2e3,y=v([b(1,m.s),b(2,c.XE),b(3,u.A),b(4,p.p)],y);class w{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}(0,f.y)(C)},89995:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ViewportSemanticTokensContribution:()=>f});var n=i(15393),o=i(5976),s=i(16830),r=i(34983),a=i(44408),l=i(88802),c=i(33108),h=i(97781),d=i(88191),u=i(84013),g=i(71922),p=i(73343),m=function(e,t){return function(i,n){t(i,n,e)}};let f=class extends o.JT{constructor(e,t,i,o,s,r){super(),this._semanticTokensStylingService=t,this._themeService=i,this._configurationService=o,this._editor=e,this._provider=r.documentRangeSemanticTokensProvider,this._debounceInformation=s.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new n.pY((()=>this._tokenizeViewportNow()),100)),this._outstandingRequests=[];const l=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange((()=>{l()}))),this._register(this._editor.onDidChangeModel((()=>{this._cancelAll(),l()}))),this._register(this._editor.onDidChangeModelContent((e=>{this._cancelAll(),l()}))),this._register(this._provider.onDidChange((()=>{this._cancelAll(),l()}))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(a.e)&&(this._cancelAll(),l())}))),this._register(this._themeService.onDidColorThemeChange((()=>{this._cancelAll(),l()}))),l()}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;tthis._requestRange(e,t))))}_requestRange(e,t){const i=e.getVersionId(),o=(0,n.PG)((i=>Promise.resolve((0,r.OG)(this._provider,e,t,i)))),s=new u.G(!1);return o.then((n=>{if(this._debounceInformation.update(e,s.elapsed()),!n||!n.tokens||e.isDisposed()||e.getVersionId()!==i)return;const{provider:o,tokens:r}=n,a=this._semanticTokensStylingService.getStyling(o);e.tokenization.setPartialSemanticTokens(t,(0,l.h)(r,a,e.getLanguageId()))})).then((()=>this._removeOutstandingRequest(o)),(()=>this._removeOutstandingRequest(o))),o}};f.ID="editor.contrib.viewportSemanticTokens",f=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([m(1,p.s),m(2,h.XE),m(3,c.Ui),m(4,d.A),m(5,g.p)],f),(0,s._K)(f.ID,f,1)},34983:(e,t,i)=>{"use strict";i.d(t,{OG:()=>S,ML:()=>b,KO:()=>y,Jc:()=>v,Vl:()=>m,Vj:()=>f});var n=i(71050),o=i(17301),s=i(70666),r=i(73733),a=i(94565),l=i(98401),c=i(53060),h=i(1432);function d(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const i of e.deltas)i.data&&(t+=i.data.length)}return t}(e));let i=0;if(t[i++]=e.id,"full"===e.type)t[i++]=1,t[i++]=e.data.length,t.set(e.data,i),i+=e.data.length;else{t[i++]=2,t[i++]=e.deltas.length;for(const n of e.deltas)t[i++]=n.start,t[i++]=n.deleteCount,n.data?(t[i++]=n.data.length,t.set(n.data,i),i+=n.data.length):t[i++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return h.r()||function(e){for(let t=0,i=e.length;t0?i[0]:[]}(e,t),r=yield Promise.all(s.map((e=>p(this,void 0,void 0,(function*(){let s,r=null;try{s=yield e.provideDocumentSemanticTokens(t,e===i?n:null,o)}catch(e){r=e,s=null}return s&&(m(s)||f(s))||(s=null),new _(e,s,r)})))));for(const e of r){if(e.error)throw e.error;if(e.tokens)return e}return r.length>0?r[0]:null}))}class C{constructor(e,t){this.provider=e,this.tokens=t}}function y(e,t){return e.has(t)}function w(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}function S(e,t,i,n){return p(this,void 0,void 0,(function*(){const s=w(e,t),r=yield Promise.all(s.map((e=>p(this,void 0,void 0,(function*(){let s;try{s=yield e.provideDocumentRangeSemanticTokens(t,i,n)}catch(e){(0,o.Cp)(e),s=null}return s&&m(s)||(s=null),new C(e,s)})))));for(const e of r)if(e.tokens)return e;return r.length>0?r[0]:null}))}a.P.registerCommand("_provideDocumentSemanticTokensLegend",((e,...t)=>p(void 0,void 0,void 0,(function*(){const[i]=t;(0,l.p_)(i instanceof s.o);const n=e.get(r.q).getModel(i);if(!n)return;const{documentSemanticTokensProvider:o}=e.get(g.p),c=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:null}(o,n);return c?c[0].getLegend():e.get(a.H).executeCommand("_provideDocumentRangeSemanticTokensLegend",i)})))),a.P.registerCommand("_provideDocumentSemanticTokens",((e,...t)=>p(void 0,void 0,void 0,(function*(){const[i]=t;(0,l.p_)(i instanceof s.o);const o=e.get(r.q).getModel(i);if(!o)return;const{documentSemanticTokensProvider:c}=e.get(g.p);if(!v(c,o))return e.get(a.H).executeCommand("_provideDocumentRangeSemanticTokens",i,o.getFullModelRange());const h=yield b(c,o,null,null,n.T.None);if(!h)return;const{provider:u,tokens:p}=h;if(!p||!m(p))return;const f=d({id:0,type:"full",data:p.data});return p.resultId&&u.releaseDocumentSemanticTokens(p.resultId),f})))),a.P.registerCommand("_provideDocumentRangeSemanticTokensLegend",((e,...t)=>p(void 0,void 0,void 0,(function*(){const[i,o]=t;(0,l.p_)(i instanceof s.o);const a=e.get(r.q).getModel(i);if(!a)return;const{documentRangeSemanticTokensProvider:c}=e.get(g.p),h=w(c,a);if(0===h.length)return;if(1===h.length)return h[0].getLegend();if(!o||!u.e.isIRange(o))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),h[0].getLegend();const d=yield S(c,a,u.e.lift(o),n.T.None);return d?d.provider.getLegend():void 0})))),a.P.registerCommand("_provideDocumentRangeSemanticTokens",((e,...t)=>p(void 0,void 0,void 0,(function*(){const[i,o]=t;(0,l.p_)(i instanceof s.o),(0,l.p_)(u.e.isIRange(o));const a=e.get(r.q).getModel(i);if(!a)return;const{documentRangeSemanticTokensProvider:c}=e.get(g.p),h=yield S(c,a,u.e.lift(o),n.T.None);return h&&h.tokens?d({id:0,type:"full",data:h.tokens.data}):void 0}))))},44408:(e,t,i)=>{"use strict";i.d(t,{e:()=>n,t:()=>o});const n="editor.semanticHighlighting";function o(e,t,i){var o;const s=null===(o=i.getValue(n,{overrideIdentifier:e.getLanguageId(),resource:e.uri}))||void 0===o?void 0:o.enabled;return"boolean"==typeof s?s:t.getColorTheme().semanticHighlighting}},79694:(e,t,i)=>{"use strict";i.d(t,{x:()=>r});var n=i(91741),o=i(50187),s=i(24314);class r{provideSelectionRanges(e,t){return i=this,n=void 0,s=function*(){const i=[];for(const n of t){const t=[];i.push(t);const o=new Map;yield new Promise((t=>r._bracketsRightYield(t,0,e,n,o))),yield new Promise((i=>r._bracketsLeftYield(i,0,e,n,o,t)))}return i},new((o=void 0)||(o=Promise))((function(e,t){function r(e){try{l(s.next(e))}catch(e){t(e)}}function a(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof o?i:new o((function(e){e(i)}))).then(r,a)}l((s=s.apply(i,n||[])).next())}));var i,n,o,s}static _bracketsRightYield(e,t,i,o,s){const a=new Map,l=Date.now();for(;;){if(t>=r._maxRounds){e();break}if(!o){e();break}const c=i.bracketPairs.findNextBracket(o);if(!c){e();break}if(Date.now()-l>r._maxDuration){setTimeout((()=>r._bracketsRightYield(e,t+1,i,o,s)));break}if(c.bracketInfo.isOpeningBracket){const e=c.bracketInfo.bracketText,t=a.has(e)?a.get(e):0;a.set(e,t+1)}else{const e=c.bracketInfo.getOpeningBrackets()[0].bracketText;let t=a.has(e)?a.get(e):0;if(t-=1,a.set(e,Math.max(0,t)),t<0){let t=s.get(e);t||(t=new n.S,s.set(e,t)),t.push(c.range)}}o=c.range.getEndPosition()}}static _bracketsLeftYield(e,t,i,n,o,a){const l=new Map,c=Date.now();for(;;){if(t>=r._maxRounds&&0===o.size){e();break}if(!n){e();break}const h=i.bracketPairs.findPrevBracket(n);if(!h){e();break}if(Date.now()-c>r._maxDuration){setTimeout((()=>r._bracketsLeftYield(e,t+1,i,n,o,a)));break}if(h.bracketInfo.isOpeningBracket){const e=h.bracketInfo.bracketText;let t=l.has(e)?l.get(e):0;if(t-=1,l.set(e,Math.max(0,t)),t<0){const t=o.get(e);if(t){const n=t.shift();0===t.size&&o.delete(e);const l=s.e.fromPositions(h.range.getEndPosition(),n.getStartPosition()),c=s.e.fromPositions(h.range.getStartPosition(),n.getEndPosition());a.push({range:l}),a.push({range:c}),r._addBracketLeading(i,c,a)}}}else{const e=h.bracketInfo.getOpeningBrackets()[0].bracketText,t=l.has(e)?l.get(e):0;l.set(e,t+1)}n=h.range.getStartPosition()}}static _addBracketLeading(e,t,i){if(t.startLineNumber===t.endLineNumber)return;const n=t.startLineNumber,r=e.getLineFirstNonWhitespaceColumn(n);0!==r&&r!==t.startColumn&&(i.push({range:s.e.fromPositions(new o.L(n,r),t.getEndPosition())}),i.push({range:s.e.fromPositions(new o.L(n,1),t.getEndPosition())}));const a=n-1;if(a>0){const n=e.getLineFirstNonWhitespaceColumn(a);n===t.startColumn&&n!==e.getLineLastNonWhitespaceColumn(a)&&(i.push({range:s.e.fromPositions(new o.L(a,n),t.getEndPosition())}),i.push({range:s.e.fromPositions(new o.L(a,1),t.getEndPosition())}))}}}r._maxDuration=30,r._maxRounds=2},102:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SmartSelectController:()=>S,provideSelectionRanges:()=>E});var n=i(9488),o=i(71050),s=i(17301),r=i(16830),a=i(50187),l=i(24314),c=i(3860),h=i(29102),d=i(79694),u=i(97295);class g{provideSelectionRanges(e,t){const i=[];for(const n of t){const t=[];i.push(t),this._addInWordRanges(t,e,n),this._addWordRanges(t,e,n),this._addWhitespaceLine(t,e,n),t.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){const n=t.getWordAtPosition(i);if(!n)return;const{word:o,startColumn:s}=n,r=i.column-s;let a=r,c=r,h=0;for(;a>=0;a--){const e=o.charCodeAt(a);if(a!==r&&(95===e||45===e))break;if((0,u.mK)(e)&&(0,u.df)(h))break;h=e}for(a+=1;c0&&0===t.getLineFirstNonWhitespaceColumn(i.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(i.lineNumber)&&e.push({range:new l.e(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}var p=i(63580),m=i(84144),f=i(94565),_=i(71922),v=i(88216),b=i(98401),C=i(70666),y=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class w{constructor(e,t){this.index=e,this.ranges=t}mov(e){const t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;const i=new w(t,this.ranges);return i.ranges[t].equalsRange(this.ranges[this.index])?i.mov(e):i}}let S=class e{static get(t){return t.getContribution(e.ID)}constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}dispose(){var e;null===(e=this._selectionListener)||void 0===e||e.dispose()}run(e){return y(this,void 0,void 0,(function*(){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),i=this._editor.getModel();if(this._state||(yield E(this._languageFeaturesService.selectionRangeProvider,i,t.map((e=>e.getPosition())),this._editor.getOption(108),o.T.None).then((e=>{var i;if(n.Of(e)&&e.length===t.length&&this._editor.hasModel()&&n.fS(this._editor.getSelections(),t,((e,t)=>e.equalsSelection(t)))){for(let i=0;ie.containsPosition(t[i].getStartPosition())&&e.containsPosition(t[i].getEndPosition()))),e[i].unshift(t[i]);this._state=e.map((e=>new w(0,e))),null===(i=this._selectionListener)||void 0===i||i.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition((()=>{var e;this._ignoreSelection||(null===(e=this._selectionListener)||void 0===e||e.dispose(),this._state=void 0)}))}}))),!this._state)return;this._state=this._state.map((t=>t.mov(e)));const s=this._state.map((e=>c.Y.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition())));this._ignoreSelection=!0;try{this._editor.setSelections(s)}finally{this._ignoreSelection=!1}}))}};var k,x;S.ID="editor.contrib.smartSelectController",S=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(k=1,x=_.p,function(e,t){x(e,t,k)})],S);class L extends r.R6{constructor(e,t){super(t),this._forward=e}run(e,t){return y(this,void 0,void 0,(function*(){const e=S.get(t);e&&(yield e.run(this._forward))}))}}function E(e,t,i,o,r){return y(this,void 0,void 0,(function*(){const c=e.all(t).concat(new g);1===c.length&&c.unshift(new d.x);const h=[],u=[];for(const e of c)h.push(Promise.resolve(e.provideSelectionRanges(t,i,r)).then((e=>{if(n.Of(e)&&e.length===i.length)for(let t=0;t{if(0===e.length)return[];e.sort(((e,t)=>a.L.isBefore(e.getStartPosition(),t.getStartPosition())?1:a.L.isBefore(t.getStartPosition(),e.getStartPosition())||a.L.isBefore(e.getEndPosition(),t.getEndPosition())?-1:a.L.isBefore(t.getEndPosition(),e.getEndPosition())?1:0));const i=[];let n;for(const t of e)(!n||l.e.containsRange(t,n)&&!l.e.equalsRange(t,n))&&(i.push(t),n=t);if(!o.selectLeadingAndTrailingWhitespace)return i;const s=[i[0]];for(let e=1;e{"use strict";i.r(t),i.d(t,{SnippetController2:()=>_});var n=i(5976),o=i(98401),s=i(16830),r=i(50187),a=i(29102),l=i(51381),c=i(71922),h=i(55621),d=i(63580),u=i(93983),g=i(43557),p=i(29561),m=function(e,t){return function(i,n){t(i,n,e)}};const f={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let _=class e{static get(t){return t.getContribution(e.ID)}constructor(t,i,o,s,r){this._editor=t,this._logService=i,this._languageFeaturesService=o,this._languageConfigurationService=r,this._snippetListener=new n.SL,this._modelVersionId=-1,this._inSnippet=e.InSnippetMode.bindTo(s),this._hasNextTabstop=e.HasNextTabstop.bindTo(s),this._hasPrevTabstop=e.HasPrevTabstop.bindTo(s)}dispose(){var e;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),null===(e=this._session)||void 0===e||e.dispose(),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,void 0===t?f:Object.assign(Object.assign({},f),t))}catch(t){this.cancel(),this._logService.error(t),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"")}}_doInsert(e,t){var i;if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&"string"!=typeof e&&this.cancel(),this._session?((0,o.p_)("string"==typeof e),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new p.l(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),null===(i=this._session)||void 0===i?void 0:i.hasChoice){this._choiceCompletionItemProvider={provideCompletionItems:(e,t)=>{if(!this._session||e!==this._editor.getModel()||!r.L.equals(this._editor.getPosition(),t))return;const{activeChoice:i}=this._session;if(!i||0===i.choice.options.length)return;const n=e.getValueInRange(i.range),o=Boolean(i.choice.options.find((e=>e.value===n))),s=[];for(let e=0;ee.isFlush&&this.cancel()))),this._snippetListener.add(this._editor.onDidChangeModel((()=>this.cancel()))),this._snippetListener.add(this._editor.onDidChangeCursorSelection((()=>this._updateState())))}}_updateState(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){if(!this._session||!this._editor.hasModel())return void(this._currentChoice=void 0);const{activeChoice:e}=this._session;e&&this._choiceCompletionItemProvider?this._currentChoice!==e.choice&&(this._currentChoice=e.choice,queueMicrotask((()=>{(0,h.i5)(this._editor,this._choiceCompletionItemProvider)}))):this._currentChoice=void 0}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){var t;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,null===(t=this._session)||void 0===t||t.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){var e;null===(e=this._session)||void 0===e||e.prev(),this._updateState()}next(){var e;null===(e=this._session)||void 0===e||e.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};_.ID="snippetController2",_.InSnippetMode=new u.uy("inSnippetMode",!1,(0,d.NC)("inSnippetMode","Whether the editor in current in snippet mode")),_.HasNextTabstop=new u.uy("hasNextTabstop",!1,(0,d.NC)("hasNextTabstop","Whether there is a next tab stop when in snippet mode")),_.HasPrevTabstop=new u.uy("hasPrevTabstop",!1,(0,d.NC)("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode")),_=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([m(1,g.VZ),m(2,c.p),m(3,u.i6),m(4,l.c_)],_),(0,s._K)(_.ID,_,4);const v=s._l.bindToContribution(_.get);(0,s.fK)(new v({id:"jumpToNextSnippetPlaceholder",precondition:u.Ao.and(_.InSnippetMode,_.HasNextTabstop),handler:e=>e.next(),kbOpts:{weight:130,kbExpr:a.u.editorTextFocus,primary:2}})),(0,s.fK)(new v({id:"jumpToPrevSnippetPlaceholder",precondition:u.Ao.and(_.InSnippetMode,_.HasPrevTabstop),handler:e=>e.prev(),kbOpts:{weight:130,kbExpr:a.u.editorTextFocus,primary:1026}})),(0,s.fK)(new v({id:"leaveSnippet",precondition:_.InSnippetMode,handler:e=>e.cancel(!0),kbOpts:{weight:130,kbExpr:a.u.editorTextFocus,primary:9,secondary:[1033]}})),(0,s.fK)(new v({id:"acceptSnippet",precondition:_.InSnippetMode,handler:e=>e.finish()}))},35084:(e,t,i)=>{"use strict";i.d(t,{Lv:()=>l,Vm:()=>a,Yj:()=>p,xv:()=>s,y1:()=>g});class n{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t,i=0,o=this.value.charCodeAt(e);if(t=n._table[o],"number"==typeof t)return this.pos+=1,{type:t,pos:e,len:1};if(n.isDigitCharacter(o)){t=8;do{i+=1,o=this.value.charCodeAt(e+i)}while(n.isDigitCharacter(o));return this.pos+=i,{type:t,pos:e,len:i}}if(n.isVariableCharacter(o)){t=9;do{o=this.value.charCodeAt(e+ ++i)}while(n.isVariableCharacter(o)||n.isDigitCharacter(o));return this.pos+=i,{type:t,pos:e,len:i}}t=10;do{i+=1,o=this.value.charCodeAt(e+i)}while(!isNaN(o)&&void 0===n._table[o]&&!n.isDigitCharacter(o)&&!n.isVariableCharacter(o));return this.pos+=i,{type:t,pos:e,len:i}}}n._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class o{constructor(){this._children=[]}appendChild(e){return e instanceof s&&this._children[this._children.length-1]instanceof s?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),o=i.children.slice(0);o.splice(n,1,...t),i._children=o,function e(t,i){for(const n of t)n.parent=i,e(n.children,n)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof g)return e;e=e.parent}}toString(){return this.children.reduce(((e,t)=>e+t.toString()),"")}len(){return 0}}class s extends o{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new s(this.value)}}class r extends o{}class a extends r{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return 0===this.index}get choice(){return 1===this._children.length&&this._children[0]instanceof l?this._children[0]:void 0}clone(){const e=new a(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}class l extends o{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof s&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new l;return this.options.forEach(e.appendChild,e),e}}class c extends o{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,(function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!i&&this._children.some((e=>e instanceof h&&Boolean(e.elseValue)))&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof h){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new c;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map((e=>e.clone())),e}}class h extends o{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":"camelcase"===this.shorthandName?e?this._toCamelCase(e):"":Boolean(e)&&"string"==typeof this.ifValue?this.ifValue:Boolean(e)||"string"!=typeof this.elseValue?e||"":this.elseValue}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((e=>e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(((e,t)=>0===t?e.charAt(0).toLowerCase()+e.substr(1):e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}clone(){return new h(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class d extends r{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new s(t)],!0)}clone(){const e=new d(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}function u(e,t){const i=[...e];for(;i.length>0;){const e=i.shift();if(!t(e))break;i.unshift(...e.children)}}class g extends o{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk((function(i){return i instanceof a&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0))),i?t:-1}fullLen(e){let t=0;return u([e],(e=>(t+=e.len(),!0))),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof a&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk((t=>(t instanceof d&&t.resolve(e)&&(this._placeholders=void 0),!0))),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new g;return this._children=this.children.map((e=>e.clone())),e}walk(e){u(this.children,e)}}class p{constructor(){this._scanner=new n,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new g;return this.parseFragment(e,n),this.ensureFinalTabstop(n,null!=i&&i,null!=t&&t),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,o=[];t.walk((e=>(e instanceof a&&(e.isFinalTabstop?n.set(0,void 0):!n.has(e.index)&&e.children.length>0?n.set(e.index,e.children):o.push(e)),!0)));const s=(e,i)=>{const o=n.get(e.index);if(!o)return;const r=new a(e.index);r.transform=e.transform;for(const e of o){const t=e.clone();r.appendChild(t),t instanceof a&&n.has(t.index)&&!i.has(t.index)&&(i.add(t.index),s(t,i),i.delete(t.index))}t.replace(e,[r])},r=new Set;for(const e of o)s(e,r);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find((e=>0===e.index))||e.appendChild(new a(0)))}_accept(e,t){if(void 0===e||this._token.type===e){const e=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(14===this._token.type)return!1;if(5===this._token.type){const e=this._scanner.next();if(0!==e.type&&4!==e.type&&5!==e.type)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new s(t)),!0)}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new a(Number(t)):new d(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const n=new a(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new s("${"+t+":")),n.children.forEach(e.appendChild,e),!0}else{if(!(n.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);{const t=new l;for(;;){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(n.appendChild(t),this._accept(4)))return e.appendChild(n),!0}return this._backTo(i),!1}}}}_parseChoiceElement(e){const t=this._token,i=[];for(;2!==this._token.type&&7!==this._token.type;){let e;if(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0),!e)return this._backTo(t),!1;i.push(e)}return 0===i.length?(this._backTo(t),!1):(e.appendChild(new s(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const n=new d(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new s("${"+t+":")),n.children.forEach(e.appendChild,e),!0}}_parseTransform(e){const t=new c;let i="",n="";for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(6,!0)||e,i+=e;else{if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}}for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new s(e));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(14===this._token.type)return!1;n+=this._accept(void 0,!0)}try{t.regexp=new RegExp(i,n)}catch(e){return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(!n)return this._backTo(t),!1;if(!i)return e.appendChild(new h(Number(n))),!0;if(this._accept(4))return e.appendChild(new h(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){const i=this._accept(9,!0);return i&&this._accept(4)?(e.appendChild(new h(Number(n),i)),!0):(this._backTo(t),!1)}if(this._accept(11)){const t=this._until(4);if(t)return e.appendChild(new h(Number(n),void 0,t,void 0)),!0}else if(this._accept(12)){const t=this._until(4);if(t)return e.appendChild(new h(Number(n),void 0,void 0,t)),!0}else if(this._accept(13)){const t=this._until(1);if(t){const i=this._until(4);if(i)return e.appendChild(new h(Number(n),void 0,t,i)),!0}}else{const t=this._until(4);if(t)return e.appendChild(new h(Number(n),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return 14!==this._token.type&&(e.appendChild(new s(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}},29561:(e,t,i)=>{"use strict";i.d(t,{l:()=>M});var n=i(9488),o=i(5976),s=i(97295),r=i(69386),a=i(24314),l=i(3860),c=i(51381),h=i(1231),d=i(44349),u=i(40382),g=i(35084),p=i(15527),m=i(1432);function f(e,t=m.ED){return(0,p.oP)(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}Object.create(null);var _=i(88721),v=i(95935),b=i(98e3),C=i(63580);Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,CURRENT_TIMEZONE_OFFSET:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,CURSOR_INDEX:!0,CURSOR_NUMBER:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0});class y{constructor(e){this._delegates=e}resolve(e){for(const t of this._delegates){const i=t.resolve(e);if(void 0!==i)return i}}}class w{constructor(e,t,i,n){this._model=e,this._selection=t,this._selectionIdx=i,this._overtypingCapturer=n}resolve(e){const{name:t}=e;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){let t=this._model.getValueInRange(this._selection)||void 0,i=this._selection.startLineNumber!==this._selection.endLineNumber;if(!t&&this._overtypingCapturer){const e=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);e&&(t=e.value,i=e.multiline)}if(t&&i&&e.snippet){const i=this._model.getLineContent(this._selection.startLineNumber),n=(0,s.V8)(i,0,this._selection.startColumn-1);let o=n;e.snippet.walk((t=>t!==e&&(t instanceof g.xv&&(o=(0,s.V8)((0,s.uq)(t.value).pop())),!0)));const r=(0,s.Mh)(o,n);t=t.replace(/(\r\n|\r|\n)(.*)/g,((e,t,i)=>`${t}${o.substr(r)}${i}`))}return t}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){const e=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return e&&e.word||void 0}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):"CURSOR_INDEX"===t?String(this._selectionIdx):"CURSOR_NUMBER"===t?String(this._selectionIdx+1):void 0}}class S{constructor(e,t){this._labelService=e,this._model=t}resolve(e){const{name:t}=e;if("TM_FILENAME"===t)return _.EZ(this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){const e=_.EZ(this._model.uri.fsPath),t=e.lastIndexOf(".");return t<=0?e:e.slice(0,t)}return"TM_DIRECTORY"===t?"."===_.XX(this._model.uri.fsPath)?"":this._labelService.getUriLabel((0,v.XX)(this._model.uri)):"TM_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri):"RELATIVE_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0}):void 0}}class k{constructor(e,t,i,n){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=i,this._spread=n}resolve(e){if("CLIPBOARD"!==e.name)return;const t=this._readClipboardText();if(t){if(this._spread){const e=t.split(/\r\n|\n|\r/).filter((e=>!(0,s.m5)(e)));if(e.length===this._selectionCount)return e[this._selectionIdx]}return t}}}let x=class{constructor(e,t,i){this._model=e,this._selection=t,this._languageConfigurationService=i}resolve(e){const{name:t}=e,i=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),n=this._languageConfigurationService.getLanguageConfiguration(i).comments;if(n)return"LINE_COMMENT"===t?n.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?n.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&n.blockCommentEndToken||void 0}};var L,E;x=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(L=2,E=c.c_,function(e,t){E(e,t,L)})],x);class N{constructor(){this._date=new Date}resolve(e){const{name:t}=e;if("CURRENT_YEAR"===t)return String(this._date.getFullYear());if("CURRENT_YEAR_SHORT"===t)return String(this._date.getFullYear()).slice(-2);if("CURRENT_MONTH"===t)return String(this._date.getMonth().valueOf()+1).padStart(2,"0");if("CURRENT_DATE"===t)return String(this._date.getDate().valueOf()).padStart(2,"0");if("CURRENT_HOUR"===t)return String(this._date.getHours().valueOf()).padStart(2,"0");if("CURRENT_MINUTE"===t)return String(this._date.getMinutes().valueOf()).padStart(2,"0");if("CURRENT_SECOND"===t)return String(this._date.getSeconds().valueOf()).padStart(2,"0");if("CURRENT_DAY_NAME"===t)return N.dayNames[this._date.getDay()];if("CURRENT_DAY_NAME_SHORT"===t)return N.dayNamesShort[this._date.getDay()];if("CURRENT_MONTH_NAME"===t)return N.monthNames[this._date.getMonth()];if("CURRENT_MONTH_NAME_SHORT"===t)return N.monthNamesShort[this._date.getMonth()];if("CURRENT_SECONDS_UNIX"===t)return String(Math.floor(this._date.getTime()/1e3));if("CURRENT_TIMEZONE_OFFSET"===t){const e=this._date.getTimezoneOffset(),t=e>0?"-":"+",i=Math.trunc(Math.abs(e/60)),n=i<10?"0"+i:i,o=Math.abs(e)-60*i;return t+n+":"+(o<10?"0"+o:o)}}}N.dayNames=[C.NC("Sunday","Sunday"),C.NC("Monday","Monday"),C.NC("Tuesday","Tuesday"),C.NC("Wednesday","Wednesday"),C.NC("Thursday","Thursday"),C.NC("Friday","Friday"),C.NC("Saturday","Saturday")],N.dayNamesShort=[C.NC("SundayShort","Sun"),C.NC("MondayShort","Mon"),C.NC("TuesdayShort","Tue"),C.NC("WednesdayShort","Wed"),C.NC("ThursdayShort","Thu"),C.NC("FridayShort","Fri"),C.NC("SaturdayShort","Sat")],N.monthNames=[C.NC("January","January"),C.NC("February","February"),C.NC("March","March"),C.NC("April","April"),C.NC("May","May"),C.NC("June","June"),C.NC("July","July"),C.NC("August","August"),C.NC("September","September"),C.NC("October","October"),C.NC("November","November"),C.NC("December","December")],N.monthNamesShort=[C.NC("JanuaryShort","Jan"),C.NC("FebruaryShort","Feb"),C.NC("MarchShort","Mar"),C.NC("AprilShort","Apr"),C.NC("MayShort","May"),C.NC("JuneShort","Jun"),C.NC("JulyShort","Jul"),C.NC("AugustShort","Aug"),C.NC("SeptemberShort","Sep"),C.NC("OctoberShort","Oct"),C.NC("NovemberShort","Nov"),C.NC("DecemberShort","Dec")];class D{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;const t=(0,u.uT)(this._workspaceService.getWorkspace());return(0,u.c$)(t)?void 0:"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(t):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(t):void 0}_resolveWorkspaceName(e){if((0,u.eb)(e))return _.EZ(e.uri.path);let t=_.EZ(e.configPath.path);return t.endsWith(u.A6)&&(t=t.substr(0,t.length-u.A6.length-1)),t}_resoveWorkspacePath(e){if((0,u.eb)(e))return f(e.uri.fsPath);const t=_.EZ(e.configPath.path);let i=e.configPath.fsPath;return i.endsWith(t)&&(i=i.substr(0,i.length-t.length-1)),i?f(i):"/"}}class T{resolve(e){const{name:t}=e;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):"UUID"===t?(0,b.R)():void 0}}class I{constructor(e,t,i){this._editor=e,this._snippet=t,this._snippetLineLeadingWhitespace=i,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=(0,n.vM)(t.placeholders,g.Vm.compareByIndex),this._placeholderGroupsIdx=-1}initialize(e){this._offset=e.newPosition}dispose(){this._placeholderDecorations&&this._editor.removeDecorations([...this._placeholderDecorations.values()]),this._placeholderGroups.length=0}_initDecorations(){if(-1===this._offset)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const e=this._editor.getModel();this._editor.changeDecorations((t=>{for(const i of this._snippet.placeholders){const n=this._snippet.offset(i),o=this._snippet.fullLen(i),s=a.e.fromPositions(e.getPositionAt(this._offset+n),e.getPositionAt(this._offset+n+o)),r=i.isFinalTabstop?I._decor.inactiveFinal:I._decor.inactive,l=t.addDecoration(s,r);this._placeholderDecorations.set(i,l)}}))}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){const e=[];for(const t of this._placeholderGroups[this._placeholderGroupsIdx])if(t.transform){const i=this._placeholderDecorations.get(t),n=this._editor.getModel().getDecorationRange(i),o=this._editor.getModel().getValueInRange(n),s=t.transform.resolve(o).split(/\r\n|\r|\n/);for(let e=1;e0&&this._editor.executeEdits("snippet.placeholderTransform",e)}let t=!1;!0===e&&this._placeholderGroupsIdx0&&(this._placeholderGroupsIdx-=1,t=!0);const i=this._editor.getModel().changeDecorations((e=>{const i=new Set,n=[];for(const o of this._placeholderGroups[this._placeholderGroupsIdx]){const s=this._placeholderDecorations.get(o),r=this._editor.getModel().getDecorationRange(s);n.push(new l.Y(r.startLineNumber,r.startColumn,r.endLineNumber,r.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(o),e.changeDecorationOptions(s,o.isFinalTabstop?I._decor.activeFinal:I._decor.active),i.add(o);for(const t of this._snippet.enclosingPlaceholders(o)){const n=this._placeholderDecorations.get(t);e.changeDecorationOptions(n,t.isFinalTabstop?I._decor.activeFinal:I._decor.active),i.add(t)}}for(const[t,n]of this._placeholderDecorations)i.has(t)||e.changeDecorationOptions(n,t.isFinalTabstop?I._decor.inactiveFinal:I._decor.inactive);return n}));return t?this.move(e):null!=i?i:[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof g.Vm){const e=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(e).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){if(0===this._snippet.placeholders.length)return!0;if(1===this._snippet.placeholders.length){const[e]=this._snippet.placeholders;if(e.isFinalTabstop&&this._snippet.rightMostDescendant===e)return!0}return!1}computePossibleSelections(){const e=new Map;for(const t of this._placeholderGroups){let i;for(const n of t){if(n.isFinalTabstop)break;i||(i=[],e.set(n.index,i));const t=this._placeholderDecorations.get(n),o=this._editor.getModel().getDecorationRange(t);if(!o){e.delete(n.index);break}i.push(o)}}return e}get activeChoice(){if(!this._placeholderDecorations)return;const e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!(null==e?void 0:e.choice))return;const t=this._placeholderDecorations.get(e);if(!t)return;const i=this._editor.getModel().getDecorationRange(t);return i?{range:i,choice:e.choice}:void 0}get hasChoice(){let e=!1;return this._snippet.walk((t=>(e=t instanceof g.Lv,!e))),e}merge(e){const t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations((i=>{for(const n of this._placeholderGroups[this._placeholderGroupsIdx]){const o=e.shift();console.assert(-1!==o._offset),console.assert(!o._placeholderDecorations);const s=o._snippet.placeholderInfo.last.index;for(const e of o._snippet.placeholderInfo.all)e.isFinalTabstop?e.index=n.index+(s+1)/this._nestingLevel:e.index=n.index+e.index/this._nestingLevel;this._snippet.replace(n,o._snippet.children);const r=this._placeholderDecorations.get(n);i.removeDecoration(r),this._placeholderDecorations.delete(n);for(const e of o._snippet.placeholders){const n=o._snippet.offset(e),s=o._snippet.fullLen(e),r=a.e.fromPositions(t.getPositionAt(o._offset+n),t.getPositionAt(o._offset+n+s)),l=i.addDecoration(r,I._decor.inactive);this._placeholderDecorations.set(e,l)}}this._placeholderGroups=(0,n.vM)(this._snippet.placeholders,g.Vm.compareByIndex)}))}}I._decor={active:h.qx.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:h.qx.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:h.qx.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:h.qx.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};const A={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let M=class e{static adjustWhitespace(e,t,i,n,o){const r=e.getLineContent(t.lineNumber),a=(0,s.V8)(r,0,t.column-1);let l;return n.walk((t=>{if(!(t instanceof g.xv)||t.parent instanceof g.Lv)return!0;if(o&&!o.has(t))return!0;const s=t.value.split(/\r\n|\r|\n/);if(i){const i=n.offset(t);if(0===i)s[0]=e.normalizeIndentation(s[0]);else{l=null!=l?l:n.toString();const t=l.charCodeAt(i-1);10!==t&&13!==t||(s[0]=e.normalizeIndentation(a+s[0]))}for(let t=1;te.get(u.ec))),b=t.invokeWithinContext((e=>new S(e.get(d.e),_))),C=()=>c,L=_.getValueInRange(e.adjustSelection(_,t.getSelection(),n,0)),E=_.getValueInRange(e.adjustSelection(_,t.getSelection(),0,o)),A=_.getLineFirstNonWhitespaceColumn(t.getSelection().positionLineNumber),M=t.getSelections().map(((e,t)=>({selection:e,idx:t}))).sort(((e,t)=>a.e.compareRangesUsingStarts(e.selection,t.selection)));for(const{selection:a,idx:c}of M){let d=e.adjustSelection(_,a,n,0),u=e.adjustSelection(_,a,0,o);L!==_.getValueInRange(d)&&(d=a),E!==_.getValueInRange(u)&&(u=a);const S=a.setStartPosition(d.startLineNumber,d.startColumn).setEndPosition(u.endLineNumber,u.endColumn),R=(new g.Yj).parse(i,!0,s),O=S.getStartPosition(),P=e.adjustWhitespace(_,O,l||c>0&&A!==_.getLineFirstNonWhitespaceColumn(a.positionLineNumber),R);R.resolveVariables(new y([b,new k(C,c,M.length,"spread"===t.getOption(76)),new w(_,a,c,h),new x(_,a,p),new N,new D(v),new T])),m[c]=r.h.replace(S,R.toString()),m[c].identifier={major:c,minor:0},m[c]._isTracked=!0,f[c]=new I(t,R,P)}return{edits:m,snippets:f}}static createEditsAndSnippetsFromEdits(t,i,n,o,s,l,c){if(!t.hasModel()||0===i.length)return{edits:[],snippets:[]};const h=[],p=t.getModel(),m=new g.Yj,f=new g.y1,_=new y([t.invokeWithinContext((e=>new S(e.get(d.e),p))),new k((()=>s),0,t.getSelections().length,"spread"===t.getOption(76)),new w(p,t.getSelection(),0,l),new x(p,t.getSelection(),c),new N,new D(t.invokeWithinContext((e=>e.get(u.ec)))),new T]);i=i.sort(((e,t)=>a.e.compareRangesUsingStarts(e.range,t.range)));let v=0;for(let t=0;t0){const e=i[t-1].range,o=a.e.fromPositions(e.getEndPosition(),n.getStartPosition()),s=new g.xv(p.getValueInRange(o));f.appendChild(s),v+=s.value.length}const s=m.parseFragment(o,f);e.adjustWhitespace(p,n.getStartPosition(),!0,f,new Set(s)),f.resolveVariables(_);const l=f.toString(),c=l.slice(v);v=l.length;const d=r.h.replace(n,c);d.identifier={major:t,minor:0},d._isTracked=!0,h.push(d)}return m.ensureFinalTabstop(f,n,!0),{edits:h,snippets:[new I(t,f,"")]}}constructor(e,t,i=A,n){this._editor=e,this._template=t,this._options=i,this._languageConfigurationService=n,this._templateMerges=[],this._snippets=[]}dispose(){(0,o.B9)(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:t,snippets:i}="string"==typeof this._template?e.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):e.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService);this._snippets=i,this._editor.executeEdits("snippet",t,(e=>{const t=e.filter((e=>!!e.identifier));for(let e=0;el.Y.fromPositions(e.range.getEndPosition())))})),this._editor.revealRange(this._editor.getSelections()[0])}merge(t,i=A){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,t]);const{edits:n,snippets:o}=e.createEditsAndSnippetsFromSelections(this._editor,t,i.overwriteBefore,i.overwriteAfter,!0,i.adjustWhitespace,i.clipboardText,i.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",n,(e=>{const t=e.filter((e=>!!e.identifier));for(let e=0;el.Y.fromPositions(e.range.getEndPosition())))}))}next(){const e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){const e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){const t=[];for(const i of this._snippets){const n=i.move(e);t.push(...n)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const e=this._editor.getSelections();if(e.length{e.push(...n.get(t))}))}e.sort(a.e.compareRangesUsingStarts);for(const[i,n]of t)if(n.length===e.length){n.sort(a.e.compareRangesUsingStarts);for(let o=0;o0}};M=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(3,c.c_)],M)},10544:(e,t,i)=>{"use strict";i.r(t);var n=i(16830),o=i(63580);const s=Object.freeze({View:{value:(0,o.NC)("view","View"),original:"View"},Help:{value:(0,o.NC)("help","Help"),original:"Help"},Test:{value:(0,o.NC)("test","Test"),original:"Test"},File:{value:(0,o.NC)("file","File"),original:"File"},Preferences:{value:(0,o.NC)("preferences","Preferences"),original:"Preferences"},Developer:{value:(0,o.NC)({key:"developer",comment:["A developer on Code itself or someone diagnosing issues in Code"]},"Developer"),original:"Developer"}});var r,a=i(84144),l=i(33108),c=i(93983),h=i(29102),d=i(5976),u=i(71922),g=i(50072),p=i(91557),m=i(92550),f=i(50187),_=i(7448),v=i(84527),b=i(65321);class C{constructor(e,t){this.lineNumbers=e,this.lastLineRelativePosition=t}}const y=null===(r=window.trustedTypes)||void 0===r?void 0:r.createPolicy("stickyScrollViewLayer",{createHTML:e=>e});class w extends d.JT{constructor(e){super(),this._editor=e,this._rootDomNode=document.createElement("div"),this._disposableStore=this._register(new d.SL),this._lineNumbers=[],this._lastLineRelativePosition=0,this._hoverOnLine=-1,this._hoverOnColumn=-1,this._layoutInfo=this._editor.getLayoutInfo(),this._rootDomNode=document.createElement("div"),this._rootDomNode.className="sticky-widget",this._rootDomNode.classList.toggle("peek",e instanceof v.H),this._rootDomNode.style.width=this._layoutInfo.width-this._layoutInfo.minimap.minimapCanvasOuterWidth-this._layoutInfo.verticalScrollbarWidth+"px"}get hoverOnLine(){return this._hoverOnLine}get hoverOnColumn(){return this._hoverOnColumn}get lineNumbers(){return this._lineNumbers}getCurrentLines(){return this._lineNumbers}setState(e){b.PO(this._rootDomNode),this._disposableStore.clear(),this._lineNumbers.length=0;const t=this._editor.getOption(64);e.lineNumbers.length*t+e.lastLineRelativePosition>0?(this._lastLineRelativePosition=e.lastLineRelativePosition,this._lineNumbers=e.lineNumbers):(this._lastLineRelativePosition=0,this._lineNumbers=[]),this._renderRootNode()}_renderRootNode(){if(!this._editor._getViewModel())return;for(const[e,t]of this._lineNumbers.entries()){const i=this._renderChildNode(e,t);this._rootDomNode.appendChild(i)}const e=this._editor.getOption(64),t=this._lineNumbers.length*e+this._lastLineRelativePosition;this._rootDomNode.style.display=t>0?"block":"none",this._rootDomNode.style.height=t.toString()+"px",this._rootDomNode.setAttribute("role","list"),"left"===this._editor.getOption(70).side&&(this._rootDomNode.style.marginLeft=this._editor.getLayoutInfo().minimap.minimapCanvasOuterWidth+"px")}_renderChildNode(e,t){const i=document.createElement("div"),n=this._editor._getViewModel(),o=n.coordinatesConverter.convertModelPositionToViewPosition(new f.L(t,1)).lineNumber,s=n.getViewLineRenderingData(o),r=this._editor.getLayoutInfo(),a=r.width-r.minimap.minimapCanvasOuterWidth-r.verticalScrollbarWidth,l=this._editor.getOption(70).side,c=this._editor.getOption(64),h=this._editor.getOption(65);let d;try{d=m.Kp.filter(s.inlineDecorations,o,s.minColumn,s.maxColumn)}catch(e){d=[]}const u=new p.IJ(!0,!0,s.content,s.continuesWithWrappedLine,s.isBasicASCII,s.containsRTL,0,s.tokens,d,s.tabSize,s.startVisibleColumn,1,1,1,500,"none",!0,!0,null),v=new g.HT(2e3);let C;(0,p.d1)(u,v),C=y?y.createHTML(v.build()):v.build();const w=document.createElement("span");w.className="sticky-line",w.classList.add(`stickyLine${t}`),w.style.lineHeight=`${c}px`,w.innerHTML=C;const S=document.createElement("span");S.className="sticky-line",S.style.lineHeight=`${c}px`,"left"===l?S.style.width=r.contentLeft-r.minimap.minimapCanvasOuterWidth+"px":"right"===l&&(S.style.width=`${r.contentLeft}px`);const k=document.createElement("span");return 1===h.renderType||3===h.renderType&&t%10==0?k.innerText=t.toString():2===h.renderType&&(k.innerText=Math.abs(t-this._editor.getPosition().lineNumber).toString()),k.className="sticky-line-number",k.style.lineHeight=`${c}px`,k.style.width=`${r.lineNumbersWidth}px`,"left"===l?k.style.paddingLeft=r.lineNumbersLeft-r.minimap.minimapCanvasOuterWidth+"px":"right"===l&&(k.style.paddingLeft=`${r.lineNumbersLeft}px`),S.appendChild(k),this._editor.applyFontInfo(w),this._editor.applyFontInfo(k),i.appendChild(S),i.appendChild(w),i.className="sticky-line-root",i.setAttribute("role","listitem"),i.tabIndex=0,i.style.lineHeight=`${c}px`,i.style.width=`${a}px`,i.style.height=`${c}px`,i.style.zIndex="0",e===this._lineNumbers.length-1&&(i.style.position="relative",i.style.zIndex="-1",i.style.top=this._lastLineRelativePosition+"px"),this._disposableStore.add(b.nm(i,"mouseover",(e=>{if(this._editor.hasModel()){const i=new _.n(e).target.innerText;this._hoverOnLine=t,this._hoverOnColumn=this._editor.getModel().getLineContent(t).indexOf(i)+1||-1}}))),i}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:null}}}var S=i(71050),k=i(15393),x=i(9488),L=i(95935),E=i(4669),N=i(51381),D=i(30335),T=i(8060),I=i(99155),A=i(84990),M=i(17301);class R{constructor(e,t){this.startLineNumber=e,this.endLineNumber=t}}class O{constructor(e,t,i){this.range=e,this.children=t,this.parent=i}}class P{constructor(e,t,i,n){this.uri=e,this.version=t,this.element=i,this.outlineProviderId=n}}var F,B,H=i(53725),V=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},W=function(e,t){return function(i,n){t(i,n,e)}},z=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};!function(e){e.OUTLINE_MODEL="outlineModel",e.FOLDING_PROVIDER_MODEL="foldingProviderModel",e.INDENTATION_MODEL="indentationModel"}(F||(F={})),function(e){e[e.VALID=0]="VALID",e[e.INVALID=1]="INVALID",e[e.CANCELED=2]="CANCELED"}(B||(B={}));let U=class{constructor(e,t,i,n){this._editor=e,this._languageConfigurationService=t,this._languageFeaturesService=i,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=new k.vp(300);const o=new K(i),s=new G(this._editor,i),r=new $(this._editor,t);switch(n){case F.OUTLINE_MODEL:this._modelProviders.push(o),this._modelProviders.push(s),this._modelProviders.push(r);break;case F.FOLDING_PROVIDER_MODEL:this._modelProviders.push(s),this._modelProviders.push(r);break;case F.INDENTATION_MODEL:this._modelProviders.push(r)}this._store=new d.SL}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}update(e,t,i){return z(this,void 0,void 0,(function*(){return this._store.clear(),this._store.add({dispose:()=>{var e;this._cancelModelPromise(),null===(e=this._updateScheduler)||void 0===e||e.cancel()}}),this._cancelModelPromise(),yield this._updateScheduler.trigger((()=>z(this,void 0,void 0,(function*(){for(const n of this._modelProviders){const{statusPromise:o,modelPromise:s}=n.computeStickyModel(e,t,i);this._modelPromise=s;const r=yield o;if(this._modelPromise!==s)return null;switch(r){case B.CANCELED:return this._store.clear(),null;case B.VALID:return n.stickyModel}}return null}))))}))}};U=V([W(1,N.c_),W(2,u.p)],U);class j{constructor(){this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,B.INVALID}computeStickyModel(e,t,i){if(!this.isProviderValid(e))return{statusPromise:this._invalid(),modelPromise:null};const n=(0,k.PG)((i=>this.createModelFromProvider(e,t,i)));return{statusPromise:n.then((n=>this.isModelValid(n)?i.isCancellationRequested?B.CANCELED:(this._stickyModel=this.createStickyModel(e,t,i,n),B.VALID):this._invalid())).then(void 0,(e=>((0,M.dL)(e),B.CANCELED))),modelPromise:n}}isModelValid(e){return!0}isProviderValid(e){return!0}}let K=class extends j{constructor(e){super(),this._languageFeaturesService=e}createModelFromProvider(e,t,i){return D.C3.create(this._languageFeaturesService.documentSymbolProvider,e,i)}createStickyModel(e,t,i,n){var o;const{stickyOutlineElement:s,providerID:r}=this._stickyModelFromOutlineModel(n,null===(o=this._stickyModel)||void 0===o?void 0:o.outlineProviderId);return new P(e.uri,t,s,r)}isModelValid(e){return e&&e.children.size>0}_stickyModelFromOutlineModel(e,t){let i;if(H.$.first(e.children.values())instanceof D.H3){const n=H.$.find(e.children.values(),(e=>e.id===t));if(n)i=n.children;else{let n,o="",s=-1;for(const[t,i]of e.children.entries()){const e=this._findSumOfRangesOfGroup(i);e>s&&(n=i,s=e,o=i.id)}t=o,i=n.children}}else i=e.children;const n=[],o=Array.from(i.values()).sort(((e,t)=>{const i=new R(e.symbol.range.startLineNumber,e.symbol.range.endLineNumber),n=new R(t.symbol.range.startLineNumber,t.symbol.range.endLineNumber);return this._comparator(i,n)}));for(const e of o)n.push(this._stickyModelFromOutlineElement(e,e.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new O(void 0,n,void 0),providerID:t}}_stickyModelFromOutlineElement(e,t){const i=[];for(const n of e.children.values())if(n.symbol.selectionRange.startLineNumber!==n.symbol.range.endLineNumber)if(n.symbol.selectionRange.startLineNumber!==t)i.push(this._stickyModelFromOutlineElement(n,n.symbol.selectionRange.startLineNumber));else for(const e of n.children.values())i.push(this._stickyModelFromOutlineElement(e,n.symbol.selectionRange.startLineNumber));i.sort(((e,t)=>this._comparator(e.range,t.range)));const n=new R(e.symbol.selectionRange.startLineNumber,e.symbol.range.endLineNumber);return new O(n,i,void 0)}_comparator(e,t){return e.startLineNumber!==t.startLineNumber?e.startLineNumber-t.startLineNumber:t.endLineNumber-e.endLineNumber}_findSumOfRangesOfGroup(e){let t=0;for(const i of e.children.values())t+=this._findSumOfRangesOfGroup(i);return e instanceof D.sT?t+e.symbol.range.endLineNumber-e.symbol.selectionRange.startLineNumber:t}};K=V([W(0,u.p)],K);class q extends j{constructor(e){super(),this._foldingLimitReporter=new T.RangesLimitReporter(e)}createStickyModel(e,t,i,n){const o=this._fromFoldingRegions(n);return new P(e.uri,t,o,void 0)}isModelValid(e){return null!==e}_fromFoldingRegions(e){const t=e.length,i=[],n=new O(void 0,[],void 0);for(let o=0;o0}createModelFromProvider(e,t,i){const n=T.FoldingController.getFoldingRangeProviders(this._languageFeaturesService,e);return new I.e(e,n,(()=>this.createModelFromProvider(e,t,i)),this._foldingLimitReporter,void 0).compute(i)}};G=V([W(1,u.p)],G);var Q=function(e,t){return function(i,n){t(i,n,e)}},Y=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class Z{constructor(e,t,i){this.startLineNumber=e,this.endLineNumber=t,this.nestingDepth=i}}let X=class extends d.JT{constructor(e,t,i){super(),this._languageFeaturesService=t,this._languageConfigurationService=i,this._onDidChangeStickyScroll=this._store.add(new E.Q5),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._options=null,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=e,this._sessionStore=new d.SL,this._updateSoon=this._register(new k.pY((()=>this.update()),50)),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(110)&&this.readConfiguration()}))),this.readConfiguration()}dispose(){super.dispose(),this._sessionStore.dispose()}readConfiguration(){this._options=this._editor.getOption(110),this._options.enabled?(this._stickyModelProvider=new U(this._editor,this._languageConfigurationService,this._languageFeaturesService,this._options.defaultModel),this._sessionStore.add(this._editor.onDidChangeModel((()=>this.update()))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas((()=>this.update()))),this._sessionStore.add(this._editor.onDidChangeModelContent((()=>this._updateSoon.schedule()))),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>this.update()))),this.update()):this._sessionStore.clear()}getVersionId(){var e;return null===(e=this._model)||void 0===e?void 0:e.version}update(){var e;return Y(this,void 0,void 0,(function*(){null===(e=this._cts)||void 0===e||e.dispose(!0),this._cts=new S.A,yield this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()}))}updateStickyModel(e){return Y(this,void 0,void 0,(function*(){if(!this._editor.hasModel()||!this._stickyModelProvider)return;const t=this._editor.getModel(),i=t.getVersionId(),n=this._model&&!(0,L.Xy)(this._model.uri,t.uri)?setTimeout((()=>{e.isCancellationRequested||(this._model=new P(t.uri,t.getVersionId(),void 0,void 0),this._onDidChangeStickyScroll.fire())}),75):void 0;this._model=yield this._stickyModelProvider.update(t,i,e),clearTimeout(n)}))}updateIndex(e){return-1===e?e=0:e<0&&(e=-e-2),e}getCandidateStickyLinesIntersectingFromStickyModel(e,t,i,n,o){if(0===t.children.length)return;let s=o;const r=[];for(let e=0;ee-t))),l=this.updateIndex((0,x.ry)(r,e.startLineNumber+n,((e,t)=>e-t)));for(let r=a;r<=l;r++){const a=t.children[r];if(!a)return;if(a.range){const t=a.range.startLineNumber,o=a.range.endLineNumber;e.startLineNumber<=o+1&&t-1<=e.endLineNumber&&t!==s&&(s=t,i.push(new Z(t,o-1,n+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(e,a,i,n+1,t))}else this.getCandidateStickyLinesIntersectingFromStickyModel(e,a,i,n,o)}}getCandidateStickyLinesIntersecting(e){var t,i;if(!(null===(t=this._model)||void 0===t?void 0:t.element))return[];let n=[];this.getCandidateStickyLinesIntersectingFromStickyModel(e,this._model.element,n,0,-1);const o=null===(i=this._editor._getViewModel())||void 0===i?void 0:i.getHiddenAreas();if(o)for(const e of o)n=n.filter((t=>!(t.startLineNumber>=e.startLineNumber&&t.endLineNumber<=e.endLineNumber+1)));return n}};X=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Q(1,u.p),Q(2,N.c_)],X);var J=i(72065),ee=i(5606),te=i(82005),ie=i(24314),ne=i(40184),oe=i(58722),se=i(88191),re=function(e,t){return function(i,n){t(i,n,e)}},ae=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let le=class e extends d.JT{constructor(e,t,i,n,o,s,r){super(),this._editor=e,this._contextMenuService=t,this._languageFeaturesService=i,this._instaService=n,this._contextKeyService=r,this._sessionStore=new d.SL,this._maxStickyLines=Number.MAX_SAFE_INTEGER,this._candidateDefinitionsLength=-1,this._focusedStickyElementIndex=-1,this._enabled=!1,this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1,this._stickyScrollWidget=new w(this._editor),this._stickyLineCandidateProvider=new X(this._editor,i,o),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=new C([],0),this._readConfiguration(),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(110)&&this._readConfiguration()}))),this._register(b.nm(this._stickyScrollWidget.getDomNode(),b.tw.CONTEXT_MENU,(e=>ae(this,void 0,void 0,(function*(){this._onContextMenu(e)}))))),this._stickyScrollFocusedContextKey=h.u.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=h.u.stickyScrollVisible.bindTo(this._contextKeyService);const a=this._register(b.go(this._stickyScrollWidget.getDomNode()));this._register(a.onDidBlur((e=>{const t=this._stickyScrollWidget.getDomNode().clientHeight;!1===this._positionRevealed&&0===t?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()}))),this._register(a.onDidFocus((e=>{this.focus()}))),this._register(this._createClickLinkGesture()),this._register(b.nm(this._stickyScrollWidget.getDomNode(),b.tw.MOUSE_DOWN,(e=>{this._onMouseDown=!0})))}static get(t){return t.getContribution(e.ID)}_disposeFocusStickyScrollStore(){var e;this._stickyScrollFocusedContextKey.set(!1),null===(e=this._focusDisposableStore)||void 0===e||e.dispose(),this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1}focus(){if(this._onMouseDown)return this._onMouseDown=!1,void this._editor.focus();if(!0===this._stickyScrollFocusedContextKey.get())return;this._focused=!0,this._focusDisposableStore=new d.SL,this._stickyScrollFocusedContextKey.set(!0);const e=this._stickyScrollWidget.getDomNode();e.lastElementChild.focus(),this._stickyElements=e.children,this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumbers.length-1}focusNext(){this._focusedStickyElementIndex0&&this._focusNav(!1)}selectEditor(){this._editor.focus()}_focusNav(e){this._focusedStickyElementIndex=e?this._focusedStickyElementIndex+1:this._focusedStickyElementIndex-1,this._stickyElements.item(this._focusedStickyElementIndex).focus()}goToFocused(){const e=this._stickyScrollWidget.lineNumbers;this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:e[this._focusedStickyElementIndex],column:1})}_revealPosition(e){this._positionRevealed=!0,this._editor.revealPosition(e),this._editor.setSelection(ie.e.fromPositions(e)),this._editor.focus()}_createClickLinkGesture(){const e=new d.SL,t=new d.SL;e.add(t);const i=new te.yN(this._editor,!0);return e.add(i),e.add(i.onMouseMoveOrRelevantKeyDown((([e,i])=>{if(!this._editor.hasModel()||!e.hasTriggerModifier)return void t.clear();const n=e.target;if(n.detail===this._stickyScrollWidget.getId()&&n.element.innerText===n.element.innerHTML){const e=n.element.innerText;if(-1===this._stickyScrollWidget.hoverOnColumn)return;const i=this._stickyScrollWidget.hoverOnLine,o=this._stickyScrollWidget.hoverOnColumn,s=new ie.e(i,o,i,o+e.length);if(s.equalsRange(this._stickyRangeProjectedOnEditor)){if("underline"===n.element.style.textDecoration)return}else this._stickyRangeProjectedOnEditor=s,t.clear();const r=new S.A;let a;t.add((0,d.OF)((()=>r.dispose(!0)))),(0,ne.nD)(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new f.L(i,o+1),r.token).then((e=>{if(!r.token.isCancellationRequested)if(0!==e.length){this._candidateDefinitionsLength=e.length;const i=n.element;a!==i?(t.clear(),a=i,a.style.textDecoration="underline",t.add((0,d.OF)((()=>{a.style.textDecoration="none"})))):a||(a=i,a.style.textDecoration="underline",t.add((0,d.OF)((()=>{a.style.textDecoration="none"}))))}else t.clear()}))}else t.clear()}))),e.add(i.onCancel((()=>{t.clear()}))),e.add(i.onExecute((e=>ae(this,void 0,void 0,(function*(){e.target.detail===this._stickyScrollWidget.getId()&&(e.hasTriggerModifier?(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:this._stickyScrollWidget.hoverOnLine,column:1})),this._instaService.invokeFunction(oe.K,e,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor})):e.isRightClick||(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:this._stickyScrollWidget.hoverOnLine,column:this._stickyScrollWidget.hoverOnColumn})))}))))),e}_onContextMenu(e){this._contextMenuService.showContextMenu({menuId:a.eH.StickyScrollContext,getAnchor:()=>e})}_readConfiguration(){const e=this._editor.getOption(110);if(!1===e.enabled)return this._editor.removeOverlayWidget(this._stickyScrollWidget),this._sessionStore.clear(),void(this._enabled=!1);e.enabled&&!this._enabled&&(this._editor.addOverlayWidget(this._stickyScrollWidget),this._sessionStore.add(this._editor.onDidScrollChange((()=>this._renderStickyScroll()))),this._sessionStore.add(this._editor.onDidLayoutChange((()=>this._onDidResize()))),this._sessionStore.add(this._editor.onDidChangeModelTokens((e=>this._onTokensChange(e)))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll((()=>this._renderStickyScroll()))),this._enabled=!0),2===this._editor.getOption(65).renderType&&this._sessionStore.add(this._editor.onDidChangeCursorPosition((()=>this._renderStickyScroll())))}_needsUpdate(e){const t=this._stickyScrollWidget.getCurrentLines();for(const i of t)for(const t of e.ranges)if(i>=t.fromLineNumber&&i<=t.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._renderStickyScroll()}_onDidResize(){const e=this._editor.getLayoutInfo(),t=e.width-e.minimap.minimapCanvasOuterWidth-e.verticalScrollbarWidth;this._stickyScrollWidget.getDomNode().style.width=`${t}px`;const i=e.height/this._editor.getOption(64);this._maxStickyLines=Math.round(.25*i)}_renderStickyScroll(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._stickyLineCandidateProvider.getVersionId();if(void 0===t||t===e.getVersionId())if(this._widgetState=this.findScrollWidgetState(),this._stickyScrollVisibleContextKey.set(!(0===this._widgetState.lineNumbers.length)),this._focused)if(this._stickyElements=this._stickyScrollWidget.getDomNode().children,-1===this._focusedStickyElementIndex)this._stickyScrollWidget.setState(this._widgetState),this._focusedStickyElementIndex=this._stickyElements.length-1,-1!==this._focusedStickyElementIndex&&this._stickyElements.item(this._focusedStickyElementIndex).focus();else{const e=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];this._stickyScrollWidget.setState(this._widgetState),0===this._stickyElements.length?this._focusedStickyElementIndex=-1:(this._stickyScrollWidget.lineNumbers.includes(e)||(this._focusedStickyElementIndex=this._stickyElements.length-1),this._stickyElements.item(this._focusedStickyElementIndex).focus())}else this._stickyScrollWidget.setState(this._widgetState)}findScrollWidgetState(){const e=this._editor.getOption(64),t=Math.min(this._maxStickyLines,this._editor.getOption(110).maxLineCount),i=this._editor.getScrollTop();let n=0;const o=[],s=this._editor.getVisibleRanges();if(0!==s.length){const r=new R(s[0].startLineNumber,s[s.length-1].endLineNumber),a=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(r);for(const s of a){const r=s.startLineNumber,a=s.endLineNumber,l=s.nestingDepth;if(a-r>0){const s=(l-1)*e,c=l*e,h=this._editor.getBottomForLineNumber(r)-i,d=this._editor.getTopForLineNumber(a)-i,u=this._editor.getBottomForLineNumber(a)-i;if(s>d&&s<=u){o.push(r),n=u-c;break}if(c>h&&c<=u&&o.push(r),o.length===t)break}}}return new C(o,n)}dispose(){super.dispose(),this._sessionStore.dispose()}};le.ID="store.contrib.stickyScrollController",le=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([re(1,ee.i),re(2,u.p),re(3,J.TG),re(4,N.c_),re(5,se.A),re(6,c.i6)],le);class ce extends a.Ke{constructor(){super({id:"editor.action.toggleStickyScroll",title:{value:(0,o.NC)("toggleStickyScroll","Toggle Sticky Scroll"),mnemonicTitle:(0,o.NC)({key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Sticky Scroll"),original:"Toggle Sticky Scroll"},category:s.View,toggled:{condition:c.Ao.equals("config.editor.stickyScroll.enabled",!0),title:(0,o.NC)("stickyScroll","Sticky Scroll"),mnemonicTitle:(0,o.NC)({key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:a.eH.CommandPalette},{id:a.eH.MenubarViewMenu,group:"5_editor",order:2},{id:a.eH.StickyScrollContext}]})}run(e){return t=this,i=void 0,o=function*(){const t=e.get(l.Ui),i=!t.getValue("editor.stickyScroll.enabled");return t.updateValue("editor.stickyScroll.enabled",i)},new((n=void 0)||(n=Promise))((function(e,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n((function(e){e(i)}))).then(r,a)}l((o=o.apply(t,i||[])).next())}));var t,i,n,o}}const he=100;class de extends n.x1{constructor(){super({id:"editor.action.focusStickyScroll",title:{value:(0,o.NC)("focusStickyScroll","Focus Sticky Scroll"),mnemonicTitle:(0,o.NC)({key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll"),original:"Focus Sticky Scroll"},precondition:c.Ao.and(c.Ao.has("config.editor.stickyScroll.enabled"),h.u.stickyScrollVisible),menu:[{id:a.eH.CommandPalette}]})}runEditorCommand(e,t){var i;null===(i=le.get(t))||void 0===i||i.focus()}}class ue extends n.x1{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:{value:(0,o.NC)("selectNextStickyScrollLine.title","Select next sticky scroll line"),original:"Select next sticky scroll line"},precondition:h.u.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:he,primary:18}})}runEditorCommand(e,t){var i;null===(i=le.get(t))||void 0===i||i.focusNext()}}class ge extends n.x1{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:{value:(0,o.NC)("selectPreviousStickyScrollLine.title","Select previous sticky scroll line"),original:"Select previous sticky scroll line"},precondition:h.u.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:he,primary:16}})}runEditorCommand(e,t){var i;null===(i=le.get(t))||void 0===i||i.focusPrevious()}}class pe extends n.x1{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:{value:(0,o.NC)("goToFocusedStickyScrollLine.title","Go to focused sticky scroll line"),original:"Go to focused sticky scroll line"},precondition:h.u.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:he,primary:3}})}runEditorCommand(e,t){var i;null===(i=le.get(t))||void 0===i||i.goToFocused()}}class me extends n.x1{constructor(){super({id:"editor.action.selectEditor",title:{value:(0,o.NC)("selectEditor.title","Select Editor"),original:"Select Editor"},precondition:h.u.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:he,primary:9}})}runEditorCommand(e,t){var i;null===(i=le.get(t))||void 0===i||i.selectEditor()}}(0,n._K)(le.ID,le,1),(0,a.r1)(ce),(0,a.r1)(de),(0,a.r1)(ge),(0,a.r1)(ue),(0,a.r1)(pe),(0,a.r1)(me)},74961:(e,t,i)=>{"use strict";i.d(t,{_:()=>a,t:()=>r});var n=i(9488),o=i(75392),s=i(97295);class r{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}}class a{constructor(e,t,i,n,s,r,l=o.mX.default,c=void 0){this.clipboardText=c,this._snippetCompareFn=a._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=n,this._options=s,this._refilterKind=1,this._lineContext=i,this._fuzzyScoreOptions=l,"top"===r?this._snippetCompareFn=a._compareCompletionItemsSnippetsUp:"bottom"===r&&(this._snippetCompareFn=a._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta0&&i[0].container.incomplete&&e.add(t);return e}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){0!==this._refilterKind&&this._createCachedState()}_createCachedState(){this._itemsByProvider=new Map;const e=[],{leadingLineContent:t,characterCountDelta:i}=this._lineContext;let r="",a="";const l=1===this._refilterKind?this._items:this._filteredItems,c=[],h=!this._options.filterGraceful||l.length>2e3?o.EW:o.l7;for(let n=0;n=p)d.score=o.CL.Default;else if("string"==typeof d.completion.filterText){const t=h(r,a,e,d.completion.filterText,d.filterTextLow,0,this._fuzzyScoreOptions);if(!t)continue;0===(0,s.zY)(d.completion.filterText,d.textLabel)?d.score=t:(d.score=(0,o.jB)(r,a,e,d.textLabel,d.labelLow,0),d.score[0]=t[0])}else{const t=h(r,a,e,d.textLabel,d.labelLow,0,this._fuzzyScoreOptions);if(!t)continue;d.score=t}}d.idx=n,d.distance=this._wordDistance.distance(d.position,d.completion),c.push(d),e.push(d.textLabel.length)}this._filteredItems=c.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?(0,n.HW)(e.length-.85,e,((e,t)=>e-t)):0}}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]t.distance?1:e.idxt.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return a._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return a._compareCompletionItems(e,t)}}},55621:(e,t,i)=>{"use strict";i.d(t,{A9:()=>k,GI:()=>w,ZJ:()=>L,_y:()=>y,i5:()=>I,kL:()=>N,tG:()=>A});var n=i(71050),o=i(17301),s=i(75392),r=i(5976),a=i(84013),l=i(98401),c=i(70666),h=i(50187),d=i(24314),u=i(88216),g=i(35084),p=i(63580),m=i(84144),f=i(94565),_=i(93983),v=i(71922),b=i(22980),C=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};const y={Visible:b.iX,HasFocusedSuggestion:new _.uy("suggestWidgetHasFocusedSuggestion",!1,(0,p.NC)("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new _.uy("suggestWidgetDetailsVisible",!1,(0,p.NC)("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new _.uy("suggestWidgetMultipleSuggestions",!1,(0,p.NC)("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new _.uy("suggestionMakesTextEdit",!0,(0,p.NC)("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new _.uy("acceptSuggestionOnEnter",!0,(0,p.NC)("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new _.uy("suggestionHasInsertAndReplaceRange",!1,(0,p.NC)("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new _.uy("suggestionInsertMode",void 0,{type:"string",description:(0,p.NC)("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new _.uy("suggestionCanResolve",!1,(0,p.NC)("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},w=new m.eH("suggestWidgetStatusBar");class S{constructor(e,t,i,n){var o;this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=s.CL.Default,this.distance=0,this.textLabel="string"==typeof t.label?t.label:null===(o=t.label)||void 0===o?void 0:o.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,d.e.isIRange(t.range)?(this.editStart=new h.L(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new h.L(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new h.L(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||d.e.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new h.L(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new h.L(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new h.L(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||d.e.spansMultipleLines(t.range.insert)||d.e.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),"function"!=typeof n.resolveCompletionItem&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return C(this,void 0,void 0,(function*(){if(!this._resolveCache){const t=e.onCancellationRequested((()=>{this._resolveCache=void 0,this._isResolved=!1}));this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then((e=>{Object.assign(this.completion,e),this._isResolved=!0,t.dispose()}),(e=>{(0,o.n2)(e)&&(this._resolveCache=void 0,this._isResolved=!1)}))}return this._resolveCache}))}}class k{constructor(e=2,t=new Set,i=new Set,n=new Map,o=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=n,this.showDeprecated=o}}let x;function L(){return x}k.default=new k;class E{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}function N(e,t,i,s=k.default,l={triggerKind:0},c=n.T.None){return C(this,void 0,void 0,(function*(){const n=new a.G(!0);i=i.clone();const h=t.getWordAtPosition(i),u=h?new d.e(i.lineNumber,h.startColumn,i.lineNumber,h.endColumn):d.e.fromPositions(i),p={replace:u,insert:u.setEndPosition(i.lineNumber,i.column)},m=[],f=new r.SL,_=[];let v=!1;const b=(e,t,n)=>{var o,a,l;let c=!1;if(!t)return c;for(const n of t.suggestions)if(!s.kindFilter.has(n.kind)){if(!s.showDeprecated&&(null===(o=null==n?void 0:n.tags)||void 0===o?void 0:o.includes(1)))continue;n.range||(n.range=p),n.sortText||(n.sortText="string"==typeof n.label?n.label:n.label.label),!v&&n.insertTextRules&&4&n.insertTextRules&&(v=g.Yj.guessNeedsClipboard(n.insertText)),m.push(new S(i,n,t,e)),c=!0}return(0,r.Wf)(t)&&f.add(t),_.push({providerName:null!==(a=e._debugDisplayName)&&void 0!==a?a:"unknown_provider",elapsedProvider:null!==(l=t.duration)&&void 0!==l?l:-1,elapsedOverall:n.elapsed()}),c},y=(()=>C(this,void 0,void 0,(function*(){if(!x||s.kindFilter.has(27))return;const e=s.providerItemsToReuse.get(x);if(e)return void e.forEach((e=>m.push(e)));if(s.providerFilter.size>0&&!s.providerFilter.has(x))return;const n=new a.G(!0),o=yield x.provideCompletionItems(t,i,l,c);b(x,o,n)})))();for(const n of e.orderedGroups(t)){let e=!1;if(yield Promise.all(n.map((n=>C(this,void 0,void 0,(function*(){if(s.providerItemsToReuse.has(n)){const t=s.providerItemsToReuse.get(n);return t.forEach((e=>m.push(e))),void(e=e||t.length>0)}if(!(s.providerFilter.size>0)||s.providerFilter.has(n))try{const o=new a.G(!0),s=yield n.provideCompletionItems(t,i,l,c);e=b(n,s,o)||e}catch(e){(0,o.Cp)(e)}}))))),e||c.isCancellationRequested)break}return yield y,c.isCancellationRequested?(f.dispose(),Promise.reject(new o.FU)):new E(m.sort((w=s.snippetSortOrder,T.get(w))),v,{entries:_,elapsed:n.elapsed()},f);var w}))}function D(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLowt.sortTextLow)return 1}return e.textLabelt.textLabel?1:e.completion.kind-t.completion.kind}const T=new Map;function I(e,t){var i;null===(i=e.getContribution("editor.contrib.suggestController"))||void 0===i||i.triggerSuggest((new Set).add(t),void 0,!0)}T.set(0,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return D(e,t)})),T.set(2,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return D(e,t)})),T.set(1,D),f.P.registerCommand("_executeCompletionItemProvider",((e,...t)=>C(void 0,void 0,void 0,(function*(){const[i,o,s,r]=t;(0,l.p_)(c.o.isUri(i)),(0,l.p_)(h.L.isIPosition(o)),(0,l.p_)("string"==typeof s||!s),(0,l.p_)("number"==typeof r||!r);const{completionProvider:a}=e.get(v.p),d=yield e.get(u.S).createModelReference(i);try{const e={incomplete:!1,suggestions:[]},t=[],i=d.object.textEditorModel.validatePosition(o),l=yield N(a,d.object.textEditorModel,i,void 0,{triggerCharacter:null!=s?s:void 0,triggerKind:s?1:0});for(const i of l.items)t.length<(null!=r?r:0)&&t.push(i.resolve(n.T.None)),e.incomplete=e.incomplete||i.container.incomplete,e.suggestions.push(i.completion);try{return yield Promise.all(t),e}finally{setTimeout((()=>l.disposable.dispose()),100)}}finally{d.dispose()}}))));class A{static isAllOff(e){return"off"===e.other&&"off"===e.comments&&"off"===e.strings}static isAllOn(e){return"on"===e.other&&"on"===e.comments&&"on"===e.strings}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}},24804:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SuggestController:()=>Qe,TriggerSuggestAction:()=>Ze});var n=i(85152),o=i(9488),s=i(15393),r=i(71050),a=i(17301),l=i(4669),c=i(8313),h=i(5976),d=i(1432),u=i(84013),g=i(98401),p=i(43407),m=i(16830),f=i(69386),_=i(50187),v=i(24314),b=i(29102),C=i(98762),y=i(35084),w=i(80378),S=i(93983);let k=class e{constructor(t,i){this._editor=t,this._enabled=!1,this._ckAtEnd=e.AtEnd.bindTo(i),this._configListener=this._editor.onDidChangeConfiguration((e=>e.hasChanged(118)&&this._update())),this._update()}dispose(){var e;this._configListener.dispose(),null===(e=this._selectionListener)||void 0===e||e.dispose(),this._ckAtEnd.reset()}_update(){const e="on"===this._editor.getOption(118);if(this._enabled!==e)if(this._enabled=e,this._enabled){const e=()=>{if(!this._editor.hasModel())return void this._ckAtEnd.set(!1);const e=this._editor.getModel(),t=this._editor.getSelection(),i=e.getWordAtPosition(t.getStartPosition());i?this._ckAtEnd.set(i.endColumn===t.getStartPosition().column):this._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(e),e()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};var x,L;k.AtEnd=new S.uy("atEndOfWord",!1),k=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(x=1,L=S.i6,function(e,t){L(e,t,x)})],k);var E=i(63580),N=i(94565),D=i(72065),T=i(43557),I=i(55621);let A=class e{constructor(t,i){this._editor=t,this._index=0,this._ckOtherSuggestions=e.OtherSuggestions.bindTo(i)}dispose(){this.reset()}reset(){var e;this._ckOtherSuggestions.reset(),null===(e=this._listener)||void 0===e||e.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:t,index:i},n){0!==t.items.length&&e._moveIndex(!0,t,i)!==i?(this._acceptNext=n,this._model=t,this._index=i,this._listener=this._editor.onDidChangeCursorPosition((()=>{this._ignore||this.reset()})),this._ckOtherSuggestions.set(!0)):this.reset()}static _moveIndex(e,t,i){let n=i;for(let o=t.items.length;o>0&&(n=(n+t.items.length+(e?1:-1))%t.items.length,n!==i)&&t.items[n].completion.additionalTextEdits;o--);return n}next(){this._move(!0)}prev(){this._move(!1)}_move(t){if(this._model)try{this._ignore=!0,this._index=e._moveIndex(t,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};A.OtherSuggestions=new S.uy("hasOtherSuggestions",!1),A=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(1,S.i6)],A);var M=i(44906);class R{constructor(e,t,i,n){this._disposables=new h.SL,this._disposables.add(i.onDidSuggest((e=>{0===e.completionModel.items.length&&this.reset()}))),this._disposables.add(i.onDidCancel((e=>{this.reset()}))),this._disposables.add(t.onDidShow((()=>this._onItem(t.getFocusedItem())))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType((o=>{if(this._active&&!t.isFrozen()&&0!==i.state){const t=o.charCodeAt(o.length-1);this._active.acceptCharacters.has(t)&&e.getOption(0)&&n(this._active.item)}})))}_onItem(e){if(!e||!(0,o.Of)(e.item.completion.commitCharacters))return void this.reset();if(this._active&&this._active.item.item===e.item)return;const t=new M.q;for(const i of e.item.completion.commitCharacters)i.length>0&&t.add(i.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}var O=i(97295),P=i(3860),F=i(85215),B=i(24477),H=i(84972),V=i(33108),W=i(10829),z=i(74961),U=i(71922),j=i(75392),K=i(78573),q=function(e,t){return function(i,n){t(i,n,e)}};class ${static shouldAutoTrigger(e){if(!e.hasModel())return!1;const t=e.getModel(),i=e.getPosition();t.tokenization.tokenizeIfCheap(i.lineNumber);const n=t.getWordAtPosition(i);return!!n&&n.endColumn===i.column&&!!isNaN(Number(n.word))}constructor(e,t,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.triggerOptions=i}}let G=class e{constructor(e,t,i,n,o,r,a,c){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=n,this._logService=o,this._contextKeyService=r,this._configurationService=a,this._languageFeaturesService=c,this._toDispose=new h.SL,this._triggerCharacterListener=new h.SL,this._triggerQuickSuggest=new s._F,this._triggerState=void 0,this._completionDisposables=new h.SL,this._onDidCancel=new l.Q5,this._onDidTrigger=new l.Q5,this._onDidSuggest=new l.Q5,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new P.Y(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeModelLanguage((()=>{this._updateTriggerCharacters(),this.cancel()}))),this._toDispose.add(this._editor.onDidChangeConfiguration((()=>{this._updateTriggerCharacters()}))),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange((()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()})));let d=!1;this._toDispose.add(this._editor.onDidCompositionStart((()=>{d=!0}))),this._toDispose.add(this._editor.onDidCompositionEnd((()=>{d=!1,this._onCompositionEnd()}))),this._toDispose.add(this._editor.onDidChangeCursorSelection((e=>{d||this._onCursorChange(e)}))),this._toDispose.add(this._editor.onDidChangeModelContent((()=>{d||void 0===this._triggerState||this._refilterCompletionItems()}))),this._updateTriggerCharacters()}dispose(){(0,h.B9)(this._triggerCharacterListener),(0,h.B9)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(87)||!this._editor.hasModel()||!this._editor.getOption(116))return;const e=new Map;for(const t of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(const i of t.triggerCharacters||[]){let n=e.get(i);n||(n=new Set,n.add((0,I.ZJ)()),e.set(i,n)),n.add(t)}const t=t=>{var i;if(!function(e,t,i){if(!Boolean(t.getContextKeyValue("inlineSuggestionVisible")))return!0;const n=t.getContextKeyValue(K.f.suppressSuggestions.key);return void 0!==n?!n:!e.getOption(60).suppressSuggestions}(this._editor,this._contextKeyService,this._configurationService))return;if($.shouldAutoTrigger(this._editor))return;if(!t){const e=this._editor.getPosition();t=this._editor.getModel().getLineContent(e.lineNumber).substr(0,e.column-1)}let n="";(0,O.YK)(t.charCodeAt(t.length-1))?(0,O.ZG)(t.charCodeAt(t.length-2))&&(n=t.substr(t.length-2)):n=t.charAt(t.length-1);const o=e.get(n);if(o){const e=new Map;if(this._completionModel)for(const[t,i]of this._completionModel.getItemsByProvider())o.has(t)||e.set(t,i);this.trigger({auto:!0,triggerKind:1,triggerCharacter:n,retrigger:Boolean(this._completionModel),clipboardText:null===(i=this._completionModel)||void 0===i?void 0:i.clipboardText,completionOptions:{providerFilter:o,providerItemsToReuse:e}})}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd((()=>t())))}get state(){return this._triggerState?this._triggerState.auto?2:1:0}cancel(e=!1){var t;void 0!==this._triggerState&&(this._triggerQuickSuggest.cancel(),null===(t=this._requestToken)||void 0===t||t.cancel(),this._requestToken=void 0,this._triggerState=void 0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){void 0!==this._triggerState&&(this._editor.hasModel()&&this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.trigger({auto:this._triggerState.auto,retrigger:!0}):this.cancel())}_onCursorChange(e){if(!this._editor.hasModel())return;const t=this._currentSelection;this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason&&3!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source?this.cancel():void 0===this._triggerState&&0===e.reason?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():void 0!==this._triggerState&&3===e.reason&&this._refilterCompletionItems()}_onCompositionEnd(){void 0===this._triggerState?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){I.tG.isAllOff(this._editor.getOption(85))||(this.cancel(),this._triggerQuickSuggest.cancelAndSet((()=>{if(void 0!==this._triggerState)return;if(!$.shouldAutoTrigger(this._editor))return;if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;const e=this._editor.getModel(),t=this._editor.getPosition(),i=this._editor.getOption(85);if(!I.tG.isAllOff(i)){if(!I.tG.isAllOn(i)){e.tokenization.tokenizeIfCheap(t.lineNumber);const n=e.tokenization.getLineTokens(t.lineNumber),o=n.getStandardTokenType(n.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("on"!==I.tG.valueFor(i,o))return}(function(e,t,i){if(!Boolean(t.getContextKeyValue(K.f.inlineSuggestionVisible.key)))return!0;const n=t.getContextKeyValue(K.f.suppressSuggestions.key);return void 0!==n?!n:!e.getOption(60).suppressSuggestions})(this._editor,this._contextKeyService,this._configurationService)&&this._languageFeaturesService.completionProvider.has(e)&&this.trigger({auto:!0})}}),this._editor.getOption(86)))}_refilterCompletionItems(){(0,g.p_)(this._editor.hasModel()),(0,g.p_)(void 0!==this._triggerState);const e=this._editor.getModel(),t=this._editor.getPosition(),i=new $(e,t,Object.assign(Object.assign({},this._triggerState),{refilter:!0}));this._onNewContext(i)}trigger(t){var i,n,o,s,l,c;if(!this._editor.hasModel())return;const h=this._editor.getModel(),d=new $(h,this._editor.getPosition(),t);this.cancel(t.retrigger),this._triggerState=t,this._onDidTrigger.fire({auto:t.auto,shy:null!==(i=t.shy)&&void 0!==i&&i,position:this._editor.getPosition()}),this._context=d;let u={triggerKind:null!==(n=t.triggerKind)&&void 0!==n?n:0};t.triggerCharacter&&(u={triggerKind:1,triggerCharacter:t.triggerCharacter}),this._requestToken=new r.A;let g=1;switch(this._editor.getOption(107)){case"top":g=0;break;case"bottom":g=2}const{itemKind:p,showDeprecated:m}=e._createSuggestFilter(this._editor),f=new I.A9(g,null!==(s=null===(o=t.completionOptions)||void 0===o?void 0:o.kindFilter)&&void 0!==s?s:p,null===(l=t.completionOptions)||void 0===l?void 0:l.providerFilter,null===(c=t.completionOptions)||void 0===c?void 0:c.providerItemsToReuse,m),_=B.K.create(this._editorWorkerService,this._editor),v=(0,I.kL)(this._languageFeaturesService.completionProvider,h,this._editor.getPosition(),f,u,this._requestToken.token);Promise.all([v,_]).then((([e,i])=>{return n=this,o=void 0,r=function*(){var n;if(null===(n=this._requestToken)||void 0===n||n.dispose(),!this._editor.hasModel())return;let o=null==t?void 0:t.clipboardText;if(!o&&e.needsClipboard&&(o=yield this._clipboardService.readText()),void 0===this._triggerState)return;const s=this._editor.getModel(),r=new $(s,this._editor.getPosition(),t),a=Object.assign(Object.assign({},j.mX.default),{firstMatchCanBeWeak:!this._editor.getOption(113).matchOnWordStartOnly});this._completionModel=new z._(e.items,this._context.column,{leadingLineContent:r.leadingLineContent,characterCountDelta:r.column-this._context.column},i,this._editor.getOption(113),this._editor.getOption(107),a,o),this._completionDisposables.add(e.disposable),this._onNewContext(r),this._reportDurationsTelemetry(e.durations)},new((s=void 0)||(s=Promise))((function(e,t){function i(e){try{l(r.next(e))}catch(e){t(e)}}function a(e){try{l(r.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof s?n:new s((function(e){e(n)}))).then(i,a)}l((r=r.apply(n,o||[])).next())}));var n,o,s,r})).catch(a.dL)}_reportDurationsTelemetry(e){this._telemetryGate++%230==0&&setTimeout((()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)}))}static _createSuggestFilter(e){const t=new Set;"none"===e.getOption(107)&&t.add(27);const i=e.getOption(113);return i.showMethods||t.add(0),i.showFunctions||t.add(1),i.showConstructors||t.add(2),i.showFields||t.add(3),i.showVariables||t.add(4),i.showClasses||t.add(5),i.showStructs||t.add(6),i.showInterfaces||t.add(7),i.showModules||t.add(8),i.showProperties||t.add(9),i.showEvents||t.add(10),i.showOperators||t.add(11),i.showUnits||t.add(12),i.showValues||t.add(13),i.showConstants||t.add(14),i.showEnums||t.add(15),i.showEnumMembers||t.add(16),i.showKeywords||t.add(17),i.showWords||t.add(18),i.showColors||t.add(19),i.showFiles||t.add(20),i.showReferences||t.add(21),i.showColors||t.add(22),i.showFolders||t.add(23),i.showTypeParameters||t.add(24),i.showSnippets||t.add(27),i.showUsers||t.add(25),i.showIssues||t.add(26),{itemKind:t,showDeprecated:i.showDeprecated}}_onNewContext(e){if(this._context)if(e.lineNumber===this._context.lineNumber)if((0,O.V8)(e.leadingLineContent)===(0,O.V8)(this._context.leadingLineContent)){if(e.columnthis._context.leadingWord.startColumn){if($.shouldAutoTrigger(this._editor)&&this._context){const e=this._completionModel.getItemsByProvider();this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerItemsToReuse:e}})}}else if(e.column>this._context.column&&this._completionModel.getIncompleteProvider().size>0&&0!==e.leadingWord.word.length){const e=new Map,t=new Set;for(const[i,n]of this._completionModel.getItemsByProvider())n.length>0&&n[0].container.incomplete?t.add(i):e.set(i,n);this.trigger({auto:this._context.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerFilter:t,providerItemsToReuse:e}})}else{const t=this._completionModel.lineContext;let i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){const n=$.shouldAutoTrigger(this._editor);if(!this._context)return void this.cancel();if(n&&this._context.leadingWord.endColumn0,i&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,triggerOptions:e.triggerOptions,isFrozen:i})}}else this.cancel();else this.cancel()}};G=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([q(1,F.p),q(2,H.p),q(3,W.b),q(4,T.VZ),q(5,S.i6),q(6,V.Ui),q(7,U.p)],G);class Q{constructor(e,t){this._disposables=new h.SL,this._lastOvertyped=[],this._locked=!1,this._disposables.add(e.onWillType((()=>{if(this._locked||!e.hasModel())return;const t=e.getSelections(),i=t.length;let n=!1;for(let e=0;eQ._maxSelectionLength)return;this._lastOvertyped[e]={value:o.getValueInRange(i),multiline:i.startLineNumber!==i.endLineNumber}}}))),this._disposables.add(t.onDidTrigger((e=>{this._locked=!0}))),this._disposables.add(t.onDidCancel((e=>{this._locked=!1})))}getLastOvertypedInfo(e){if(e>=0&&ee instanceof ie.U8?i.createInstance(oe,e,void 0):void 0;this._leftActions=new ee.o(this.element,{actionViewItemProvider:s}),this._rightActions=new ee.o(this.element,{actionViewItemProvider:s}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this.element.remove()}show(){const e=this._menuService.createMenu(this._menuId,this._contextKeyService),t=()=>{const t=[],i=[];for(const[n,o]of e.getActions())"left"===n?t.push(...o):i.push(...o);this._leftActions.clear(),this._leftActions.push(t),this._rightActions.clear(),this._rightActions.push(i)};this._menuDisposables.add(e.onDidChange((()=>t()))),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};se=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([ne(2,D.TG),ne(3,ie.co),ne(4,S.i6)],se),i(71713);var re=i(26904),ae=i(73910),le=i(92321),ce=i(97781),he=i(73098);class de{constructor(){let e;this._onDidWillResize=new l.Q5,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new l.Q5,this.onDidResize=this._onDidResize.event,this._sashListener=new h.SL,this._size=new Y.Ro(0,0),this._minSize=new Y.Ro(0,0),this._maxSize=new Y.Ro(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new he.g(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new he.g(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new he.g(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:he.l.North}),this._southSash=new he.g(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:he.l.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let t=0,i=0;this._sashListener.add(l.ju.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)((()=>{void 0===e&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)}))),this._sashListener.add(l.ju.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)((()=>{void 0!==e&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(this._eastSash.onDidChange((n=>{e&&(i=n.currentX-n.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))}))),this._sashListener.add(this._westSash.onDidChange((n=>{e&&(i=-(n.currentX-n.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))}))),this._sashListener.add(this._northSash.onDidChange((n=>{e&&(t=-(n.currentY-n.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))}))),this._sashListener.add(this._southSash.onDidChange((n=>{e&&(t=n.currentY-n.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))}))),this._sashListener.add(l.ju.any(this._eastSash.onDidReset,this._westSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(l.ju.any(this._northSash.onDidReset,this._southSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))})))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,n){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=n?3:0}layout(e=this.size.height,t=this.size.width){const{height:i,width:n}=this._minSize,{height:o,width:s}=this._maxSize;e=Math.max(i,Math.min(o,e)),t=Math.max(n,Math.min(s,t));const r=new Y.Ro(t,e);Y.Ro.equals(r,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=r,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}var ue=i(9802),ge=i(73046),pe=i(25670),me=i(59365),fe=i(45241);function _e(e){return!!e&&Boolean(e.completion.documentation||e.completion.detail&&e.completion.detail!==e.completion.label)}let ve=class{constructor(e,t){this._editor=e,this._onDidClose=new l.Q5,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new l.Q5,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new h.SL,this._renderDisposeable=new h.SL,this._borderWidth=1,this._size=new Y.Ro(330,0),this.domNode=Y.$(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(fe.$,{editor:e}),this._body=Y.$(".body"),this._scrollbar=new ue.s$(this._body,{alwaysConsumeMouseWheel:!0}),Y.R3(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=Y.R3(this._body,Y.$(".header")),this._close=Y.R3(this._header,Y.$("span"+pe.k.asCSSSelector(ge.l.close))),this._close.title=E.NC("details.close","Close"),this._type=Y.R3(this._header,Y.$("p.type")),this._docs=Y.R3(this._body,Y.$("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(48)&&this._configureFont()})))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const e=this._editor.getOptions(),t=e.get(48),i=t.getMassagedFontFamily(),n=e.get(114)||t.fontSize,o=e.get(115)||t.lineHeight,s=t.fontWeight,r=`${n}px`,a=`${o}px`;this.domNode.style.fontSize=r,this.domNode.style.lineHeight=""+o/n,this.domNode.style.fontWeight=s,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=i,this._close.style.height=a,this._close.style.width=a}getLayoutInfo(){const e=this._editor.getOption(115)||this._editor.getOption(48).lineHeight,t=this._borderWidth;return{lineHeight:e,borderWidth:t,borderHeight:2*t,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=E.NC("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,2*this.getLayoutInfo().lineHeight),this._onDidChangeContents.fire(this)}renderItem(e,t){var i,n;this._renderDisposeable.clear();let{detail:o,documentation:s}=e.completion;if(t){let t="";t+=`score: ${e.score[0]}\n`,t+=`prefix: ${null!==(i=e.word)&&void 0!==i?i:"(no prefix)"}\n`,t+=`word: ${e.completion.filterText?e.completion.filterText+" (filterText)":e.textLabel}\n`,t+=`distance: ${e.distance} (localityBonus-setting)\n`,t+=`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"}\n`,t+=`commit_chars: ${null===(n=e.completion.commitCharacters)||void 0===n?void 0:n.join("")}\n`,s=(new me.W5).appendCodeblock("empty",t),o=`Provider: ${e.provider._debugDisplayName}`}if(t||_e(e)){if(this.domNode.classList.remove("no-docs","no-type"),o){const e=o.length>1e5?`${o.substr(0,1e5)}…`:o;this._type.textContent=e,this._type.title=e,Y.$Z(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gim.test(e))}else Y.PO(this._type),this._type.title="",Y.Cp(this._type),this.domNode.classList.add("no-type");if(Y.PO(this._docs),"string"==typeof s)this._docs.classList.remove("markdown-docs"),this._docs.textContent=s;else if(s){this._docs.classList.add("markdown-docs"),Y.PO(this._docs);const e=this._markdownRenderer.render(s);this._docs.appendChild(e.element),this._renderDisposeable.add(e),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync((()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)})))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=e=>{e.preventDefault(),e.stopPropagation()},this._close.onclick=e=>{e.preventDefault(),e.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}else this.clearContents()}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get size(){return this._size}layout(e,t){const i=new Y.Ro(e,t);Y.Ro.equals(i,this._size)||(this._size=i,Y.dp(this.domNode,e,t)),this._scrollbar.scanDomNode()}scrollDown(e=8){this._body.scrollTop+=e}scrollUp(e=8){this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};ve=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(1,D.TG)],ve);class be{constructor(e,t){let i,n;this.widget=e,this._editor=t,this._disposables=new h.SL,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new de,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let o=0,s=0;this._disposables.add(this._resizable.onDidWillResize((()=>{i=this._topLeft,n=this._resizable.size}))),this._disposables.add(this._resizable.onDidResize((e=>{if(i&&n){this.widget.layout(e.dimension.width,e.dimension.height);let t=!1;e.west&&(s=n.width-e.dimension.width,t=!0),e.north&&(o=n.height-e.dimension.height,t=!0),t&&this._applyTopLeft({top:i.top+o,left:i.left+s})}e.done&&(i=void 0,n=void 0,o=0,s=0,this._userSize=e.dimension)}))),this._disposables.add(this.widget.onDidChangeContents((()=>{var e;this._anchorBox&&this._placeAtAnchor(this._anchorBox,null!==(e=this._userSize)&&void 0!==e?e:this.widget.size,this._preferAlignAtTop)})))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return null}show(){this._added||(this._editor.addOverlayWidget(this),this.getDomNode().style.position="fixed",this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){var i;const n=e.getBoundingClientRect();this._anchorBox=n,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,null!==(i=this._userSize)&&void 0!==i?i:this.widget.size,t)}_placeAtAnchor(e,t,i){var n;const o=Y.D6(document.body),s=this.widget.getLayoutInfo(),r=new Y.Ro(220,2*s.lineHeight),a=e.top,l=function(){const i=o.width-(e.left+e.width+s.borderWidth+s.horizontalPadding),n=-s.borderWidth+e.left+e.width,l=new Y.Ro(i,o.height-e.top-s.borderHeight-s.verticalPadding),c=l.with(void 0,e.top+e.height-s.borderHeight-s.verticalPadding);return{top:a,left:n,fit:i-t.width,maxSizeTop:l,maxSizeBottom:c,minSize:r.with(Math.min(i,r.width))}}(),c=[l,function(){const i=e.left-s.borderWidth-s.horizontalPadding,n=Math.max(s.horizontalPadding,e.left-t.width-s.borderWidth),l=new Y.Ro(i,o.height-e.top-s.borderHeight-s.verticalPadding),c=l.with(void 0,e.top+e.height-s.borderHeight-s.verticalPadding);return{top:a,left:n,fit:i-t.width,maxSizeTop:l,maxSizeBottom:c,minSize:r.with(Math.min(i,r.width))}}(),function(){const i=e.left,n=-s.borderWidth+e.top+e.height,a=new Y.Ro(e.width-s.borderHeight,o.height-e.top-e.height-s.verticalPadding);return{top:n,left:i,fit:a.height-t.height,maxSizeBottom:a,maxSizeTop:a,minSize:r.with(a.width)}}()],h=null!==(n=c.find((e=>e.fit>=0)))&&void 0!==n?n:c.sort(((e,t)=>t.fit-e.fit))[0],d=e.top+e.height-s.borderHeight;let u,g=t.height;const p=Math.max(h.maxSizeTop.height,h.maxSizeBottom.height);let m;g>p&&(g=p),i?g<=h.maxSizeTop.height?(u=!0,m=h.maxSizeTop):(u=!1,m=h.maxSizeBottom):g<=h.maxSizeBottom.height?(u=!1,m=h.maxSizeBottom):(u=!0,m=h.maxSizeTop),this._applyTopLeft({left:h.left,top:u?h.top:d-g}),this.getDomNode().style.position="fixed",this._resizable.enableSashes(!u,h===l,u,h!==l),this._resizable.minSize=h.minSize,this._resizable.maxSize=m,this._resizable.layout(g,Math.min(m.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this.getDomNode().style.left=`${this._topLeft.left}px`,this.getDomNode().style.top=`${this._topLeft.top}px`}}var Ce,ye=i(59834),we=i(70666),Se=i(96887),ke=i(66663),xe=i(95935),Le=i(68801);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(Ce||(Ce={}));const Ee=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function Ne(e,t,i,n){const o=n===Ce.ROOT_FOLDER?["rootfolder-icon"]:n===Ce.FOLDER?["folder-icon"]:["file-icon"];if(i){let s;if(i.scheme===ke.lg.data)s=xe.Vb.parseMetaData(i).get(xe.Vb.META_DATA_LABEL);else{const e=i.path.match(Ee);e?(s=De(e[2].toLowerCase()),e[1]&&o.push(`${De(e[1].toLowerCase())}-name-dir-icon`)):s=De(i.authority.toLowerCase())}if(n===Ce.FOLDER)o.push(`${s}-name-folder-icon`);else{if(s){if(o.push(`${s}-name-file-icon`),o.push("name-file-icon"),s.length<=255){const e=s.split(".");for(let t=1;t{const e=this._editor.getOptions(),t=e.get(48),o=t.getMassagedFontFamily(),s=t.fontFeatureSettings,a=e.get(114)||t.fontSize,l=e.get(115)||t.lineHeight,c=t.fontWeight,h=`${a}px`,d=`${l}px`,u=`${t.letterSpacing}px`;i.style.fontSize=h,i.style.fontWeight=c,i.style.letterSpacing=u,r.style.fontFamily=o,r.style.fontFeatureSettings=s,r.style.lineHeight=d,n.style.height=d,n.style.width=d,m.style.height=d,m.style.width=d};return f(),t.add(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(48)||e.hasChanged(114)||e.hasChanged(115))&&f()}))),{root:i,left:l,right:c,icon:n,colorspan:o,iconLabel:d,iconContainer:a,parametersLabel:u,qualifierLabel:g,detailsLabel:p,readMore:m,disposables:t}}renderElement(e,t,i){const{completion:n}=e;i.root.id=Re(t),i.colorspan.style.backgroundColor="";const o={labelEscapeNewLines:!0,matches:(0,j.mB)(e.score)},s=[];if(19===n.kind&&Pe.extract(e,s))i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=s[0];else if(20===n.kind&&this._themeService.getFileIconTheme().hasFileIcons){i.icon.className="icon hide",i.iconContainer.className="icon hide";const t=Ne(this._modelService,this._languageService,we.o.from({scheme:"fake",path:e.textLabel}),Ce.FILE),s=Ne(this._modelService,this._languageService,we.o.from({scheme:"fake",path:n.detail}),Ce.FILE);o.extraClasses=t.length>s.length?t:s}else 23===n.kind&&this._themeService.getFileIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",o.extraClasses=[Ne(this._modelService,this._languageService,we.o.from({scheme:"fake",path:e.textLabel}),Ce.FOLDER),Ne(this._modelService,this._languageService,we.o.from({scheme:"fake",path:n.detail}),Ce.FOLDER)].flat()):(i.icon.className="icon hide",i.iconContainer.className="",i.iconContainer.classList.add("suggest-icon",...pe.k.asClassNameArray(Se.gX.toIcon(n.kind))));n.tags&&n.tags.indexOf(1)>=0&&(o.extraClasses=(o.extraClasses||[]).concat(["deprecated"]),o.matches=[]),i.iconLabel.setLabel(e.textLabel,void 0,o),"string"==typeof n.label?(i.parametersLabel.textContent="",i.detailsLabel.textContent=Be(n.detail||""),i.root.classList.add("string-label")):(i.parametersLabel.textContent=Be(n.label.detail||""),i.detailsLabel.textContent=Be(n.label.description||""),i.root.classList.remove("string-label")),this._editor.getOption(113).showInlineDetails?(0,Y.$Z)(i.detailsLabel):(0,Y.Cp)(i.detailsLabel),_e(e)?(i.right.classList.add("can-expand-details"),(0,Y.$Z)(i.readMore),i.readMore.onmousedown=e=>{e.stopPropagation(),e.preventDefault()},i.readMore.onclick=e=>{e.stopPropagation(),e.preventDefault(),this._onDidToggleDetails.fire()}):(i.right.classList.remove("can-expand-details"),(0,Y.Cp)(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};function Be(e){return e.replace(/\r\n|\r|\n/g,"")}Fe=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Me(1,Ie.q),Me(2,Ae.O),Me(3,ce.XE)],Fe);var He=i(86253),Ve=function(e,t){return function(i,n){t(i,n,e)}};(0,ae.P6G)("editorSuggestWidget.background",{dark:ae.D0T,light:ae.D0T,hcDark:ae.D0T,hcLight:ae.D0T},E.NC("editorSuggestWidgetBackground","Background color of the suggest widget.")),(0,ae.P6G)("editorSuggestWidget.border",{dark:ae.D1_,light:ae.D1_,hcDark:ae.D1_,hcLight:ae.D1_},E.NC("editorSuggestWidgetBorder","Border color of the suggest widget."));const We=(0,ae.P6G)("editorSuggestWidget.foreground",{dark:ae.NOs,light:ae.NOs,hcDark:ae.NOs,hcLight:ae.NOs},E.NC("editorSuggestWidgetForeground","Foreground color of the suggest widget."));(0,ae.P6G)("editorSuggestWidget.selectedForeground",{dark:ae.NPS,light:ae.NPS,hcDark:ae.NPS,hcLight:ae.NPS},E.NC("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget.")),(0,ae.P6G)("editorSuggestWidget.selectedIconForeground",{dark:ae.cbQ,light:ae.cbQ,hcDark:ae.cbQ,hcLight:ae.cbQ},E.NC("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));const ze=(0,ae.P6G)("editorSuggestWidget.selectedBackground",{dark:ae.Vqd,light:ae.Vqd,hcDark:ae.Vqd,hcLight:ae.Vqd},E.NC("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));(0,ae.P6G)("editorSuggestWidget.highlightForeground",{dark:ae.Gwp,light:ae.Gwp,hcDark:ae.Gwp,hcLight:ae.Gwp},E.NC("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),(0,ae.P6G)("editorSuggestWidget.focusHighlightForeground",{dark:ae.PX0,light:ae.PX0,hcDark:ae.PX0,hcLight:ae.PX0},E.NC("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused.")),(0,ae.P6G)("editorSuggestWidgetStatus.foreground",{dark:(0,ae.ZnX)(We,.5),light:(0,ae.ZnX)(We,.5),hcDark:(0,ae.ZnX)(We,.5),hcLight:(0,ae.ZnX)(We,.5)},E.NC("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));class Ue{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof J.H}`}restore(){var e;const t=null!==(e=this._service.get(this._key,0))&&void 0!==e?e:"";try{const e=JSON.parse(t);if(Y.Ro.is(e))return Y.Ro.lift(e)}catch(e){}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}}let je=class e{constructor(e,t,i,n,o){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._pendingLayout=new h.XK,this._pendingShowDetails=new h.XK,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new s._F,this._disposables=new h.SL,this._onDidSelect=new l.K3,this._onDidFocus=new l.K3,this._onDidHide=new l.Q5,this._onDidShow=new l.Q5,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new l.Q5,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new de,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new Ke(this,e),this._persistedSize=new Ue(t,e);class r{constructor(e,t,i=!1,n=!1){this.persistedSize=e,this.currentSize=t,this.persistHeight=i,this.persistWidth=n}}let a;this._disposables.add(this.element.onDidWillResize((()=>{this._contentWidget.lockPreference(),a=new r(this._persistedSize.restore(),this.element.size)}))),this._disposables.add(this.element.onDidResize((e=>{var t,i,n,o;if(this._resize(e.dimension.width,e.dimension.height),a&&(a.persistHeight=a.persistHeight||!!e.north||!!e.south,a.persistWidth=a.persistWidth||!!e.east||!!e.west),e.done){if(a){const{itemHeight:e,defaultSize:s}=this.getLayoutInfo(),r=Math.round(e/2);let{width:l,height:c}=this.element.size;(!a.persistHeight||Math.abs(a.currentSize.height-c)<=r)&&(c=null!==(i=null===(t=a.persistedSize)||void 0===t?void 0:t.height)&&void 0!==i?i:s.height),(!a.persistWidth||Math.abs(a.currentSize.width-l)<=r)&&(l=null!==(o=null===(n=a.persistedSize)||void 0===n?void 0:n.width)&&void 0!==o?o:s.width),this._persistedSize.store(new Y.Ro(l,c))}this._contentWidget.unlockPreference(),a=void 0}}))),this._messageElement=Y.R3(this.element.domNode,Y.$(".message")),this._listElement=Y.R3(this.element.domNode,Y.$(".tree"));const c=o.createInstance(ve,this.editor);c.onDidClose(this.toggleDetails,this,this._disposables),this._details=new be(c,this.editor);const d=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(113).showIcons);d();const u=o.createInstance(Fe,this.editor);this._disposables.add(u),this._disposables.add(u.onDidToggleDetails((()=>this.toggleDetails()))),this._list=new Z.aV("SuggestWidget",this._listElement,{getHeight:e=>this.getLayoutInfo().itemHeight,getTemplateId:e=>"suggestion"},[u],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>E.NC("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:e=>{let t=e.textLabel;if("string"!=typeof e.completion.label){const{detail:i,description:n}=e.completion.label;i&&n?t=E.NC("label.full","{0}{1}, {2}",t,i,n):i?t=E.NC("label.detail","{0}{1}",t,i):n&&(t=E.NC("label.desc","{0}, {1}",t,n))}if(!e.isResolved||!this._isDetailsVisible())return t;const{documentation:i,detail:n}=e.completion,o=O.WU("{0}{1}",n||"",i?"string"==typeof i?i:i.value:"");return E.NC("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",t,o)}}}),this._list.style((0,He.TU)({listInactiveFocusBackground:ze,listInactiveFocusOutline:ae.xL1})),this._status=o.createInstance(se,this.element.domNode,I.GI);const g=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(113).showStatusBar);g(),this._disposables.add(n.onDidColorThemeChange((e=>this._onThemeChange(e)))),this._onThemeChange(n.getColorTheme()),this._disposables.add(this._list.onMouseDown((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onTap((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onDidChangeSelection((e=>this._onListSelection(e)))),this._disposables.add(this._list.onDidChangeFocus((e=>this._onListFocus(e)))),this._disposables.add(this.editor.onDidChangeCursorSelection((()=>this._onCursorSelectionChanged()))),this._disposables.add(this.editor.onDidChangeConfiguration((e=>{e.hasChanged(113)&&(g(),d())}))),this._ctxSuggestWidgetVisible=I._y.Visible.bindTo(i),this._ctxSuggestWidgetDetailsVisible=I._y.DetailsVisible.bindTo(i),this._ctxSuggestWidgetMultipleSuggestions=I._y.MultipleSuggestions.bindTo(i),this._ctxSuggestWidgetHasFocusedSuggestion=I._y.HasFocusedSuggestion.bindTo(i),this._disposables.add(Y.mu(this._details.widget.domNode,"keydown",(e=>{this._onDetailsKeydown.fire(e)}))),this._disposables.add(this.editor.onMouseDown((e=>this._onEditorMouseDown(e))))}dispose(){var e;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),null===(e=this._loadingTimeout)||void 0===e||e.dispose(),this._pendingLayout.dispose(),this._pendingShowDetails.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){0!==this._state&&this._contentWidget.layout()}_onListMouseDownOrTap(e){void 0!==e.element&&void 0!==e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){const i=this._completionModel;i&&(this._onDidSelect.fire({item:e,index:t,model:i}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=(0,le.c3)(e.type)?2:1}_onListFocus(e){var t;if(this._ignoreFocusEvents)return;if(!e.elements.length)return this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),void this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const i=e.elements[0],n=e.indexes[0];i!==this._focusedItem&&(null===(t=this._currentSuggestionDetails)||void 0===t||t.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=i,this._list.reveal(n),this._currentSuggestionDetails=(0,s.PG)((e=>{return t=this,n=void 0,r=function*(){const t=(0,s.Vg)((()=>{this._isDetailsVisible()&&this.showDetails(!0)}),250),n=e.onCancellationRequested((()=>t.dispose())),o=yield i.resolve(e);return t.dispose(),n.dispose(),o},new((o=void 0)||(o=Promise))((function(e,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof o?i:new o((function(e){e(i)}))).then(s,a)}l((r=r.apply(t,n||[])).next())}));var t,n,o,r})),this._currentSuggestionDetails.then((()=>{n>=this._list.length||i!==this._list.element(n)||(this._ignoreFocusEvents=!0,this._list.splice(n,1,[i]),this._list.setFocus([n]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:Re(n)}))})).catch(a.dL)),this._onDidFocus.fire({item:i,index:n,model:this._completionModel})}_setState(t){if(this._state!==t)switch(this._state=t,this.element.domNode.classList.toggle("frozen",4===t),this.element.domNode.classList.remove("message"),t){case 0:Y.Cp(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=e.LOADING_MESSAGE,Y.Cp(this._listElement,this._status.element),Y.$Z(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=e.NO_SUGGESTIONS_MESSAGE,Y.Cp(this._listElement,this._status.element),Y.$Z(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 3:case 4:Y.Cp(this._messageElement),Y.$Z(this._listElement,this._status.element),this._show();break;case 5:Y.Cp(this._messageElement),Y.$Z(this._listElement,this._status.element),this._details.show(),this._show()}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet((()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)}),100)}showTriggered(e,t){0===this._state&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=(0,s.Vg)((()=>this._setState(1)),t)))}showSuggestions(e,t,i,n,o){var s,r;if(this._contentWidget.setPosition(this.editor.getPosition()),null===(s=this._loadingTimeout)||void 0===s||s.dispose(),null===(r=this._currentSuggestionDetails)||void 0===r||r.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),i&&2!==this._state&&0!==this._state)return void this._setState(4);const a=this._completionModel.items.length,l=0===a;if(this._ctxSuggestWidgetMultipleSuggestions.set(a>1),l)return this._setState(n?0:2),void(this._completionModel=void 0);this._focusedItem=void 0,this._onDidFocus.pause(),this._onDidSelect.pause();try{this._list.splice(0,this._list.length,this._completionModel.items),this._setState(i?4:3),this._list.reveal(t,0),this._list.setFocus(o?[]:[t])}finally{this._onDidFocus.resume(),this._onDidSelect.resume()}this._pendingLayout.value=Y.lI((()=>{this._pendingLayout.clear(),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")}))}focusSelected(){this._list.length>0&&this._list.setFocus([0])}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(0!==this._state&&2!==this._state&&1!==this._state&&this._completionModel&&this._list.getFocus().length>0)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){5===this._state?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):3===this._state&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._pendingShowDetails.clear(),this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):!_e(this._list.getFocusedElements()[0])&&!this._explainMode||3!==this._state&&5!==this._state&&4!==this._state||(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._pendingShowDetails.value=Y.lI((()=>{this._pendingShowDetails.clear(),this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._positionDetails(),this.editor.focus(),this.element.domNode.classList.add("shows-details")}))}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){var e;this._pendingLayout.clear(),this._pendingShowDetails.clear(),null===(e=this._loadingTimeout)||void 0===e||e.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const t=this._persistedSize.restore(),i=Math.ceil(4.3*this.getLayoutInfo().itemHeight);t&&t.heightl&&(a=l);const c=this._completionModel?this._completionModel.stats.pLabelLen*s.typicalHalfwidthCharacterWidth:a,h=s.statusBarHeight+this._list.contentHeight+s.borderHeight,d=s.itemHeight+s.statusBarHeight,u=Y.i(this.editor.getDomNode()),g=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),p=u.top+g.top+g.height,m=Math.min(o.height-p-s.verticalPadding,h),f=u.top+g.top-s.verticalPadding,_=Math.min(f,h);let v=Math.min(Math.max(_,m)+s.borderHeight,h);r===(null===(t=this._cappedHeight)||void 0===t?void 0:t.capped)&&(r=this._cappedHeight.wanted),rv&&(r=v);const b=150;r>m||this._forceRenderingAbove&&f>b?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),v=_):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),v=m),this.element.preferredSize=new Y.Ro(c,s.defaultSize.height),this.element.maxSize=new Y.Ro(l,v),this.element.minSize=new Y.Ro(220,d),this._cappedHeight=r===h?{wanted:null!==(n=null===(i=this._cappedHeight)||void 0===i?void 0:i.wanted)&&void 0!==n?n:e.height,capped:r}:void 0}this._resize(a,r)}_resize(e,t){const{width:i,height:n}=this.element.maxSize;e=Math.min(i,e),t=Math.min(n,t);const{statusBarHeight:o}=this.getLayoutInfo();this._list.layout(t-o,e),this._listElement.style.height=t-o+"px",this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){var e;this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,2===(null===(e=this._contentWidget.getPosition())||void 0===e?void 0:e.preference[0]))}getLayoutInfo(){const e=this.editor.getOption(48),t=(0,X.uZ)(this.editor.getOption(115)||e.lineHeight,8,1e3),i=this.editor.getOption(113).showStatusBar&&2!==this._state&&1!==this._state?t:0,n=this._details.widget.borderWidth,o=2*n;return{itemHeight:t,statusBarHeight:i,borderWidth:n,borderHeight:o,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new Y.Ro(430,i+12*t+o)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};je.LOADING_MESSAGE=E.NC("suggestWidget.loading","Loading..."),je.NO_SUGGESTIONS_MESSAGE=E.NC("suggestWidget.noSuggestions","No suggestions."),je=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Ve(1,re.Uy),Ve(2,S.i6),Ve(3,ce.XE),Ve(4,D.TG)],je);class Ke{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return!this._hidden&&this._position&&this._preference?{position:this._position,preference:[this._preference]}:null}beforeRender(){const{height:e,width:t}=this._widget.element.size,{borderWidth:i,horizontalPadding:n}=this._widget.getLayoutInfo();return new Y.Ro(t+2*i+n,e+2*i)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}var qe=i(89954),$e=function(e,t){return function(i,n){t(i,n,e)}};class Ge{constructor(e,t){if(this._model=e,this._position=t,e.getLineMaxColumn(t.lineNumber)!==t.column){const i=e.getOffsetAt(t),n=e.getPositionAt(i+1);this._marker=e.deltaDecorations([],[{range:v.e.fromPositions(t,n),options:{description:"suggest-line-suffix",stickiness:1}}])}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){const t=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let Qe=class e{static get(t){return t.getContribution(e.ID)}constructor(e,t,i,n,o,r,a){this._memoryService=t,this._commandService=i,this._contextKeyService=n,this._instantiationService=o,this._logService=r,this._telemetryService=a,this._lineSuffix=new h.XK,this._toDispose=new h.SL,this._selectors=new Ye((e=>e.priority)),this._telemetryGate=0,this.editor=e,this.model=o.createInstance(G,this.editor),this._selectors.register({priority:0,select:(e,t,i)=>this._memoryService.select(e,t,i)});const l=I._y.InsertMode.bindTo(n);l.set(e.getOption(113).insertMode),this.model.onDidTrigger((()=>l.set(e.getOption(113).insertMode))),this.widget=this._toDispose.add(new s.Ue((()=>{const e=this._instantiationService.createInstance(je,this.editor);this._toDispose.add(e),this._toDispose.add(e.onDidSelect((e=>this._insertSuggestion(e,0)),this));const t=new R(this.editor,e,this.model,(e=>this._insertSuggestion(e,2)));this._toDispose.add(t);const i=I._y.MakesTextEdit.bindTo(this._contextKeyService),n=I._y.HasInsertAndReplaceRange.bindTo(this._contextKeyService),o=I._y.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add((0,h.OF)((()=>{i.reset(),n.reset(),o.reset()}))),this._toDispose.add(e.onDidFocus((({item:e})=>{const t=this.editor.getPosition(),s=e.editStart.column,r=t.column;let a=!0;"smart"!==this.editor.getOption(1)||2!==this.model.state||e.completion.additionalTextEdits||4&e.completion.insertTextRules||r-s!==e.completion.insertText.length||(a=this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:s,endLineNumber:t.lineNumber,endColumn:r})!==e.completion.insertText),i.set(a),n.set(!_.L.equals(e.editInsertEnd,e.editReplaceEnd)),o.set(Boolean(e.provider.resolveCompletionItem)||Boolean(e.completion.documentation)||e.completion.detail!==e.completion.label)}))),this._toDispose.add(e.onDetailsKeyDown((e=>{e.toKeyCodeChord().equals(new c.$M(!0,!1,!1,!1,33))||d.dz&&e.toKeyCodeChord().equals(new c.$M(!1,!1,!1,!0,33))?e.stopPropagation():e.toKeyCodeChord().isModifierKey()||this.editor.focus()}))),e}))),this._overtypingCapturer=this._toDispose.add(new s.Ue((()=>this._toDispose.add(new Q(this.editor,this.model))))),this._alternatives=this._toDispose.add(new s.Ue((()=>this._toDispose.add(new A(this.editor,this._contextKeyService))))),this._toDispose.add(o.createInstance(k,e)),this._toDispose.add(this.model.onDidTrigger((e=>{this.widget.value.showTriggered(e.auto,e.shy?250:50),this._lineSuffix.value=new Ge(this.editor.getModel(),e.position)}))),this._toDispose.add(this.model.onDidSuggest((e=>{var t;if(e.triggerOptions.shy)return;let i=-1;for(const t of this._selectors.itemsOrderedByPriorityDesc)if(i=t.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items),-1!==i)break;-1===i&&(i=0);let n=!1;if(e.triggerOptions.auto){const i=this.editor.getOption(113);i.snippetsPreventQuickSuggestions&&(null===(t=C.SnippetController2.get(this.editor))||void 0===t?void 0:t.isInSnippet())?n=!0:"never"===i.selectionMode||"always"===i.selectionMode?n="never"===i.selectionMode:"whenTriggerCharacter"===i.selectionMode?n=1!==e.triggerOptions.triggerKind:"whenQuickSuggestion"===i.selectionMode&&(n=1===e.triggerOptions.triggerKind&&!e.triggerOptions.refilter)}this.widget.value.showSuggestions(e.completionModel,i,e.isFrozen,e.triggerOptions.auto,n)}))),this._toDispose.add(this.model.onDidCancel((e=>{e.retrigger||this.widget.value.hideWidget()}))),this._toDispose.add(this.editor.onDidBlurEditorWidget((()=>{this.model.cancel(),this.model.clear()})));const u=I._y.AcceptSuggestionsOnEnter.bindTo(n),g=()=>{const e=this.editor.getOption(1);u.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration((()=>g()))),g()}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()}_insertSuggestion(e,t){if(!e||!e.item)return this._alternatives.value.reset(),this.model.cancel(),void this.model.clear();if(!this.editor.hasModel())return;const i=C.SnippetController2.get(this.editor);if(!i)return;const n=this.editor.getModel(),o=n.getAlternativeVersionId(),{item:s}=e,l=[],c=new r.A;1&t||this.editor.pushUndoStop();const h=this.getOverwriteInfo(s,Boolean(8&t));if(this._memoryService.memorize(n,this.editor.getPosition(),s),Array.isArray(s.completion.additionalTextEdits)){this.model.cancel();const e=p.Z.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",s.completion.additionalTextEdits.map((e=>f.h.replaceMove(v.e.lift(e.range),e.text)))),e.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!s.isResolved){const e=new u.G(!0);let i;const o=n.onDidChangeContent((e=>{if(e.isFlush)return c.cancel(),void o.dispose();for(const t of e.changes){const e=v.e.getEndPosition(t.range);i&&!_.L.isBefore(e,i)||(i=e)}})),r=t;t|=2;let a=!1;const h=this.editor.onWillType((()=>{h.dispose(),a=!0,2&r||this.editor.pushUndoStop()}));l.push(s.resolve(c.token).then((()=>{if(!s.completion.additionalTextEdits||c.token.isCancellationRequested)return!1;if(i&&s.completion.additionalTextEdits.some((e=>_.L.isBefore(i,v.e.getStartPosition(e.range)))))return!1;a&&this.editor.pushUndoStop();const e=p.Z.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",s.completion.additionalTextEdits.map((e=>f.h.replaceMove(v.e.lift(e.range),e.text)))),e.restoreRelativeVerticalPositionOfCursor(this.editor),!a&&2&r||this.editor.pushUndoStop(),!0})).then((t=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",e.elapsed(),t),o.dispose(),h.dispose()})))}let{insertText:d}=s.completion;4&s.completion.insertTextRules||(d=y.Yj.escape(d)),this.model.cancel(),i.insert(d,{overwriteBefore:h.overwriteBefore,overwriteAfter:h.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&s.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),2&t||this.editor.pushUndoStop(),s.completion.command&&(s.completion.command.id===Ze.id?this.model.trigger({auto:!0,retrigger:!0}):l.push(this._commandService.executeCommand(s.completion.command.id,...s.completion.command.arguments?[...s.completion.command.arguments]:[]).catch(a.dL))),4&t&&this._alternatives.value.set(e,(e=>{for(c.cancel();n.canUndo();){o!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(e,3|(8&t?8:0));break}})),this._alertCompletionItem(s),Promise.all(l).finally((()=>{this._reportSuggestionAcceptedTelemetry(s,n,e),this.model.clear(),c.dispose()}))}_reportSuggestionAcceptedTelemetry(e,t,i){var n;if(this._telemetryGate++%100!=0)return;const o=e.extensionId?e.extensionId.value:(null!==(n=i.item.provider._debugDisplayName)&&void 0!==n?n:"unknown").split("(",1)[0].toLowerCase();this._telemetryService.publicLog2("suggest.acceptedSuggestion",{providerId:o,kind:e.completion.kind,basenameHash:(0,qe.vp)((0,xe.EZ)(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:(0,xe.DZ)(t.uri)})}getOverwriteInfo(e,t){(0,g.p_)(this.editor.hasModel());let i="replace"===this.editor.getOption(113).insertMode;t&&(i=!i);const n=e.position.column-e.editStart.column,o=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column;return{overwriteBefore:n+(this.editor.getPosition().column-e.position.column),overwriteAfter:o+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem(e){if((0,o.Of)(e.completion.additionalTextEdits)){const t=E.NC("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);(0,n.Z9)(t)}}triggerSuggest(e,t,i){this.editor.hasModel()&&(this.model.trigger({auto:null!=t&&t,completionOptions:{providerFilter:e,kindFilter:i?new Set:void 0}}),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;const t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},n=e=>{if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;const t=this.editor.getPosition(),i=e.editStart.column,n=t.column;return n-i!==e.completion.insertText.length||this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:i,endLineNumber:t.lineNumber,endColumn:n})!==e.completion.insertText};l.ju.once(this.model.onDidTrigger)((e=>{const t=[];l.ju.any(this.model.onDidTrigger,this.model.onDidCancel)((()=>{(0,h.B9)(t),i()}),void 0,t),this.model.onDidSuggest((({completionModel:e})=>{if((0,h.B9)(t),0===e.items.length)return void i();const o=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.items),s=e.items[o];n(s)?(this.editor.pushUndoStop(),this._insertSuggestion({index:o,item:s,model:e},7)):i()}),void 0,t)})),this.model.trigger({auto:!1,shy:!0}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){const i=this.widget.value.getFocusedItem();let n=0;e&&(n|=4),t&&(n|=8),this._insertSuggestion(i,n)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}focusSuggestion(){this.widget.value.focusSelected()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};Qe.ID="editor.contrib.suggestController",Qe=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([$e(1,w.Fh),$e(2,N.H),$e(3,S.i6),$e(4,D.TG),$e(5,T.VZ),$e(6,W.b)],Qe);class Ye{constructor(e){this.prioritySelector=e,this._items=new Array}register(e){if(-1!==this._items.indexOf(e))throw new Error("Value is already registered");return this._items.push(e),this._items.sort(((e,t)=>this.prioritySelector(t)-this.prioritySelector(e))),{dispose:()=>{const t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class Ze extends m.R6{constructor(){super({id:Ze.id,label:E.NC("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:S.Ao.and(b.u.writable,b.u.hasCompletionItemProvider,I._y.Visible.toNegated()),kbOpts:{kbExpr:b.u.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){const n=Qe.get(t);if(!n)return;let o;i&&"object"==typeof i&&!0===i.auto&&(o=!0),n.triggerSuggest(void 0,o,void 0)}}Ze.id="editor.action.triggerSuggest",(0,m._K)(Qe.ID,Qe,2),(0,m.Qr)(Ze);const Xe=190,Je=m._l.bindToContribution(Qe.get);(0,m.fK)(new Je({id:"acceptSelectedSuggestion",precondition:S.Ao.and(I._y.Visible,I._y.HasFocusedSuggestion),handler(e){e.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:S.Ao.and(I._y.Visible,b.u.textInputFocus),weight:Xe},{primary:3,kbExpr:S.Ao.and(I._y.Visible,b.u.textInputFocus,I._y.AcceptSuggestionsOnEnter,I._y.MakesTextEdit),weight:Xe}],menuOpts:[{menuId:I.GI,title:E.NC("accept.insert","Insert"),group:"left",order:1,when:I._y.HasInsertAndReplaceRange.toNegated()},{menuId:I.GI,title:E.NC("accept.insert","Insert"),group:"left",order:1,when:S.Ao.and(I._y.HasInsertAndReplaceRange,I._y.InsertMode.isEqualTo("insert"))},{menuId:I.GI,title:E.NC("accept.replace","Replace"),group:"left",order:1,when:S.Ao.and(I._y.HasInsertAndReplaceRange,I._y.InsertMode.isEqualTo("replace"))}]})),(0,m.fK)(new Je({id:"acceptAlternativeSelectedSuggestion",precondition:S.Ao.and(I._y.Visible,b.u.textInputFocus,I._y.HasFocusedSuggestion),kbOpts:{weight:Xe,kbExpr:b.u.textInputFocus,primary:1027,secondary:[1026]},handler(e){e.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:I.GI,group:"left",order:2,when:S.Ao.and(I._y.HasInsertAndReplaceRange,I._y.InsertMode.isEqualTo("insert")),title:E.NC("accept.replace","Replace")},{menuId:I.GI,group:"left",order:2,when:S.Ao.and(I._y.HasInsertAndReplaceRange,I._y.InsertMode.isEqualTo("replace")),title:E.NC("accept.insert","Insert")}]})),N.P.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),(0,m.fK)(new Je({id:"hideSuggestWidget",precondition:I._y.Visible,handler:e=>e.cancelSuggestWidget(),kbOpts:{weight:Xe,kbExpr:b.u.textInputFocus,primary:9,secondary:[1033]}})),(0,m.fK)(new Je({id:"selectNextSuggestion",precondition:S.Ao.and(I._y.Visible,S.Ao.or(I._y.MultipleSuggestions,I._y.HasFocusedSuggestion.negate())),handler:e=>e.selectNextSuggestion(),kbOpts:{weight:Xe,kbExpr:b.u.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),(0,m.fK)(new Je({id:"selectNextPageSuggestion",precondition:S.Ao.and(I._y.Visible,S.Ao.or(I._y.MultipleSuggestions,I._y.HasFocusedSuggestion.negate())),handler:e=>e.selectNextPageSuggestion(),kbOpts:{weight:Xe,kbExpr:b.u.textInputFocus,primary:12,secondary:[2060]}})),(0,m.fK)(new Je({id:"selectLastSuggestion",precondition:S.Ao.and(I._y.Visible,S.Ao.or(I._y.MultipleSuggestions,I._y.HasFocusedSuggestion.negate())),handler:e=>e.selectLastSuggestion()})),(0,m.fK)(new Je({id:"selectPrevSuggestion",precondition:S.Ao.and(I._y.Visible,S.Ao.or(I._y.MultipleSuggestions,I._y.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevSuggestion(),kbOpts:{weight:Xe,kbExpr:b.u.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),(0,m.fK)(new Je({id:"selectPrevPageSuggestion",precondition:S.Ao.and(I._y.Visible,S.Ao.or(I._y.MultipleSuggestions,I._y.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevPageSuggestion(),kbOpts:{weight:Xe,kbExpr:b.u.textInputFocus,primary:11,secondary:[2059]}})),(0,m.fK)(new Je({id:"selectFirstSuggestion",precondition:S.Ao.and(I._y.Visible,S.Ao.or(I._y.MultipleSuggestions,I._y.HasFocusedSuggestion.negate())),handler:e=>e.selectFirstSuggestion()})),(0,m.fK)(new Je({id:"focusSuggestion",precondition:S.Ao.and(I._y.Visible,I._y.HasFocusedSuggestion.negate()),handler:e=>e.focusSuggestion(),kbOpts:{weight:Xe,kbExpr:b.u.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}}})),(0,m.fK)(new Je({id:"focusAndAcceptSuggestion",precondition:S.Ao.and(I._y.Visible,I._y.HasFocusedSuggestion.negate()),handler:e=>{e.focusSuggestion(),e.acceptSelectedSuggestion(!0,!1)}})),(0,m.fK)(new Je({id:"toggleSuggestionDetails",precondition:S.Ao.and(I._y.Visible,I._y.HasFocusedSuggestion),handler:e=>e.toggleSuggestionDetails(),kbOpts:{weight:Xe,kbExpr:b.u.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:I.GI,group:"right",order:1,when:S.Ao.and(I._y.DetailsVisible,I._y.CanResolve),title:E.NC("detail.more","show less")},{menuId:I.GI,group:"right",order:1,when:S.Ao.and(I._y.DetailsVisible.toNegated(),I._y.CanResolve),title:E.NC("detail.less","show more")}]})),(0,m.fK)(new Je({id:"toggleExplainMode",precondition:I._y.Visible,handler:e=>e.toggleExplainMode(),kbOpts:{weight:100,primary:2138}})),(0,m.fK)(new Je({id:"toggleSuggestionFocus",precondition:I._y.Visible,handler:e=>e.toggleSuggestionFocus(),kbOpts:{weight:Xe,kbExpr:b.u.textInputFocus,primary:2570,mac:{primary:778}}})),(0,m.fK)(new Je({id:"insertBestCompletion",precondition:S.Ao.and(b.u.textInputFocus,S.Ao.equals("config.editor.tabCompletion","on"),k.AtEnd,I._y.Visible.toNegated(),A.OtherSuggestions.toNegated(),C.SnippetController2.InSnippetMode.toNegated()),handler:(e,t)=>{e.triggerSuggestAndAcceptBest((0,g.Kn)(t)?Object.assign({fallback:"tab"},t):{fallback:"tab"})},kbOpts:{weight:Xe,primary:2}})),(0,m.fK)(new Je({id:"insertNextSuggestion",precondition:S.Ao.and(b.u.textInputFocus,S.Ao.equals("config.editor.tabCompletion","on"),A.OtherSuggestions,I._y.Visible.toNegated(),C.SnippetController2.InSnippetMode.toNegated()),handler:e=>e.acceptNextSuggestion(),kbOpts:{weight:Xe,kbExpr:b.u.textInputFocus,primary:2}})),(0,m.fK)(new Je({id:"insertPrevSuggestion",precondition:S.Ao.and(b.u.textInputFocus,S.Ao.equals("config.editor.tabCompletion","on"),A.OtherSuggestions,I._y.Visible.toNegated(),C.SnippetController2.InSnippetMode.toNegated()),handler:e=>e.acceptPrevSuggestion(),kbOpts:{weight:Xe,kbExpr:b.u.textInputFocus,primary:1026}})),(0,m.Qr)(class extends m.R6{constructor(){super({id:"editor.action.resetSuggestSize",label:E.NC("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(e,t){var i;null===(i=Qe.get(t))||void 0===i||i.resetWidgetSize()}})},88088:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SuggestInlineCompletions:()=>y});var n=i(71050),o=i(75392),s=i(53725),r=i(5976),a=i(16830),l=i(11640),c=i(24314),h=i(71922),d=i(74961),u=i(55621),g=i(80378),p=i(24477),m=i(84972),f=i(72065),_=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},v=function(e,t){return function(i,n){t(i,n,e)}};class b{constructor(e,t,i,n,o,s){this.range=e,this.insertText=t,this.filterText=i,this.additionalTextEdits=n,this.command=o,this.completion=s}}let C=class extends r.L6{constructor(e,t,i,n,o,s){super(o.disposable),this.model=e,this.line=t,this.word=i,this.completionModel=n,this._suggestMemoryService=s}canBeReused(e,t,i){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===i.startColumn&&this.word.endColumn=0&&i.resolve(n.T.None)}return t}};C=_([v(5,g.Fh)],C);let y=class{constructor(e,t,i,n){this._getEditorOption=e,this._languageFeatureService=t,this._clipboardService=i,this._suggestMemoryService=n}provideInlineCompletions(e,t,i,n){var o,s,r,a,l;return s=this,r=void 0,l=function*(){if(i.selectedSuggestionInfo)return;const s=this._getEditorOption(85,e);if(u.tG.isAllOff(s))return;e.tokenization.tokenizeIfCheap(t.lineNumber);const r=e.tokenization.getLineTokens(t.lineNumber),a=r.getStandardTokenType(r.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("inline"!==u.tG.valueFor(s,a))return;let l,h,g=e.getWordAtPosition(t);if((null==g?void 0:g.word)||(l=this._getTriggerCharacterInfo(e,t)),!(null==g?void 0:g.word)&&!l)return;if(g||(g=e.getWordUntilPosition(t)),g.endColumn!==t.column)return;const m=e.getValueInRange(new c.e(t.lineNumber,1,t.lineNumber,t.column));if(!l&&(null===(o=this._lastResult)||void 0===o?void 0:o.canBeReused(e,t.lineNumber,g))){const e=new d.t(m,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=e,this._lastResult.acquire(),h=this._lastResult}else{const i=yield(0,u.kL)(this._languageFeatureService.completionProvider,e,t,new u.A9(void 0,void 0,null==l?void 0:l.providers),l&&{triggerKind:1,triggerCharacter:l.ch},n);let o;i.needsClipboard&&(o=yield this._clipboardService.readText());const s=new d._(i.items,t.column,new d.t(m,0),p.K.None,this._getEditorOption(113,e),this._getEditorOption(107,e),{boostFullMatch:!1,firstMatchCanBeWeak:!1},o);h=new C(e,t.lineNumber,g,s,i,this._suggestMemoryService)}return this._lastResult=h,h},new((a=void 0)||(a=Promise))((function(e,t){function i(e){try{o(l.next(e))}catch(e){t(e)}}function n(e){try{o(l.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(i,n)}o((l=l.apply(s,r||[])).next())}))}handleItemDidShow(e,t){t.completion.resolve(n.T.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){var i;const n=e.getValueInRange(c.e.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),o=new Set;for(const t of this._languageFeatureService.completionProvider.all(e))(null===(i=t.triggerCharacters)||void 0===i?void 0:i.includes(n))&&o.add(t);if(0!==o.size)return{providers:o,ch:n}}};y=_([v(1,h.p),v(2,m.p),v(3,g.Fh)],y);let w=class e{constructor(t,i,n,o){if(1==++e._counter){const s=o.createInstance(y,((e,i)=>{var o;return(null!==(o=n.listCodeEditors().find((e=>e.getModel()===i)))&&void 0!==o?o:t).getOption(e)}));e._disposable=i.inlineCompletionsProvider.register("*",s)}}dispose(){var t;0==--e._counter&&(null===(t=e._disposable)||void 0===t||t.dispose(),e._disposable=void 0)}};w._counter=0,w=_([v(1,h.p),v(2,l.$),v(3,f.TG)],w),(0,a._K)("suggest.inlineCompletionsProvider",w,0)},80378:(e,t,i)=>{"use strict";i.d(t,{Fh:()=>f});var n=i(15393),o=i(5976),s=i(43702),r=i(4767),a=i(96887),l=i(33108),c=i(65026),h=i(72065),d=i(26904),u=function(e,t){return function(i,n){t(i,n,e)}};class g{constructor(e){this.name=e}select(e,t,i){if(0===i.length)return 0;const n=i[0].score[0];for(let e=0;ethis._saveState()),500),this._disposables.add(e.onWillSaveState((e=>{e.reason===d.fk.SHUTDOWN&&this._saveState()})))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,i){this._withStrategy(e,t).memorize(e,t,i),this._persistSoon.schedule()}select(e,t,i){return this._withStrategy(e,t).select(e,t,i)}_withStrategy(t,i){var n;const o=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:t.getLanguageIdAtPosition(i.lineNumber,i.column),resource:t.uri});if((null===(n=this._strategy)||void 0===n?void 0:n.name)!==o){this._saveState();const t=e._strategyCtors.get(o)||p;this._strategy=new t;try{const t=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,i=this._storageService.get(`${e._storagePrefix}/${o}`,t);i&&this._strategy.fromJSON(JSON.parse(i))}catch(e){}}return this._strategy}_saveState(){if(this._strategy){const t=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,i=JSON.stringify(this._strategy);this._storageService.store(`${e._storagePrefix}/${this._strategy.name}`,i,t,1)}}};m._strategyCtors=new Map([["recentlyUsedByPrefix",class extends g{constructor(){super("recentlyUsedByPrefix"),this._trie=r.Id.forStrings(),this._seq=0}memorize(e,t,i){const{word:n}=e.getWordUntilPosition(t),o=`${e.getLanguageId()}/${n}`;this._trie.set(o,{type:i.completion.kind,insertText:i.completion.insertText,touch:this._seq++})}select(e,t,i){const{word:n}=e.getWordUntilPosition(t);if(!n)return super.select(e,t,i);const o=`${e.getLanguageId()}/${n}`;let s=this._trie.get(o);if(s||(s=this._trie.findSubstr(o)),s)for(let e=0;ee.push([i,t]))),e.sort(((e,t)=>-(e[1].touch-t[1].touch))).forEach(((e,t)=>e[1].touch=t)),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(const[t,i]of e)i.type="number"==typeof i.type?i.type:a.gX.fromString(i.type),this._trie.set(t,i)}}}],["recentlyUsed",class extends g{constructor(){super("recentlyUsed"),this._cache=new s.z6(300,.66),this._seq=0}memorize(e,t,i){const n=`${e.getLanguageId()}/${i.textLabel}`;this._cache.set(n,{touch:this._seq++,type:i.completion.kind,insertText:i.completion.insertText})}select(e,t,i){if(0===i.length)return 0;const n=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(n))return super.select(e,t,i);const o=i[0].score[0];let s=-1,r=-1;for(let t=0;tr&&o.type===i[t].completion.kind&&o.insertText===i[t].completion.insertText&&(r=o.touch,s=t),i[t].completion.preselect)return t}return-1!==s?s:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();for(const[t,i]of e)i.touch=0,i.type="number"==typeof i.type?i.type:a.gX.fromString(i.type),this._cache.set(t,i);this._seq=this._cache.size}}],["first",p]]),m._storagePrefix="suggest/memories",m=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([u(0,d.Uy),u(1,l.Ui)],m);const f=(0,h.yh)("ISuggestMemories");(0,c.z)(f,m,1)},24477:(e,t,i)=>{"use strict";i.d(t,{K:()=>r});var n=i(9488),o=i(24314),s=i(79694);class r{static create(e,t){return i=this,a=void 0,c=function*(){if(!t.getOption(113).localityBonus)return r.None;if(!t.hasModel())return r.None;const i=t.getModel(),a=t.getPosition();if(!e.canComputeWordRanges(i.uri))return r.None;const[l]=yield(new s.x).provideSelectionRanges(i,[a]);if(0===l.length)return r.None;const c=yield e.computeWordRanges(i.uri,l[0].range);if(!c)return r.None;const h=i.getWordUntilPosition(a);return delete c[h.word],new class extends r{distance(e,i){if(!a.equals(t.getPosition()))return 0;if(17===i.kind)return 2<<20;const s="string"==typeof i.label?i.label:i.label.label,r=c[s];if((0,n.XY)(r))return 2<<20;const h=(0,n.ry)(r,o.e.fromPositions(e),o.e.compareRangesUsingStarts),d=h>=0?r[h]:r[Math.max(0,~h-1)];let u=l.length;for(const e of l){if(!o.e.containsRange(e.range,d))break;u-=1}return u}}},new((l=void 0)||(l=Promise))((function(e,t){function n(e){try{s(c.next(e))}catch(e){t(e)}}function o(e){try{s(c.throw(e))}catch(e){t(e)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof l?i:new l((function(e){e(i)}))).then(n,o)}s((c=c.apply(i,a||[])).next())}));var i,a,l,c}}r.None=new class extends r{distance(){return 0}}},71713:(e,t,i)=>{"use strict";var n=i(63580),o=i(73910);(0,o.P6G)("symbolIcon.arrayForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.booleanForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.NC)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.colorForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.constantForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.NC)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.NC)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.NC)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.fileForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.folderForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.NC)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.keyForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.keywordForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.NC)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.moduleForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.namespaceForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.nullForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.numberForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.objectForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.operatorForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.packageForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.propertyForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.referenceForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.snippetForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.stringForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.structForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.textForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.typeParameterForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.unitForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."))},64662:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ToggleTabFocusModeAction:()=>l});var n=i(85152),o=i(37940),s=i(63580),r=i(84144),a=i(93983);class l extends r.Ke{constructor(){super({id:l.ID,title:{value:s.NC({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),original:"Toggle Tab Key Moves Focus"},precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},f1:!0})}run(e){const t="terminal"===e.get(a.i6).getContextKeyValue("focusedView")?"terminalFocus":"editorFocus",i=!o.n.getTabFocusMode(t);o.n.setTabFocusMode(i,t),i?(0,n.Z9)(s.NC("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):(0,n.Z9)(s.NC("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}l.ID="editor.action.toggleTabFocusMode",(0,r.r1)(l)},52614:(e,t,i)=>{"use strict";i.r(t);var n=i(84013),o=i(16830),s=i(63580);class r extends o.R6{constructor(){super({id:"editor.action.forceRetokenize",label:s.NC("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getModel();i.tokenization.resetTokenization();const o=new n.G(!0);i.tokenization.forceTokenization(i.getLineCount()),o.stop(),console.log(`tokenization took ${o.elapsed()}`)}}(0,o.Qr)(r)},52954:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DisableHighlightingInCommentsAction:()=>J,DisableHighlightingInStringsAction:()=>ee,DisableHighlightingOfAmbiguousCharactersAction:()=>te,DisableHighlightingOfInvisibleCharactersAction:()=>ie,DisableHighlightingOfNonBasicAsciiCharactersAction:()=>ne,ShowExcludeOptions:()=>oe,UnicodeHighlighter:()=>K,UnicodeHighlighterHoverParticipant:()=>G,warningIcon:()=>j});var n=i(15393),o=i(73046),s=i(59365),r=i(5976),a=i(1432),l=i(97295),c=i(16830),h=i(64141),d=i(1231),u=i(31446),g=i(85215),p=i(72042),m=i(30168),f=i(66520),_=i(22374),v=i(65321),b=i(90317),C=i(74741),y=i(45241),w=i(72065),S=i(4850),k=i(59069),x=i(10553),L=i(4669),E=i(50988);let N=class extends r.JT{get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=e}constructor(e,t,i={},n){var o;super(),this._link=t,this._enabled=!0,this.el=(0,v.R3)(e,(0,v.$)("a.monaco-link",{tabIndex:null!==(o=t.tabIndex)&&void 0!==o?o:0,href:t.href,title:t.title},t.label)),this.el.setAttribute("role","button");const s=this._register(new S.Y(this.el,"click")),r=this._register(new S.Y(this.el,"keypress")),a=L.ju.chain(r.event).map((e=>new k.y(e))).filter((e=>3===e.keyCode)).event,l=this._register(new S.Y(this.el,x.t.Tap)).event;this._register(x.o.addTarget(this.el));const c=L.ju.any(s.event,a,l);this._register(c((e=>{this.enabled&&(v.zB.stop(e,!0),(null==i?void 0:i.opener)?i.opener(this._link.href):n.open(this._link.href,{allowCommands:!0}))}))),this.enabled=!0}};var D,T;N=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(D=3,T=E.v4,function(e,t){T(e,t,D)})],N);var I=i(59554),A=i(25670),M=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},R=function(e,t){return function(i,n){t(i,n,e)}};let O=class extends r.JT{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(P))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show(Object.assign(Object.assign({},e),{onClose:()=>{var t;this.hide(),null===(t=e.onClose)||void 0===t||t.call(e)}})),this._editor.setBanner(this.banner.element,26)}};O=M([R(1,w.TG)],O);let P=class extends r.JT{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(y.$,{}),this.element=(0,v.$)("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){return e.ariaLabel?e.ariaLabel:"string"==typeof e.message?e.message:void 0}getBannerMessage(e){if("string"==typeof e){const t=(0,v.$)("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){(0,v.PO)(this.element)}show(e){(0,v.PO)(this.element);const t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);const i=(0,v.R3)(this.element,(0,v.$)("div.icon-container"));i.setAttribute("aria-hidden","true"),e.icon&&i.appendChild((0,v.$)(`div${A.k.asCSSSelector(e.icon)}`));const n=(0,v.R3)(this.element,(0,v.$)("div.message-container"));if(n.setAttribute("aria-hidden","true"),n.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=(0,v.R3)(this.element,(0,v.$)("div.message-actions-container")),e.actions)for(const t of e.actions)this._register(this.instantiationService.createInstance(N,this.messageActionsContainer,Object.assign(Object.assign({},t),{tabIndex:-1}),{}));const o=(0,v.R3)(this.element,(0,v.$)("div.action-container"));this.actionBar=this._register(new b.o(o)),this.actionBar.push(this._register(new C.aU("banner.close","Close Banner",A.k.asClassName(I.s_),!0,(()=>{"function"==typeof e.onClose&&e.onClose()}))),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};P=M([R(0,w.TG)],P);var F=i(63580),B=i(33108),H=i(41157),V=i(33425),W=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},z=function(e,t){return function(i,n){t(i,n,e)}},U=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};const j=(0,I.q5)("extensions-warning-message",o.l.warning,F.NC("warningIcon","Icon shown with a warning message in the extensions editor."));let K=class extends r.JT{constructor(e,t,i,n){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=e=>{if(e&&e.hasMore){if(this._bannerClosed)return;const t=Math.max(e.ambiguousCharacterCount,e.nonBasicAsciiCharacterCount,e.invisibleCharacterCount);let i;if(e.nonBasicAsciiCharacterCount>=t)i={message:F.NC("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new ne};else if(e.ambiguousCharacterCount>=t)i={message:F.NC("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new te};else{if(!(e.invisibleCharacterCount>=t))throw new Error("Unreachable");i={message:F.NC("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new ie}}this._bannerController.show({id:"unicodeHighlightBanner",message:i.message,icon:j,actions:[{label:i.command.shortLabel,href:`command:${i.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(n.createInstance(O,e)),this._register(this._editor.onDidChangeModel((()=>{this._bannerClosed=!1,this._updateHighlighter()}))),this._options=e.getOption(120),this._register(i.onDidChangeTrust((e=>{this._updateHighlighter()}))),this._register(e.onDidChangeConfiguration((t=>{t.hasChanged(120)&&(this._options=e.getOption(120),this._updateHighlighter())}))),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const e=function(e,t){return{nonBasicASCII:t.nonBasicASCII===h.Av?!e:t.nonBasicASCII,ambiguousCharacters:t.ambiguousCharacters,invisibleCharacters:t.invisibleCharacters,includeComments:t.includeComments===h.Av?!e:t.includeComments,includeStrings:t.includeStrings===h.Av?!e:t.includeStrings,allowedCharacters:t.allowedCharacters,allowedLocales:t.allowedLocales}}(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every((e=>!1===e)))return;const t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map((e=>e.codePointAt(0))),allowedLocales:Object.keys(e.allowedLocales).map((e=>"_os"===e?(new Intl.NumberFormat).resolvedOptions().locale:"_vscode"===e?a.dK:e))};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new q(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new $(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};K.ID="editor.contrib.unicodeHighlighter",K=W([z(1,g.p),z(2,V.Y),z(3,w.TG)],K);let q=class extends r.JT{constructor(e,t,i,o){super(),this._editor=e,this._options=t,this._updateState=i,this._editorWorkerService=o,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new n.pY((()=>this._update()),250)),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then((t=>{if(this._model.isDisposed())return;if(this._model.getVersionId()!==e)return;this._updateState(t);const i=[];if(!t.hasMore)for(const e of t.ranges)i.push({range:e,options:X.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)}))}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel();return(0,m.Fd)(t,e)?{reason:Z(t.getValueInRange(e.range),this._options),inComment:(0,m.$t)(t,e),inString:(0,m.zg)(t,e)}:null}};q=W([z(3,g.p)],q);class $ extends r.JT{constructor(e,t,i){super(),this._editor=e,this._options=t,this._updateState=i,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new n.pY((()=>this._update()),250)),this._register(this._editor.onDidLayoutChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidScrollChange((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeHiddenAreas((()=>{this._updateSoon.schedule()}))),this._register(this._editor.onDidChangeModelContent((()=>{this._updateSoon.schedule()}))),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII())return void this._decorations.clear();const e=this._editor.getVisibleRanges(),t=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const t of e){const e=u.a.computeUnicodeHighlights(this._model,this._options,t);for(const t of e.ranges)i.ranges.push(t);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||e.hasMore}if(!i.hasMore)for(const e of i.ranges)t.push({range:e,options:X.instance.getDecorationFromOptions(this._options)});this._updateState(i),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel(),i=t.getValueInRange(e.range);return(0,m.Fd)(t,e)?{reason:Z(i,this._options),inComment:(0,m.$t)(t,e),inString:(0,m.zg)(t,e)}:null}}let G=class{constructor(e,t,i){this._editor=e,this._languageService=t,this._openerService=i,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),n=this._editor.getContribution(K.ID);if(!n)return[];const o=[];let r=300;for(const e of t){const t=n.getDecorationInfo(e);if(!t)continue;const a=i.getValueInRange(e.range).codePointAt(0),c=Y(a);let h;switch(t.reason.kind){case 0:h=(0,l.$i)(t.reason.confusableWith)?F.NC("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",c,Y(t.reason.confusableWith.codePointAt(0))):F.NC("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",c,Y(t.reason.confusableWith.codePointAt(0)));break;case 1:h=F.NC("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",c);break;case 2:h=F.NC("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",c)}const d={codePoint:a,reason:t.reason,inComment:t.inComment,inString:t.inString},u=F.NC("unicodeHighlight.adjustSettings","Adjust settings"),g=`command:${oe.ID}?${encodeURIComponent(JSON.stringify(d))}`,p=new s.W5("",!0).appendMarkdown(h).appendText(" ").appendLink(g,u);o.push(new _.hU(this,e.range,[p],!1,r++))}return o}renderHoverParts(e,t){return(0,_.c)(e,t,this._editor,this._languageService,this._openerService)}};function Q(e){return`U+${e.toString(16).padStart(4,"0")}`}function Y(e){let t=`\`${Q(e)}\``;return l.vU.isInvisibleCharacter(e)||(t+=` "${function(e){return 96===e?"`` ` ``":"`"+String.fromCodePoint(e)+"`"}(e)}"`),t}function Z(e,t){return u.a.computeUnicodeHighlightReason(e,t)}G=W([z(1,p.O),z(2,E.v4)],G);class X{constructor(){this.map=new Map}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){const i=`${e}${t}`;let n=this.map.get(i);return n||(n=d.qx.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(i,n)),n}}X.instance=new X;class J extends c.R6{constructor(){super({id:te.ID,label:F.NC("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=F.NC("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}run(e,t,i){return U(this,void 0,void 0,(function*(){const t=null==e?void 0:e.get(B.Ui);t&&this.runAction(t)}))}runAction(e){return U(this,void 0,void 0,(function*(){yield e.updateValue(h.qt.includeComments,!1,2)}))}}class ee extends c.R6{constructor(){super({id:te.ID,label:F.NC("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=F.NC("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}run(e,t,i){return U(this,void 0,void 0,(function*(){const t=null==e?void 0:e.get(B.Ui);t&&this.runAction(t)}))}runAction(e){return U(this,void 0,void 0,(function*(){yield e.updateValue(h.qt.includeStrings,!1,2)}))}}class te extends c.R6{constructor(){super({id:te.ID,label:F.NC("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=F.NC("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}run(e,t,i){return U(this,void 0,void 0,(function*(){const t=null==e?void 0:e.get(B.Ui);t&&this.runAction(t)}))}runAction(e){return U(this,void 0,void 0,(function*(){yield e.updateValue(h.qt.ambiguousCharacters,!1,2)}))}}te.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";class ie extends c.R6{constructor(){super({id:ie.ID,label:F.NC("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=F.NC("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}run(e,t,i){return U(this,void 0,void 0,(function*(){const t=null==e?void 0:e.get(B.Ui);t&&this.runAction(t)}))}runAction(e){return U(this,void 0,void 0,(function*(){yield e.updateValue(h.qt.invisibleCharacters,!1,2)}))}}ie.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";class ne extends c.R6{constructor(){super({id:ne.ID,label:F.NC("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=F.NC("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}run(e,t,i){return U(this,void 0,void 0,(function*(){const t=null==e?void 0:e.get(B.Ui);t&&this.runAction(t)}))}runAction(e){return U(this,void 0,void 0,(function*(){yield e.updateValue(h.qt.nonBasicASCII,!1,2)}))}}ne.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";class oe extends c.R6{constructor(){super({id:oe.ID,label:F.NC("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}run(e,t,i){return U(this,void 0,void 0,(function*(){const{codePoint:t,reason:n,inString:o,inComment:s}=i,r=String.fromCodePoint(t),a=e.get(H.eJ),c=e.get(B.Ui),d=[];if(0===n.kind)for(const e of n.notAmbiguousInLocales)d.push({label:F.NC("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',e),run:()=>U(this,void 0,void 0,(function*(){se(c,[e])}))});if(d.push({label:function(e){return l.vU.isInvisibleCharacter(e)?F.NC("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",Q(e)):F.NC("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${Q(e)} "${r}"`)}(t),run:()=>function(e,t){return U(this,void 0,void 0,(function*(){const i=e.getValue(h.qt.allowedCharacters);let n;n="object"==typeof i&&i?i:{};for(const e of t)n[String.fromCodePoint(e)]=!0;yield e.updateValue(h.qt.allowedCharacters,n,2)}))}(c,[t])}),s){const e=new J;d.push({label:e.label,run:()=>U(this,void 0,void 0,(function*(){return e.runAction(c)}))})}else if(o){const e=new ee;d.push({label:e.label,run:()=>U(this,void 0,void 0,(function*(){return e.runAction(c)}))})}if(0===n.kind){const e=new te;d.push({label:e.label,run:()=>U(this,void 0,void 0,(function*(){return e.runAction(c)}))})}else if(1===n.kind){const e=new ie;d.push({label:e.label,run:()=>U(this,void 0,void 0,(function*(){return e.runAction(c)}))})}else if(2===n.kind){const e=new ne;d.push({label:e.label,run:()=>U(this,void 0,void 0,(function*(){return e.runAction(c)}))})}else!function(e){throw new Error(`Unexpected value: ${e}`)}(n);const u=yield a.pick(d,{title:F.NC("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options")});u&&(yield u.run())}))}}function se(e,t){var i;return U(this,void 0,void 0,(function*(){const n=null===(i=e.inspect(h.qt.allowedLocales).user)||void 0===i?void 0:i.value;let o;o="object"==typeof n&&n?Object.assign({},n):{};for(const e of t)o[e]=!0;yield e.updateValue(h.qt.allowedLocales,o,2)}))}oe.ID="editor.action.unicodeHighlight.showExcludeOptions",(0,c.Qr)(te),(0,c.Qr)(ie),(0,c.Qr)(ne),(0,c.Qr)(oe),(0,c._K)(K.ID,K,1),f.Ae.register(G)},79607:(e,t,i)=>{"use strict";i.r(t),i.d(t,{UnusualLineTerminatorsDetector:()=>d});var n=i(5976),o=i(95935),s=i(16830),r=i(11640),a=i(63580),l=i(28820),c=function(e,t){return function(i,n){t(i,n,e)}};const h="ignoreUnusualLineTerminators";let d=class extends n.JT{constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._isPresentingDialog=!1,this._config=this._editor.getOption(121),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(121)&&(this._config=this._editor.getOption(121),this._checkForUnusualLineTerminators())}))),this._register(this._editor.onDidChangeModel((()=>{this._checkForUnusualLineTerminators()}))),this._register(this._editor.onDidChangeModelContent((e=>{e.isUndoing||this._checkForUnusualLineTerminators()}))),this._checkForUnusualLineTerminators()}_checkForUnusualLineTerminators(){return e=this,t=void 0,n=function*(){if("off"===this._config)return;if(!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators())return;const t=function(e,t){return e.getModelProperty(t.uri,h)}(this._codeEditorService,e);if(!0===t)return;if(this._editor.getOption(87))return;if("auto"===this._config)return void e.removeUnusualLineTerminators(this._editor.getSelections());if(this._isPresentingDialog)return;let i;try{this._isPresentingDialog=!0,i=yield this._dialogService.confirm({title:a.NC("unusualLineTerminators.title","Unusual Line Terminators"),message:a.NC("unusualLineTerminators.message","Detected unusual line terminators"),detail:a.NC("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,o.EZ)(e.uri)),primaryButton:a.NC({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:a.NC("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}i.confirmed?e.removeUnusualLineTerminators(this._editor.getSelections()):function(e,t,i){e.setModelProperty(t.uri,h,!0)}(this._codeEditorService,e)},new((i=void 0)||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}));var e,t,i,n}};d.ID="editor.contrib.unusualLineTerminatorsDetector",d=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([c(1,l.S),c(2,r.$)],d),(0,s._K)(d.ID,d,1)},14495:(e,t,i)=>{"use strict";i.d(t,{G:()=>b,w:()=>C});var n=i(84973),o=i(1231),s=i(96887),r=i(63580),a=i(73910),l=i(97781);const c=(0,a.P6G)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},r.NC("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0);(0,a.P6G)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},r.NC("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),(0,a.P6G)("editor.wordHighlightTextBackground",{light:c,dark:c,hcDark:c,hcLight:c},r.NC("wordHighlightText","Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);const h=(0,a.P6G)("editor.wordHighlightBorder",{light:null,dark:null,hcDark:a.xL1,hcLight:a.xL1},r.NC("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable."));(0,a.P6G)("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:a.xL1,hcLight:a.xL1},r.NC("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),(0,a.P6G)("editor.wordHighlightTextBorder",{light:h,dark:h,hcDark:h,hcLight:h},r.NC("wordHighlightTextBorder","Border color of a textual occurrence for a symbol."));const d=(0,a.P6G)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},r.NC("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),u=(0,a.P6G)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},r.NC("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),g=(0,a.P6G)("editorOverviewRuler.wordHighlightTextForeground",{dark:a.SPM,light:a.SPM,hcDark:a.SPM,hcLight:a.SPM},r.NC("overviewRulerWordHighlightTextForeground","Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0),p=o.qx.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:(0,l.EN)(u),position:n.sh.Center},minimap:{color:(0,l.EN)(a.IYc),position:n.F5.Inline}}),m=o.qx.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:(0,l.EN)(g),position:n.sh.Center},minimap:{color:(0,l.EN)(a.IYc),position:n.F5.Inline}}),f=o.qx.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:(0,l.EN)(a.SPM),position:n.sh.Center},minimap:{color:(0,l.EN)(a.IYc),position:n.F5.Inline}}),_=o.qx.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),v=o.qx.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:(0,l.EN)(d),position:n.sh.Center},minimap:{color:(0,l.EN)(a.IYc),position:n.F5.Inline}});function b(e){return e===s.MY.Write?p:e===s.MY.Text?m:v}function C(e){return e?_:f}(0,l.Ic)(((e,t)=>{const i=e.getColor(a.Rzx);i&&t.addRule(`.monaco-editor .selectionHighlight { background-color: ${i.transparent(.5)}; }`)}))},70943:(e,t,i)=>{"use strict";i.r(t),i.d(t,{WordHighlighterContribution:()=>k,getOccurrencesAtPosition:()=>b});var n=i(85152),o=i(9488),s=i(15393),r=i(71050),a=i(17301),l=i(5976),c=i(16830),h=i(24314),d=i(29102),u=i(96887),g=i(63580),p=i(93983),m=i(71922),f=i(14495),_=function(e,t){return function(i,n){t(i,n,e)}};const v=new p.uy("hasWordHighlights",!1);function b(e,t,i,n){const r=e.ordered(t);return(0,s.Ps)(r.map((e=>()=>Promise.resolve(e.provideDocumentHighlights(t,i,n)).then(void 0,a.Cp))),o.Of)}class C{constructor(e,t,i){this._model=e,this._selection=t,this._wordSeparators=i,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=(0,s.PG)((e=>this._compute(this._model,this._selection,this._wordSeparators,e)))),this._result}_getCurrentWordRange(e,t){const i=e.getWordAtPosition(t.getPosition());return i?new h.e(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):null}isValid(e,t,i){const n=t.startLineNumber,o=t.startColumn,s=t.endColumn,r=this._getCurrentWordRange(e,t);let a=Boolean(this._wordRange&&this._wordRange.equalsRange(r));for(let e=0,t=i.length;!a&&e=s&&(a=!0)}return a}cancel(){this.result.cancel()}}class y extends C{constructor(e,t,i,n){super(e,t,i),this._providers=n}_compute(e,t,i,n){return b(this._providers,e,t.getPosition(),n).then((e=>e||[]))}}class w extends C{constructor(e,t,i){super(e,t,i),this._selectionIsEmpty=t.isEmpty()}_compute(e,t,i,n){return(0,s.Vs)(250,n).then((()=>{if(!t.isEmpty())return[];const n=e.getWordAtPosition(t.getPosition());return!n||n.word.length>1e3?[]:e.findMatches(n.word,!0,!1,!0,i,!1).map((e=>({range:e.range,kind:u.MY.Text})))}))}isValid(e,t,i){const n=t.isEmpty();return this._selectionIsEmpty===n&&super.isValid(e,t,i)}}(0,c.sb)("_executeDocumentHighlights",((e,t,i)=>b(e.get(m.p).documentHighlightProvider,t,i,r.T.None)));class S{constructor(e,t,i){this.toUnhook=new l.SL,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this.providers=t,this._hasWordHighlights=v.bindTo(i),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(78),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition((e=>{this._ignorePositionChangeEvent||this.occurrencesHighlight&&this._onPositionChanged(e)}))),this.toUnhook.add(e.onDidChangeModelContent((e=>{this._stopAll()}))),this.toUnhook.add(e.onDidChangeConfiguration((e=>{const t=this.editor.getOption(78);this.occurrencesHighlight!==t&&(this.occurrencesHighlight=t,this._stopAll())}))),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}hasDecorations(){return this.decorations.length>0}restore(){this.occurrencesHighlight&&this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(h.e.compareRangesUsingStarts)}moveNext(){const e=this._getSortedHighlights(),t=(e.findIndex((e=>e.containsPosition(this.editor.getPosition())))+1)%e.length,i=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);const o=this._getWord();if(o){const s=this.editor.getModel().getLineContent(i.startLineNumber);(0,n.Z9)(`${s}, ${t+1} of ${e.length} for '${o.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const e=this._getSortedHighlights(),t=(e.findIndex((e=>e.containsPosition(this.editor.getPosition())))-1+e.length)%e.length,i=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);const o=this._getWord();if(o){const s=this.editor.getModel().getLineContent(i.startLineNumber);(0,n.Z9)(`${s}, ${t+1} of ${e.length} for '${o.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeDecorations(){this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1))}_stopAll(){this._removeDecorations(),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){this.occurrencesHighlight&&3===e.reason?this._run():this._stopAll()}_getWord(){const e=this.editor.getSelection(),t=e.startLineNumber,i=e.startColumn;return this.model.getWordAtPosition({lineNumber:t,column:i})}_run(){const e=this.editor.getSelection();if(e.startLineNumber!==e.endLineNumber)return void this._stopAll();const t=e.startColumn,i=e.endColumn,n=this._getWord();if(!n||n.startColumn>t||n.endColumn{e===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=t||[],this._beginRenderDecorations())}),a.dL)}var s,r,l,c}_beginRenderDecorations(){const e=(new Date).getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout((()=>{this.renderDecorations()}),t-e)}renderDecorations(){this.renderDecorationsTimer=-1;const e=[];for(const t of this.workerRequestValue)t.range&&e.push({range:t.range,options:(0,f.G)(t.kind)});this.decorations.set(e),this._hasWordHighlights.set(this.hasDecorations())}dispose(){this._stopAll(),this.toUnhook.dispose()}}let k=class e extends l.JT{static get(t){return t.getContribution(e.ID)}constructor(e,t,i){super(),this.wordHighlighter=null;const n=()=>{e.hasModel()&&(this.wordHighlighter=new S(e,i.documentHighlightProvider,t))};this._register(e.onDidChangeModel((e=>{this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),n()}))),n()}saveViewState(){return!(!this.wordHighlighter||!this.wordHighlighter.hasDecorations())}moveNext(){var e;null===(e=this.wordHighlighter)||void 0===e||e.moveNext()}moveBack(){var e;null===(e=this.wordHighlighter)||void 0===e||e.moveBack()}restoreViewState(e){this.wordHighlighter&&e&&this.wordHighlighter.restore()}dispose(){this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),super.dispose()}};k.ID="editor.contrib.wordHighlighter",k=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([_(1,p.i6),_(2,m.p)],k);class x extends c.R6{constructor(e,t){super(t),this._isNext=e}run(e,t){const i=k.get(t);i&&(this._isNext?i.moveNext():i.moveBack())}}class L extends c.R6{constructor(){super({id:"editor.action.wordHighlight.trigger",label:g.NC("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:v.toNegated(),kbOpts:{kbExpr:d.u.editorTextFocus,primary:0,weight:100}})}run(e,t,i){const n=k.get(t);n&&n.restoreViewState(!0)}}(0,c._K)(k.ID,k,0),(0,c.Qr)(class extends x{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:g.NC("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:v,kbOpts:{kbExpr:d.u.editorTextFocus,primary:65,weight:100}})}}),(0,c.Qr)(class extends x{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:g.NC("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:v,kbOpts:{kbExpr:d.u.editorTextFocus,primary:1089,weight:100}})}}),(0,c.Qr)(L)},37181:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CursorWordAccessibilityLeft:()=>E,CursorWordAccessibilityLeftSelect:()=>N,CursorWordAccessibilityRight:()=>O,CursorWordAccessibilityRightSelect:()=>P,CursorWordEndLeft:()=>w,CursorWordEndLeftSelect:()=>x,CursorWordEndRight:()=>T,CursorWordEndRightSelect:()=>M,CursorWordLeft:()=>S,CursorWordLeftSelect:()=>L,CursorWordRight:()=>I,CursorWordRightSelect:()=>R,CursorWordStartLeft:()=>y,CursorWordStartLeftSelect:()=>k,CursorWordStartRight:()=>D,CursorWordStartRightSelect:()=>A,DeleteInsideWord:()=>q,DeleteWordCommand:()=>F,DeleteWordEndLeft:()=>W,DeleteWordEndRight:()=>j,DeleteWordLeft:()=>z,DeleteWordLeftCommand:()=>B,DeleteWordRight:()=>K,DeleteWordRightCommand:()=>H,DeleteWordStartLeft:()=>V,DeleteWordStartRight:()=>U,MoveWordCommand:()=>v,WordLeftCommand:()=>b,WordRightCommand:()=>C});var n=i(16830),o=i(61329),s=i(64141),r=i(55343),a=i(92896),l=i(24929),c=i(50187),h=i(24314),d=i(3860),u=i(29102),g=i(51381),p=i(63580),m=i(31106),f=i(93983),_=i(39282);class v extends n._l{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;const n=(0,l.u)(t.getOption(125)),o=t.getModel(),s=t.getSelections().map((e=>{const t=new c.L(e.positionLineNumber,e.positionColumn),i=this._move(n,o,t,this._wordNavigationType);return this._moveTo(e,i,this._inSelectionMode)}));if(o.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,s.map((e=>r.Vi.fromModelSelection(e)))),1===s.length){const e=new c.L(s[0].positionLineNumber,s[0].positionColumn);t.revealPosition(e,0)}}_moveTo(e,t,i){return i?new d.Y(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new d.Y(t.lineNumber,t.column,t.lineNumber,t.column)}}class b extends v{_move(e,t,i,n){return a.w.moveWordLeft(e,t,i,n)}}class C extends v{_move(e,t,i,n){return a.w.moveWordRight(e,t,i,n)}}class y extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}class w extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}class S extends b{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:f.Ao.and(u.u.textInputFocus,null===(e=f.Ao.and(m.U,_.cv))||void 0===e?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}}class k extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}class x extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}class L extends b{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:f.Ao.and(u.u.textInputFocus,null===(e=f.Ao.and(m.U,_.cv))||void 0===e?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}}class E extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,n){return super._move((0,l.u)(s.BH.wordSeparators.defaultValue),t,i,n)}}class N extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,n){return super._move((0,l.u)(s.BH.wordSeparators.defaultValue),t,i,n)}}class D extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}class T extends C{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:f.Ao.and(u.u.textInputFocus,null===(e=f.Ao.and(m.U,_.cv))||void 0===e?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}}class I extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}class A extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}class M extends C{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:f.Ao.and(u.u.textInputFocus,null===(e=f.Ao.and(m.U,_.cv))||void 0===e?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}}class R extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}class O extends C{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,n){return super._move((0,l.u)(s.BH.wordSeparators.defaultValue),t,i,n)}}class P extends C{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,n){return super._move((0,l.u)(s.BH.wordSeparators.defaultValue),t,i,n)}}class F extends n._l{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){const n=e.get(g.c_);if(!t.hasModel())return;const s=(0,l.u)(t.getOption(125)),r=t.getModel(),a=t.getSelections(),c=t.getOption(5),h=t.getOption(9),d=n.getLanguageConfiguration(r.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),p=a.map((e=>{const i=this._delete({wordSeparators:s,model:r,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(7),autoClosingBrackets:c,autoClosingQuotes:h,autoClosingPairs:d,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType);return new o.T4(i,"")}));t.pushUndoStop(),t.executeCommands(this.id,p),t.pushUndoStop()}}class B extends F{_delete(e,t){return a.w.deleteWordLeft(e,t)||new h.e(1,1,1,1)}}class H extends F{_delete(e,t){const i=a.w.deleteWordRight(e,t);if(i)return i;const n=e.model.getLineCount(),o=e.model.getLineMaxColumn(n);return new h.e(n,o,n,o)}}class V extends B{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:u.u.writable})}}class W extends B{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:u.u.writable})}}class z extends B{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:u.u.writable,kbOpts:{kbExpr:u.u.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}class U extends H{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:u.u.writable})}}class j extends H{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:u.u.writable})}}class K extends H{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:u.u.writable,kbOpts:{kbExpr:u.u.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}class q extends n.R6{constructor(){super({id:"deleteInsideWord",precondition:u.u.writable,label:p.NC("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,i){if(!t.hasModel())return;const n=(0,l.u)(t.getOption(125)),s=t.getModel(),r=t.getSelections().map((e=>{const t=a.w.deleteInsideWord(n,s,e);return new o.T4(t,"")}));t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}(0,n.fK)(new y),(0,n.fK)(new w),(0,n.fK)(new S),(0,n.fK)(new k),(0,n.fK)(new x),(0,n.fK)(new L),(0,n.fK)(new D),(0,n.fK)(new T),(0,n.fK)(new I),(0,n.fK)(new A),(0,n.fK)(new M),(0,n.fK)(new R),(0,n.fK)(new E),(0,n.fK)(new N),(0,n.fK)(new O),(0,n.fK)(new P),(0,n.fK)(new V),(0,n.fK)(new W),(0,n.fK)(new z),(0,n.fK)(new U),(0,n.fK)(new j),(0,n.fK)(new K),(0,n.Qr)(q)},86709:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CursorWordPartLeft:()=>u,CursorWordPartLeftSelect:()=>g,CursorWordPartRight:()=>m,CursorWordPartRightSelect:()=>f,DeleteWordPartLeft:()=>c,DeleteWordPartRight:()=>h,WordPartLeftCommand:()=>d,WordPartRightCommand:()=>p});var n=i(16830),o=i(92896),s=i(24314),r=i(29102),a=i(37181),l=i(94565);class c extends a.DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:r.u.writable,kbOpts:{kbExpr:r.u.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){return o.L.deleteWordPartLeft(e)||new s.e(1,1,1,1)}}class h extends a.DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:r.u.writable,kbOpts:{kbExpr:r.u.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){const i=o.L.deleteWordPartRight(e);if(i)return i;const n=e.model.getLineCount(),r=e.model.getLineMaxColumn(n);return new s.e(n,r,n,r)}}class d extends a.MoveWordCommand{_move(e,t,i,n){return o.L.moveWordPartLeft(e,t,i)}}class u extends d{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:r.u.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}l.P.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");class g extends d{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:r.u.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}l.P.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class p extends a.MoveWordCommand{_move(e,t,i,n){return o.L.moveWordPartRight(e,t,i)}}class m extends p{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:r.u.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}class f extends p{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:r.u.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}}(0,n.fK)(new c),(0,n.fK)(new h),(0,n.fK)(new u),(0,n.fK)(new g),(0,n.fK)(new m),(0,n.fK)(new f)},32518:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CancellationTokenSource:()=>xa,Emitter:()=>La,KeyCode:()=>Ea,KeyMod:()=>Na,MarkerSeverity:()=>Ma,MarkerTag:()=>Ra,Position:()=>Da,Range:()=>Ta,Selection:()=>Ia,SelectionDirection:()=>Aa,Token:()=>Pa,Uri:()=>Oa,editor:()=>Fa,languages:()=>Ba});var n=i(64141),o=i(20927),s=i(5976),r=i(97295),a=i(70666),l=i(27231),c=i(11640),h=i(35146),d=i(4669),u=i(36248),g=i(24314),p=i(69149),m=i(31106),f=function(e,t){return function(i,n){t(i,n,e)}};const _={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0,findResultLoop:!0};let v=class extends s.JT{constructor(e,t={},i,n,o){super(),this._audioCueService=i,this._codeEditorService=n,this._accessibilityService=o,this._onDidUpdate=this._register(new d.Q5),this._editor=e,this._options=u.jB(t,_,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=Boolean(this._options.alwaysRevealFirst),this._register(this._editor.onDidDispose((()=>this.dispose()))),this._register(this._editor.onDidUpdateDiff((()=>this._onDiffUpdated()))),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition((e=>{this.ignoreSelectionChange||(this._updateAccessibilityState(e.position.lineNumber),this.nextIdx=-1)}))),this._options.alwaysRevealFirst&&this._register(this._editor.getModifiedEditor().onDidChangeModel((e=>{this.revealFirst=!0}))),this._init()}_init(){this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(e){this.ranges=[],e&&e.forEach((e=>{!this._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach((e=>{this.ranges.push({rhs:!0,range:new g.e(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})})):0===e.modifiedEndLineNumber?this.ranges.push({rhs:!0,range:new g.e(e.modifiedStartLineNumber,1,e.modifiedStartLineNumber+1,1)}):this.ranges.push({rhs:!0,range:new g.e(e.modifiedStartLineNumber,1,e.modifiedEndLineNumber+1,1)})})),this.ranges.sort(((e,t)=>g.e.compareRangesUsingStarts(e.range,t.range))),this._onDidUpdate.fire(this)}_initIdx(e){let t=!1;const i=this._editor.getPosition();if(i){for(let n=0,o=this.ranges.length;n=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));const i=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{const e=i.range.getStartPosition();this._editor.setPosition(e),this._editor.revealRangeInCenter(i.range,t),this._updateAccessibilityState(e.lineNumber,!0)}finally{this.ignoreSelectionChange=!1}}_updateAccessibilityState(e,t){var i;const n=null===(i=this._editor.getModel())||void 0===i?void 0:i.modified;if(!n)return;const o=n.getLineDecorations(e).find((e=>"line-insert"===e.options.className));if(o)this._audioCueService.playAudioCue(p.y$.diffLineModified,!0);else{if(!t)return;this._audioCueService.playAudioCue(p.y$.diffLineDeleted,!0)}const s=this._codeEditorService.getActiveCodeEditor();t&&s&&o&&this._accessibilityService.isScreenReaderOptimized()&&(s.setSelection({startLineNumber:e,startColumn:0,endLineNumber:e,endColumn:Number.MAX_VALUE}),s.writeScreenReaderContent("diff-navigation"))}canNavigate(){return this.ranges&&this.ranges.length>0}next(e=0){this.canNavigateNext()&&this._move(!0,e)}previous(e=0){this.canNavigatePrevious()&&this._move(!1,e)}canNavigateNext(){return this.canNavigateLoop()||this.nextIdx=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([f(2,p.e7),f(3,c.$),f(4,m.F)],v);var b=i(27374),C=i(96518),y=i(84973),w=i(96887),S=i(51381),k=i(276),x=i(72042),L=i(73733),E=i(82573);class N extends E.Q8{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!=typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(e){return Promise.reject(e)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then((e=>{const t=this._foreignModuleHost?(0,u.$E)(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then((t=>{this._foreignModuleCreateData=null;const i=(t,i)=>e.fmr(t,i),n=(e,t)=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},o={};for(const e of t)o[e]=n(e,i);return o}))}))),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then((e=>this.getProxy()))}}var D=i(70902),T=i(77378),I=i(91557),A=i(1118);function M(e){return"string"==typeof e}function R(e){return!M(e)}function O(e){return!e}function P(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function F(e){return e.replace(/[&<>'"_]/g,"-")}function B(e,t){return new Error(`${e.languageId}: ${t}`)}function H(e,t,i,n,o){let s=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,r,a,l,c,h,d,u,g){return O(a)?O(l)?!O(c)&&c0;){const t=e.tokenizer[i];if(t)return t;const n=i.lastIndexOf(".");i=n<0?null:i.substr(0,n)}return null}var W=i(33108);class z{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new U(e,t);let i=U.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n||(n=new U(e,t),this._entries[i]=n,n)}}z._INSTANCE=new z(5);class U{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return U._equals(this,e)}push(e){return z.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return z.create(this.parent,e)}}class j{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new j(this.languageId,this.state)}}class K{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==t)return new q(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new q(e,t);const i=U.getStackElementId(e);let n=this._entries[i];return n||(n=new q(e,null),this._entries[i]=n,n)}}K._INSTANCE=new K(5);class q{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:K.create(this.stack,this.embeddedLanguageData)}equals(e){return e instanceof q&&!!this.stack.equals(e.stack)&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData))}}class ${constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new w.WU(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,n){const o=i.languageId,s=i.state,r=w.RW.get(o);if(!r)return this.enterLanguage(o),this.emit(n,""),s;const a=r.tokenize(e,t,s);if(0!==n)for(const e of a.tokens)this._tokens.push(new w.WU(e.offset+n,e.type,e.language));else this._tokens=this._tokens.concat(a.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState}finalize(e){return new w.hG(this._tokens,e)}}class G{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){const i=1024|this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){const n=null!==e?e.length:0,o=t.length,s=null!==i?i.length:0;if(0===n&&0===o&&0===s)return new Uint32Array(0);if(0===n&&0===o)return i;if(0===o&&0===s)return e;const r=new Uint32Array(n+o+s);null!==e&&r.set(e);for(let e=0;e{if(s)return;let t=!1;for(let i=0,n=e.changedLanguages.length;i{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))}))}dispose(){this._tokenizationRegistryListener.dispose()}getLoadStatus(){const t=[];for(const i in this._embeddedLanguages){const n=w.RW.get(i);if(n){if(n instanceof e){const e=n.getLoadStatus();!1===e.loaded&&t.push(e.promise)}}else w.RW.isResolved(i)||t.push(w.RW.getOrCreate(i))}return 0===t.length?{loaded:!0}:{loaded:!1,promise:Promise.all(t).then((e=>{}))}}getInitialState(){const e=z.create(null,this._lexer.start);return K.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,k.Ri)(this._languageId,i);const n=new $,o=this._tokenize(e,t,i,n);return n.finalize(o)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,k.Dy)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);const n=new G(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),o=this._tokenize(e,t,i,n);return n.finalize(o)}_tokenize(e,t,i,n){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,n):this._myTokenize(e,t,i,0,n)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=V(this._lexer,t.stack.state),!i))throw B(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,o=!1;for(const t of i){if(!R(t.action)||"@pop"!==t.action.nextEmbedded)continue;o=!0;let i=t.regex;const s=t.regex.source;if("^(?:"===s.substr(0,4)&&")"===s.substr(s.length-1,1)){const e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(s.substr(4,s.length-5),e)}const r=e.search(i);-1===r||0!==r&&t.matchOnlyAtLineStart||(-1===n||r0&&o.nestedLanguageTokenize(r,!1,i.embeddedLanguageData,n);const a=e.substring(s);return this._myTokenize(a,t,i,n+s,o)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,o){o.enterLanguage(this._languageId);const s=e.length,r=t&&this._lexer.includeLF?e+"\n":e,a=r.length;let l=i.embeddedLanguageData,c=i.stack,h=0,d=null,u=!0;for(;u||h=a)break;u=!1;let e=this._lexer.tokenizer[_];if(!e&&(e=V(this._lexer,_),!e))throw B(this._lexer,"tokenizer state is not defined: "+_);const t=r.substr(h);for(const i of e)if((0===h||!i.matchOnlyAtLineStart)&&(v=t.match(i.regex),v)){b=v[0],C=i.action;break}}if(v||(v=[""],b=""),C||(h=this._lexer.maxStack)throw B(this._lexer,"maximum tokenizer stack size reached: ["+c.state+","+c.parent.state+",...]");c=c.push(_)}else if("@pop"===C.next){if(c.depth<=1)throw B(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(y));c=c.pop()}else if("@popall"===C.next)c=c.popall();else{let e=H(this._lexer,C.next,b,v,_);if("@"===e[0]&&(e=e.substr(1)),!V(this._lexer,e))throw B(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(y));c=c.push(e)}}C.log&&"string"==typeof C.log&&(g=this._lexer,p=this._lexer.languageId+": "+H(this._lexer,C.log,b,v,_),console.log(`${g.languageId}: ${p}`))}if(null===S)throw B(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(y));const k=i=>{const s=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,r=this._getNestedEmbeddedLanguageData(s);if(h0)throw B(this._lexer,"groups cannot be nested: "+this._safeRuleName(y));if(v.length!==S.length+1)throw B(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(y));let e=0;for(let t=1;t=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(Z=4,X=W.Ui,function(e,t){X(e,t,Z)})],Q);var J;const ee=null===(J=window.trustedTypes)||void 0===J?void 0:J.createPolicy("standaloneColorizer",{createHTML:e=>e});class te{static colorizeElement(e,t,i,n){const o=(n=n||{}).theme||"vs",s=n.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!s)return console.error("Mode not detected"),Promise.resolve();const r=t.getLanguageIdByMimeType(s)||s;e.setTheme(o);const a=i.firstChild?i.firstChild.nodeValue:"";return i.className+=" "+o,this.colorize(t,a||"",r,n).then((e=>{var t;const n=null!==(t=null==ee?void 0:ee.createHTML(e))&&void 0!==t?t:e;i.innerHTML=n}),(e=>console.error(e)))}static colorize(e,t,i,n){return o=this,s=void 0,l=function*(){const o=e.languageIdCodec;let s=4;n&&"number"==typeof n.tabSize&&(s=n.tabSize),r.uS(t)&&(t=t.substr(1));const a=r.uq(t);if(!e.isRegisteredLanguageId(i))return ie(a,s,o);const l=yield w.RW.getOrCreate(i);return l?function(e,t,i,n){return new Promise(((o,s)=>{const r=()=>{const a=function(e,t,i,n){let o=[],s=i.getInitialState();for(let r=0,a=e.length;r"),s=l.endState}return o.join("")}(e,t,i,n);if(i instanceof Q){const e=i.getLoadStatus();if(!1===e.loaded)return void e.promise.then(r,s)}o(a)};r()}))}(a,s,l,o):ie(a,s,o)},new((a=void 0)||(a=Promise))((function(e,t){function i(e){try{r(l.next(e))}catch(e){t(e)}}function n(e){try{r(l.throw(e))}catch(e){t(e)}}function r(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(i,n)}r((l=l.apply(o,s||[])).next())}));var o,s,a,l}static colorizeLine(e,t,i,n,o=4){const s=A.wA.isBasicASCII(e,t),r=A.wA.containsRTL(e,s,i);return(0,I.tF)(new I.IJ(!1,!0,e,!1,s,r,0,n,[],o,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,i=4){const n=e.getLineContent(t);e.tokenization.forceTokenization(t);const o=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(n,e.mightContainNonBasicASCII(),e.mightContainRTL(),o,i)}}function ie(e,t,i){let n=[];const o=new Uint32Array(2);o[0]=0,o[1]=33587200;for(let s=0,r=e.length;s")}return n.join("")}var ne,oe=i(85152),se=i(51998),re=i(65321),ae=i(38626),le=i(96542),ce=i(73098),he=i(15393),de=i(73046),ue=i(17301),ge=i(52136),pe=i(54534),me=i(16830),fe=i(43407),_e=i(63580),ve=i(90317),be=i(9802),Ce=i(74741),ye=i(50187),we=i(93983),Se=i(25670),ke=i(59554),xe=function(e,t){return function(i,n){t(i,n,e)}};class Le{constructor(e,t,i,n){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=i,this.modifiedLineEnd=n}getType(){return 0===this.originalLineStart?1:0===this.modifiedLineStart?2:0}}class Ee{constructor(e){this.entries=e}}const Ne=(0,ke.q5)("diff-review-insert",de.l.add,_e.NC("diffReviewInsertIcon","Icon for 'Insert' in diff review.")),De=(0,ke.q5)("diff-review-remove",de.l.remove,_e.NC("diffReviewRemoveIcon","Icon for 'Remove' in diff review.")),Te=(0,ke.q5)("diff-review-close",de.l.close,_e.NC("diffReviewCloseIcon","Icon for 'Close' in diff review."));let Ie=class e extends s.JT{constructor(e,t,i,n){super(),this._languageService=t,this._audioCueService=i,this._configurationService=n,this._width=0,this._diffEditor=e,this._isVisible=!1,this.shadow=(0,ae.X)(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=(0,ae.X)(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this._actionBar=this._register(new ve.o(this.actionBarContainer.domNode)),this._actionBar.push(new Ce.aU("diffreview.close",_e.NC("label.close","Close"),"close-diff-review "+Se.k.asClassName(Te),!0,(()=>{return e=this,t=void 0,n=function*(){return this.hide()},new((i=void 0)||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}));var e,t,i,n})),{label:!1,icon:!0}),this.domNode=(0,ae.X)(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this._content=(0,ae.X)(document.createElement("div")),this._content.setClassName("diff-review-content"),this._content.setAttribute("role","code"),this.scrollbar=this._register(new be.s$(this._content.domNode,{})),this.domNode.domNode.appendChild(this.scrollbar.getDomNode()),this._register(e.onDidUpdateDiff((()=>{this._isVisible&&(this._diffs=this._compute(),this._render())}))),this._register(e.getModifiedEditor().onDidChangeCursorPosition((()=>{this._isVisible&&this._render()}))),this._register(re.mu(this.domNode.domNode,"click",(e=>{e.preventDefault();const t=re.Fx(e.target,"diff-review-row");t&&this._goToRow(t)}))),this._register(re.mu(this.domNode.domNode,"keydown",(e=>{(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),this._goToRow(this._getNextRow(),"next")),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),this._goToRow(this._getPrevRow(),"previous")),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033)||e.equals(10)||e.equals(3))&&(e.preventDefault(),this.accept())}))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("accessibility.verbosity.diff-editor")&&this._diffEditor.updateOptions({accessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.diff-editor")})}))),this._diffs=[],this._currentDiff=null}prev(){let e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let t=-1;for(let e=0,i=this._diffs.length;e0){const t=e[s-1];n=0===t.originalEndLineNumber?t.originalStartLineNumber+1:t.originalEndLineNumber+1,o=0===t.modifiedEndLineNumber?t.modifiedStartLineNumber+1:t.modifiedEndLineNumber+1}let r=t-3+1,a=i-3+1;if(ra){const e=a-m;m+=e,f+=e}if(f>p){const e=p-f;m+=e,f+=e}u[g++]=new Le(n,m,o,f)}n[o++]=new Ee(u)}let s=n[0].entries;const r=[];let a=0;for(let e=1,t=n.length;ed)&&(d=n),0!==o&&(0===u||og)&&(g=s)}const p=document.createElement("div");p.className="diff-review-row";const m=document.createElement("div");m.className="diff-review-cell diff-review-summary";const f=d-h+1,_=g-u+1;m.appendChild(document.createTextNode(`${a+1}/${this._diffs.length}: @@ -${h},${f} +${u},${_} @@`)),p.setAttribute("data-line",String(u));const v=e=>0===e?_e.NC("no_lines_changed","no lines changed"):1===e?_e.NC("one_line_changed","1 line changed"):_e.NC("more_lines_changed","{0} lines changed",e),b=v(f),C=v(_);p.setAttribute("aria-label",_e.NC({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",a+1,this._diffs.length,h,b,u,C)),p.appendChild(m),p.setAttribute("role","listitem"),c.appendChild(p);const y=i.get(64);let w=u;for(let a=0,h=l.length;ae}),Ie=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([xe(1,x.O),xe(2,p.e7),xe(3,W.Ui)],Ie);class Ae extends me.R6{constructor(){super({id:"editor.action.diffReview.next",label:_e.NC("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:we.Ao.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}run(e,t){const i=Re(e);null==i||i.diffReviewNext()}}class Me extends me.R6{constructor(){super({id:"editor.action.diffReview.prev",label:_e.NC("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:we.Ao.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}run(e,t){const i=Re(e);null==i||i.diffReviewPrev()}}function Re(e){const t=e.get(c.$),i=t.listDiffEditors(),n=t.getActiveCodeEditor();if(!n)return null;for(let e=0,t=i.length;en.modifiedStartLineNumber?_e.NC("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):_e.NC("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):n.originalEndLineNumber>n.modifiedStartLineNumber?_e.NC("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):_e.NC("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,(()=>Oe(this,void 0,void 0,(function*(){const e=new g.e(n.originalStartLineNumber,1,n.originalEndLineNumber+1,1),t=n.originalModel.getValueInRange(e);yield this._clipboardService.writeText(t)})))));let h,d=0;n.originalEndLineNumber>n.modifiedStartLineNumber&&(h=new Ce.aU("diff.clipboard.copyDeletedLineContent",c?_e.NC("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.originalStartLineNumber):_e.NC("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.originalStartLineNumber),void 0,!0,(()=>Oe(this,void 0,void 0,(function*(){const e=n.originalModel.getLineContent(n.originalStartLineNumber+d);if(""===e){const e=n.originalModel.getEndOfLineSequence();yield this._clipboardService.writeText(0===e?"\n":"\r\n")}else yield this._clipboardService.writeText(e)})))),l.push(h)),i.getOption(87)||l.push(new Ce.aU("diff.inline.revertChange",_e.NC("diff.inline.revertChange.label","Revert this change"),void 0,!0,(()=>Oe(this,void 0,void 0,(function*(){const e=new g.e(n.originalStartLineNumber,1,n.originalEndLineNumber,n.originalModel.getLineMaxColumn(n.originalEndLineNumber)),t=n.originalModel.getValueInRange(e);if(0===n.modifiedEndLineNumber){const e=i.getModel().getLineMaxColumn(n.modifiedStartLineNumber);i.executeEdits("diffEditor",[{range:new g.e(n.modifiedStartLineNumber,e,n.modifiedStartLineNumber,e),text:a+t}])}else{const e=i.getModel().getLineMaxColumn(n.modifiedEndLineNumber);i.executeEdits("diffEditor",[{range:new g.e(n.modifiedStartLineNumber,1,n.modifiedEndLineNumber,e),text:t}])}})))));const u=(e,t)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:e,y:t}),getActions:()=>(h&&(h.label=c?_e.NC("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.originalStartLineNumber+d):_e.NC("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.originalStartLineNumber+d)),l),autoSelectFirstItem:!0})};this._register(re.mu(this._diffActions,"mousedown",(e=>{const{top:t,height:i}=re.i(this._diffActions),n=Math.floor(r/3);e.preventDefault(),u(e.posx,t+i+n)}))),this._register(i.onMouseMove((e=>{(8===e.target.type||5===e.target.type)&&e.target.detail.viewZoneId===this._viewZoneId?(this.visibility=!0,d=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,r)):this.visibility=!1}))),this._register(i.onMouseDown((e=>{!e.event.rightButton||8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId===this._viewZoneId&&(e.event.preventDefault(),d=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,r),u(e.event.posx,e.event.posy+r))})))}_updateLightBulbPosition(e,t,i){const{top:n}=re.i(e),o=t-n,s=Math.floor(o/i),r=s*i;if(this._diffActions.style.top=`${r}px`,this.diff.viewLineCounts){let e=0;for(let t=0;tthis.onDidChangeEventEmitter.fire()))),i=!0),i&&this.onDidChangeEventEmitter.fire()}};We=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Ve(1,Be.p),Ve(2,He.b)],We);var ze,Ue=i(50072),je=i(1231),Ke=i(92550),qe=i(30665),$e=i(84972),Ge=i(5606),Qe=i(72065),Ye=i(60972),Ze=i(59422),Xe=i(90535),Je=i(73910),et=i(97781),tt=i(59365),it=function(e,t){return function(i,n){t(i,n,e)}};class nt{constructor(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this._inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}getForeignViewZones(e){return e.filter((e=>!this._zonesMap[String(e.id)]))}clean(e){this._zones.length>0&&e.changeViewZones((e=>{for(const t of this._zones)e.removeZone(t)})),this._zones=[],this._zonesMap={},e.changeDecorations((e=>{this._decorations=e.deltaDecorations(this._decorations,[])}))}apply(e,t,i,n){const o=n?fe.Z.capture(e):null;e.changeViewZones((t=>{var n;for(const e of this._zones)t.removeZone(e);for(const e of this._inlineDiffMargins)e.dispose();this._zones=[],this._zonesMap={},this._inlineDiffMargins=[];for(let o=0,s=i.zones.length;o{this._decorations=e.deltaDecorations(this._decorations,i.decorations)})),null==t||t.setZones(i.overviewZones)}}let ot=0;const st=(0,ke.q5)("diff-insert",de.l.add,_e.NC("diffInsertIcon","Line decoration for inserts in the diff editor.")),rt=(0,ke.q5)("diff-remove",de.l.remove,_e.NC("diffRemoveIcon","Line decoration for removals in the diff editor.")),at=null===(ze=window.trustedTypes)||void 0===ze?void 0:ze.createPolicy("diffEditorWidget",{createHTML:e=>e}),lt=_e.NC("diff-aria-navigation-tip"," use Shift + F7 to navigate changes");let ct=class e extends s.JT{constructor(t,i,n,o,s,r,a,l,c,h,u){super(),this._editorProgressService=u,this._onDidDispose=this._register(new d.Q5),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModel=this._register(new d.Q5),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidUpdateDiff=this._register(new d.Q5),this.onDidUpdateDiff=this._onDidUpdateDiff.event,this._onDidContentSizeChange=this._register(new d.Q5),this._lastOriginalWarning=null,this._lastModifiedWarning=null,a.willCreateDiffEditor(),this._documentDiffProvider=this._register(r.createInstance(We,i)),this._register(this._documentDiffProvider.onDidChange((e=>this._beginUpdateDecorationsSoon()))),this._codeEditorService=a,this._contextKeyService=this._register(s.createScoped(t)),this._instantiationService=r.createChild(new Ye.y([we.i6,this._contextKeyService])),this._contextKeyService.createKey("isInDiffEditor",!0),this._themeService=l,this._notificationService=c,this._id=++ot,this._state=0,this._updatingDiffProgress=null,this._domElement=t,i=i||{},this._options=Lt(i,{enableSplitViewResizing:!0,splitViewDefaultRatio:.5,renderSideBySide:!0,renderMarginRevertIcon:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit",diffAlgorithm:"advanced",accessibilityVerbose:!1}),void 0!==i.isInEmbeddedEditor?this._contextKeyService.createKey("isInEmbeddedDiffEditor",i.isInEmbeddedEditor):this._contextKeyService.createKey("isInEmbeddedDiffEditor",!1),this._updateDecorationsRunner=this._register(new he.pY((()=>this._updateDecorations()),0)),this._containerDomElement=document.createElement("div"),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide),this._containerDomElement.style.position="relative",this._containerDomElement.style.height="100%",this._domElement.appendChild(this._containerDomElement),this._overviewViewportDomElement=(0,ae.X)(document.createElement("div")),this._overviewViewportDomElement.setClassName("diffViewport"),this._overviewViewportDomElement.setPosition("absolute"),this._overviewDomElement=document.createElement("div"),this._overviewDomElement.className="diffOverview",this._overviewDomElement.style.position="absolute",this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode),this._register(re.mu(this._overviewDomElement,re.tw.POINTER_DOWN,(e=>{this._modifiedEditor.delegateVerticalScrollbarPointerDown(e)}))),this._register(re.nm(this._overviewDomElement,re.tw.MOUSE_WHEEL,(e=>{this._modifiedEditor.delegateScrollFromMouseWheelEvent(e)}),{passive:!1})),this._options.renderOverviewRuler&&this._containerDomElement.appendChild(this._overviewDomElement),this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode),this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode),this._beginUpdateDecorationsTimeout=-1,this._currentlyChangingViewZones=!1,this._diffComputationToken=0,this._originalEditorState=new nt(h,o),this._modifiedEditorState=new nt(h,o),this._isVisible=!0,this._isHandlingScrollEvent=!1,this._elementSizeObserver=this._register(new pe.I(this._containerDomElement,i.dimension)),this._register(this._elementSizeObserver.onDidChange((()=>this._onDidContainerSizeChanged()))),i.automaticLayout&&this._elementSizeObserver.startObserving(),this._diffComputationResult=null,this._originalEditor=this._createLeftHandSideEditor(i,n.originalEditor||{}),this._modifiedEditor=this._createRightHandSideEditor(i,n.modifiedEditor||{}),this._originalOverviewRuler=null,this._modifiedOverviewRuler=null,this._reviewPane=r.createInstance(Ie,this),this._containerDomElement.appendChild(this._reviewPane.domNode.domNode),this._containerDomElement.appendChild(this._reviewPane.shadow.domNode),this._containerDomElement.appendChild(this._reviewPane.actionBarContainer.domNode),this._options.renderSideBySide?this._setStrategy(new mt(this._createDataSource(),this._options.enableSplitViewResizing,this._options.splitViewDefaultRatio)):this._setStrategy(new _t(this._createDataSource(),this._options.enableSplitViewResizing)),this._register(l.onDidColorThemeChange((t=>{this._strategy&&this._strategy.applyColors(t)&&this._updateDecorationsRunner.schedule(),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide)})));const g=me.Uc.getDiffEditorContributions();for(const e of g)try{this._register(r.createInstance(e.ctor,this))}catch(e){(0,ue.dL)(e)}this._codeEditorService.addDiffEditor(this)}_setState(e){this._state!==e&&(this._state=e,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),1===this._state&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))}diffReviewNext(){this._reviewPane.next()}diffReviewPrev(){this._reviewPane.prev()}static _getClassName(e,t){let i="monaco-diff-editor monaco-editor-background ";return t&&(i+="side-by-side "),i+=(0,et.m6)(e.type),i}_disposeOverviewRulers(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose(),this._originalOverviewRuler=null),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose(),this._modifiedOverviewRuler=null)}_createOverviewRulers(){this._options.renderOverviewRuler&&(h.ok(!this._originalOverviewRuler&&!this._modifiedOverviewRuler),this._originalEditor.hasModel()&&(this._originalOverviewRuler=this._originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this._modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers())}_createLeftHandSideEditor(t,i){const n=this._createInnerEditor(this._instantiationService,this._originalDomNode,this._adjustOptionsForLeftHandSide(t),i);this._register(n.onDidScrollChange((e=>{this._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this._modifiedEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())}))),this._register(n.onDidChangeViewZones((()=>{this._onViewZonesChanged()}))),this._register(n.onDidChangeConfiguration((e=>{n.getModel()&&(e.hasChanged(48)&&this._updateDecorationsRunner.schedule(),e.hasChanged(140)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))}))),this._register(n.onDidChangeHiddenAreas((()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()}))),this._register(n.onDidChangeModelContent((()=>{this._isVisible&&this._beginUpdateDecorationsSoon()})));const o=this._contextKeyService.createKey("isInDiffLeftEditor",n.hasWidgetFocus());return this._register(n.onDidFocusEditorWidget((()=>o.set(!0)))),this._register(n.onDidBlurEditorWidget((()=>o.set(!1)))),this._register(n.onDidContentSizeChange((t=>{const i=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+e.ONE_OVERVIEW_WIDTH,n=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:n,contentWidth:i,contentHeightChanged:t.contentHeightChanged,contentWidthChanged:t.contentWidthChanged})}))),n}_createRightHandSideEditor(t,i){const n=this._createInnerEditor(this._instantiationService,this._modifiedDomNode,this._adjustOptionsForRightHandSide(t),i);this._register(n.onDidScrollChange((e=>{this._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this._originalEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())}))),this._register(n.onDidChangeViewZones((()=>{this._onViewZonesChanged()}))),this._register(n.onDidChangeConfiguration((e=>{n.getModel()&&(e.hasChanged(48)&&this._updateDecorationsRunner.schedule(),e.hasChanged(140)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))}))),this._register(n.onDidChangeHiddenAreas((()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()}))),this._register(n.onDidChangeModelContent((()=>{this._isVisible&&this._beginUpdateDecorationsSoon()}))),this._register(n.onDidChangeModelOptions((e=>{e.tabSize&&this._updateDecorationsRunner.schedule()})));const o=this._contextKeyService.createKey("isInDiffRightEditor",n.hasWidgetFocus());return this._register(n.onDidFocusEditorWidget((()=>o.set(!0)))),this._register(n.onDidBlurEditorWidget((()=>o.set(!1)))),this._register(n.onDidContentSizeChange((t=>{const i=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+e.ONE_OVERVIEW_WIDTH,n=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:n,contentWidth:i,contentHeightChanged:t.contentHeightChanged,contentWidthChanged:t.contentWidthChanged})}))),this._register(n.onMouseDown((e=>{var t,i;if(!e.event.rightButton&&e.target.position&&(null===(t=e.target.element)||void 0===t?void 0:t.className.includes("arrow-revert-change"))){const t=e.target.position.lineNumber,n=e.target,o=null===(i=this._diffComputationResult)||void 0===i?void 0:i.changes.find((e=>(null==n?void 0:n.detail.afterLineNumber)===e.modifiedStartLineNumber||e.modifiedEndLineNumber>0&&e.modifiedStartLineNumber===t));return o&&this.revertChange(o),e.event.stopPropagation(),void this._updateDecorations()}}))),n}revertChange(e){const t=this._modifiedEditor,i=this._originalEditor.getModel(),n=this._modifiedEditor.getModel();if(!i||!n||!t)return;const o=e.originalEndLineNumber>0?new g.e(e.originalStartLineNumber,1,e.originalEndLineNumber,i.getLineMaxColumn(e.originalEndLineNumber)):null,s=o?i.getValueInRange(o):null,r=e.modifiedEndLineNumber>0?new g.e(e.modifiedStartLineNumber,1,e.modifiedEndLineNumber,n.getLineMaxColumn(e.modifiedEndLineNumber)):null,a=n.getEOL();if(0===e.originalEndLineNumber&&r){let i=r;e.modifiedStartLineNumber>1?i=r.setStartPosition(e.modifiedStartLineNumber-1,n.getLineMaxColumn(e.modifiedStartLineNumber-1)):e.modifiedEndLineNumberthis._beginUpdateDecorations()),e.UPDATE_DIFF_DECORATIONS_DELAY)}static _equals(e,t){return!e&&!t||!(!e||!t)&&e.toString()===t.toString()}_beginUpdateDecorations(){-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1);const t=this._originalEditor.getModel(),i=this._modifiedEditor.getModel();if(!t||!i)return;this._diffComputationToken++;const n=this._diffComputationToken,o=1024*this._options.maxFileSize*1024,s=e=>{const t=e.getValueLength();return 0===o||t<=o};s(t)&&s(i)?(this._setState(1),this._documentDiffProvider.computeDiff(t,i,{ignoreTrimWhitespace:this._options.ignoreTrimWhitespace,maxComputationTimeMs:this._options.maxComputationTime}).then((e=>{n===this._diffComputationToken&&t===this._originalEditor.getModel()&&i===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult={identical:e.identical,quitEarly:e.quitEarly,changes2:e.changes,changes:e.changes.map((e=>{let t,i,n,o,s=e.innerChanges;return e.originalRange.isEmpty?(t=e.originalRange.startLineNumber-1,i=0,s=void 0):(t=e.originalRange.startLineNumber,i=e.originalRange.endLineNumberExclusive-1),e.modifiedRange.isEmpty?(n=e.modifiedRange.startLineNumber-1,o=0,s=void 0):(n=e.modifiedRange.startLineNumber,o=e.modifiedRange.endLineNumberExclusive-1),{originalStartLineNumber:t,originalEndLineNumber:i,modifiedStartLineNumber:n,modifiedEndLineNumber:o,charChanges:null==s?void 0:s.map((e=>({originalStartLineNumber:e.originalRange.startLineNumber,originalStartColumn:e.originalRange.startColumn,originalEndLineNumber:e.originalRange.endLineNumber,originalEndColumn:e.originalRange.endColumn,modifiedStartLineNumber:e.modifiedRange.startLineNumber,modifiedStartColumn:e.modifiedRange.startColumn,modifiedEndLineNumber:e.modifiedRange.endLineNumber,modifiedEndColumn:e.modifiedRange.endColumn})))}}))},this._updateDecorationsRunner.schedule(),this._onDidUpdateDiff.fire())}),(e=>{n===this._diffComputationToken&&t===this._originalEditor.getModel()&&i===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=null,this._updateDecorationsRunner.schedule())}))):e._equals(t.uri,this._lastOriginalWarning)&&e._equals(i.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=t.uri,this._lastModifiedWarning=i.uri,this._notificationService.warn(_e.NC("diff.tooLarge","Cannot compare files because one file is too large.")))}_cleanViewZonesAndDecorations(){this._originalEditorState.clean(this._originalEditor),this._modifiedEditorState.clean(this._modifiedEditor)}_updateDecorations(){if(!this._originalEditor.getModel()||!this._modifiedEditor.getModel())return;const e=this._diffComputationResult?this._diffComputationResult.changes:[],t=this._originalEditorState.getForeignViewZones(this._originalEditor.getWhitespaces()),i=this._modifiedEditorState.getForeignViewZones(this._modifiedEditor.getWhitespaces()),n=this._options.renderMarginRevertIcon&&!this._modifiedEditor.getOption(87),o=this._strategy.getEditorsDiffDecorations(e,this._options.ignoreTrimWhitespace,this._options.renderIndicators,n,t,i);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this._originalEditor,this._originalOverviewRuler,o.original,!1),this._modifiedEditorState.apply(this._modifiedEditor,this._modifiedOverviewRuler,o.modified,!0)}finally{this._currentlyChangingViewZones=!1}}_adjustOptionsForSubEditor(e){const t=Object.assign({},e);return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar=Object.assign({},t.scrollbar||{}),t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=this._options.diffCodeLens,t.fixedOverflowWidgets=!0,t.minimap=Object.assign({},t.minimap||{}),t.minimap.enabled=!1,t}_adjustOptionsForLeftHandSide(e){const t=this._adjustOptionsForSubEditor(e);return this._options.renderSideBySide?t.wordWrapOverride1=this._options.diffWordWrap:(t.wordWrapOverride1="off",t.wordWrapOverride2="off"),e.originalAriaLabel&&(t.ariaLabel=e.originalAriaLabel),this._updateAriaLabel(t),t.readOnly=!this._options.originalEditable,t.dropIntoEditor={enabled:!t.readOnly},t.extraEditorClassName="original-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}_updateAriaLabel(e){let t=e.ariaLabel;this._options.accessibilityVerbose?t+=lt:t&&(t=t.replaceAll(lt,"")),e.ariaLabel=t}_adjustOptionsForRightHandSide(t){const i=this._adjustOptionsForSubEditor(t);return t.modifiedAriaLabel&&(i.ariaLabel=t.modifiedAriaLabel),this._updateAriaLabel(i),i.wordWrapOverride1=this._options.diffWordWrap,i.revealHorizontalRightPadding=n.BH.revealHorizontalRightPadding.defaultValue+e.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",Object.assign(Object.assign({},i),{dimension:{height:0,width:0}})}doLayout(){this._elementSizeObserver.observe(),this._doLayout()}_doLayout(){const t=this._elementSizeObserver.getWidth(),i=this._elementSizeObserver.getHeight(),n=this._getReviewHeight(),o=this._strategy.layout();this._originalDomNode.style.width=o+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=t-o+"px",this._modifiedDomNode.style.left=o+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=i-n+"px",this._overviewDomElement.style.width=e.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=t-e.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(e.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this._originalEditor.layout({width:o,height:i-n}),this._modifiedEditor.layout({width:t-o-(this._options.renderOverviewRuler?e.ENTIRE_DIFF_OVERVIEW_WIDTH:0),height:i-n}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(i-n,t,n),this._layoutOverviewViewport()}_layoutOverviewViewport(){const e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))}_computeOverviewViewport(){const e=this._modifiedEditor.getLayoutInfo();if(!e)return null;const t=this._modifiedEditor.getScrollTop(),i=this._modifiedEditor.getScrollHeight(),n=Math.max(0,e.height),o=Math.max(0,n-0),s=i>0?o/i:0;return{height:Math.max(0,Math.floor(e.height*s)),top:Math.floor(t*s)}}_createDataSource(){return{getWidth:()=>this._elementSizeObserver.getWidth(),getHeight:()=>this._elementSizeObserver.getHeight()-this._getReviewHeight(),getOptions:()=>({renderOverviewRuler:this._options.renderOverviewRuler}),getContainerDomNode:()=>this._containerDomElement,relayoutEditors:()=>{this._doLayout()},getOriginalEditor:()=>this._originalEditor,getModifiedEditor:()=>this._modifiedEditor}}_setStrategy(e){var t;null===(t=this._strategy)||void 0===t||t.dispose(),this._strategy=e,this._boundarySashes&&e.setBoundarySashes(this._boundarySashes),e.applyColors(this._themeService.getColorTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()}_getLineChangeAtOrBeforeLineNumber(e,t){const i=this._diffComputationResult?this._diffComputationResult.changes:[];if(0===i.length||e=a?n=s+1:(n=s,o=s)}return i[n]}_getEquivalentLineForOriginalLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,(e=>e.originalStartLineNumber));if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),n=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,s=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,r=e-i;return r<=o?n+Math.min(r,s):n+s-o+r}_getEquivalentLineForModifiedLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,(e=>e.modifiedStartLineNumber));if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),n=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,s=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,r=e-n;return r<=s?i+Math.min(r,o):i+o-s+r}getDiffLineInformationForOriginal(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null}getDiffLineInformationForModified(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null}};ct.ONE_OVERVIEW_WIDTH=15,ct.ENTIRE_DIFF_OVERVIEW_WIDTH=30,ct.UPDATE_DIFF_DECORATIONS_DELAY=200,ct=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([it(3,$e.p),it(4,we.i6),it(5,Qe.TG),it(6,c.$),it(7,et.XE),it(8,Ze.lT),it(9,Ge.i),it(10,Xe.ek)],ct);class ht extends s.JT{constructor(e){super(),this._dataSource=e,this._insertColor=null,this._removeColor=null}applyColors(e){const t=e.getColor(Je.P6Y)||(e.getColor(Je.ypS)||Je.CzK).transparent(2),i=e.getColor(Je.F9q)||(e.getColor(Je.P4M)||Je.keg).transparent(2),n=!t.equals(this._insertColor)||!i.equals(this._removeColor);return this._insertColor=t,this._removeColor=i,n}getEditorsDiffDecorations(e,t,i,n,o,s){s=s.sort(((e,t)=>e.afterLineNumber-t.afterLineNumber)),o=o.sort(((e,t)=>e.afterLineNumber-t.afterLineNumber));const r=this._getViewZones(e,o,s,i),a=this._getOriginalEditorDecorations(r,e,t,i),l=this._getModifiedEditorDecorations(r,e,t,i,n);return{original:{decorations:a.decorations,overviewZones:a.overviewZones,zones:r.original},modified:{decorations:l.decorations,overviewZones:l.overviewZones,zones:r.modified}}}setBoundarySashes(e){}}class dt{constructor(e){this._source=e,this._index=-1,this.current=null,this.advance()}advance(){this._index++,this._indexe.afterLineNumber-t.afterLineNumber,_=(e,t)=>{if(null===t.domNode&&e.length>0){const i=e[e.length-1];if(i.afterLineNumber===t.afterLineNumber&&null===i.domNode)return void(i.heightInLines+=t.heightInLines)}e.push(t)},v=new dt(this._modifiedForeignVZ),b=new dt(this._originalForeignVZ);let C=1,y=1;for(let i=0,n=this._lineChanges.length;i<=n;i++){const w=i0?-1:0),g=w.modifiedStartLineNumber+(w.modifiedEndLineNumber>0?-1:0),d=w.originalEndLineNumber>0?ut._getViewLineCount(this._originalEditor,w.originalStartLineNumber,w.originalEndLineNumber):0,h=w.modifiedEndLineNumber>0?ut._getViewLineCount(this._modifiedEditor,w.modifiedStartLineNumber,w.modifiedEndLineNumber):0,p=Math.max(w.originalStartLineNumber,w.originalEndLineNumber),m=Math.max(w.modifiedStartLineNumber,w.modifiedEndLineNumber)):(u+=1e7+d,g+=1e7+h,p=u,m=g);let S=[],k=[];if(o){let e;e=w?w.originalEndLineNumber>0?w.originalStartLineNumber-C:w.modifiedStartLineNumber-y:s.getLineCount()-C+1;for(let t=0;to&&k.push({afterLineNumber:i,heightInLines:n-o,domNode:null,marginDomNode:null})}w&&(C=(w.originalEndLineNumber>0?w.originalEndLineNumber:w.originalStartLineNumber)+1,y=(w.modifiedEndLineNumber>0?w.modifiedEndLineNumber:w.modifiedStartLineNumber)+1)}for(;v.current&&v.current.afterLineNumber<=m;){let e;e=v.current.afterLineNumber<=g?u-g+v.current.afterLineNumber:p;let i=null;w&&w.modifiedStartLineNumber<=v.current.afterLineNumber&&v.current.afterLineNumber<=w.modifiedEndLineNumber&&(i=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),S.push({afterLineNumber:e,heightInLines:v.current.height/t,domNode:null,marginDomNode:i}),v.advance()}for(;b.current&&b.current.afterLineNumber<=p;){let t;t=b.current.afterLineNumber<=u?g-u+b.current.afterLineNumber:m,k.push({afterLineNumber:t,heightInLines:b.current.height/e,domNode:null}),b.advance()}if(null!==w&&bt(w)){const e=this._produceOriginalFromDiff(w,d,h);e&&S.push(e)}if(null!==w&&Ct(w)){const e=this._produceModifiedFromDiff(w,d,h);e&&k.push(e)}let x=0,L=0;for(S=S.sort(f),k=k.sort(f);x=t.heightInLines?(e.heightInLines-=t.heightInLines,L++):(t.heightInLines-=e.heightInLines,x++)}for(;x(e.domNode||(e.domNode=St()),e)))}}function gt(e,t,i,n,o){return{range:new g.e(e,t,i,n),options:o}}const pt={arrowRevertChange:je.qx.register({description:"diff-editor-arrow-revert-change",glyphMarginHoverMessage:new tt.W5(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown(_e.NC("revertChangeHoverMessage","Click to revert change")),glyphMarginClassName:"arrow-revert-change "+Se.k.asClassName(de.l.arrowRight),zIndex:10001}),charDelete:je.qx.register({description:"diff-editor-char-delete",className:"char-delete"}),charDeleteWholeLine:je.qx.register({description:"diff-editor-char-delete-whole-line",className:"char-delete",isWholeLine:!0}),charInsert:je.qx.register({description:"diff-editor-char-insert",className:"char-insert"}),charInsertWholeLine:je.qx.register({description:"diff-editor-char-insert-whole-line",className:"char-insert",isWholeLine:!0}),lineInsert:je.qx.register({description:"diff-editor-line-insert",className:"line-insert",marginClassName:"gutter-insert",isWholeLine:!0}),lineInsertWithSign:je.qx.register({description:"diff-editor-line-insert-with-sign",className:"line-insert",linesDecorationsClassName:"insert-sign "+Se.k.asClassName(st),marginClassName:"gutter-insert",isWholeLine:!0}),lineDelete:je.qx.register({description:"diff-editor-line-delete",className:"line-delete",marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteWithSign:je.qx.register({description:"diff-editor-line-delete-with-sign",className:"line-delete",linesDecorationsClassName:"delete-sign "+Se.k.asClassName(rt),marginClassName:"gutter-delete",isWholeLine:!0}),lineDeleteMargin:je.qx.register({description:"diff-editor-line-delete-margin",marginClassName:"gutter-delete"})};class mt extends ht{constructor(e,t,i){super(e),this._disableSash=!1===t,this._defaultRatio=i,this._sashRatio=null,this._sashPosition=null,this._startSashPosition=null,this._sash=this._register(new ce.g(this._dataSource.getContainerDomNode(),this,{orientation:0})),this._disableSash&&(this._sash.state=0),this._sash.onDidStart((()=>this._onSashDragStart())),this._sash.onDidChange((e=>this._onSashDrag(e))),this._sash.onDidEnd((()=>this._onSashDragEnd())),this._sash.onDidReset((()=>this._onSashReset()))}setEnableSplitViewResizing(e,t){this._defaultRatio=t;const i=!1===e;this._disableSash!==i&&(this._disableSash=i,this._sash.state=this._disableSash?0:3)}layout(e=this._sashRatio||this._defaultRatio){const t=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?ct.ENTIRE_DIFF_OVERVIEW_WIDTH:0);let i=Math.floor((e||this._defaultRatio)*t);const n=Math.floor(this._defaultRatio*t);return i=this._disableSash?n:i||n,t>2*mt.MINIMUM_EDITOR_WIDTH?(it-mt.MINIMUM_EDITOR_WIDTH&&(i=t-mt.MINIMUM_EDITOR_WIDTH)):i=n,this._sashPosition!==i&&(this._sashPosition=i),this._sash.layout(),this._sashPosition}_onSashDragStart(){this._startSashPosition=this._sashPosition}_onSashDrag(e){const t=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?ct.ENTIRE_DIFF_OVERVIEW_WIDTH:0),i=this.layout((this._startSashPosition+(e.currentX-e.startX))/t);this._sashRatio=i/t,this._dataSource.relayoutEditors()}_onSashDragEnd(){this._sash.layout()}_onSashReset(){this._sashRatio=this._defaultRatio,this._dataSource.relayoutEditors(),this._sash.layout()}getVerticalSashTop(e){return 0}getVerticalSashLeft(e){return this._sashPosition}getVerticalSashHeight(e){return this._dataSource.getHeight()}setBoundarySashes(e){this._sash.orthogonalEndSash=e.bottom}_getViewZones(e,t,i){const n=this._dataSource.getOriginalEditor(),o=this._dataSource.getModifiedEditor();return new ft(e,t,i,n,o).getViewZones()}_getOriginalEditorDecorations(e,t,i,n){const o=this._dataSource.getOriginalEditor(),s=String(this._removeColor),r={decorations:[],overviewZones:[]},a=o.getModel(),l=o._getViewModel();for(const e of t)if(Ct(e)){r.decorations.push({range:new g.e(e.originalStartLineNumber,1,e.originalEndLineNumber,1073741824),options:n?pt.lineDeleteWithSign:pt.lineDelete}),bt(e)&&e.charChanges||r.decorations.push(gt(e.originalStartLineNumber,1,e.originalEndLineNumber,1073741824,pt.charDeleteWholeLine));const t=xt(a,l,e.originalStartLineNumber,e.originalEndLineNumber);if(r.overviewZones.push(new qe.EY(t.startLineNumber,t.endLineNumber,0,s)),e.charChanges)for(const t of e.charChanges)if(wt(t))if(i)for(let e=t.originalStartLineNumber;e<=t.originalEndLineNumber;e++){let i,n;i=e===t.originalStartLineNumber?t.originalStartColumn:a.getLineFirstNonWhitespaceColumn(e),n=e===t.originalEndLineNumber?t.originalEndColumn:a.getLineLastNonWhitespaceColumn(e),r.decorations.push(gt(e,i,e,n,pt.charDelete))}else r.decorations.push(gt(t.originalStartLineNumber,t.originalStartColumn,t.originalEndLineNumber,t.originalEndColumn,pt.charDelete))}return r}_getModifiedEditorDecorations(e,t,i,n,o){const s=this._dataSource.getModifiedEditor(),r=String(this._insertColor),a={decorations:[],overviewZones:[]},l=s.getModel(),c=s._getViewModel();for(const s of t){if(o)if(s.modifiedEndLineNumber>0)a.decorations.push({range:new g.e(s.modifiedStartLineNumber,1,s.modifiedStartLineNumber,1),options:pt.arrowRevertChange});else{const t=e.modified.find((e=>e.afterLineNumber===s.modifiedStartLineNumber));t&&(t.marginDomNode=kt())}if(bt(s)){a.decorations.push({range:new g.e(s.modifiedStartLineNumber,1,s.modifiedEndLineNumber,1073741824),options:n?pt.lineInsertWithSign:pt.lineInsert}),Ct(s)&&s.charChanges||a.decorations.push(gt(s.modifiedStartLineNumber,1,s.modifiedEndLineNumber,1073741824,pt.charInsertWholeLine));const e=xt(l,c,s.modifiedStartLineNumber,s.modifiedEndLineNumber);if(a.overviewZones.push(new qe.EY(e.startLineNumber,e.endLineNumber,0,r)),s.charChanges)for(const e of s.charChanges)if(yt(e))if(i)for(let t=e.modifiedStartLineNumber;t<=e.modifiedEndLineNumber;t++){let i,n;i=t===e.modifiedStartLineNumber?e.modifiedStartColumn:l.getLineFirstNonWhitespaceColumn(t),n=t===e.modifiedEndLineNumber?e.modifiedEndColumn:l.getLineLastNonWhitespaceColumn(t),a.decorations.push(gt(t,i,t,n,pt.charInsert))}else a.decorations.push(gt(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn,pt.charInsert))}}return a}}mt.MINIMUM_EDITOR_WIDTH=100;class ft extends ut{constructor(e,t,i,n,o){super(e,t,i,n,o)}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){return null}_produceOriginalFromDiff(e,t,i){return i>t?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:i-t,domNode:null}:null}_produceModifiedFromDiff(e,t,i){return t>i?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-i,domNode:null}:null}}class _t extends ht{constructor(e,t){super(e),this._decorationsLeft=e.getOriginalEditor().getLayoutInfo().decorationsLeft,this._register(e.getOriginalEditor().onDidLayoutChange((t=>{this._decorationsLeft!==t.decorationsLeft&&(this._decorationsLeft=t.decorationsLeft,e.relayoutEditors())})))}setEnableSplitViewResizing(e){}_getViewZones(e,t,i,n){const o=this._dataSource.getOriginalEditor(),s=this._dataSource.getModifiedEditor();return new vt(e,t,i,o,s,n).getViewZones()}_getOriginalEditorDecorations(e,t,i,n){const o=String(this._removeColor),s={decorations:[],overviewZones:[]},r=this._dataSource.getOriginalEditor(),a=r.getModel(),l=r._getViewModel();let c=0;for(const i of t)if(Ct(i)){for(s.decorations.push({range:new g.e(i.originalStartLineNumber,1,i.originalEndLineNumber,1073741824),options:pt.lineDeleteMargin});c=i.originalStartLineNumber)break;c++}let t=0;if(c0,k=new Ue.HT(1e4);let x=0,L=0,E=null;for(let t=v.originalStartLineNumber;t<=v.originalEndLineNumber;t++){const s=t-v.originalStartLineNumber,r=this._originalModel.tokenization.getLineTokens(t),g=r.getLineContent(),C=f[_++],N=Ke.Kp.filter(w,t,1,g.length+1);if(C){let f=0;for(const e of C.breakOffsets){const t=r.sliceAndInflate(f,e,0),s=g.substring(f,e);x=Math.max(x,this._renderOriginalLine(L++,s,t,Ke.Kp.extractWrapped(N,f,e),S,a,l,n,o,c,h,d,u,p,m,i,k,y)),f=e}for(E||(E=[]);E.lengthe.afterLineNumber-t.afterLineNumber))}_renderOriginalLine(e,t,i,o,s,r,a,l,c,h,d,u,g,p,m,f,_,v){_.appendString('
    ');const b=A.wA.isBasicASCII(t,r),C=A.wA.containsRTL(t,b,a),y=(0,I.d1)(new I.IJ(l.isMonospace&&!c,l.canUseHalfwidthRightwardsArrow,t,!1,b,C,0,i,o,f,0,l.spaceWidth,l.middotWidth,l.wsmiddotWidth,u,g,p,m!==n.n0.OFF,null),_);if(_.appendString("
    "),this._renderIndicators){const t=document.createElement("div");t.className=`delete-sign ${Se.k.asClassName(rt)}`,t.setAttribute("style",`position:absolute;top:${e*h}px;width:${d}px;height:${h}px;right:0;`),v.appendChild(t)}return y.characterMapping.getHorizontalOffset(y.characterMapping.length)}}function bt(e){return e.modifiedEndLineNumber>0}function Ct(e){return e.originalEndLineNumber>0}function yt(e){return e.modifiedStartLineNumber===e.modifiedEndLineNumber?e.modifiedEndColumn-e.modifiedStartColumn>0:e.modifiedEndLineNumber-e.modifiedStartLineNumber>0}function wt(e){return e.originalStartLineNumber===e.originalEndLineNumber?e.originalEndColumn-e.originalStartColumn>0:e.originalEndLineNumber-e.originalStartLineNumber>0}function St(){const e=document.createElement("div");return e.className="diagonal-fill",e}function kt(){const e=document.createElement("div");return e.className="arrow-revert-change "+Se.k.asClassName(de.l.arrowRight),re.$("div",{},e)}function xt(e,t,i,n){const o=e.getLineCount();return i=Math.min(o,Math.max(1,i)),n=Math.min(o,Math.max(1,n)),t.coordinatesConverter.convertModelRangeToViewRange(new g.e(i,e.getLineMinColumn(i),n,e.getLineMaxColumn(n)))}function Lt(e,t){return{enableSplitViewResizing:(0,n.O7)(e.enableSplitViewResizing,t.enableSplitViewResizing),splitViewDefaultRatio:(0,n.L_)(e.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:(0,n.O7)(e.renderSideBySide,t.renderSideBySide),renderMarginRevertIcon:(0,n.O7)(e.renderMarginRevertIcon,t.renderMarginRevertIcon),maxComputationTime:(0,n.Zc)(e.maxComputationTime,t.maxComputationTime,0,1073741824),maxFileSize:(0,n.Zc)(e.maxFileSize,t.maxFileSize,0,1073741824),ignoreTrimWhitespace:(0,n.O7)(e.ignoreTrimWhitespace,t.ignoreTrimWhitespace),renderIndicators:(0,n.O7)(e.renderIndicators,t.renderIndicators),originalEditable:(0,n.O7)(e.originalEditable,t.originalEditable),diffCodeLens:(0,n.O7)(e.diffCodeLens,t.diffCodeLens),renderOverviewRuler:(0,n.O7)(e.renderOverviewRuler,t.renderOverviewRuler),diffWordWrap:(i=e.diffWordWrap,o=t.diffWordWrap,(0,n.NY)(i,o,["off","on","inherit"])),diffAlgorithm:(0,n.NY)(e.diffAlgorithm,t.diffAlgorithm,["legacy","advanced"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:(0,n.O7)(e.accessibilityVerbose,t.accessibilityVerbose)};var i,o}(0,et.Ic)(((e,t)=>{const i=e.getColor(Je.L_t);t.addRule(`\n\t.monaco-editor .diagonal-fill {\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t${i} 12.5%,\n\t\t\t#0000 12.5%, #0000 50%,\n\t\t\t${i} 50%, ${i} 62.5%,\n\t\t\t#0000 62.5%, #0000 100%\n\t\t);\n\t\tbackground-size: 8px 8px;\n\t}\n\t`)}));var Et=i(30653),Nt=i(66663),Dt=i(91741);let Tt=class extends s.JT{constructor(e){super(),this._themeService=e,this._onWillCreateCodeEditor=this._register(new d.Q5),this._onCodeEditorAdd=this._register(new d.Q5),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new d.Q5),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new d.Q5),this._onDiffEditorAdd=this._register(new d.Q5),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new d.Q5),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new Dt.S,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map((e=>this._codeEditors[e]))}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}removeDiffEditor(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map((e=>this._diffEditors[e]))}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((t=>t.removeDecorationsByType(e)))))}setModelProperty(e,t,i){const n=e.toString();let o;this._modelProperties.has(n)?o=this._modelProperties.get(n):(o=new Map,this._modelProperties.set(n,o)),o.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i))return this._modelProperties.get(i).get(t)}openCodeEditor(e,t,i){return n=this,o=void 0,r=function*(){for(const n of this._codeEditorOpenHandlers){const o=yield n(e,t,i);if(null!==o)return o}return null},new((s=void 0)||(s=Promise))((function(e,t){function i(e){try{l(r.next(e))}catch(e){t(e)}}function a(e){try{l(r.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof s?n:new s((function(e){e(n)}))).then(i,a)}l((r=r.apply(n,o||[])).next())}));var n,o,s,r}registerCodeEditorOpenHandler(e){const t=this._codeEditorOpenHandlers.unshift(e);return(0,s.OF)(t)}};Tt=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(0,et.XE)],Tt);var It=i(65026),At=function(e,t){return function(i,n){t(i,n,e)}};let Mt=class extends Tt{constructor(e,t){super(t),this.onCodeEditorAdd((()=>this._checkContextKey())),this.onCodeEditorRemove((()=>this._checkContextKey())),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this.registerCodeEditorOpenHandler(((e,t,i)=>{return n=this,o=void 0,r=function*(){return t?this.doOpenEditor(t,e):null},new((s=void 0)||(s=Promise))((function(e,t){function i(e){try{l(r.next(e))}catch(e){t(e)}}function a(e){try{l(r.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof s?n:new s((function(e){e(n)}))).then(i,a)}l((r=r.apply(n,o||[])).next())}));var n,o,s,r}))}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const i=t.resource.scheme;if(i===Nt.lg.http||i===Nt.lg.https)return(0,re.V3)(t.resource.toString()),e}return null}const i=t.options?t.options.selection:null;if(i)if("number"==typeof i.endLineNumber&&"number"==typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{const t={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};Mt=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([At(0,we.i6),At(1,et.XE)],Mt),(0,It.z)(c.$,Mt,0);const Rt=(0,Qe.yh)("layoutService");var Ot=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Pt=function(e,t){return function(i,n){t(i,n,e)}};let Ft=class{get dimension(){return this._dimension||(this._dimension=re.D6(window.document.body)),this._dimension}get hasContainer(){return!1}get container(){throw new Error("ILayoutService.container is not available in the standalone editor!")}focus(){var e;null===(e=this._codeEditorService.getFocusedCodeEditor())||void 0===e||e.focus()}constructor(e){this._codeEditorService=e,this.onDidLayout=d.ju.None,this.offset={top:0,quickPickTop:0}}};Ft=Ot([Pt(0,c.$)],Ft);let Bt=class extends Ft{get hasContainer(){return!1}get container(){return this._container}constructor(e,t){super(t),this._container=e}};Bt=Ot([Pt(1,c.$)],Bt),(0,It.z)(Rt,Ft,1);var Ht=i(14603),Vt=i(28820),Wt=i(64862),zt=function(e,t){return function(i,n){t(i,n,e)}},Ut=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function jt(e){return e.scheme===Nt.lg.file?e.fsPath:e.path}let Kt=0;class qt{constructor(e,t,i,n,o,s,r){this.id=++Kt,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=n,this.groupOrder=o,this.sourceId=s,this.sourceOrder=r,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class $t{constructor(e,t){this.resourceLabel=e,this.reason=t}}class Gt{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,i]of this.elements)(0===i.reason?e:t).push(i.resourceLabel);const i=[];return e.length>0&&i.push(_e.NC({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(_e.NC({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class Qt{constructor(e,t,i,n,o,s,r){this.id=++Kt,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=n,this.groupOrder=o,this.sourceId=s,this.sourceOrder=r,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"==typeof this.actual.split}removeResource(e,t,i){this.removedResources||(this.removedResources=new Gt),this.removedResources.has(t)||this.removedResources.set(t,new $t(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new Gt),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new $t(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Yt{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const e=[];e.push(`* ${this.strResource}:`);for(let t=0;t=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let e=0,i=this._past.length;e=0;e--)t.push(this._future[e].id);return new Wt.YO(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,n=0,o=-1;for(let s=0,r=this._past.length;s=t||r.id!==e.elements[n])&&(i=!1,o=0),i||1!==r.type||r.removeResource(this.resourceLabel,this.strResource,0)}let s=-1;for(let o=this._future.length-1;o>=0;o--,n++){const r=this._future[o];i&&(n>=t||r.id!==e.elements[n])&&(i=!1,s=o),i||1!==r.type||r.removeResource(this.resourceLabel,this.strResource,0)}-1!==o&&(this._past=this._past.slice(0,o)),-1!==s&&(this._future=this._future.slice(s+1)),this.versionId++}getElements(){const e=[],t=[];for(const t of this._past)e.push(t.actual);for(const e of this._future)t.push(e.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class Zt{constructor(e){this.editStacks=e,this._versionIds=[];for(let e=0,t=this.editStacks.length;et.sourceOrder)&&(t=s,i=n)}return[t,i]}canUndo(e){if(e instanceof Wt.gJ){const[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);return!!this._editStacks.has(t)&&this._editStacks.get(t).hasPastElements()}_onError(e,t){(0,ue.dL)(e);for(const e of t.strResources)this.removeElements(e);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,n,o){const s=this._acquireLocks(i);let r;try{r=t()}catch(t){return s(),n.dispose(),this._onError(t,e)}return r?r.then((()=>(s(),n.dispose(),o())),(t=>(s(),n.dispose(),this._onError(t,e)))):(s(),n.dispose(),o())}_invokeWorkspacePrepare(e){return Ut(this,void 0,void 0,(function*(){if(void 0===e.actual.prepareUndoRedo)return s.JT.None;const t=e.actual.prepareUndoRedo();return void 0===t?s.JT.None:t}))}_invokeResourcePrepare(e,t){if(1!==e.actual.type||void 0===e.actual.prepareUndoRedo)return t(s.JT.None);const i=e.actual.prepareUndoRedo();return i?(0,s.Wf)(i)?t(i):i.then((e=>t(e))):t(s.JT.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||Xt);return new Zt(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new ei(this._undo(e,0,!0));for(const e of t.strResources)this.removeElements(e);return this._notificationService.warn(n),new ei}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,_e.NC({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,_e.NC({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const o=[];for(const e of i.editStacks)e.getClosestPastElement()!==t&&o.push(e.resourceLabel);if(o.length>0)return this._tryToSplitAndUndo(e,t,null,_e.NC({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));const s=[];for(const e of i.editStacks)e.locked&&s.push(e.resourceLabel);return s.length>0?this._tryToSplitAndUndo(e,t,null,_e.NC({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,s.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,_e.NC({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){const n=this._getAffectedEditStacks(t),o=this._checkWorkspaceUndo(e,t,n,!1);return o?o.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const i=t.getClosestPastElement();if(i){if(i===e){const i=t.getSecondClosestPastElement();if(i&&i.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}_confirmAndExecuteWorkspaceUndo(e,t,i,n){return Ut(this,void 0,void 0,(function*(){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){let o;!function(e){e[e.All=0]="All",e[e.This=1]="This",e[e.Cancel=2]="Cancel"}(o||(o={}));const{result:s}=yield this._dialogService.prompt({type:Ht.Z.Info,message:_e.NC("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),buttons:[{label:_e.NC({key:"ok",comment:["{0} denotes a number that is > 1, && denotes a mnemonic"]},"&&Undo in {0} Files",i.editStacks.length),run:()=>o.All},{label:_e.NC({key:"nok",comment:["&& denotes a mnemonic"]},"Undo this &&File"),run:()=>o.This}],cancelButton:{run:()=>o.Cancel}});if(s===o.Cancel)return;if(s===o.This)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const r=this._checkWorkspaceUndo(e,t,i,!1);if(r)return r.returnValue;n=!0}let o;try{o=yield this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}const s=this._checkWorkspaceUndo(e,t,i,!0);if(s)return o.dispose(),s.returnValue;for(const e of i.editStacks)e.moveBackward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.undo()),i,o,(()=>this._continueUndoInGroup(t.groupId,n)))}))}_resourceUndo(e,t,i){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,(()=>t.actual.undo()),new Zt([e]),n,(()=>this._continueUndoInGroup(t.groupId,i))))));{const e=_e.NC({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const s=o.getClosestPastElement();s&&s.groupId===e&&(!t||s.groupOrder>t.groupOrder)&&(t=s,i=n)}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;const[,i]=this._findClosestUndoElementInGroup(e);return i?this._undo(i,0,t):void 0}undo(e){if(e instanceof Wt.gJ){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"==typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;const n=this._editStacks.get(e),o=n.getClosestPastElement();if(o){if(o.groupId){const[e,n]=this._findClosestUndoElementInGroup(o.groupId);if(o!==e&&n)return this._undo(n,t,i)}if((o.sourceId!==t||o.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,o);try{return 1===o.type?this._workspaceUndo(e,o,i):this._resourceUndo(n,o,i)}finally{}}}_confirmAndContinueUndo(e,t,i){return Ut(this,void 0,void 0,(function*(){if((yield this._dialogService.confirm({message:_e.NC("confirmDifferentSource","Would you like to undo '{0}'?",i.label),primaryButton:_e.NC({key:"confirmDifferentSource.yes",comment:["&& denotes a mnemonic"]},"&&Yes"),cancelButton:_e.NC("confirmDifferentSource.no","No")})).confirmed)return this._undo(e,t,!0)}))}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const s=o.getClosestFutureElement();s&&s.sourceId===e&&(!t||s.sourceOrder0)return this._tryToSplitAndRedo(e,t,null,_e.NC({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));const s=[];for(const e of i.editStacks)e.locked&&s.push(e.resourceLabel);return s.length>0?this._tryToSplitAndRedo(e,t,null,_e.NC({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,s.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,_e.NC({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const i=this._getAffectedEditStacks(t),n=this._checkWorkspaceRedo(e,t,i,!1);return n?n.returnValue:this._executeWorkspaceRedo(e,t,i)}_executeWorkspaceRedo(e,t,i){return Ut(this,void 0,void 0,(function*(){let n;try{n=yield this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}const o=this._checkWorkspaceRedo(e,t,i,!0);if(o)return n.dispose(),o.returnValue;for(const e of i.editStacks)e.moveForward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.redo()),i,n,(()=>this._continueRedoInGroup(t.groupId)))}))}_resourceRedo(e,t){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(i=>(e.moveForward(t),this._safeInvokeWithLocks(t,(()=>t.actual.redo()),new Zt([e]),i,(()=>this._continueRedoInGroup(t.groupId))))));{const e=_e.NC({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const s=o.getClosestFutureElement();s&&s.groupId===e&&(!t||s.groupOrder=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([zt(0,Vt.S),zt(1,Ze.lT)],Jt);class ei{constructor(e){this.returnValue=e}}(0,It.z)(Wt.tJ,Jt,1),i(88191);var ti=i(43557),ii=i(88802),ni=i(73343),oi=function(e,t){return function(i,n){t(i,n,e)}};let si=class extends s.JT{constructor(e,t,i){super(),this._themeService=e,this._logService=t,this._languageService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new ii.$(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};si=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([oi(0,et.XE),oi(1,ti.VZ),oi(2,x.O)],si),(0,It.z)(ni.s,si,1);var ri=i(15527),ai=i(43702),li=i(88721),ci=i(1432),hi=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};const di="**",ui="/",gi="[/\\\\]",pi="[^/\\\\]",mi=/\//g;function fi(e,t){switch(e){case 0:return"";case 1:return`${pi}*?`;default:return`(?:${gi}|${pi}+${gi}${t?`|${gi}${pi}+`:""})*?`}}function _i(e,t){if(!e)return[];const i=[];let n=!1,o=!1,s="";for(const r of e){switch(r){case t:if(!n&&!o){i.push(s),s="";continue}break;case"{":n=!0;break;case"}":n=!1;break;case"[":o=!0;break;case"]":o=!1}s+=r}return s&&i.push(s),i}function vi(e){if(!e)return"";let t="";const i=_i(e,ui);if(i.every((e=>e===di)))t=".*";else{let e=!1;i.forEach(((n,o)=>{if(n===di){if(e)return;t+=fi(2,o===i.length-1)}else{let e=!1,s="",a=!1,l="";for(const i of n)if("}"!==i&&e)s+=i;else if(!a||"]"===i&&l)switch(i){case"{":e=!0;continue;case"[":a=!0;continue;case"}":{const i=`(?:${_i(s,",").map((e=>vi(e))).join("|")})`;t+=i,e=!1,s="";break}case"]":t+="["+l+"]",a=!1,l="";break;case"?":t+=pi;continue;case"*":t+=fi(1);continue;default:t+=(0,r.ec)(i)}else{let e;e="-"===i?i:"^"!==i&&"!"!==i||l?i===ui?"":(0,r.ec)(i):"^",l+=e}oNi(e,t))).filter((e=>e!==Ei)),e),n=i.length;if(!n)return Ei;if(1===n)return i[0];const o=function(t,n){for(let o=0,s=i.length;o!!e.allBasenames));s&&(o.allBasenames=s.allBasenames);const r=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return r.length&&(o.allPaths=r),o}(i,t):(o=Si.exec(Di(i,t)))?Ti(o[1].substr(1),i,!0):(o=ki.exec(Di(i,t)))?Ti(o[1],i,!1):function(e){try{const t=new RegExp(`^${vi(e)}$`);return function(i){return t.lastIndex=0,"string"==typeof i&&t.test(i)?e:null}}catch(e){return Ei}}(i),xi.set(n,s)),function(e,t){if("string"==typeof t)return e;const i=function(i,n){return(0,ri.KM)(i,t.base,!ci.IJ)?e((0,r.j3)(i.substr(t.base.length),li.ir),n):null};return i.allBasenames=e.allBasenames,i.allPaths=e.allPaths,i.basenames=e.basenames,i.patterns=e.patterns,i}(s,e)}function Di(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function Ti(e,t,i){const n=li.ir===li.KR.sep,o=n?e:e.replace(mi,li.ir),s=li.ir+o,r=li.KR.sep+e;let a;return a=i?function(i,a){return"string"!=typeof i||i!==o&&!i.endsWith(s)&&(n||i!==e&&!i.endsWith(r))?null:t}:function(i,s){return"string"!=typeof i||i!==o&&(n||i!==e)?null:t},a.allPaths=[(i?"*/":"./")+e],a}function Ii(e,t={}){if(!e)return Li;if("string"==typeof e||function(e){const t=e;return!!t&&("string"==typeof t.base&&"string"==typeof t.pattern)}(e)){const i=Ni(e,t);if(i===Ei)return Li;const n=function(e,t){return!!i(e,t)};return i.allBasenames&&(n.allBasenames=i.allBasenames),i.allPaths&&(n.allPaths=i.allPaths),n}return function(e,t){const i=Ai(Object.getOwnPropertyNames(e).map((i=>function(e,t,i){if(!1===t)return Ei;const n=Ni(e,i);if(n===Ei)return Ei;if("boolean"==typeof t)return n;if(t){const i=t.when;if("string"==typeof i){const t=(t,o,s,r)=>{if(!r||!n(t,o))return null;const a=r(i.replace("$(basename)",(()=>s)));return(0,he.J8)(a)?a.then((t=>t?e:null)):a?e:null};return t.requiresSiblings=!0,t}}return n}(i,e[i],t))).filter((e=>e!==Ei))),n=i.length;if(!n)return Ei;if(!i.some((e=>!!e.requiresSiblings))){if(1===n)return i[0];const e=function(e,t){let n;for(let o=0,s=i.length;ohi(this,void 0,void 0,(function*(){for(const e of n){const t=yield e;if("string"==typeof t)return t}return null})))():null},t=i.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const o=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return o.length&&(e.allPaths=o),e}const o=function(e,t,n){let o,s;for(let r=0,a=i.length;rhi(this,void 0,void 0,(function*(){for(const e of s){const t=yield e;if("string"==typeof t)return t}return null})))():null},s=i.find((e=>!!e.allBasenames));s&&(o.allBasenames=s.allBasenames);const r=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return r.length&&(o.allPaths=r),o}(e,t)}function Ai(e,t){const i=e.filter((e=>!!e.basenames));if(i.length<2)return e;const n=i.reduce(((e,t)=>{const i=t.basenames;return i?e.concat(i):e}),[]);let o;if(t){o=[];for(let e=0,i=n.length;e{const i=t.patterns;return i?e.concat(i):e}),[]);const s=function(e,t){if("string"!=typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){const t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substr(i)}const i=n.indexOf(t);return-1!==i?o[i]:null};s.basenames=n,s.patterns=o,s.allBasenames=n;const r=e.filter((e=>!e.basenames));return r.push(s),r}function Mi(e,t,i,n,o,s){if(Array.isArray(e)){let r=0;for(const a of e){const e=Mi(a,t,i,n,o,s);if(10===e)return e;e>r&&(r=e)}return r}if("string"==typeof e)return n?"*"===e?5:e===i?10:0:0;if(e){const{language:l,pattern:c,scheme:h,hasAccessToAllModels:d,notebookType:u}=e;if(!n&&!d)return 0;u&&o&&(t=o);let g=0;if(h)if(h===t.scheme)g=10;else{if("*"!==h)return 0;g=5}if(l)if(l===i)g=10;else{if("*"!==l)return 0;g=Math.max(g,5)}if(u)if(u===s)g=10;else{if("*"!==u||void 0===s)return 0;g=Math.max(g,5)}if(c){let e;if(e="string"==typeof c?c:Object.assign(Object.assign({},c),{base:(0,li.Fv)(c.base)}),e!==t.fsPath&&(r=e,a=t.fsPath,!r||"string"!=typeof a||!Ii(r)(a,void 0,undefined)))return 0;g=10}return g}return 0;var r,a}function Ri(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(Ri):!!e.exclusive)}class Oi{constructor(e,t,i,n){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=n}equals(e){var t,i;return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&(null===(t=this.notebookUri)||void 0===t?void 0:t.toString())===(null===(i=e.notebookUri)||void 0===i?void 0:i.toString())}}class Pi{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new d.Q5,this.onDidChange=this._onDidChange.event}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,s.OF)((()=>{if(i){const e=this._entries.indexOf(i);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);const t=[];for(const e of this._entries)e._score>0&&t.push(e.provider);return t}ordered(e){const t=[];return this._orderedForEach(e,(e=>t.push(e.provider))),t}orderedGroups(e){const t=[];let i,n;return this._orderedForEach(e,(e=>{i&&n===e._score?i.push(e.provider):(n=e._score,i=[e.provider],t.push(i))})),t}_orderedForEach(e,t){this._updateScores(e);for(const e of this._entries)e._score>0&&t(e)}_updateScores(e){var t,i;const n=null===(t=this._notebookInfoResolver)||void 0===t?void 0:t.call(this,e.uri),o=n?new Oi(e.uri,e.getLanguageId(),n.uri,n.type):new Oi(e.uri,e.getLanguageId(),void 0,void 0);if(!(null===(i=this._lastCandidate)||void 0===i?void 0:i.equals(o))){this._lastCandidate=o;for(const t of this._entries)if(t._score=Mi(t.selector,o.uri,o.languageId,(0,y.pt)(e),o.notebookUri,o.notebookType),Ri(t.selector)&&t._score>0){for(const e of this._entries)e._score=0;t._score=1e3;break}this._entries.sort(Pi._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._scoret._score?-1:Fi(e.selector)&&!Fi(t.selector)?1:!Fi(e.selector)&&Fi(t.selector)?-1:e._timet._time?-1:0}}function Fi(e){return"string"!=typeof e&&(Array.isArray(e)?e.some(Fi):Boolean(e.isBuiltin))}var Bi=i(71922);(0,It.z)(Bi.p,class{constructor(){this.referenceProvider=new Pi(this._score.bind(this)),this.renameProvider=new Pi(this._score.bind(this)),this.codeActionProvider=new Pi(this._score.bind(this)),this.definitionProvider=new Pi(this._score.bind(this)),this.typeDefinitionProvider=new Pi(this._score.bind(this)),this.declarationProvider=new Pi(this._score.bind(this)),this.implementationProvider=new Pi(this._score.bind(this)),this.documentSymbolProvider=new Pi(this._score.bind(this)),this.inlayHintsProvider=new Pi(this._score.bind(this)),this.colorProvider=new Pi(this._score.bind(this)),this.codeLensProvider=new Pi(this._score.bind(this)),this.documentFormattingEditProvider=new Pi(this._score.bind(this)),this.documentRangeFormattingEditProvider=new Pi(this._score.bind(this)),this.onTypeFormattingEditProvider=new Pi(this._score.bind(this)),this.signatureHelpProvider=new Pi(this._score.bind(this)),this.hoverProvider=new Pi(this._score.bind(this)),this.documentHighlightProvider=new Pi(this._score.bind(this)),this.selectionRangeProvider=new Pi(this._score.bind(this)),this.foldingRangeProvider=new Pi(this._score.bind(this)),this.linkProvider=new Pi(this._score.bind(this)),this.inlineCompletionsProvider=new Pi(this._score.bind(this)),this.completionProvider=new Pi(this._score.bind(this)),this.linkedEditingRangeProvider=new Pi(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new Pi(this._score.bind(this)),this.documentSemanticTokensProvider=new Pi(this._score.bind(this)),this.documentOnDropEditProvider=new Pi(this._score.bind(this)),this.documentPasteEditProvider=new Pi(this._score.bind(this))}_score(e){var t;return null===(t=this._notebookTypeResolver)||void 0===t?void 0:t.call(this,e)}},1);var Hi=i(59069),Vi=i(8313),Wi=i(66007),zi=i(800),Ui=i(69386),ji=i(88216),Ki=i(71765),qi=i(94565),$i=i(9488),Gi=i(98401),Qi=i(23193),Yi=i(89872);function Zi(e){return Object.isFrozen(e)?e:u._A(e)}class Xi{constructor(e={},t=[],i=[],n){this._contents=e,this._keys=t,this._overrides=i,this.raw=n,this.overrideConfigurations=new Map}get rawConfiguration(){var e;if(!this._rawConfiguration)if(null===(e=this.raw)||void 0===e?void 0:e.length){const e=this.raw.map((e=>{if(e instanceof Xi)return e;const t=new Ji("");return t.parseRaw(e),t.configurationModel}));this._rawConfiguration=e.reduce(((e,t)=>t===e?t:e.merge(t)),e[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(e){return e?(0,W.Mt)(this.contents,e):this.contents}inspect(e,t){const i=this.rawConfiguration.getValue(e);return{value:i,override:t?this.rawConfiguration.getOverrideValue(e,t):void 0,merged:t?this.rawConfiguration.override(t).getValue(e):i}}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?(0,W.Mt)(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){var t,i;const n=u.I8(this.contents),o=u.I8(this.overrides),s=[...this.keys],r=(null===(t=this.raw)||void 0===t?void 0:t.length)?[...this.raw]:[this];for(const t of e)if(r.push(...(null===(i=t.raw)||void 0===i?void 0:i.length)?t.raw:[t]),!t.isEmpty()){this.mergeContents(n,t.contents);for(const e of t.overrides){const[t]=o.filter((t=>$i.fS(t.identifiers,e.identifiers)));t?(this.mergeContents(t.contents,e.contents),t.keys.push(...e.keys),t.keys=$i.EB(t.keys)):o.push(u.I8(e))}for(const e of t.keys)-1===s.indexOf(e)&&s.push(e)}return new Xi(n,s,o,r.every((e=>e instanceof Xi))?void 0:r)}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!=typeof t||!Object.keys(t).length)return this;const i={};for(const e of $i.EB([...Object.keys(this.contents),...Object.keys(t)])){let n=this.contents[e];const o=t[e];o&&("object"==typeof n&&"object"==typeof o?(n=u.I8(n),this.mergeContents(n,o)):n=o),i[e]=n}return new Xi(i,this.keys,this.overrides)}mergeContents(e,t){for(const i of Object.keys(t))i in e&&Gi.Kn(e[i])&&Gi.Kn(t[i])?this.mergeContents(e[i],t[i]):e[i]=u.I8(t[i])}getContentsForOverrideIdentifer(e){let t=null,i=null;const n=e=>{e&&(i?this.mergeContents(i,e):i=u.I8(e))};for(const i of this.overrides)$i.fS(i.identifiers,[e])?t=i.contents:i.identifiers.includes(e)&&n(i.contents);return n(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}addValue(e,t){this.updateValue(e,t,!0)}setValue(e,t){this.updateValue(e,t,!1)}removeValue(e){const t=this.keys.indexOf(e);-1!==t&&(this.keys.splice(t,1),(0,W.xL)(this.contents,e),Qi.eU.test(e)&&this.overrides.splice(this.overrides.findIndex((t=>$i.fS(t.identifiers,(0,Qi.ny)(e)))),1))}updateValue(e,t,i){(0,W.KV)(this.contents,e,t,(e=>console.error(e))),(i=i||-1===this.keys.indexOf(e))&&this.keys.push(e),Qi.eU.test(e)&&this.overrides.push({identifiers:(0,Qi.ny)(e),keys:Object.keys(this.contents[e]),contents:(0,W.Od)(this.contents[e],(e=>console.error(e)))})}}class Ji{constructor(e){this._name=e,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||new Xi}parseRaw(e,t){this._raw=e;const{contents:i,keys:n,overrides:o,restricted:s,hasExcludedProperties:r}=this.doParseRaw(e,t);this._configurationModel=new Xi(i,n,o,r?[e]:void 0),this._restrictedConfigurations=s||[]}doParseRaw(e,t){const i=Yi.B.as(Qi.IP.Configuration).getConfigurationProperties(),n=this.filter(e,i,!0,t);return e=n.raw,{contents:(0,W.Od)(e,(e=>console.error(`Conflict in settings file ${this._name}: ${e}`))),keys:Object.keys(e),overrides:this.toOverrides(e,(e=>console.error(`Conflict in settings file ${this._name}: ${e}`))),restricted:n.restricted,hasExcludedProperties:n.hasExcludedProperties}}filter(e,t,i,n){let o=!1;if(!(null==n?void 0:n.scopes)&&!(null==n?void 0:n.skipRestricted))return{raw:e,restricted:[],hasExcludedProperties:o};const s={},r=[];for(const a in e)if(Qi.eU.test(a)&&i){const i=this.filter(e[a],t,!1,n);s[a]=i.raw,o=o||i.hasExcludedProperties,r.push(...i.restricted)}else{const i=t[a],l=i?void 0!==i.scope?i.scope:3:void 0;(null==i?void 0:i.restricted)&&r.push(a),void 0!==l&&void 0!==n.scopes&&!n.scopes.includes(l)||n.skipRestricted&&(null==i?void 0:i.restricted)?o=!0:s[a]=e[a]}return{raw:s,restricted:r,hasExcludedProperties:o}}toOverrides(e,t){const i=[];for(const n of Object.keys(e))if(Qi.eU.test(n)){const o={};for(const t in e[n])o[t]=e[n][t];i.push({identifiers:(0,Qi.ny)(n),keys:Object.keys(o),contents:(0,W.Od)(o,t)})}return i}}class en{constructor(e,t,i,n,o,s,r,a,l,c,h,d,u){this.key=e,this.overrides=t,this._value=i,this.overrideIdentifiers=n,this.defaultConfiguration=o,this.policyConfiguration=s,this.applicationConfiguration=r,this.userConfiguration=a,this.localUserConfiguration=l,this.remoteUserConfiguration=c,this.workspaceConfiguration=h,this.folderConfigurationModel=d,this.memoryConfigurationModel=u}inspect(e,t,i){const n=e.inspect(t,i);return{get value(){return Zi(n.value)},get override(){return Zi(n.override)},get merged(){return Zi(n.merged)}}}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.inspect(this.userConfiguration,this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get user(){return void 0!==this.userInspectValue.value||void 0!==this.userInspectValue.override?{value:this.userInspectValue.value,override:this.userInspectValue.override}:void 0}}class tn{constructor(e,t,i,n,o=new Xi,s=new Xi,r=new ai.Y9,a=new Xi,l=new ai.Y9){this._defaultConfiguration=e,this._policyConfiguration=t,this._applicationConfiguration=i,this._localUserConfiguration=n,this._remoteUserConfiguration=o,this._workspaceConfiguration=s,this._folderConfigurations=r,this._memoryConfiguration=a,this._memoryConfigurationByResource=l,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new ai.Y9,this._userConfiguration=null}getValue(e,t,i){return this.getConsolidatedConfigurationModel(e,t,i).getValue(e)}updateValue(e,t,i={}){let n;i.resource?(n=this._memoryConfigurationByResource.get(i.resource),n||(n=new Xi,this._memoryConfigurationByResource.set(i.resource,n))):n=this._memoryConfiguration,void 0===t?n.removeValue(e):n.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(e,t,i){const n=this.getConsolidatedConfigurationModel(e,t,i),o=this.getFolderConfigurationModelForResource(t.resource,i),s=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,r=new Set;for(const t of n.overrides)for(const i of t.identifiers)void 0!==n.getOverrideValue(e,i)&&r.add(i);return new en(e,t,n.getValue(e),r.size?[...r]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,i?this._workspaceConfiguration:void 0,o||void 0,s)}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration)),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(e,t,i){let n=this.getConsolidatedConfigurationModelForResource(t,i);return t.overrideIdentifier&&(n=n.override(t.overrideIdentifier)),this._policyConfiguration.isEmpty()||void 0===this._policyConfiguration.getValue(e)||(n=n.merge(this._policyConfiguration)),n}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const n=t.getFolder(e);n&&(i=this.getFolderConsolidatedConfiguration(n.uri)||i);const o=this._memoryConfigurationByResource.get(e);o&&(i=i.merge(o))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const i=this.getWorkspaceConsolidatedConfiguration(),n=this._folderConfigurations.get(e);n?(t=i.merge(n),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){const i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce(((e,t)=>{const{contents:i,overrides:n,keys:o}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:n,keys:o}]),e}),[])}}static parse(e){const t=this.parseConfigurationModel(e.defaults),i=this.parseConfigurationModel(e.policy),n=this.parseConfigurationModel(e.application),o=this.parseConfigurationModel(e.user),s=this.parseConfigurationModel(e.workspace),r=e.folders.reduce(((e,t)=>(e.set(a.o.revive(t[0]),this.parseConfigurationModel(t[1])),e)),new ai.Y9);return new tn(t,i,n,o,new Xi,s,r,new Xi,new ai.Y9)}static parseConfigurationModel(e){return new Xi(e.contents,e.keys,e.overrides)}}class nn{constructor(e,t,i,n){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=n,this._marker="\n",this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=".".charCodeAt(0),this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const t of e.keys)this.affectedKeys.add(t);for(const[,t]of e.overrides)for(const e of t)this.affectedKeys.add(e);this._affectsConfigStr=this._marker;for(const e of this.affectedKeys)this._affectsConfigStr+=e+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=tn.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(e,t){var i;const n=this._marker+e,o=this._affectsConfigStr.indexOf(n);if(o<0)return!1;const s=o+n.length;if(s>=this._affectsConfigStr.length)return!1;const r=this._affectsConfigStr.charCodeAt(s);if(r!==this._markerCode1&&r!==this._markerCode2)return!1;if(t){const n=this.previousConfiguration?this.previousConfiguration.getValue(e,t,null===(i=this.previous)||void 0===i?void 0:i.workspace):void 0,o=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!u.fS(n,o)}return!0}}var on=i(77173);const sn=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/;class rn extends s.JT{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:d.ju.None}get inChordMode(){return this._currentChords.length>0}constructor(e,t,i,n,o){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=n,this._logService=o,this._onDidUpdateKeybindings=this._register(new d.Q5),this._currentChords=[],this._currentChordChecker=new he.zh,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=an.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new he._F,this._logging=!1}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log("/ Soft dispatching keyboard event");const i=this.resolveKeyboardEvent(e);if(i.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),null;const[n]=i.getDispatchChords();if(null===n)return this._log("\\ Keyboard event cannot be dispatched"),null;const o=this._contextKeyService.getContext(t),s=this._currentChords.map((({keypress:e})=>e));return this._getResolver().resolve(o,s,n)}_scheduleLeaveChordMode(){const e=Date.now();this._currentChordChecker.cancelAndSet((()=>{this._documentHasFocus()?Date.now()-e>5e3&&this._leaveChordMode():this._leaveChordMode()}),500)}_expectAnotherChord(e,t){switch(this._currentChords.push({keypress:e,label:t}),this._currentChords.length){case 0:throw(0,ue.L6)("impossible");case 1:this._currentChordStatusMessage=this._notificationService.status(_e.NC("first.chord","({0}) was pressed. Waiting for second key of chord...",t));break;default:{const e=this._currentChords.map((({label:e})=>e)).join(", ");this._currentChordStatusMessage=this._notificationService.status(_e.NC("next.chord","({0}) was pressed. Waiting for next key of chord...",e))}}this._scheduleLeaveChordMode(),on.F.enabled&&on.F.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],on.F.enable()}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[n]=i.getSingleModifierDispatchChords();if(n)return this._ignoreSingleModifiers.has(n)?(this._log(`+ Ignoring single modifier ${n} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=an.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=an.EMPTY,null===this._currentSingleModifier?(this._log(`+ Storing single modifier for possible chord ${n}.`),this._currentSingleModifier=n,this._currentSingleModifierClearTimeout.cancelAndSet((()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null}),300),!1):n===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${n} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[o]=i.getChords();return this._ignoreSingleModifiers=new an(o),null!==this._currentSingleModifier&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){var n;let o=!1;if(e.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),!1;let s=null,r=null;if(i){const[t]=e.getSingleModifierDispatchChords();s=t,r=t?[t]:[]}else[s]=e.getDispatchChords(),r=this._currentChords.map((({keypress:e})=>e));if(null===s)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),o;const a=this._contextKeyService.getContext(t),l=e.getLabel(),c=this._getResolver().resolve(a,r,s);switch(c.kind){case 0:if(this._logService.trace("KeybindingService#dispatch",l,"[ No matching keybinding ]"),this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving multi-chord mode: Nothing bound to "${e}, ${l}".`),this._notificationService.status(_e.NC("missing.chord","The key combination ({0}, {1}) is not a command.",e,l),{hideAfter:1e4}),this._leaveChordMode(),o=!0}return o;case 1:return this._logService.trace("KeybindingService#dispatch",l,"[ Several keybindings match - more chords needed ]"),o=!0,this._expectAnotherChord(s,l),this._log(1===this._currentChords.length?"+ Entering multi-chord mode...":"+ Continuing multi-chord mode..."),o;case 2:if(this._logService.trace("KeybindingService#dispatch",l,`[ Will dispatch command ${c.commandId} ]`),null===c.commandId){if(this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving chord mode: Nothing bound to "${e}, ${l}".`),this._notificationService.status(_e.NC("missing.chord","The key combination ({0}, {1}) is not a command.",e,l),{hideAfter:1e4}),this._leaveChordMode()}o=!0}else this.inChordMode&&this._leaveChordMode(),c.isBubble||(o=!0),this._log(`+ Invoking command ${c.commandId}.`),void 0===c.commandArgs?this._commandService.executeCommand(c.commandId).then(void 0,(e=>this._notificationService.warn(e))):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,(e=>this._notificationService.warn(e))),sn.test(c.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:c.commandId,from:"keybinding",detail:null!==(n=e.getUserSettingsLabel())&&void 0!==n?n:void 0});return o}}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)}}class an{constructor(e){this._ctrlKey=!!e&&e.ctrlKey,this._shiftKey=!!e&&e.shiftKey,this._altKey=!!e&&e.altKey,this._metaKey=!!e&&e.metaKey}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}an.EMPTY=new an(null);var ln=i(91847);const cn={kind:0},hn={kind:1};class dn{constructor(e,t,i){var n;this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const t of e){const e=t.command;e&&"-"!==e.charAt(0)&&this._defaultBoundCommands.set(e,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=dn.handleRemovals([].concat(e).concat(t));for(let e=0,t=this._keybindings.length;e=0;e--){const n=i[e];if(n.command===t.command)continue;let o=!0;for(let e=1;e=0;e--){const n=i[e];if(t.contextMatchesRules(n.when))return n}return i[i.length-1]}resolve(e,t,i){const n=[...t,i];this._log(`| Resolving ${n}`);const o=this._map.get(n[0]);if(void 0===o)return this._log("\\ No keybinding entries."),cn;let s=null;if(n.length<2)s=o;else{s=[];for(let e=0,t=o.length;et.chords.length)continue;let i=!0;for(let e=1;e=0;i--){const n=t[i];if(dn._contextMatchesRules(e,n.when))return n}return null}static _contextMatchesRules(e,t){return!t||t.evaluate(e)}}function un(e){return e?`${e.serialize()}`:"no when condition"}function gn(e){return e.extensionId?e.isBuiltinExtension?`built-in extension ${e.extensionId}`:`user extension ${e.extensionId}`:e.isDefault?"built-in":"user"}var pn=i(49989);class mn{constructor(e,t,i,n,o,s,r){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.chords=e?fn(e.getDispatchChords()):[],e&&0===this.chords.length&&(this.chords=fn(e.getSingleModifierDispatchChords())),this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=n,this.isDefault=o,this.extensionId=s,this.isBuiltinExtension=r}}function fn(e){const t=[];for(let i=0,n=e.length;ithis._getLabel(e)))}getAriaLabel(){return vn.X4.toLabel(this._os,this._chords,(e=>this._getAriaLabel(e)))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:vn.jC.toLabel(this._os,this._chords,(e=>this._getElectronAccelerator(e)))}getUserSettingsLabel(){return vn.r6.toLabel(this._os,this._chords,(e=>this._getUserSettingsLabel(e)))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map((e=>this._getChord(e)))}_getChord(e){return new Vi.aZ(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchChords(){return this._chords.map((e=>this._getChordDispatch(e)))}getSingleModifierDispatchChords(){return this._chords.map((e=>this._getSingleModifierChordDispatch(e)))}}class Cn extends bn{constructor(e,t){super(t,e)}_keyCodeToUILabel(e){if(2===this._os)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return _n.kL.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":_n.kL.toString(e.keyCode)}_getElectronAccelerator(e){return _n.kL.toElectronAccelerator(e.keyCode)}_getUserSettingsLabel(e){if(e.isDuplicateModifierCase())return"";const t=_n.kL.toUserSettingsUS(e.keyCode);return t?t.toLowerCase():t}_getChordDispatch(e){return Cn.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=_n.kL.toString(e.keyCode),t}_getSingleModifierChordDispatch(e){return 5!==e.keyCode||e.shiftKey||e.altKey||e.metaKey?4!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey?6!==e.keyCode||e.ctrlKey||e.shiftKey||e.metaKey?57!==e.keyCode||e.ctrlKey||e.shiftKey||e.altKey?null:"meta":"alt":"shift":"ctrl"}static _scanCodeToKeyCode(e){const t=_n.Vd[e];if(-1!==t)return t;switch(e){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(e){if(!e)return null;if(e instanceof Vi.$M)return e;const t=this._scanCodeToKeyCode(e.scanCode);return 0===t?null:new Vi.$M(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveKeybinding(e,t){const i=fn(e.chords.map((e=>this._toKeyCodeChord(e))));return i.length>0?[new Cn(i,t)]:[]}}var yn,wn=i(44349),Sn=i(40382),kn=i(20913),xn=i(95935),Ln=i(33425),En=i(10161),Nn=i(61134);function Dn(e,t,i){const n=i.mode===yn.ALIGN?i.offset:i.offset+i.size,o=i.mode===yn.ALIGN?i.offset+i.size:i.offset;return 0===i.position?t<=e-n?n:t<=o?o-t:Math.max(e-t,0):t<=o?o-t:t<=e-n?n:0}!function(e){e[e.AVOID=0]="AVOID",e[e.ALIGN=1]="ALIGN"}(yn||(yn={}));class Tn extends s.JT{constructor(e,t){super(),this.container=null,this.delegate=null,this.toDisposeOnClean=s.JT.None,this.toDisposeOnSetContainer=s.JT.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=re.$(".context-view"),this.useFixedPosition=!1,this.useShadowDOM=!1,re.Cp(this.view),this.setContainer(e,t),this._register((0,s.OF)((()=>this.setContainer(null,1))))}setContainer(e,t){var i;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,null===(i=this.shadowRootHostElement)||void 0===i||i.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e){if(this.container=e,this.useFixedPosition=1!==t,this.useShadowDOM=3===t,this.useShadowDOM){this.shadowRootHostElement=re.$(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent=In,this.shadowRoot.appendChild(e),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(re.$("slot"))}else this.container.appendChild(this.view);const i=new s.SL;Tn.BUBBLE_UP_EVENTS.forEach((e=>{i.add(re.mu(this.container,e,(e=>{this.onDOMEvent(e,!1)})))})),Tn.BUBBLE_DOWN_EVENTS.forEach((e=>{i.add(re.mu(this.container,e,(e=>{this.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=i}}show(e){var t,i;this.isVisible()&&this.hide(),re.PO(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex="2575",this.view.style.position=this.useFixedPosition?"fixed":"absolute",re.$Z(this.view),this.toDisposeOnClean=e.render(this.view)||s.JT.None,this.delegate=e,this.doLayout(),null===(i=(t=this.delegate).focus)||void 0===i||i.call(t)}getViewElement(){return this.view}layout(){this.isVisible()&&(!1!==this.delegate.canRelayout||ci.gn&&En.D.pointerEvents?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide())}doLayout(){if(!this.isVisible())return;const e=this.delegate.getAnchor();let t;if(re.Re(e)){const i=re.i(e),n=re.I8(e);t={top:i.top*n,left:i.left*n,width:i.width*n,height:i.height*n}}else t={top:e.y,left:e.x,width:e.width||1,height:e.height||2};const i=re.w(this.view),n=re.wn(this.view),o=this.delegate.anchorPosition||0,s=this.delegate.anchorAlignment||0;let r,a;if(0===(this.delegate.anchorAxisAlignment||0)){const e={offset:t.top-window.pageYOffset,size:t.height,position:0===o?0:1},l={offset:t.left,size:t.width,position:0===s?0:1,mode:yn.ALIGN};r=Dn(window.innerHeight,n,e)+window.pageYOffset,Nn.e.intersects({start:r,end:r+n},{start:e.offset,end:e.offset+e.size})&&(l.mode=yn.AVOID),a=Dn(window.innerWidth,i,l)}else{const e={offset:t.left,size:t.width,position:0===s?0:1},l={offset:t.top,size:t.height,position:0===o?0:1,mode:yn.ALIGN};a=Dn(window.innerWidth,i,e),Nn.e.intersects({start:a,end:a+i},{start:e.offset,end:e.offset+e.size})&&(l.mode=yn.AVOID),r=Dn(window.innerHeight,n,l)+window.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(0===o?"bottom":"top"),this.view.classList.add(0===s?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const l=re.i(this.container);this.view.style.top=r-(this.useFixedPosition?re.i(this.view).top:l.top)+"px",this.view.style.left=a-(this.useFixedPosition?re.i(this.view).left:l.left)+"px",this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,(null==t?void 0:t.onHide)&&t.onHide(e),this.toDisposeOnClean.dispose(),re.Cp(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!re.jg(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}Tn.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],Tn.BUBBLE_DOWN_EVENTS=["click"];const In='\n\t:host {\n\t\tall: initial; /* 1st rule so subsequent properties are reset. */\n\t}\n\n\t.codicon[class*=\'codicon-\'] {\n\t\tfont: normal normal normal 16px/1 codicon;\n\t\tdisplay: inline-block;\n\t\ttext-decoration: none;\n\t\ttext-rendering: auto;\n\t\ttext-align: center;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tuser-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t}\n\n\t:host {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t}\n\n\t:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }\n\t:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }\n\t:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }\n\t:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }\n\t:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }\n\n\t:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }\n\t:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }\n\t:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }\n\t:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }\n\t:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }\n\n\t:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }\n';let An=class extends s.JT{constructor(e){super(),this.layoutService=e,this.currentViewDisposable=s.JT.None,this.container=e.hasContainer?e.container:null,this.contextView=this._register(new Tn(this.container,1)),this.layout(),this._register(e.onDidLayout((()=>this.layout())))}setContainer(e,t){this.contextView.setContainer(e,t||1)}showContextView(e,t,i){t?t===this.container&&this.shadowRoot===i||(this.container=t,this.setContainer(t,i?3:2)):this.layoutService.hasContainer&&this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.shadowRoot=i,this.contextView.show(e);const n=(0,s.OF)((()=>{this.currentViewDisposable===n&&this.hideContextView()}));return this.currentViewDisposable=n,n}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e)}};An=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(0,Rt)],An);var Mn=i(81170),Rn=i(68801);let On=[],Pn=[],Fn=[];function Bn(e,t=!1){!function(e,t,i){const n=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:false,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?Ii(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(li.KR.sep)>=0}}(e);On.push(n),n.userConfigured?Fn.push(n):Pn.push(n),i&&!n.userConfigured&&On.forEach((e=>{e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn(`Overwriting extension <<${n.extension}>> to now point to mime <<${n.mime}>>`),n.filename&&e.filename===n.filename&&console.warn(`Overwriting filename <<${n.filename}>> to now point to mime <<${n.mime}>>`),n.filepattern&&e.filepattern===n.filepattern&&console.warn(`Overwriting filepattern <<${n.filepattern}>> to now point to mime <<${n.mime}>>`),n.firstline&&e.firstline===n.firstline&&console.warn(`Overwriting firstline <<${n.firstline}>> to now point to mime <<${n.mime}>>`))}))}(e,0,t)}function Hn(e,t,i){var n;let o,s,r;for(let a=i.length-1;a>=0;a--){const l=i[a];if(t===l.filenameLowercase){o=l;break}if(l.filepattern&&(!s||l.filepattern.length>s.filepattern.length)){const i=l.filepatternOnPath?e:t;(null===(n=l.filepatternLowercase)||void 0===n?void 0:n.call(l,i))&&(s=l)}l.extension&&(!r||l.extension.length>r.extension.length)&&t.endsWith(l.extensionLowercase)&&(r=l)}return o||s||r||void 0}const Vn=Object.prototype.hasOwnProperty,Wn="vs.editor.nullLanguage";class zn{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(Wn,0),this._register(Rn.bd,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||Wn}}class Un extends s.JT{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new d.Q5),this.onDidChange=this._onDidChange.event,Un.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new zn,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(Rn.dQ.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){Un.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},On=On.filter((e=>e.userConfigured)),Pn=[];const e=[].concat(Rn.dQ.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),Yi.B.as(Qi.IP.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;Vn.call(this._languages,t)?i=this._languages[t]:(this.languageIdCodec.register(t),i={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=i),this._mergeLanguage(i,e)}_mergeLanguage(e,t){const i=t.id;let n=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),n=t.mimetypes[0]),n||(n=`text/x-${i}`,e.mimetypes.push(n)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)Bn({id:i,mime:n,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const o of t.filenames)Bn({id:i,mime:n,filename:o},this._warnOnOverwrite),e.filenames.push(o);if(Array.isArray(t.filenamePatterns))for(const e of t.filenamePatterns)Bn({id:i,mime:n,filepattern:e},this._warnOnOverwrite);if("string"==typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,r.IO)(t)||Bn({id:i,mime:n,firstline:t},this._warnOnOverwrite)}catch(i){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,i)}}e.aliases.push(i);let o=null;if(void 0!==t.aliases&&Array.isArray(t.aliases)&&(o=0===t.aliases.length?[null]:t.aliases),null!==o)for(const t of o)t&&0!==t.length&&e.aliases.push(t);const s=null!==o&&o.length>0;if(s&&null===o[0]);else{const t=(s?o[0]:null)||i;!s&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&Vn.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return Vn.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&Vn.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?function(e,t){return function(e,t){let i;if(e)switch(e.scheme){case Nt.lg.file:i=e.fsPath;break;case Nt.lg.data:i=xn.Vb.parseMetaData(e).get(xn.Vb.META_DATA_LABEL);break;case Nt.lg.vscodeNotebookCell:i=void 0;break;default:i=e.path}if(!i)return[{id:"unknown",mime:Mn.v.unknown}];i=i.toLowerCase();const n=(0,li.EZ)(i),o=Hn(i,n,Fn);if(o)return[o,{id:Rn.bd,mime:Mn.v.text}];const s=Hn(i,n,Pn);if(s)return[s,{id:Rn.bd,mime:Mn.v.text}];if(t){const e=function(e){if((0,r.uS)(e)&&(e=e.substr(1)),e.length>0)for(let t=On.length-1;t>=0;t--){const i=On[t];if(!i.firstline)continue;const n=e.match(i.firstline);if(n&&n.length>0)return i}}(t);if(e)return[e,{id:Rn.bd,mime:Mn.v.text}]}return[{id:"unknown",mime:Mn.v.unknown}]}(e,t).map((e=>e.id))}(e,t):[]}}Un.instanceCount=0;class jn extends s.JT{constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new d.Q5),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new d.Q5),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new d.Q5({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,jn.instanceCount++,this._registry=this._register(new Un(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){jn.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const i=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,$i.Xh)(i,null)}createById(e){return new Kn(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new Kn(this.onDidChange,(()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=Rn.bd),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),w.RW.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}jn.instanceCount=0;class Kn{constructor(e,t){this._onDidChangeLanguages=e,this._selector=t,this._listener=null,this._emitter=null,this.languageId=this._selector()}_dispose(){this._listener&&(this._listener.dispose(),this._listener=null),this._emitter&&(this._emitter.dispose(),this._emitter=null)}get onDidChange(){return this._listener||(this._listener=this._onDidChangeLanguages((()=>this._evaluate()))),this._emitter||(this._emitter=new d.Q5({onDidRemoveLastListener:()=>{this._dispose()}})),this._emitter.event}_evaluate(){var e;const t=this._selector();t!==this.languageId&&(this.languageId=t,null===(e=this._emitter)||void 0===e||e.fire(this.languageId))}}var qn=i(22444),$n=i(84144),Gn=i(7448),Qn=i(16268),Yn=i(10553),Zn=i(88609),Xn=i(21212);const Jn=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,eo=/(&)?(&)([^\s&])/g;var to;!function(e){e[e.Right=0]="Right",e[e.Left=1]="Left"}(to||(to={}));class io extends ve.o{constructor(e,t,i,n){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const o=document.createElement("div");o.classList.add("monaco-menu"),o.setAttribute("role","presentation"),super(o,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,r),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...ci.dz||ci.IJ?[10]:[]],keyDown:!0}}),this.menuStyles=n,this.menuElement=o,this.actionsList.tabIndex=0,this.menuDisposables=this._register(new s.SL),this.initializeOrUpdateStyleSheet(e,n),this._register(Yn.o.addTarget(o)),(0,re.nm)(o,re.tw.KEY_DOWN,(e=>{new Hi.y(e).equals(2)&&e.preventDefault()})),i.enableMnemonics&&this.menuDisposables.add((0,re.nm)(o,re.tw.KEY_DOWN,(e=>{const t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){re.zB.stop(e,!0);const i=this.mnemonics.get(t);if(1===i.length&&(i[0]instanceof oo&&i[0].container&&this.focusItemByElement(i[0].container),i[0].onClick(e)),i.length>1){const e=i.shift();e&&e.container&&(this.focusItemByElement(e.container),i.push(e)),this.mnemonics.set(t,i)}}}))),ci.IJ&&this._register((0,re.nm)(o,re.tw.KEY_DOWN,(e=>{const t=new Hi.y(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),re.zB.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),re.zB.stop(e,!0))}))),this._register((0,re.nm)(this.domNode,re.tw.MOUSE_OUT,(e=>{const t=e.relatedTarget;(0,re.jg)(t,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())}))),this._register((0,re.nm)(this.actionsList,re.tw.MOUSE_OVER,(e=>{let t=e.target;if(t&&(0,re.jg)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}))),this._register(Yn.o.addTarget(this.actionsList)),this._register((0,re.nm)(this.actionsList,Yn.t.Tap,(e=>{let t=e.initialTarget;if(t&&(0,re.jg)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}})));const r={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new be.s$(o,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const a=this.scrollableElement.getDomNode();a.style.position="",this.styleScrollElement(a,n),this._register((0,re.nm)(o,Yn.t.Change,(e=>{re.zB.stop(e,!0);const t=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})}))),this._register((0,re.nm)(a,re.tw.MOUSE_UP,(e=>{e.preventDefault()}))),o.style.maxHeight=`${Math.max(10,window.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter((e=>{var t;return!(null===(t=i.submenuIds)||void 0===t?void 0:t.has(e.id))||(console.warn(`Found submenu cycle: ${e.id}`),!1)})),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter((e=>!(e instanceof so))).forEach(((e,t,i)=>{e.updatePositionInSet(t+1,i.length)}))}initializeOrUpdateStyleSheet(e,t){this.styleSheet||((0,re.OO)(e)?this.styleSheet=(0,re.dS)(e):(io.globalStyleSheet||(io.globalStyleSheet=(0,re.dS)()),this.styleSheet=io.globalStyleSheet)),this.styleSheet.textContent=function(e,t){let i=`\n.monaco-menu {\n\tfont-size: 13px;\n\tborder-radius: 5px;\n\tmin-width: 160px;\n}\n\n${ro(de.l.menuSelection)}\n${ro(de.l.menuSubmenu)}\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar.animated .action-item.active {\n\ttransform: scale(1.272019649, 1.272019649); /* 1.272019649 = √φ */\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\tcolor: var(--vscode-disabledForeground);\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid var(--vscode-menu-separatorBackground);\n\tpadding-top: 1px;\n\tpadding: 30px;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n\tmargin: 0 4px;\n\tborder-radius: 4px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding {\n\topacity: unset;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\twidth: 100%;\n\theight: 0px !important;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n\t-webkit-app-region: no-drag;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.hc-black .context-view.monaco-menu-container,\n.hc-light .context-view.monaco-menu-container,\n:host-context(.hc-black) .context-view.monaco-menu-container,\n:host-context(.hc-light) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: 4px 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tmargin: 5px 0 !important;\n\tpadding: 0;\n\tborder-radius: 0;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}`;if(t){i+="\n\t\t\t/* Arrows */\n\t\t\t.monaco-scrollable-element > .scrollbar > .scra {\n\t\t\t\tcursor: pointer;\n\t\t\t\tfont-size: 11px !important;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .visible {\n\t\t\t\topacity: 1;\n\n\t\t\t\t/* Background rule added for IE9 - to allow clicks on dom node */\n\t\t\t\tbackground:rgba(0,0,0,0);\n\n\t\t\t\ttransition: opacity 100ms linear;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible {\n\t\t\t\topacity: 0;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible.fade {\n\t\t\t\ttransition: opacity 800ms linear;\n\t\t\t}\n\n\t\t\t/* Scrollable Content Inset Shadow */\n\t\t\t.monaco-scrollable-element > .shadow {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 3px;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 3px;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top-left-corner {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t";const t=e.scrollbarShadow;t&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\t\tbox-shadow: ${t} 0 6px 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 0 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.top.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 6px 6px -6px inset;\n\t\t\t\t}\n\t\t\t`);const n=e.scrollbarSliderBackground;n&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider {\n\t\t\t\t\tbackground: ${n};\n\t\t\t\t}\n\t\t\t`);const o=e.scrollbarSliderHoverBackground;o&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\t\t\t\tbackground: ${o};\n\t\t\t\t}\n\t\t\t`);const s=e.scrollbarSliderActiveBackground;s&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\t\tbackground: ${s};\n\t\t\t\t}\n\t\t\t`)}return i}(t,(0,re.OO)(e))}styleScrollElement(e,t){var i,n;const o=null!==(i=t.foregroundColor)&&void 0!==i?i:"",s=null!==(n=t.backgroundColor)&&void 0!==n?n:"",r=t.borderColor?`1px solid ${t.borderColor}`:"",a=t.shadowColor?`0 2px 8px ${t.shadowColor}`:"";e.style.outline=r,e.style.borderRadius="5px",e.style.color=o,e.style.backgroundColor=s,e.style.boxShadow=a}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t{this.element&&(this._register((0,re.nm)(this.element,re.tw.MOUSE_UP,(e=>{if(re.zB.stop(e,!0),Qn.isFirefox){if(new Gn.n(e).rightButton)return;this.onClick(e)}else setTimeout((()=>{this.onClick(e)}),0)}))),this._register((0,re.nm)(this.element,re.tw.CONTEXT_MENU,(e=>{re.zB.stop(e,!0)}))))}),100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=(0,re.R3)(this.element,(0,re.$)("a.action-menu-item")),this._action.id===Ce.Z0.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=(0,re.R3)(this.item,(0,re.$)("span.menu-item-check"+Se.k.asCSSSelector(de.l.menuSelection))),this.check.setAttribute("role","none"),this.label=(0,re.R3)(this.item,(0,re.$)("span.action-label")),this.options.label&&this.options.keybinding&&((0,re.R3)(this.item,(0,re.$)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked(),this.applyStyle())}blur(){super.blur(),this.applyStyle()}focus(){var e;super.focus(),null===(e=this.item)||void 0===e||e.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){var e;if(this.label&&this.options.label){(0,re.PO)(this.label);let t=(0,Xn.x$)(this.action.label);if(t){const i=function(e){const t=Jn,i=t.exec(e);if(!i)return e;const n=!i[1];return e.replace(t,n?"$2$3":"").trim()}(t);this.options.enableMnemonics||(t=i),this.label.setAttribute("aria-label",i.replace(/&&/g,"&"));const n=Jn.exec(t);if(n){t=r.YU(t),eo.lastIndex=0;let i=eo.exec(t);for(;i&&i[1];)i=eo.exec(t);const o=e=>e.replace(/&&/g,"&");i?this.label.append(r.j3(o(t.substr(0,i.index))," "),(0,re.$)("u",{"aria-hidden":"true"},i[3]),r.oL(o(t.substr(i.index+i[0].length))," ")):this.label.innerText=o(t).trim(),null===(e=this.item)||void 0===e||e.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else this.label.innerText=t.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.action.class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.action.enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const e=this.action.checked;this.item.classList.toggle("checked",!!e),void 0!==e?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,n=e&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",o=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=null!=t?t:"",this.item.style.backgroundColor=null!=i?i:"",this.item.style.outline=n,this.item.style.outlineOffset=o),this.check&&(this.check.style.color=null!=t?t:"")}}class oo extends no{constructor(e,t,i,n,o){super(e,e,n,o),this.submenuActions=t,this.parentData=i,this.submenuOptions=n,this.mysubmenu=null,this.submenuDisposables=this._register(new s.SL),this.mouseOver=!1,this.expandDirection=n&&void 0!==n.expandDirection?n.expandDirection:to.Right,this.showScheduler=new he.pY((()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))}),250),this.hideScheduler=new he.pY((()=>{this.element&&!(0,re.jg)((0,re.vY)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}),750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=(0,re.R3)(this.item,(0,re.$)("span.submenu-indicator"+Se.k.asCSSSelector(de.l.menuSubmenu))),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register((0,re.nm)(this.element,re.tw.KEY_UP,(e=>{const t=new Hi.y(e);(t.equals(17)||t.equals(3))&&(re.zB.stop(e,!0),this.createSubmenu(!0))}))),this._register((0,re.nm)(this.element,re.tw.KEY_DOWN,(e=>{const t=new Hi.y(e);(0,re.vY)()===this.item&&(t.equals(17)||t.equals(3))&&re.zB.stop(e,!0)}))),this._register((0,re.nm)(this.element,re.tw.MOUSE_OVER,(e=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())}))),this._register((0,re.nm)(this.element,re.tw.MOUSE_LEAVE,(e=>{this.mouseOver=!1}))),this._register((0,re.nm)(this.element,re.tw.FOCUS_OUT,(e=>{this.element&&!(0,re.jg)((0,re.vY)(),this.element)&&this.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((()=>{this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}))))}updateEnabled(){}onClick(e){re.zB.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch(e){}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,n){const o={top:0,left:0};return o.left=Dn(e.width,t.width,{position:n===to.Right?0:1,offset:i.left,size:i.width}),o.left>=i.left&&o.left{new Hi.y(e).equals(15)&&(re.zB.stop(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))}))),this.submenuDisposables.add((0,re.nm)(this.submenuContainer,re.tw.KEY_DOWN,(e=>{new Hi.y(e).equals(15)&&re.zB.stop(e,!0)}))),this.submenuDisposables.add(this.parentData.submenu.onDidCancel((()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)}))),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){var t;this.item&&(null===(t=this.item)||void 0===t||t.setAttribute("aria-expanded",e))}applyStyle(){super.applyStyle();const e=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=null!=e?e:"")}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class so extends Zn.gU{constructor(e,t,i,n){super(e,t,i),this.menuStyles=n}render(e){super.render(e),this.label&&(this.label.style.borderBottomColor=this.menuStyles.separatorColor?`${this.menuStyles.separatorColor}`:"")}}function ro(e){const t=(0,de.u)()[e.id];return`.codicon-${e.id}:before { content: '\\${t.toString(16)}'; }`}var ao=i(86253);class lo{constructor(e,t,i,n){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=n,this.focusToReturn=null,this.lastContainer=null,this.block=null,this.blockDisposable=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;let i;this.focusToReturn=document.activeElement;const n=(0,re.Re)(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:n=>{var o;this.lastContainer=n;const r=e.getMenuClassName?e.getMenuClassName():"";r&&(n.className+=" "+r),this.options.blockMouse&&(this.block=n.appendChild((0,re.$)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",null===(o=this.blockDisposable)||void 0===o||o.dispose(),this.blockDisposable=(0,re.nm)(this.block,re.tw.MOUSE_DOWN,(e=>e.stopPropagation())));const a=new s.SL,l=e.actionRunner||new Ce.Wi;return l.onWillRun((t=>this.onActionRun(t,!e.skipTelemetry)),this,a),l.onDidRun(this.onDidActionRun,this,a),i=new io(n,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:l,getKeyBinding:e.getKeyBinding?e.getKeyBinding:e=>this.keybindingService.lookupKeybinding(e.id)},ao.ZR),i.onDidCancel((()=>this.contextViewService.hideContextView(!0)),null,a),i.onDidBlur((()=>this.contextViewService.hideContextView(!0)),null,a),a.add((0,re.nm)(window,re.tw.BLUR,(()=>this.contextViewService.hideContextView(!0)))),a.add((0,re.nm)(window,re.tw.MOUSE_DOWN,(e=>{if(e.defaultPrevented)return;const t=new Gn.n(e);let i=t.target;if(!t.rightButton){for(;i;){if(i===n)return;i=i.parentElement}this.contextViewService.hideContextView(!0)}}))),(0,s.F8)(a,i)},focus:()=>{null==i||i.focus(!!e.autoSelectFirstItem)},onHide:t=>{var i,n,o;null===(i=e.onHide)||void 0===i||i.call(e,!!t),this.block&&(this.block.remove(),this.block=null),null===(n=this.blockDisposable)||void 0===n||n.dispose(),this.blockDisposable=null,this.lastContainer&&((0,re.vY)()===this.lastContainer||(0,re.jg)((0,re.vY)(),this.lastContainer))&&(null===(o=this.focusToReturn)||void 0===o||o.focus()),this.lastContainer=null}},n,!!n)}onActionRun(e,t){t&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1)}onDidActionRun(e){e.error&&!(0,ue.n2)(e.error)&&this.notificationService.error(e.error)}}var co=function(e,t){return function(i,n){t(i,n,e)}};let ho=class extends s.JT{get contextMenuHandler(){return this._contextMenuHandler||(this._contextMenuHandler=new lo(this.contextViewService,this.telemetryService,this.notificationService,this.keybindingService)),this._contextMenuHandler}constructor(e,t,i,n,o,s){super(),this.telemetryService=e,this.notificationService=t,this.contextViewService=i,this.keybindingService=n,this.menuService=o,this.contextKeyService=s,this._contextMenuHandler=void 0,this._onDidShowContextMenu=this._store.add(new d.Q5),this._onDidHideContextMenu=this._store.add(new d.Q5)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){e=uo.transform(e,this.menuService,this.contextKeyService),this.contextMenuHandler.showContextMenu(Object.assign(Object.assign({},e),{onHide:t=>{var i;null===(i=e.onHide)||void 0===i||i.call(e,t),this._onDidHideContextMenu.fire()}})),re._q.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};var uo;ho=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([co(0,He.b),co(1,Ze.lT),co(2,Ge.u),co(3,ln.d),co(4,$n.co),co(5,we.i6)],ho),function(e){e.transform=function(e,t,i){if(!((n=e)&&n.menuId instanceof $n.eH))return e;var n;const{menuId:o,menuActionOptions:s,contextKeyService:r}=e;return Object.assign(Object.assign({},e),{getActions:()=>{const n=[];if(o){const e=t.createMenu(o,null!=r?r:i);(0,qn.LJ)(e,s,n),e.dispose()}return e.getActions?Ce.Z0.join(e.getActions(),n):n}})}}(uo||(uo={}));var go,po=i(71050),mo=i(23897);!function(e){e[e.API=0]="API",e[e.USER=1]="USER"}(go||(go={}));var fo=i(50988),_o=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},vo=function(e,t){return function(i,n){t(i,n,e)}},bo=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let Co=class{constructor(e){this._commandService=e}open(e,t){return bo(this,void 0,void 0,(function*(){if(!(0,fo.xn)(e,Nt.lg.command))return!1;if(!(null==t?void 0:t.allowCommands))return!0;if("string"==typeof e&&(e=a.o.parse(e)),Array.isArray(t.allowCommands)&&!t.allowCommands.includes(e.path))return!0;let i=[];try{i=(0,mo.Q)(decodeURIComponent(e.query))}catch(t){try{i=(0,mo.Q)(e.query)}catch(e){}}return Array.isArray(i)||(i=[i]),yield this._commandService.executeCommand(e.path,...i),!0}))}};Co=_o([vo(0,qi.H)],Co);let yo=class{constructor(e){this._editorService=e}open(e,t){return bo(this,void 0,void 0,(function*(){"string"==typeof e&&(e=a.o.parse(e));const{selection:i,uri:n}=(0,fo.xI)(e);return(e=n).scheme===Nt.lg.file&&(e=(0,xn.AH)(e)),yield this._editorService.openCodeEditor({resource:e,options:Object.assign({selection:i,source:(null==t?void 0:t.fromUserGesture)?go.USER:go.API},null==t?void 0:t.editorOptions)},this._editorService.getFocusedCodeEditor(),null==t?void 0:t.openToSide),!0}))}};yo=_o([vo(0,c.$)],yo);let wo=class{constructor(e,t){this._openers=new Dt.S,this._validators=new Dt.S,this._resolvers=new Dt.S,this._resolvedUriTargets=new ai.Y9((e=>e.with({path:null,fragment:null,query:null}).toString())),this._externalOpeners=new Dt.S,this._defaultExternalOpener={openExternal:e=>bo(this,void 0,void 0,(function*(){return(0,fo.Gs)(e,Nt.lg.http,Nt.lg.https)?re.V3(e):window.location.href=e,!0}))},this._openers.push({open:(e,t)=>bo(this,void 0,void 0,(function*(){return!(!(null==t?void 0:t.openExternal)&&!(0,fo.Gs)(e,Nt.lg.mailto,Nt.lg.http,Nt.lg.https,Nt.lg.vsls)||(yield this._doOpenExternal(e,t),0))}))}),this._openers.push(new Co(t)),this._openers.push(new yo(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}open(e,t){var i;return bo(this,void 0,void 0,(function*(){const n="string"==typeof e?a.o.parse(e):e,o=null!==(i=this._resolvedUriTargets.get(n))&&void 0!==i?i:e;for(const e of this._validators)if(!(yield e.shouldOpen(o,t)))return!1;for(const i of this._openers)if(yield i.open(e,t))return!0;return!1}))}resolveExternalUri(e,t){return bo(this,void 0,void 0,(function*(){for(const i of this._resolvers)try{const n=yield i.resolveExternalUri(e,t);if(n)return this._resolvedUriTargets.has(n.resolved)||this._resolvedUriTargets.set(n.resolved,e),n}catch(e){}throw new Error("Could not resolve external URI: "+e.toString())}))}_doOpenExternal(e,t){return bo(this,void 0,void 0,(function*(){const i="string"==typeof e?a.o.parse(e):e;let n,o;try{n=(yield this.resolveExternalUri(i,t)).resolved}catch(e){n=i}if(o="string"==typeof e&&i.toString()===n.toString()?e:encodeURI(n.toString(!0)),null==t?void 0:t.allowContributedOpeners){const e="string"==typeof(null==t?void 0:t.allowContributedOpeners)?null==t?void 0:t.allowContributedOpeners:void 0;for(const t of this._externalOpeners)if(yield t.openExternal(o,{sourceUri:i,preferredOpenerId:e},po.T.None))return!0}return this._defaultExternalOpener.openExternal(o,{sourceUri:i},po.T.None)}))}dispose(){this._validators.clear()}};wo=_o([vo(0,c.$),vo(1,qi.H)],wo);var So=i(98674),ko=i(8625),xo=function(e,t){return function(i,n){t(i,n,e)}};class Lo extends s.JT{constructor(e){super(),this.model=e,this._markersData=new Map,this._register((0,s.OF)((()=>{this.model.deltaDecorations([...this._markersData.keys()],[]),this._markersData.clear()})))}update(e,t){const i=[...this._markersData.keys()];this._markersData.clear();const n=this.model.deltaDecorations(i,t);for(let t=0;tthis._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new Lo(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){var t;const i=this._markerDecorations.get(e.uri);i&&(i.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==Nt.lg.inMemory&&e.uri.scheme!==Nt.lg.internal&&e.uri.scheme!==Nt.lg.vscode||null===(t=this._markerService)||void 0===t||t.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500}),i=t.map((t=>({range:this._createDecorationRange(e.model,t),options:this._createDecorationOption(t)})));e.update(t,i)&&this._onDidChangeMarker.fire(e.model)}_createDecorationRange(e,t){let i=g.e.lift(t);if(t.severity!==So.ZL.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),i=e.validateRange(i),i.isEmpty()){const t=e.getLineLastNonWhitespaceColumn(i.startLineNumber)||e.getLineMaxColumn(i.startLineNumber);if(1===t||i.endColumn>=t)return i;const n=e.getWordAtPosition(i.getStartPosition());n&&(i=new g.e(i.startLineNumber,n.startColumn,i.endLineNumber,n.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&i.startLineNumber===i.endLineNumber){const n=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);n=0}};Eo=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([xo(0,L.q),xo(1,So.lT)],Eo);var No=i(36357),Do=i(22075),To=i(89954),Io=i(95215),Ao=function(e,t){return function(i,n){t(i,n,e)}};function Mo(e){return e.toString()}function Ro(e){const t=new To.yP,i=e.createSnapshot();let n;for(;n=i.read();)t.update(n);return t.digest()}class Oo{constructor(e,t,i){this.model=e,this._modelEventListeners=new s.SL,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>i(e,t))))}dispose(){this._modelEventListeners.dispose()}}const Po=ci.IJ||ci.dz?1:2;class Fo{constructor(e,t,i,n,o,s,r,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=n,this.heapSize=o,this.sha1=s,this.versionId=r,this.alternativeVersionId=a}}let Bo=class e extends s.JT{constructor(e,t,i,n,o){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=i,this._languageService=n,this._languageConfigurationService=o,this._onModelAdded=this._register(new d.Q5),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new d.Q5),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new d.Q5),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){var i;let n=Do.D.tabSize;if(e.editor&&void 0!==e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let o="tabSize";if(e.editor&&void 0!==e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(o=Math.max(t,1))}let s=Do.D.insertSpaces;e.editor&&void 0!==e.editor.insertSpaces&&(s="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let r=Po;const a=e.eol;"\r\n"===a?r=2:"\n"===a&&(r=1);let l=Do.D.trimAutoWhitespace;e.editor&&void 0!==e.editor.trimAutoWhitespace&&(l="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let c=Do.D.detectIndentation;e.editor&&void 0!==e.editor.detectIndentation&&(c="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let h=Do.D.largeFileOptimizations;e.editor&&void 0!==e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let d=Do.D.bracketPairColorizationOptions;return(null===(i=e.editor)||void 0===i?void 0:i.bracketPairColorization)&&"object"==typeof e.editor.bracketPairColorization&&(d={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:o,insertSpaces:s,detectIndentation:c,defaultEOL:r,trimAutoWhitespace:l,largeFileOptimizations:h,bracketPairColorizationOptions:d}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&"string"==typeof i&&"auto"!==i?i:3===ci.OS||2===ci.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!=typeof e||e}getCreationOptions(t,i,n){const o="string"==typeof t?t:t.languageId;let s=this._modelCreationOptionsByLanguageAndResource[o+i];if(!s){const t=this._configurationService.getValue("editor",{overrideIdentifier:o,resource:i}),r=this._getEOL(i,o);s=e._readModelOptions({editor:t,eol:r},n),this._modelCreationOptionsByLanguageAndResource[o+i]=s}return s}_updateModelOptions(t){const i=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let o=0,s=n.length;oe){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,n){const o=this.getCreationOptions(t,i,n),s=new je.yO(e,t,o,i,this._undoRedoService,this._languageService,this._languageConfigurationService);if(i&&this._disposedModels.has(Mo(i))){const e=this._removeDisposedModel(i),t=this._undoRedoService.getElements(i),n=Ro(s)===e.sha1;if(n||e.sharesUndoRedoStack){for(const e of t.past)(0,Io.e9)(e)&&e.matchesResource(i)&&e.setModel(s);for(const e of t.future)(0,Io.e9)(e)&&e.matchesResource(i)&&e.setModel(s);this._undoRedoService.setElementsValidFlag(i,!0,(e=>(0,Io.e9)(e)&&e.matchesResource(i))),n&&(s._overwriteVersionId(e.versionId),s._overwriteAlternativeVersionId(e.alternativeVersionId),s._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const r=Mo(s.uri);if(this._models[r])throw new Error("ModelService: Cannot add model because it already exists!");const a=new Oo(s,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[r]=a,a}createModel(e,t,i,n=!1){let o;return o=t?this._createModelData(e,t,i,n):this._createModelData(e,Rn.bd,i,n),this._onModelAdded.fire(o.model),o.model}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,n=t.length;i0||e.future.length>0){for(const i of e.past)(0,Io.e9)(i)&&i.matchesResource(t.uri)&&(s=!0,r+=i.heapSize(t.uri),i.setModel(t.uri));for(const i of e.future)(0,Io.e9)(i)&&i.matchesResource(t.uri)&&(s=!0,r+=i.heapSize(t.uri),i.setModel(t.uri))}}const a=e.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK;if(s)if(!o&&r>a){const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else this._ensureDisposedModelsHeapSize(a-r),this._undoRedoService.setElementsValidFlag(t.uri,!1,(e=>(0,Io.e9)(e)&&e.matchesResource(t.uri))),this._insertDisposedModel(new Fo(t.uri,n.model.getInitialUndoRedoSnapshot(),Date.now(),o,r,Ro(t),t.getVersionId(),t.getAlternativeVersionId()));else if(!o){const e=n.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[i],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[t.getLanguageId()+t.uri],this._onModelRemoved.fire(t)}_onDidChangeLanguage(t,i){const n=i.oldLanguage,o=t.getLanguageId(),s=this.getCreationOptions(n,t.uri,t.isForSimpleWidget),r=this.getCreationOptions(o,t.uri,t.isForSimpleWidget);e._setModelOptionsForModel(t,r,s),this._onModelModeChanged.fire({model:t,oldLanguageId:n})}};Bo.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520,Bo=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Ao(0,W.Ui),Ao(1,Ki.y),Ao(2,Wt.tJ),Ao(3,x.O),Ao(4,S.c_)],Bo);var Ho=i(46763),Vo=i(88289),Wo=i(90725),zo=i(41157),Uo=function(e,t){return function(i,n){t(i,n,e)}};let jo=class extends s.JT{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=Yi.B.as(Wo.IP.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){var n;const[o,r]=this.getOrInstantiateProvider(e),a=this.visibleQuickAccess,l=null==a?void 0:a.descriptor;if(a&&r&&l===r)return e===r.prefix||(null==i?void 0:i.preserveValue)||(a.picker.value=e),void this.adjustValueSelection(a.picker,r,i);if(r&&!(null==i?void 0:i.preserveValue)){let t;if(a&&l&&l!==r){const e=a.value.substr(l.prefix.length);e&&(t=`${r.prefix}${e}`)}if(!t){const e=null==o?void 0:o.defaultFilterValue;e===Wo.Ry.LAST?t=this.lastAcceptedPickerValues.get(r):"string"==typeof e&&(t=`${r.prefix}${e}`)}"string"==typeof t&&(e=t)}const c=new s.SL,h=c.add(this.quickInputService.createQuickPick());let d;h.value=e,this.adjustValueSelection(h,r,i),h.placeholder=null==r?void 0:r.placeholder,h.quickNavigate=null==i?void 0:i.quickNavigateConfiguration,h.hideInput=!!h.quickNavigate&&!a,("number"==typeof(null==i?void 0:i.itemActivation)||(null==i?void 0:i.quickNavigateConfiguration))&&(h.itemActivation=null!==(n=null==i?void 0:i.itemActivation)&&void 0!==n?n:zo.jG.SECOND),h.contextKey=null==r?void 0:r.contextKey,h.filterValue=e=>e.substring(r?r.prefix.length:0),t&&(d=new he.CR,c.add((0,Vo.I)(h.onWillAccept)((e=>{e.veto(),h.hide()})))),c.add(this.registerPickerListeners(h,o,r,e,null==i?void 0:i.providerOptions));const u=c.add(new po.A);return o&&c.add(o.provide(h,u.token,null==i?void 0:i.providerOptions)),(0,Vo.I)(h.onDidHide)((()=>{0===h.selectedItems.length&&u.cancel(),c.dispose(),null==d||d.complete(h.selectedItems.slice(0))})),h.show(),t?null==d?void 0:d.p:void 0}adjustValueSelection(e,t,i){var n;let o;o=(null==i?void 0:i.preserveValue)?[e.value.length,e.value.length]:[null!==(n=null==t?void 0:t.prefix.length)&&void 0!==n?n:0,e.value.length],e.valueSelection=o}registerPickerListeners(e,t,i,n,o){const r=new s.SL,a=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return r.add((0,s.OF)((()=>{a===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)}))),r.add(e.onDidChangeValue((e=>{const[i]=this.getOrInstantiateProvider(e);i!==t?this.show(e,{preserveValue:!0,providerOptions:o}):a.value=e}))),i&&r.add(e.onDidAccept((()=>{this.lastAcceptedPickerValues.set(i,e.value)}))),r}getOrInstantiateProvider(e){const t=this.registry.getQuickAccessProvider(e);if(!t)return[void 0,void 0];let i=this.mapProviderToDescriptor.get(t);return i||(i=this.instantiationService.createInstance(t.ctor),this.mapProviderToDescriptor.set(t,i)),[i,t]}};jo=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Uo(0,zo.eJ),Uo(1,Qe.TG)],jo);var Ko=i(43416),qo=i(67488);const $o="done",Go="active",Qo="infinite",Yo="infinite-long-running",Zo="discrete";class Xo extends s.JT{constructor(e,t){super(),this.workedVal=0,this.showDelayedScheduler=this._register(new he.pY((()=>(0,re.$Z)(this.element)),0)),this.longRunningScheduler=this._register(new he.pY((()=>this.infiniteLongRunning()),Xo.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e,t)}create(e,t){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.bit.style.backgroundColor=(null==t?void 0:t.progressBarBackground)||"#0E70C0",this.element.appendChild(this.bit)}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(Go,Qo,Yo,Zo),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add($o),this.element.classList.contains(Qo)?(this.bit.style.opacity="0",e?setTimeout((()=>this.off()),200):this.off()):(this.bit.style.width="inherit",e?setTimeout((()=>this.off()),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(Zo,$o,Yo),this.element.classList.add(Go,Qo),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(Yo)}getContainer(){return this.element}}Xo.LONG_RUNNING_INFINITE_THRESHOLD=1e4;var Jo=i(82900),es=i(3070);const ts=re.$;class is extends s.JT{constructor(e,t,i){super(),this.parent=e,this.onKeyDown=e=>re.nm(this.findInput.inputBox.inputElement,re.tw.KEY_DOWN,(t=>{e(new Hi.y(t))})),this.onMouseDown=e=>re.nm(this.findInput.inputBox.inputElement,re.tw.MOUSE_DOWN,(t=>{e(new Gn.n(t))})),this.onDidChange=e=>this.findInput.onDidChange(e),this.container=re.R3(this.parent,ts(".quick-input-box")),this.findInput=this._register(new es.V(this.container,void 0,{label:"",inputBoxStyles:t,toggleStyles:i}));const n=this.findInput.inputBox.inputElement;n.role="combobox",n.ariaHasPopup="menu",n.ariaAutoComplete="list",n.ariaExpanded="true"}get value(){return this.findInput.getValue()}set value(e){this.findInput.setValue(e)}select(e=null){this.findInput.inputBox.select(e)}isSelectionAtEnd(){return this.findInput.inputBox.isSelectionAtEnd()}get placeholder(){return this.findInput.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.findInput.inputBox.setPlaceHolder(e)}get password(){return"password"===this.findInput.inputBox.inputElement.type}set password(e){this.findInput.inputBox.inputElement.type=e?"password":"text"}set enabled(e){this.findInput.inputBox.inputElement.toggleAttribute("readonly",!e)}set toggles(e){this.findInput.setAdditionalToggles(e)}setAttribute(e,t){this.findInput.inputBox.inputElement.setAttribute(e,t)}showDecoration(e){e===Ht.Z.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:e===Ht.Z.Info?1:e===Ht.Z.Warning?2:3,content:""})}stylesForType(e){return this.findInput.inputBox.stylesForType(e===Ht.Z.Info?1:e===Ht.Z.Warning?2:3)}setFocus(){this.findInput.focus()}layout(){this.findInput.inputBox.layout()}}var ns=i(59834),os=i(55496),ss=i(79579);const rs=new ss.o((()=>{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}}));new ss.o((()=>({collator:new Intl.Collator(void 0,{numeric:!0})}))),new ss.o((()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})})));var as=i(49898),ls=i(4850),cs=i(56811),hs=i(44742);class ds{constructor(e){this.nodes=e}toString(){return this.nodes.map((e=>"string"==typeof e?e:e.label)).join("")}}!function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);s>3&&r&&Object.defineProperty(t,i,r)}([as.H],ds.prototype,"toString",null);const us=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi,gs={},ps=new hs.R("quick-input-button-icon-");function ms(e){if(!e)return;let t;const i=e.dark.toString();return gs[i]?t=gs[i]:(t=ps.nextId(),re.fk(`.${t}, .hc-light .${t}`,`background-image: ${re.wY(e.light||e.dark)}`),re.fk(`.vs-dark .${t}, .hc-black .${t}`,`background-image: ${re.wY(e.dark)}`),gs[i]=t),t}var fs=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},_s=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};const vs=re.$;class bs{get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}constructor(e){this.hidden=!1,this._onChecked=new d.Q5,this.onChecked=this._onChecked.event,Object.assign(this,e)}dispose(){this._onChecked.dispose()}}class Cs{get templateId(){return Cs.ID}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=re.R3(e,vs(".quick-input-list-entry"));const i=re.R3(t.entry,vs("label.quick-input-list-label"));t.toDisposeTemplate.push(re.mu(i,re.tw.CLICK,(e=>{t.checkbox.offsetParent||e.preventDefault()}))),t.checkbox=re.R3(i,vs("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(re.mu(t.checkbox,re.tw.CHANGE,(e=>{t.element.checked=t.checkbox.checked})));const n=re.R3(i,vs(".quick-input-list-rows")),o=re.R3(n,vs(".quick-input-list-row")),s=re.R3(n,vs(".quick-input-list-row"));t.label=new ns.g(o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});const r=re.R3(o,vs(".quick-input-list-entry-keybinding"));t.keybinding=new os.e(r,ci.OS);const a=re.R3(s,vs(".quick-input-list-label-meta"));return t.detail=new ns.g(a,{supportHighlights:!0,supportIcons:!0}),t.separator=re.R3(t.entry,vs(".quick-input-list-separator")),t.actionBar=new ve.o(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,i){i.element=e,e.element=(0,Gi.f6)(i.entry);const n=e.item?e.item:e.separator;i.checkbox.checked=e.checked,i.toDisposeElement.push(e.onChecked((e=>i.checkbox.checked=e)));const{labelHighlights:o,descriptionHighlights:s,detailHighlights:r}=e,a=Object.create(null);a.matches=o||[],a.descriptionTitle=e.saneDescription,a.descriptionMatches=s||[],"separator"!==n.type?(a.extraClasses=n.iconClasses,a.italic=n.italic,a.strikethrough=n.strikethrough,i.entry.classList.remove("quick-input-list-separator-as-item")):i.entry.classList.add("quick-input-list-separator-as-item"),i.label.setLabel(e.saneLabel,e.saneDescription,a),i.keybinding.set("separator"===n.type?void 0:n.keybinding),e.saneDetail&&i.detail.setLabel(e.saneDetail,void 0,{matches:r,title:e.saneDetail}),e.item&&e.separator&&e.separator.label?(i.separator.textContent=e.separator.label,i.separator.style.display=""):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!e.separator);const l=n.buttons;l&&l.length?(i.actionBar.push(l.map(((t,i)=>{let o=t.iconClass||(t.iconPath?ms(t.iconPath):void 0);return t.alwaysVisible&&(o=o?`${o} always-visible`:"always-visible"),{id:`id-${i}`,class:o,enabled:!0,label:"",tooltip:t.tooltip||"",run:()=>{"separator"!==n.type?e.fireButtonTriggered({button:t,item:n}):e.fireSeparatorButtonTriggered({button:t,separator:n})}}})),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){i.toDisposeElement=(0,s.B9)(i.toDisposeElement),i.actionBar.clear()}disposeTemplate(e){e.toDisposeElement=(0,s.B9)(e.toDisposeElement),e.toDisposeTemplate=(0,s.B9)(e.toDisposeTemplate)}}Cs.ID="listelement";class ys{getHeight(e){return e.item?e.saneDetail?44:22:24}getTemplateId(e){return Cs.ID}}var ws;!function(e){e[e.First=1]="First",e[e.Second=2]="Second",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Previous=5]="Previous",e[e.NextPage=6]="NextPage",e[e.PreviousPage=7]="PreviousPage"}(ws||(ws={}));class Ss{constructor(e,t,i){this.parent=e,this.options=i,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnLabelMode="fuzzy",this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new d.Q5,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new d.Q5,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new d.Q5,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new d.Q5,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new d.Q5,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new d.Q5,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._onKeyDown=new d.Q5,this.onKeyDown=this._onKeyDown.event,this._onLeave=new d.Q5,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=re.R3(this.parent,vs(".quick-input-list"));const n=new ys,o=new xs;this.list=i.createList("QuickInput",this.container,n,[new Cs],{identityProvider:{getId:e=>e.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:o}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown((e=>{const t=new Hi.y(e);switch(t.keyCode){case 10:this.toggleCheckbox();break;case 31:(ci.dz?e.metaKey:e.ctrlKey)&&this.list.setFocus((0,$i.w6)(this.list.length));break;case 16:{const e=this.list.getFocus();1===e.length&&0===e[0]&&this._onLeave.fire();break}case 18:{const e=this.list.getFocus();1===e.length&&e[0]===this.list.length-1&&this._onLeave.fire();break}}this._onKeyDown.fire(t)}))),this.disposables.push(this.list.onMouseDown((e=>{2!==e.browserEvent.button&&e.browserEvent.preventDefault()}))),this.disposables.push(re.nm(this.container,re.tw.CLICK,(e=>{(e.x||e.y)&&this._onLeave.fire()}))),this.disposables.push(this.list.onMouseMiddleClick((e=>{this._onLeave.fire()}))),this.disposables.push(this.list.onContextMenu((e=>{"number"==typeof e.index&&(e.browserEvent.preventDefault(),this.list.setSelection([e.index]))})));const s=new he.rH(i.hoverDelegate.delay);this.disposables.push(this.list.onMouseOver((e=>_s(this,void 0,void 0,(function*(){var t;if(e.browserEvent.target instanceof HTMLAnchorElement)s.cancel();else if(e.browserEvent.relatedTarget instanceof HTMLAnchorElement||!re.jg(e.browserEvent.relatedTarget,null===(t=e.element)||void 0===t?void 0:t.element))try{yield s.trigger((()=>_s(this,void 0,void 0,(function*(){e.element&&this.showHover(e.element)}))))}catch(e){if(!(0,ue.n2)(e))throw e}}))))),this.disposables.push(this.list.onMouseOut((e=>{var t;re.jg(e.browserEvent.relatedTarget,null===(t=e.element)||void 0===t?void 0:t.element)||s.cancel()}))),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onSeparatorButtonTriggered,this._onLeave,this._onKeyDown,s)}get onDidChangeFocus(){return d.ju.map(this.list.onDidChangeFocus,(e=>e.elements.map((e=>e.item))))}get onDidChangeSelection(){return d.ju.map(this.list.onDidChangeSelection,(e=>({items:e.elements.map((e=>e.item)),event:e.browserEvent})))}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}get ariaLabel(){return this.list.getHTMLElement().ariaLabel}set ariaLabel(e){this.list.getHTMLElement().ariaLabel=e}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i{t.hidden||(t.checked=e)}))}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=(0,s.B9)(this.elementDisposables);const t=e=>this.fireButtonTriggered(e),i=e=>this.fireSeparatorButtonTriggered(e);this.inputElements=e,this.elements=e.reduce(((n,o,s)=>{var r,a,l;const c=s&&e[s-1],h=o.label?o.label.replace(/\r?\n/g," "):"",d=(0,Xn.Ho)(h).text.trim();let u,g,p,m,f,_,v;"separator"!==o.type&&(u=o.meta&&o.meta.replace(/\r?\n/g," "),g=o.description&&o.description.replace(/\r?\n/g," "),p=o.detail&&o.detail.replace(/\r?\n/g," "),m=null===(r=o.highlights)||void 0===r?void 0:r.label,f=null===(a=o.highlights)||void 0===a?void 0:a.description,_=null===(l=o.highlights)||void 0===l?void 0:l.detail,v=o.tooltip);const b=o.ariaLabel||[h,g,p].map((e=>(0,Xn.JL)(e))).filter((e=>!!e)).join(", "),C=this.parent.classList.contains("show-checkboxes");let y;if("separator"===o.type){if(!o.buttons)return n;y=o}else c&&"separator"===c.type&&!c.buttons&&(y=c);const w=new bs({hasCheckbox:C,index:s,item:"separator"!==o.type?o:void 0,saneLabel:h,saneSortLabel:d,saneMeta:u,saneAriaLabel:b,saneDescription:g,saneDetail:p,saneTooltip:v,labelHighlights:m,descriptionHighlights:f,detailHighlights:_,checked:!1,separator:y,fireButtonTriggered:t,fireSeparatorButtonTriggered:i});return this.elementDisposables.push(w),this.elementDisposables.push(w.onChecked((()=>this.fireCheckedEvents()))),n.push(w),n}),[]),this.elementsToIndexes=this.elements.reduce(((e,t,i)=>{var n;return e.set(null!==(n=t.item)&&void 0!==n?n:t.separator,i),e}),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map((e=>e.item))}setFocusedElements(e){if(this.list.setFocus(e.filter((e=>this.elementsToIndexes.has(e))).map((e=>this.elementsToIndexes.get(e)))),e.length>0){const e=this.list.getFocus()[0];"number"==typeof e&&this.list.reveal(e)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter((e=>this.elementsToIndexes.has(e))).map((e=>this.elementsToIndexes.get(e))))}getCheckedElements(){return this.elements.filter((e=>e.checked)).map((e=>e.item)).filter((e=>!!e))}setCheckedElements(e){try{this._fireCheckedEvents=!1;const t=new Set;for(const i of e)t.add(i);for(const e of this.elements)e.checked=t.has(e.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(!this.list.length)return;switch(e===ws.Second&&this.list.length<2&&(e=ws.First),e){case ws.First:this.list.scrollTop=0,this.list.focusFirst(void 0,(e=>!!e.item));break;case ws.Second:this.list.scrollTop=0,this.list.focusNth(1,void 0,(e=>!!e.item));break;case ws.Last:this.list.scrollTop=this.list.scrollHeight,this.list.focusLast(void 0,(e=>!!e.item));break;case ws.Next:{this.list.focusNext(void 0,!0,void 0,(e=>!!e.item));const e=this.list.getFocus()[0];0!==e&&!this.elements[e-1].item&&this.list.firstVisibleIndex>e-1&&this.list.reveal(e-1);break}case ws.Previous:{this.list.focusPrevious(void 0,!0,void 0,(e=>!!e.item));const e=this.list.getFocus()[0];0!==e&&!this.elements[e-1].item&&this.list.firstVisibleIndex>e-1&&this.list.reveal(e-1);break}case ws.NextPage:this.list.focusNextPage(void 0,(e=>!!e.item));break;case ws.PreviousPage:this.list.focusPreviousPage(void 0,(e=>!!e.item))}const t=this.list.getFocus()[0];"number"==typeof t&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}showHover(e){var t,i,n;this._lastHover&&!this._lastHover.isDisposed&&(null===(i=(t=this.options.hoverDelegate).onDidHideHover)||void 0===i||i.call(t),null===(n=this._lastHover)||void 0===n||n.dispose()),e.element&&e.saneTooltip&&(this._lastHover=this.options.hoverDelegate.showHover({content:e.saneTooltip,target:e.element,linkHandler:e=>{this.options.linkOpenerDelegate(e)},showPointer:!0,container:this.container,hoverPosition:1},!1))}layout(e){this.list.getHTMLElement().style.maxHeight=e?44*Math.floor(e/44)+6+"px":"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;const t=e;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let i;this.elements.forEach((n=>{let o;o="fuzzy"===this.matchOnLabelMode?this.matchOnLabel?(0,Gi.f6)((0,Xn.Gt)(e,(0,Xn.Ho)(n.saneLabel))):void 0:this.matchOnLabel?(0,Gi.f6)(function(e,t){const{text:i,iconOffsets:n}=t;if(!n||0===n.length)return ks(e,i);const o=(0,r.j3)(i," "),s=i.length-o.length,a=ks(e,o);if(a)for(const e of a){const t=n[e.start+s]+s;e.start+=t,e.end+=t}return a}(t,(0,Xn.Ho)(n.saneLabel))):void 0;const s=this.matchOnDescription?(0,Gi.f6)((0,Xn.Gt)(e,(0,Xn.Ho)(n.saneDescription||""))):void 0,a=this.matchOnDetail?(0,Gi.f6)((0,Xn.Gt)(e,(0,Xn.Ho)(n.saneDetail||""))):void 0,l=this.matchOnMeta?(0,Gi.f6)((0,Xn.Gt)(e,(0,Xn.Ho)(n.saneMeta||""))):void 0;if(o||s||a||l?(n.labelHighlights=o,n.descriptionHighlights=s,n.detailHighlights=a,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item||!n.item.alwaysShow),!this.sortByLabel){const e=n.index&&this.inputElements[n.index-1];i=e&&"separator"===e.type?e:i,i&&!n.hidden&&(n.separator=i,i=void 0)}}))}else this.elements.forEach((e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;const t=e.index&&this.inputElements[e.index-1];e.item&&(e.separator=t&&"separator"===t.type&&!t.buttons?t:void 0)}));const i=this.elements.filter((e=>!e.hidden));if(this.sortByLabel&&e){const t=e.toLowerCase();i.sort(((e,i)=>function(e,t,i){const n=e.labelHighlights||[],o=t.labelHighlights||[];return n.length&&!o.length?-1:!n.length&&o.length?1:0===n.length&&0===o.length?0:function(e,t,i){const n=e.toLowerCase(),o=t.toLowerCase(),s=function(e,t,i){const n=e.toLowerCase(),o=t.toLowerCase(),s=n.startsWith(i),r=o.startsWith(i);if(s!==r)return s?-1:1;if(s&&r){if(n.lengtho.length)return 1}return 0}(e,t,i);if(s)return s;const r=n.endsWith(i);if(r!==o.endsWith(i))return r?-1:1;const a=function(e,t,i=!1){const n=e||"",o=t||"",s=rs.value.collator.compare(n,o);return rs.value.collatorIsNumeric&&0===s&&n!==o?n{var n;return e.set(null!==(n=t.item)&&void 0!==n?n:t.separator,i),e}),new Map),this.list.splice(0,this.list.length,i),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(i.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;const e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(const i of e)i.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return"none"!==this.container.style.display}dispose(){this.elementDisposables=(0,s.B9)(this.elementDisposables),this.disposables=(0,s.B9)(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}fireSeparatorButtonTriggered(e){this._onSeparatorButtonTriggered.fire(e)}style(e){this.list.style(e)}toggleHover(){if(!this.list.getFocusedElements()[0].saneTooltip)return;if(this._lastHover&&!this._lastHover.isDisposed)return void this._lastHover.dispose();const e=this.list.getFocusedElements()[0];if(!e)return;this.showHover(e);const t=new s.SL;t.add(this.list.onDidChangeFocus((e=>{e.indexes.length&&this.showHover(e.elements[0])}))),this._lastHover&&t.add(this._lastHover),this._toggleHover=t,this.elementDisposables.push(this._toggleHover)}}function ks(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1!==i?[{start:i,end:i+e.length}]:null}fs([as.H],Ss.prototype,"onDidChangeFocus",null),fs([as.H],Ss.prototype,"onDidChangeSelection",null);class xs{getWidgetAriaLabel(){return(0,_e.NC)("quickInput","Quick Input")}getAriaLabel(e){var t;return(null===(t=e.separator)||void 0===t?void 0:t.label)?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(e.hasCheckbox)return{value:e.checked,onDidChange:e.onChecked}}}var Ls=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};const Es=re.$,Ns={iconClass:Se.k.asClassName(de.l.quickInputBack),tooltip:(0,_e.NC)("quickInput.back","Back"),handle:-1};class Ds extends s.JT{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.buttonsUpdated=!1,this._toggles=[],this.togglesUpdated=!1,this.noValidationMessage=Ds.noPromptMessage,this._severity=Ht.Z.Ignore,this.onDidTriggerButtonEmitter=this._register(new d.Q5),this.onDidHideEmitter=this._register(new d.Q5),this.onDisposeEmitter=this._register(new d.Q5),this.visibleDisposables=this._register(new s.SL),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!ci.gn;this._ignoreFocusOut=e&&!ci.gn,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get toggles(){return this._toggles}set toggles(e){this._toggles=null!=e?e:[],this.togglesUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton((e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e)}))),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.toggles.length&&(this.togglesUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=zo.Jq.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}update(){var e,t;if(!this.visible)return;const i=this.getTitle();i&&this.ui.title.textContent!==i?this.ui.title.textContent=i:i||" "===this.ui.title.innerHTML||(this.ui.title.innerText=" ");const n=this.getDescription();if(this.ui.description1.textContent!==n&&(this.ui.description1.textContent=n),this.ui.description2.textContent!==n&&(this.ui.description2.textContent=n),this.busy&&!this.busyDelay&&(this.busyDelay=new he._F,this.busyDelay.setIfNotSet((()=>{this.visible&&this.ui.progressBar.infinite()}),800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const e=this.buttons.filter((e=>e===Ns));this.ui.leftActionBar.push(e.map(((e,t)=>{const i=new Ce.aU(`id-${t}`,"",e.iconClass||ms(e.iconPath),!0,(()=>Ls(this,void 0,void 0,(function*(){this.onDidTriggerButtonEmitter.fire(e)}))));return i.tooltip=e.tooltip||"",i})),{icon:!0,label:!1}),this.ui.rightActionBar.clear();const t=this.buttons.filter((e=>e!==Ns));this.ui.rightActionBar.push(t.map(((e,t)=>{const i=new Ce.aU(`id-${t}`,"",e.iconClass||ms(e.iconPath),!0,(()=>Ls(this,void 0,void 0,(function*(){this.onDidTriggerButtonEmitter.fire(e)}))));return i.tooltip=e.tooltip||"",i})),{icon:!0,label:!1})}if(this.togglesUpdated){this.togglesUpdated=!1;const i=null!==(t=null===(e=this.toggles)||void 0===e?void 0:e.filter((e=>e instanceof Jo.Z)))&&void 0!==t?t:[];this.ui.inputBox.toggles=i}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const o=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==o&&(this._lastValidationMessage=o,re.mc(this.ui.message),function(e,t,i){re.mc(t);const n=function(e){const t=[];let i,n=0;for(;i=us.exec(e);){i.index-n>0&&t.push(e.substring(n,i.index));const[,o,s,,r]=i;r?t.push({label:o,href:s,title:r}):t.push({label:o,href:s}),n=i.index+i[0].length}return n{re.cl(t)&&re.zB.stop(t,!0),i.callback(e.href)},a=i.disposables.add(new ls.Y(s,re.tw.CLICK)).event,l=i.disposables.add(new ls.Y(s,re.tw.KEY_DOWN)).event,c=i.disposables.add(d.ju.chain(l)).filter((e=>{const t=new Hi.y(e);return t.equals(10)||t.equals(3)})).event;i.disposables.add(Yn.o.addTarget(s));const h=i.disposables.add(new ls.Y(s,Yn.t.Tap)).event;d.ju.any(a,h,c)(r,null,i.disposables),t.appendChild(s)}}(o,this.ui.message,{callback:e=>{this.ui.linkOpenerDelegate(e)},disposables:this.visibleDisposables})),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?(0,_e.NC)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==Ht.Z.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}Ds.noPromptMessage=(0,_e.NC)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class Ts extends Ds{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new d.Q5),this.onWillAcceptEmitter=this._register(new d.Q5),this.onDidAcceptEmitter=this._register(new d.Q5),this.onDidCustomEmitter=this._register(new d.Q5),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._autoFocusOnList=!0,this._keepScrollPosition=!1,this._itemActivation=zo.jG.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new d.Q5),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new d.Q5),this.onDidTriggerItemButtonEmitter=this._register(new d.Q5),this.onDidTriggerSeparatorButtonEmitter=this._register(new d.Q5),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event,this.onDidTriggerSeparatorButton=this.onDidTriggerSeparatorButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this.doSetValue(e)}doSetValue(e,t){this._value!==e&&(this._value=e,t||this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?zo.X5:this.ui.keyMods}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(ws.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{this.doSetValue(e,!0)}))),this.visibleDisposables.add(this.ui.inputBox.onMouseDown((e=>{this.autoFocusOnList||this.ui.list.clearFocus()}))),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown((e=>{switch(e.keyCode){case 18:this.ui.list.focus(ws.Next),this.canSelectMany&&this.ui.list.domFocus(),re.zB.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(ws.Previous):this.ui.list.focus(ws.Last),this.canSelectMany&&this.ui.list.domFocus(),re.zB.stop(e,!0);break;case 12:this.ui.list.focus(ws.NextPage),this.canSelectMany&&this.ui.list.domFocus(),re.zB.stop(e,!0);break;case 11:this.ui.list.focus(ws.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),re.zB.stop(e,!0);break;case 17:if(!this._canAcceptInBackground)return;if(!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(ws.First),re.zB.stop(e,!0));break;case 13:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(ws.Last),re.zB.stop(e,!0))}}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)}))),this.visibleDisposables.add(this.ui.onDidCustom((()=>{this.onDidCustomEmitter.fire()}))),this.visibleDisposables.add(this.ui.list.onDidChangeFocus((e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&(0,$i.fS)(e,this._activeItems,((e,t)=>e===t))||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.list.onDidChangeSelection((({items:e,event:t})=>{this.canSelectMany?e.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&(0,$i.fS)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(t instanceof MouseEvent&&1===t.button))}))),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements((e=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&(0,$i.fS)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))}))),this.visibleDisposables.add(this.ui.list.onButtonTriggered((e=>this.onDidTriggerItemButtonEmitter.fire(e)))),this.visibleDisposables.add(this.ui.list.onSeparatorButtonTriggered((e=>this.onDidTriggerSeparatorButtonEmitter.fire(e)))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return re.nm(this.ui.container,re.tw.KEY_UP,(e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new Hi.y(e),i=t.keyCode;this._quickNavigate.keybindings.some((e=>{const n=e.getChords();return!(n.length>1||(n[0].shiftKey&&4===i?t.ctrlKey||t.altKey||t.metaKey:!(n[0].altKey&&6===i||n[0].ctrlKey&&5===i||n[0].metaKey&&57===i)))}))&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)}))}update(){if(!this.visible)return;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this.description,i={title:!!this.title||!!this.step||!!this.buttons.length,description:t,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!this._hideInput,progressBar:!this._hideInput||t,visibleCount:!0,count:this.canSelectMany,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let n=this.ariaLabel;if(!n&&i.inputBox&&(n=this.placeholder||Ts.DEFAULT_ARIA_LABEL,this.title&&(n+=` - ${this.title}`)),this.ui.list.ariaLabel!==n&&(this.ui.list.ariaLabel=(0,Gi.M2)(n)),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case zo.jG.NONE:this._itemActivation=zo.jG.FIRST;break;case zo.jG.SECOND:this.ui.list.focus(ws.Second),this._itemActivation=zo.jG.FIRST;break;case zo.jG.LAST:this.ui.list.focus(ws.Last),this._itemActivation=zo.jG.FIRST;break;default:this.trySelectFirst()}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(ws.First)),this.keepScrollPosition&&(this.scrollTop=e)}}Ts.DEFAULT_ARIA_LABEL=(0,_e.NC)("quickInputBox.ariaLabel","Type to narrow down results.");class Is extends Ds{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new d.Q5),this.onDidAcceptEmitter=this._register(new d.Q5),this.onDidChangeValue=this.onDidValueChangeEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event}get value(){return this._value}set value(e){this._value=e||"",this.update()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get password(){return this._password}set password(e){this._password=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{e!==this.value&&(this._value=e,this.onDidValueChangeEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>this.onDidAcceptEmitter.fire()))),this.valueSelectionUpdated=!0),super.show()}update(){if(!this.visible)return;this.ui.container.classList.remove("hidden-input");const e={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description||!!this.step,inputBox:!0,message:!0};this.ui.setVisibilities(e),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),this.ui.inputBox.password!==this.password&&(this.ui.inputBox.password=this.password)}}class As extends s.JT{constructor(e){super(),this.options=e,this.enabled=!0,this.onDidAcceptEmitter=this._register(new d.Q5),this.onDidCustomEmitter=this._register(new d.Q5),this.onDidTriggerButtonEmitter=this._register(new d.Q5),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new d.Q5),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new d.Q5),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){const e=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};this._register(re.nm(window,re.tw.KEY_DOWN,e,!0)),this._register(re.nm(window,re.tw.KEY_UP,e,!0)),this._register(re.nm(window,re.tw.MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;const e=re.R3(this.parentElement,Es(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none";const t=re.dS(e),i=re.R3(e,Es(".quick-input-titlebar")),n=this._register(new ve.o(i));n.domNode.classList.add("quick-input-left-action-bar");const o=re.R3(i,Es(".quick-input-title")),s=this._register(new ve.o(i));s.domNode.classList.add("quick-input-right-action-bar");const r=re.R3(e,Es(".quick-input-description")),a=re.R3(e,Es(".quick-input-header")),l=re.R3(a,Es("input.quick-input-check-all"));l.type="checkbox",l.setAttribute("aria-label",(0,_e.NC)("quickInput.checkAll","Toggle all checkboxes")),this._register(re.mu(l,re.tw.CHANGE,(e=>{const t=l.checked;k.setAllVisibleChecked(t)}))),this._register(re.nm(l,re.tw.CLICK,(e=>{(e.x||e.y)&&u.setFocus()})));const c=re.R3(a,Es(".quick-input-description")),h=re.R3(a,Es(".quick-input-and-message")),d=re.R3(h,Es(".quick-input-filter")),u=this._register(new is(d,this.styles.inputBox,this.styles.toggle));u.setAttribute("aria-describedby",`${this.idPrefix}message`);const g=re.R3(d,Es(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const p=new qo.Z(g,{countFormat:(0,_e.NC)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")},this.styles.countBadge),m=re.R3(d,Es(".quick-input-count"));m.setAttribute("aria-live","polite");const f=new qo.Z(m,{countFormat:(0,_e.NC)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")},this.styles.countBadge),_=re.R3(a,Es(".quick-input-action")),v=new Ko.z(_,this.styles.button);v.label=(0,_e.NC)("ok","OK"),this._register(v.onDidClick((e=>{this.onDidAcceptEmitter.fire()})));const b=re.R3(a,Es(".quick-input-action")),C=new Ko.z(b,this.styles.button);C.label=(0,_e.NC)("custom","Custom"),this._register(C.onDidClick((e=>{this.onDidCustomEmitter.fire()})));const y=re.R3(h,Es(`#${this.idPrefix}message.quick-input-message`)),w=new Xo(e,this.styles.progressBar);w.getContainer().classList.add("quick-input-progress");const S=this.idPrefix+"list",k=this._register(new Ss(e,S,this.options));u.setAttribute("aria-controls",S),this._register(k.onDidChangeFocus((()=>{var e;u.setAttribute("aria-activedescendant",null!==(e=k.getActiveDescendant())&&void 0!==e?e:"")}))),this._register(k.onChangedAllVisibleChecked((e=>{l.checked=e}))),this._register(k.onChangedVisibleCount((e=>{p.setCount(e)}))),this._register(k.onChangedCheckedCount((e=>{f.setCount(e)}))),this._register(k.onLeave((()=>{setTimeout((()=>{u.setFocus(),this.controller instanceof Ts&&this.controller.canSelectMany&&k.clearFocus()}),0)})));const x=re.go(e);return this._register(x),this._register(re.nm(e,re.tw.FOCUS,(e=>{this.previousFocusElement=e.relatedTarget instanceof HTMLElement?e.relatedTarget:void 0}),!0)),this._register(x.onDidBlur((()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(zo.Jq.Blur),this.previousFocusElement=void 0}))),this._register(re.nm(e,re.tw.FOCUS,(e=>{u.setFocus()}))),this._register(re.nm(e,re.tw.KEY_DOWN,(t=>{const i=new Hi.y(t);switch(i.keyCode){case 3:re.zB.stop(t,!0),this.enabled&&this.onDidAcceptEmitter.fire();break;case 9:re.zB.stop(t,!0),this.hide(zo.Jq.Gesture);break;case 2:if(!i.altKey&&!i.ctrlKey&&!i.metaKey){const n=[".action-label.codicon"];e.classList.contains("show-checkboxes")?n.push("input"):n.push("input[type=text]"),this.getUI().list.isDisplayed()&&n.push(".monaco-list"),this.getUI().message&&n.push(".quick-input-message a");const o=e.querySelectorAll(n.join(", "));i.shiftKey&&i.target===o[0]?(re.zB.stop(t,!0),k.clearFocus()):i.shiftKey||i.target!==o[o.length-1]||(re.zB.stop(t,!0),o[0].focus())}break;case 10:i.ctrlKey&&(re.zB.stop(t,!0),this.getUI().list.toggleHover())}}))),this.ui={container:e,styleSheet:t,leftActionBar:n,titleBar:i,title:o,description1:r,description2:c,rightActionBar:s,checkAll:l,filterContainer:d,inputBox:u,visibleCountContainer:g,visibleCount:p,countContainer:m,count:f,okContainer:_,ok:v,message:y,customButtonContainer:b,customButton:C,list:k,progressBar:w,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e),linkOpenerDelegate:e=>this.options.linkOpenerDelegate(e)},this.updateStyles(),this.ui}pick(e,t={},i=po.T.None){return new Promise(((n,o)=>{let r=e=>{var i;r=n,null===(i=t.onKeyMods)||void 0===i||i.call(t,a.keyMods),n(e)};if(i.isCancellationRequested)return void r(void 0);const a=this.createQuickPick();let l;const c=[a,a.onDidAccept((()=>{if(a.canSelectMany)r(a.selectedItems.slice()),a.hide();else{const e=a.activeItems[0];e&&(r(e),a.hide())}})),a.onDidChangeActive((e=>{const i=e[0];i&&t.onDidFocus&&t.onDidFocus(i)})),a.onDidChangeSelection((e=>{if(!a.canSelectMany){const t=e[0];t&&(r(t),a.hide())}})),a.onDidTriggerItemButton((e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},e),{removeItem:()=>{const t=a.items.indexOf(e.item);if(-1!==t){const e=a.items.slice(),i=e.splice(t,1),n=a.activeItems.filter((e=>e!==i[0])),o=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=e,n&&(a.activeItems=n),a.keepScrollPosition=o}}})))),a.onDidTriggerSeparatorButton((e=>{var i;return null===(i=t.onDidTriggerSeparatorButton)||void 0===i?void 0:i.call(t,e)})),a.onDidChangeValue((e=>{!l||e||1===a.activeItems.length&&a.activeItems[0]===l||(a.activeItems=[l])})),i.onCancellationRequested((()=>{a.hide()})),a.onDidHide((()=>{(0,s.B9)(c),r(void 0)}))];a.title=t.title,a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,a.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,a.autoFocusOnList=void 0===t.autoFocusOnList||t.autoFocusOnList,a.quickNavigate=t.quickNavigate,a.hideInput=!!t.hideInput,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then((([e,t])=>{l=t,a.busy=!1,a.items=e,a.canSelectMany&&(a.selectedItems=e.filter((e=>"separator"!==e.type&&e.picked))),l&&(a.activeItems=[l])})),a.show(),Promise.resolve(e).then(void 0,(e=>{o(e),a.hide()}))}))}createQuickPick(){const e=this.getUI();return new Ts(e)}createInputBox(){const e=this.getUI();return new Is(e)}show(e){const t=this.getUI();this.onShowEmitter.fire();const i=this.controller;this.controller=e,null==i||i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(Ht.Z.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),re.mc(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,t.inputBox.toggles=void 0;const n=this.options.backKeybindingLabel();Ns.tooltip=n?(0,_e.NC)("quickInput.backWithKeybinding","Back ({0})",n):(0,_e.NC)("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=!e.description||e.inputBox||e.checkAll?"none":"",t.checkAll.style.display=e.checkAll?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList.toggle("show-checkboxes",!!e.checkBox),t.container.classList.toggle("hidden-input",!e.inputBox&&!e.description),this.updateLayout()}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.action.enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.action.enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().inputBox.enabled=e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t;const i=this.controller;if(i){const n=!(null===(t=this.ui)||void 0===t?void 0:t.container.contains(document.activeElement));if(this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",!n){let e=this.previousFocusElement;for(;e&&!e.offsetParent;)e=(0,Gi.f6)(e.parentElement);(null==e?void 0:e.offsetParent)?(e.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}i.didHide(e)}}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui&&this.isDisplayed()){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(.62*this.dimension.width,As.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,widgetBorder:n,widgetShadow:o}=this.styles.widget;this.ui.titleBar.style.backgroundColor=null!=e?e:"",this.ui.container.style.backgroundColor=null!=t?t:"",this.ui.container.style.color=null!=i?i:"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=o?`0 0 8px 2px ${o}`:"",this.ui.list.style(this.styles.list);const s=[];this.styles.pickerGroup.pickerGroupBorder&&s.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&s.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&s.push(`.quick-input-list .quick-input-list-separator-as-item { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(s.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&s.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&s.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&s.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&s.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&s.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),s.push("}"));const r=s.join("\n");r!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=r)}}isDisplayed(){return this.ui&&"none"!==this.ui.container.style.display}}As.MAX_WIDTH=600;var Ms=function(e,t){return function(i,n){t(i,n,e)}};let Rs=class extends et.bB{get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get hasController(){return!!this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(jo))),this._quickAccess}constructor(e,t,i,n){super(i),this.instantiationService=e,this.contextKeyService=t,this.layoutService=n,this._onShow=this._register(new d.Q5),this._onHide=this._register(new d.Q5),this.contexts=new Map}createController(e=this.layoutService,t){const i={idPrefix:"quickInput_",container:e.container,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:e=>this.setContextKey(e),linkOpenerDelegate:e=>{this.instantiationService.invokeFunction((t=>{t.get(fo.v4).open(e,{allowCommands:!0,fromUserGesture:!0})}))},returnFocus:()=>e.focus(),createList:(e,t,i,n,o)=>this.instantiationService.createInstance(Ho.ev,e,t,i,n,o),hoverDelegate:{showHover(e,t){},delay:200},styles:this.computeStyles()},n=this._register(new As(Object.assign(Object.assign({},i),t)));return n.layout(e.dimension,e.offset.quickPickTop),this._register(e.onDidLayout((t=>n.layout(t,e.offset.quickPickTop)))),this._register(n.onShow((()=>{this.resetContextKeys(),this._onShow.fire()}))),this._register(n.onHide((()=>{this.resetContextKeys(),this._onHide.fire()}))),n}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new we.uy(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),t&&t.get()||(this.resetContextKeys(),null==t||t.set(!0))}resetContextKeys(){this.contexts.forEach((e=>{e.get()&&e.reset()}))}pick(e,t={},i=po.T.None){return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}createInputBox(){return this.controller.createInputBox()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:(0,Je.n_1)(Je.zKr),quickInputForeground:(0,Je.n_1)(Je.tZ6),quickInputTitleBackground:(0,Je.n_1)(Je.loF),widgetBorder:(0,Je.n_1)(Je.A42),widgetShadow:(0,Je.n_1)(Je.rh)},inputBox:ao.Hc,toggle:ao.pl,countBadge:ao.ku,button:ao.wG,progressBar:ao.b5,keybindingLabel:ao.eO,list:(0,ao.TU)({listBackground:Je.zKr,listFocusBackground:Je.Vqd,listFocusForeground:Je.NPS,listInactiveFocusForeground:Je.NPS,listInactiveSelectionIconForeground:Je.cbQ,listInactiveFocusBackground:Je.Vqd,listFocusOutline:Je.xL1,listInactiveFocusOutline:Je.xL1}),pickerGroup:{pickerGroupBorder:(0,Je.n_1)(Je.opG),pickerGroupForeground:(0,Je.n_1)(Je.kJk)}}}};Rs=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Ms(0,Qe.TG),Ms(1,we.i6),Ms(2,et.XE),Ms(3,Rt)],Rs);var Os=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Ps=function(e,t){return function(i,n){t(i,n,e)}};let Fs=class extends Rs{constructor(e,t,i,n,o){super(t,i,n,new Bt(e.getContainerDomNode(),o)),this.host=void 0;const s=Hs.get(e);if(s){const t=s.widget;this.host={_serviceBrand:void 0,get hasContainer(){return!0},get container(){return t.getDomNode()},get dimension(){return e.getLayoutInfo()},get onDidLayout(){return e.onDidLayoutChange},focus:()=>e.focus(),offset:{top:0,quickPickTop:0}}}else this.host=void 0}createController(){return super.createController(this.host)}};Fs=Os([Ps(1,Qe.TG),Ps(2,we.i6),Ps(3,et.XE),Ps(4,c.$)],Fs);let Bs=class{get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(Fs,e);this.mapEditorToService.set(e,t),(0,Vo.I)(e.onDidDispose)((()=>{i.dispose(),this.mapEditorToService.delete(e)}))}return t}get quickAccess(){return this.activeService.quickAccess}constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}pick(e,t={},i=po.T.None){return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}createInputBox(){return this.activeService.createInputBox()}};Bs=Os([Ps(0,Qe.TG),Ps(1,c.$)],Bs);class Hs{static get(e){return e.getContribution(Hs.ID)}constructor(e){this.editor=e,this.widget=new Vs(this.editor)}dispose(){this.widget.dispose()}}Hs.ID="editor.controller.quickInput";class Vs{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return Vs.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}Vs.ID="editor.contrib.quickInputWidget",(0,me._K)(Hs.ID,Hs,4);var Ws=i(58763),zs=i(44156),Us=function(e,t){return function(i,n){t(i,n,e)}};let js=class extends s.JT{constructor(e,t,i){super(),this._contextKeyService=e,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new d.Q5,this._onDidChangeReducedMotion=new d.Q5,this._accessibilityModeEnabledContext=m.U.bindTo(this._contextKeyService);const n=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.accessibilitySupport")&&(n(),this._onDidChangeScreenReaderOptimized.fire()),e.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())}))),n(),this._register(this.onDidChangeScreenReaderOptimized((()=>n())));const o=window.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=o.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this.initReducedMotionListeners(o)}initReducedMotionListeners(e){if(!this._layoutService.hasContainer)return;this._register((0,re.nm)(e,"change",(()=>{this._systemMotionReduced=e.matches,"auto"===this._configMotionReduced&&this._onDidChangeReducedMotion.fire()})));const t=()=>{const e=this.isMotionReduced();this._layoutService.container.classList.toggle("reduce-motion",e),this._layoutService.container.classList.toggle("enable-motion",!e)};t(),this._register(this.onDidChangeReducedMotion((()=>t())))}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const e=this._configMotionReduced;return"on"===e||"auto"===e&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};js=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Us(0,we.i6),Us(1,Rt),Us(2,W.Ui)],js);var Ks=i(26904),qs=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},$s=function(e,t){return function(i,n){t(i,n,e)}};let Gs=class{constructor(e,t){this._commandService=e,this._hiddenStates=new Qs(t)}createMenu(e,t,i){return new Zs(e,this._hiddenStates,Object.assign({emitEventsForSubmenuChanges:!1,eventDebounceDelay:50},i),this._commandService,t)}resetHiddenStates(e){this._hiddenStates.reset(e)}};Gs=qs([$s(0,qi.H),$s(1,Ks.Uy)],Gs);let Qs=class e{constructor(t){this._storageService=t,this._disposables=new s.SL,this._onDidChange=new d.Q5,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1,this._hiddenByDefaultCache=new Map;try{const i=t.get(e._key,0,"{}");this._data=JSON.parse(i)}catch(e){this._data=Object.create(null)}this._disposables.add(t.onDidChangeValue((i=>{if(i.key===e._key){if(!this._ignoreChangeEvent)try{const i=t.get(e._key,0,"{}");this._data=JSON.parse(i)}catch(e){console.log("FAILED to read storage after UPDATE",e)}this._onDidChange.fire()}})))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}_isHiddenByDefault(e,t){var i;return null!==(i=this._hiddenByDefaultCache.get(`${e.id}/${t}`))&&void 0!==i&&i}setDefaultState(e,t,i){this._hiddenByDefaultCache.set(`${e.id}/${t}`,i)}isHidden(e,t){var i,n;const o=this._isHiddenByDefault(e,t),s=null!==(n=null===(i=this._data[e.id])||void 0===i?void 0:i.includes(t))&&void 0!==n&&n;return o?!s:s}updateHidden(e,t,i){this._isHiddenByDefault(e,t)&&(i=!i);const n=this._data[e.id];if(i)n?n.indexOf(t)<0&&n.push(t):this._data[e.id]=[t];else if(n){const i=n.indexOf(t);i>=0&&(0,$i.LS)(n,i),0===n.length&&delete this._data[e.id]}this._persist()}reset(e){if(void 0===e)this._data=Object.create(null),this._persist();else{for(const{id:t}of e)this._data[t]&&delete this._data[t];this._persist()}}_persist(){try{this._ignoreChangeEvent=!0;const t=JSON.stringify(this._data);this._storageService.store(e._key,t,0,0)}finally{this._ignoreChangeEvent=!1}}};Qs._key="menu.hiddenCommands",Qs=qs([$s(0,Ks.Uy)],Qs);let Ys=class e{constructor(e,t,i,n,o){this._id=e,this._hiddenStates=t,this._collectContextKeysForSubmenus=i,this._commandService=n,this._contextKeyService=o,this._menuGroups=[],this._structureContextKeys=new Set,this._preconditionContextKeys=new Set,this._toggledContextKeys=new Set,this.refresh()}get structureContextKeys(){return this._structureContextKeys}get preconditionContextKeys(){return this._preconditionContextKeys}get toggledContextKeys(){return this._toggledContextKeys}refresh(){this._menuGroups.length=0,this._structureContextKeys.clear(),this._preconditionContextKeys.clear(),this._toggledContextKeys.clear();const t=$n.BH.getMenuItems(this._id);let i;t.sort(e._compareMenuItems);for(const e of t){const t=e.group||"";i&&i[0]===t||(i=[t,[]],this._menuGroups.push(i)),i[1].push(e),this._collectContextKeys(e)}}_collectContextKeys(t){if(e._fillInKbExprKeys(t.when,this._structureContextKeys),(0,$n.vr)(t)){if(t.command.precondition&&e._fillInKbExprKeys(t.command.precondition,this._preconditionContextKeys),t.command.toggled){const i=t.command.toggled.condition||t.command.toggled;e._fillInKbExprKeys(i,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&$n.BH.getMenuItems(t.submenu).forEach(this._collectContextKeys,this)}createActionGroups(t){const i=[];for(const n of this._menuGroups){const[o,s]=n,r=[];for(const i of s)if(this._contextKeyService.contextMatchesRules(i.when)){const n=(0,$n.vr)(i);n&&this._hiddenStates.setDefaultState(this._id,i.command.id,!!i.isHiddenByDefault);const o=Xs(this._id,n?i.command:i,this._hiddenStates);if(n)r.push(new $n.U8(i.command,i.alt,t,o,this._contextKeyService,this._commandService));else{const n=new e(i.submenu,this._hiddenStates,this._collectContextKeysForSubmenus,this._commandService,this._contextKeyService).createActionGroups(t),s=Ce.Z0.join(...n.map((e=>e[1])));s.length>0&&r.push(new $n.NZ(i,o,s))}}r.length>0&&i.push([o,r])}return i}static _fillInKbExprKeys(e,t){if(e)for(const i of e.keys())t.add(i)}static _compareMenuItems(t,i){const n=t.group,o=i.group;if(n!==o){if(!n)return 1;if(!o)return-1;if("navigation"===n)return-1;if("navigation"===o)return 1;const e=n.localeCompare(o);if(0!==e)return e}const s=t.order||0,r=i.order||0;return sr?1:e._compareTitles((0,$n.vr)(t)?t.command.title:t.title,(0,$n.vr)(i)?i.command.title:i.title)}static _compareTitles(e,t){const i="string"==typeof e?e:e.original,n="string"==typeof t?t:t.original;return i.localeCompare(n)}};Ys=qs([$s(3,qi.H),$s(4,we.i6)],Ys);let Zs=class{constructor(e,t,i,n,o){this._disposables=new s.SL,this._menuInfo=new Ys(e,t,i.emitEventsForSubmenuChanges,n,o);const r=new he.pY((()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})}),i.eventDebounceDelay);this._disposables.add(r),this._disposables.add($n.BH.onDidChangeMenu((t=>{t.has(e)&&r.schedule()})));const a=this._disposables.add(new s.SL);this._onDidChange=new d.D0({onWillAddFirstListener:()=>{a.add(o.onDidChangeContext((e=>{const t=e.affectsSome(this._menuInfo.structureContextKeys),i=e.affectsSome(this._menuInfo.preconditionContextKeys),n=e.affectsSome(this._menuInfo.toggledContextKeys);(t||i||n)&&this._onDidChange.fire({menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:n})}))),a.add(t.onDidChange((e=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})})))},onDidRemoveLastListener:a.clear.bind(a),delay:i.eventDebounceDelay,merge:e=>{let t=!1,i=!1,n=!1;for(const o of e)if(t=t||o.isStructuralChange,i=i||o.isEnablementChange,n=n||o.isToggleChange,t&&i&&n)break;return{menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:n}}}),this.onDidChange=this._onDidChange.event}getActions(e){return this._menuInfo.createActionGroups(e)}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}};function Xs(e,t,i){const n=(0,$n.f6)(t)?t.submenu.id:t.id,o="string"==typeof t.title?t.title:t.title.value,s=(0,Ce.xw)({id:`hide/${e.id}/${n}`,label:(0,_e.NC)("hide.label","Hide '{0}'",o),run(){i.updateHidden(e,n,!0)}}),r=(0,Ce.xw)({id:`toggle/${e.id}/${n}`,label:o,get checked(){return!i.isHidden(e,n)},run(){i.updateHidden(e,n,!!this.checked)}});return{hide:s,toggle:r,get isHidden(){return!r.checked}}}Zs=qs([$s(3,qi.H),$s(4,we.i6)],Zs);var Js=function(e,t){return function(i,n){t(i,n,e)}},er=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let tr=class extends s.JT{constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",this.resources=[],(Qn.isSafari||Qn.isWebkitWebView)&&this.installWebKitWriteTextWorkaround()}installWebKitWriteTextWorkaround(){const e=()=>{const e=new he.CR;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=e,navigator.clipboard.write([new ClipboardItem({"text/plain":e.p})]).catch((t=>er(this,void 0,void 0,(function*(){t instanceof Error&&"NotAllowedError"===t.name&&e.isRejected||this.logService.error(t)}))))};this.layoutService.hasContainer&&(this._register((0,re.nm)(this.layoutService.container,"click",e)),this._register((0,re.nm)(this.layoutService.container,"keydown",e)))}writeText(e,t){return er(this,void 0,void 0,(function*(){if(t)return void this.mapTextToType.set(t,e);if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return yield navigator.clipboard.writeText(e)}catch(e){console.error(e)}const i=document.activeElement,n=document.body.appendChild((0,re.$)("textarea",{"aria-hidden":!0}));n.style.height="1px",n.style.width="1px",n.style.position="absolute",n.value=e,n.focus(),n.select(),document.execCommand("copy"),i instanceof HTMLElement&&i.focus(),document.body.removeChild(n)}))}readText(e){return er(this,void 0,void 0,(function*(){if(e)return this.mapTextToType.get(e)||"";try{return yield navigator.clipboard.readText()}catch(e){return console.error(e),""}}))}readFindText(){return er(this,void 0,void 0,(function*(){return this.findText}))}writeFindText(e){return er(this,void 0,void 0,(function*(){this.findText=e}))}readResources(){return er(this,void 0,void 0,(function*(){return this.resources}))}};tr=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Js(0,Rt),Js(1,ti.VZ)],tr);var ir=i(53725),nr=i(4767);const or="data-keybinding-context";class sr{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}get value(){return Object.assign({},this._value)}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){const t=this._value[e];return void 0===t&&this._parent?this._parent.getValue(e):t}}class rr extends sr{constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}rr.INSTANCE=new rr;class ar extends sr{constructor(e,t,i){super(e,null),this._configurationService=t,this._values=nr.Id.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration((e=>{if(7===e.source){const e=Array.from(this._values,(([e])=>e));this._values.clear(),i.fire(new hr(e))}else{const t=[];for(const i of e.affectedKeys){const e=`config.${i}`,n=this._values.findSuperstr(e);void 0!==n&&(t.push(...ir.$.map(n,(([e])=>e))),this._values.deleteSuperstr(e)),this._values.has(e)&&(t.push(e),this._values.delete(e))}i.fire(new hr(t))}}))}dispose(){this._listener.dispose()}getValue(e){if(0!==e.indexOf(ar._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(ar._keyPrefix.length),i=this._configurationService.getValue(t);let n;switch(typeof i){case"number":case"boolean":case"string":n=i;break;default:n=Array.isArray(i)?JSON.stringify(i):i}return this._values.set(e,n),n}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}ar._keyPrefix="config.";class lr{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){void 0===this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class cr{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}}class hr{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}allKeysContainedIn(e){return this.keys.every((t=>e.has(t)))}}class dr{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every((t=>t.allKeysContainedIn(e)))}}class ur{constructor(e){this._onDidChangeContext=new d.K3({merge:e=>new dr(e)}),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new lr(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new pr(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId);return!e||e.evaluate(t)}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const i=this.getContextValuesContainer(this._myContextId);i&&i.setValue(e,t)&&this._onDidChangeContext.fire(new cr(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new cr(e))}getContext(e){return this._isDisposed?rr.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(or)){const t=e.getAttribute(or);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}(e))}}let gr=class extends ur{constructor(e){super(0),this._contexts=new Map,this._toDispose=new s.SL,this._lastContextId=0;const t=new ar(this._myContextId,e,this._onDidChangeContext);this._contexts.set(this._myContextId,t),this._toDispose.add(t)}dispose(){this._onDidChangeContext.dispose(),this._isDisposed=!0,this._toDispose.dispose()}getContextValuesContainer(e){return this._isDisposed?rr.INSTANCE:this._contexts.get(e)||rr.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");const t=++this._lastContextId;return this._contexts.set(t,new sr(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};gr=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(0,W.Ui)],gr);class pr extends ur{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=new s.XK,this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(or)){let e="";this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(", ")),console.error("Element already has context attribute"+(e?": "+e:""))}this._domNode.setAttribute(or,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext((e=>{var t;t=this._parent.getContextValuesContainer(this._myContextId).value,e.allKeysContainedIn(new Set(Object.keys(t)))||this._onDidChangeContext.fire(e)}))}dispose(){this._isDisposed||(this._onDidChangeContext.dispose(),this._parent.disposeContext(this._myContextId),this._parentChangeListener.dispose(),this._domNode.removeAttribute(or),this._isDisposed=!0)}getContextValuesContainer(e){return this._isDisposed?rr.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}qi.P.registerCommand("_setContext",(function(e,t,i){e.get(we.i6).createKey(String(t),function(e){return(0,u.rs)(e,(e=>"object"==typeof e&&1===e.$mid?a.o.revive(e).toString():e instanceof a.o?e.toString():void 0))}(i))})),qi.P.registerCommand({id:"getContextKeyInfo",handler:()=>[...we.uy.all()].sort(((e,t)=>e.key.localeCompare(t.key))),description:{description:(0,_e.NC)("getContextKeyInfo","A command that returns information about context keys"),args:[]}}),qi.P.registerCommand("_generateContextKeyInfo",(function(){const e=[],t=new Set;for(const i of we.uy.all())t.has(i.key)||(t.add(i.key),e.push(i));e.sort(((e,t)=>e.key.localeCompare(t.key))),console.log(JSON.stringify(e,void 0,2))}));var mr=i(97108);class fr{constructor(e,t){this.key=e,this.data=t,this.incoming=new Map,this.outgoing=new Map}}class _r{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(const t of this._nodes.values())0===t.outgoing.size&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),n=this.lookupOrInsertNode(t);i.outgoing.set(n.key,n),n.incoming.set(i.key,i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(const e of this._nodes.values())e.outgoing.delete(t),e.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new fr(t,e),this._nodes.set(t,i)),i}isEmpty(){return 0===this._nodes.size}toString(){const e=[];for(const[t,i]of this._nodes)e.push(`${t}\n\t(-> incoming)[${[...i.incoming.keys()].join(", ")}]\n\t(outgoing ->)[${[...i.outgoing.keys()].join(",")}]\n`);return e.join("\n")}findCycleSlow(){for(const[e,t]of this._nodes){const i=new Set([e]),n=this._findCycle(t,i);if(n)return n}}_findCycle(e,t){for(const[i,n]of e.outgoing){if(t.has(i))return[...t,i].join(" -> ");t.add(i);const e=this._findCycle(n,t);if(e)return e;t.delete(i)}}}class vr extends Error{constructor(e){var t;super("cyclic dependency between services"),this.message=null!==(t=e.findCycleSlow())&&void 0!==t?t:`UNABLE to detect cycle, dumping graph: \n${e.toString()}`}}class br{constructor(e=new Ye.y,t=!1,i,n=!1){var o;this._services=e,this._strict=t,this._parent=i,this._enableTracing=n,this._activeInstantiations=new Set,this._services.set(Qe.TG,this),this._globalGraph=n?null!==(o=null==i?void 0:i._globalGraph)&&void 0!==o?o:new _r((e=>e)):void 0}createChild(e){return new br(e,this._strict,this,this._enableTracing)}invokeFunction(e,...t){const i=Cr.traceInvocation(this._enableTracing,e);let n=!1;try{return e({get:e=>{if(n)throw(0,ue.L6)("service accessor is only valid during the invocation of its target method");const t=this._getOrCreateServiceInstance(e,i);if(!t)throw new Error(`[invokeFunction] unknown service '${e}'`);return t}},...t)}finally{n=!0,i.stop()}}createInstance(e,...t){let i,n;return e instanceof mr.M?(i=Cr.traceCreation(this._enableTracing,e.ctor),n=this._createInstance(e.ctor,e.staticArguments.concat(t),i)):(i=Cr.traceCreation(this._enableTracing,e),n=this._createInstance(e,t,i)),i.stop(),n}_createInstance(e,t=[],i){const n=Qe.I8.getServiceDependencies(e).sort(((e,t)=>e.index-t.index)),o=[];for(const t of n){const n=this._getOrCreateServiceInstance(t.id,i);n||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${t.id}.`,!1),o.push(n)}const s=n.length>0?n[0].index:t.length;if(t.length!==s){console.trace(`[createInstance] First service dependency of ${e.name} at position ${s+1} conflicts with ${t.length} static arguments`);const i=s-t.length;t=i>0?t.concat(new Array(i)):t.slice(0,s)}return Reflect.construct(e,t.concat(o))}_setServiceInstance(e,t){if(this._services.get(e)instanceof mr.M)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}}_getServiceInstanceOrDescriptor(e){const t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(e));const i=this._getServiceInstanceOrDescriptor(e);return i instanceof mr.M?this._safeCreateAndCacheServiceInstance(e,i,t.branch(e,!0)):(t.branch(e,!1),i)}_safeCreateAndCacheServiceInstance(e,t,i){if(this._activeInstantiations.has(e))throw new Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,i)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,t,i){var n;const o=new _r((e=>e.id.toString()));let s=0;const r=[{id:e,desc:t,_trace:i}];for(;r.length;){const t=r.pop();if(o.lookupOrInsertNode(t),s++>1e3)throw new vr(o);for(const i of Qe.I8.getServiceDependencies(t.desc.ctor)){const s=this._getServiceInstanceOrDescriptor(i.id);if(s||this._throwIfStrict(`[createInstance] ${e} depends on ${i.id} which is NOT registered.`,!0),null===(n=this._globalGraph)||void 0===n||n.insertEdge(String(t.id),String(i.id)),s instanceof mr.M){const e={id:i.id,desc:s,_trace:t._trace.branch(i.id,!0)};o.insertEdge(t,e),r.push(e)}}}for(;;){const e=o.roots();if(0===e.length){if(!o.isEmpty())throw new vr(o);break}for(const{data:t}of e){if(this._getServiceInstanceOrDescriptor(t.id)instanceof mr.M){const e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setServiceInstance(t.id,e)}o.removeNode(t)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,i=[],n,o){if(this._services.get(e)instanceof mr.M)return this._createServiceInstance(e,t,i,n,o);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,i,n,o);throw new Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(e,t,i=[],n,o){if(n){const n=new br(void 0,this._strict,this,this._enableTracing);n._globalGraphImplicitDependency=String(e);const r=new Map,a=new he.Ue((()=>{const e=n._createInstance(t,i,o);for(const[t,i]of r){const n=e[t];if("function"==typeof n)for(const t of i)n.apply(e,t)}return r.clear(),e}));return new Proxy(Object.create(null),{get(e,t){if(!a.isInitialized&&"string"==typeof t&&(t.startsWith("onDid")||t.startsWith("onWill"))){let e=r.get(t);return e||(e=new Dt.S,r.set(t,e)),(t,i,n)=>{const o=e.push([t,i,n]);return(0,s.OF)(o)}}if(t in e)return e[t];const i=a.value;let n=i[t];return"function"!=typeof n||(n=n.bind(i),e[t]=n),n},set:(e,t,i)=>(a.value[t]=i,!0),getPrototypeOf:e=>t.prototype})}return this._createInstance(t,i,o)}_throwIfStrict(e,t){if(t&&console.warn(e),this._strict)throw new Error(e)}}class Cr{static traceInvocation(e,t){return e?new Cr(2,t.name||(new Error).stack.split("\n").slice(3,4).join("\n")):Cr._None}static traceCreation(e,t){return e?new Cr(1,t.name):Cr._None}constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}branch(e,t){const i=new Cr(3,e.toString());return this._dep.push([e,t,i]),i}stop(){const e=Date.now()-this._start;Cr._totals+=e;let t=!1;const i=[`${1===this.type?"CREATE":"CALL"} ${this.name}`,`${function e(i,n){const o=[],s=new Array(i+1).join("\t");for(const[r,a,l]of n._dep)if(a&&l){t=!0,o.push(`${s}CREATES -> ${r}`);const n=e(i+1,l);n&&o.push(n)}else o.push(`${s}uses -> ${r}`);return o.join("\n")}(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${Cr._totals.toFixed(2)}ms)`];(e>2||t)&&Cr.all.add(i.join("\n"))}}Cr.all=new Set,Cr._None=new class extends Cr{constructor(){super(0,null)}stop(){}branch(){return this}},Cr._totals=0;const yr=new Set([Nt.lg.inMemory,Nt.lg.vscodeSourceControl,Nt.lg.walkThrough,Nt.lg.walkThroughSnippet]);class wr{constructor(){this._byResource=new ai.Y9,this._byOwner=new Map}set(e,t,i){let n=this._byResource.get(e);n||(n=new Map,this._byResource.set(e,n)),n.set(t,i);let o=this._byOwner.get(t);o||(o=new ai.Y9,this._byOwner.set(t,o)),o.set(e,i)}get(e,t){const i=this._byResource.get(e);return null==i?void 0:i.get(t)}delete(e,t){let i=!1,n=!1;const o=this._byResource.get(e);o&&(i=o.delete(t));const s=this._byOwner.get(t);if(s&&(n=s.delete(e)),i!==n)throw new Error("illegal state");return i&&n}values(e){var t,i,n,o;return"string"==typeof e?null!==(i=null===(t=this._byOwner.get(e))||void 0===t?void 0:t.values())&&void 0!==i?i:ir.$.empty():a.o.isUri(e)?null!==(o=null===(n=this._byResource.get(e))||void 0===n?void 0:n.values())&&void 0!==o?o:ir.$.empty():ir.$.map(ir.$.concat(...this._byOwner.values()),(e=>e[1]))}}class Sr{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new ai.Y9,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const e=this._data.get(t);e&&this._substract(e);const i=this._resourceStats(t);this._add(i),this._data.set(t,i)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(yr.has(e.scheme))return t;for(const{severity:i}of this._service.read({resource:e}))i===So.ZL.Error?t.errors+=1:i===So.ZL.Warning?t.warnings+=1:i===So.ZL.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}class kr{constructor(){this._onMarkerChanged=new d.D0({delay:0,merge:kr._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new wr,this._stats=new Sr(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,t){for(const i of t||[])this.changeOne(e,i,[])}changeOne(e,t,i){if((0,$i.XY)(i))this._data.delete(t,e)&&this._onMarkerChanged.fire([t]);else{const n=[];for(const o of i){const i=kr._toMarker(e,t,o);i&&n.push(i)}this._data.set(t,e,n),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,i){let{code:n,severity:o,message:s,source:r,startLineNumber:a,startColumn:l,endLineNumber:c,endColumn:h,relatedInformation:d,tags:u}=i;if(s)return a=a>0?a:1,l=l>0?l:1,c=c>=a?c:a,h=h>0?h:l,{resource:t,owner:e,code:n,severity:o,message:s,source:r,startLineNumber:a,startColumn:l,endLineNumber:c,endColumn:h,relatedInformation:d,tags:u}}changeAll(e,t){const i=[],n=this._data.values(e);if(n)for(const t of n){const n=ir.$.first(t);n&&(i.push(n.resource),this._data.delete(n.resource,e))}if((0,$i.Of)(t)){const n=new ai.Y9;for(const{resource:o,marker:s}of t){const t=kr._toMarker(e,o,s);if(!t)continue;const r=n.get(o);r?r.push(t):(n.set(o,[t]),i.push(o))}for(const[t,i]of n)this._data.set(t,e,i)}i.length>0&&this._onMarkerChanged.fire(i)}read(e=Object.create(null)){let{owner:t,resource:i,severities:n,take:o}=e;if((!o||o<0)&&(o=-1),t&&i){const e=this._data.get(i,t);if(e){const t=[];for(const i of e)if(kr._accept(i,n)){const e=t.push(i);if(o>0&&e===o)break}return t}return[]}if(t||i){const e=this._data.values(null!=i?i:t),s=[];for(const t of e)for(const e of t)if(kr._accept(e,n)){const t=s.push(e);if(o>0&&t===o)return s}return s}{const e=[];for(const t of this._data.values())for(const i of t)if(kr._accept(i,n)){const t=e.push(i);if(o>0&&t===o)return e}return e}}static _accept(e,t){return void 0===t||(t&e.severity)===e.severity}static _merge(e){const t=new ai.Y9;for(const i of e)for(const e of i)t.set(e,!0);return Array.from(t.keys())}}class xr extends s.JT{constructor(){super(...arguments),this._configurationModel=new Xi}get configurationModel(){return this._configurationModel}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=new Xi;const e=Yi.B.as(Qi.IP.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(e),e)}updateConfigurationModel(e,t){const i=this.getConfigurationDefaultOverrides();for(const n of e){const e=i[n],o=t[n];void 0!==e?this._configurationModel.addValue(n,e):o?this._configurationModel.addValue(n,o.default):this._configurationModel.removeValue(n)}}}class Lr extends s.JT{constructor(e,t=[]){super(),this.logger=new ti.qA([e,...t]),this._register(e.onDidChangeLogLevel((e=>this.setLevel(e))))}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(e){this.logger.setLevel(e)}getLevel(){return this.logger.getLevel()}trace(e,...t){this.logger.trace(e,...t)}debug(e,...t){this.logger.debug(e,...t)}info(e,...t){this.logger.info(e,...t)}error(e,...t){this.logger.error(e,...t)}}var Er=i(10637),Nr=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Dr=function(e,t){return function(i,n){t(i,n,e)}},Tr=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class Ir{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new d.Q5}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let Ar=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new s.Jz(new Ir(t))):Promise.reject(new Error("Model not found"))}};Ar=Nr([Dr(0,L.q)],Ar);class Mr{show(){return Mr.NULL_PROGRESS_RUNNER}showWhile(e,t){return Tr(this,void 0,void 0,(function*(){yield e}))}}Mr.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class Rr{info(e){return this.notify({severity:Ht.Z.Info,message:e})}warn(e){return this.notify({severity:Ht.Z.Warning,message:e})}error(e){return this.notify({severity:Ht.Z.Error,message:e})}notify(e){switch(e.severity){case Ht.Z.Error:console.error(e.message);break;case Ht.Z.Warning:console.warn(e.message);break;default:console.log(e.message)}return Rr.NO_OP}prompt(e,t,i,n){return Rr.NO_OP}status(e,t){return s.JT.None}}Rr.NO_OP=new Ze.EO;let Or=class{constructor(e){this._onWillExecuteCommand=new d.Q5,this._onDidExecuteCommand=new d.Q5,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const i=qi.P.getCommand(e);if(!i)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const n=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(e){return Promise.reject(e)}}};Or=Nr([Dr(0,Qe.TG)],Or);let Pr=class extends rn{constructor(e,t,i,n,o,r){super(e,t,i,n,o),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const a=e=>{const t=new s.SL;t.add(re.nm(e,re.tw.KEY_DOWN,(e=>{const t=new Hi.y(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),t.add(re.nm(e,re.tw.KEY_UP,(e=>{const t=new Hi.y(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault()}))),this._domNodeListeners.push(new Fr(e,t))},l=e=>{for(let t=0;t{e.getOption(59)||a(e.getContainerDomNode())};this._register(r.onCodeEditorAdd(c)),this._register(r.onCodeEditorRemove((e=>{e.getOption(59)||l(e.getContainerDomNode())}))),r.listCodeEditors().forEach(c);const h=e=>{a(e.getContainerDomNode())};this._register(r.onDiffEditorAdd(h)),this._register(r.onDiffEditorRemove((e=>{l(e.getContainerDomNode())}))),r.listDiffEditors().forEach(h)}addDynamicKeybinding(e,t,i,n){return(0,s.F8)(qi.P.registerCommand(e,i),this.addDynamicKeybindings([{keybinding:t,command:e,when:n}]))}addDynamicKeybindings(e){const t=e.map((e=>{var t;return{keybinding:(0,Vi.Z9)(e.keybinding,ci.OS),command:null!==(t=e.command)&&void 0!==t?t:null,commandArgs:e.commandArgs,when:e.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}}));return this._dynamicKeybindings=this._dynamicKeybindings.concat(t),this.updateResolver(),(0,s.OF)((()=>{for(let e=0;ethis._log(e)))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(e,t){const i=[];let n=0;for(const o of e){const e=o.when||void 0,s=o.keybinding;if(s){const r=Cn.resolveKeybinding(s,ci.OS);for(const s of r)i[n++]=new mn(s,o.command,o.commandArgs,e,t,null,!1)}else i[n++]=new mn(void 0,o.command,o.commandArgs,e,t,null,!1)}return i}resolveKeyboardEvent(e){const t=new Vi.$M(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode);return new Cn([t],ci.OS)}};Pr=Nr([Dr(0,we.i6),Dr(1,qi.H),Dr(2,He.b),Dr(3,Ze.lT),Dr(4,ti.VZ),Dr(5,c.$)],Pr);class Fr extends s.JT{constructor(e,t){super(),this.domNode=e,this._register(t)}}function Br(e){return e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof a.o)}class Hr{constructor(){this._onDidChangeConfiguration=new d.Q5,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;const e=new xr;this._configuration=new tn(e.reload(),new Xi,new Xi,new Xi),e.dispose()}getValue(e,t){const i="string"==typeof e?e:void 0,n=Br(e)?e:Br(t)?t:{};return this._configuration.getValue(i,n,void 0)}updateValues(e){const t={data:this._configuration.toData()},i=[];for(const t of e){const[e,n]=t;this.getValue(e)!==n&&(this._configuration.updateValue(e,n),i.push(e))}if(i.length>0){const e=new nn({keys:i,overrides:[]},t,this._configuration);e.source=8,e.sourceConfig=null,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}updateValue(e,t,i,n){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}}let Vr=class{constructor(e,t,i){this.configurationService=e,this.modelService=t,this.languageService=i,this._onDidChangeConfiguration=new d.Q5,this.configurationService.onDidChangeConfiguration((e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,i)=>e.affectsConfiguration(i)})}))}getValue(e,t,i){const n=ye.L.isIPosition(t)?t:null,o=n?"string"==typeof i?i:void 0:"string"==typeof t?t:void 0,s=e?this.getLanguage(e,n):void 0;return void 0===o?this.configurationService.getValue({resource:e,overrideIdentifier:s}):this.configurationService.getValue(o,{resource:e,overrideIdentifier:s})}getLanguage(e,t){const i=this.modelService.getModel(e);return i?t?i.getLanguageIdAtPosition(t.lineNumber,t.column):i.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(e)}};Vr=Nr([Dr(0,W.Ui),Dr(1,L.q),Dr(2,x.O)],Vr);let Wr=class{constructor(e){this.configurationService=e}getEOL(e,t){const i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&"string"==typeof i&&"auto"!==i?i:ci.IJ||ci.dz?"\n":"\r\n"}};Wr=Nr([Dr(0,W.Ui)],Wr);class zr{constructor(){const e=a.o.from({scheme:zr.SCHEME,authority:"model",path:"/"});this.workspace={id:Sn.p$,folders:[new Sn.md({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===zr.SCHEME?this.workspace.folders[0]:null}}function Ur(e,t,i){if(!t)return;if(!(e instanceof Hr))return;const n=[];Object.keys(t).forEach((e=>{(0,zi.ei)(e)&&n.push([`editor.${e}`,t[e]]),i&&(0,zi.Pe)(e)&&n.push([`diffEditor.${e}`,t[e]])})),n.length>0&&e.updateValues(n)}zr.SCHEME="inmemory";let jr=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return Tr(this,void 0,void 0,(function*(){const t=Array.isArray(e)?e:Wi.fo.convert(e),i=new Map;for(const e of t){if(!(e instanceof Wi.Gl))throw new Error("bad edit - only text edits are supported");const t=this._modelService.getModel(e.resource);if(!t)throw new Error("bad edit - model not found");if("number"==typeof e.versionId&&t.getVersionId()!==e.versionId)throw new Error("bad state - model changed in the meantime");let n=i.get(t);n||(n=[],i.set(t,n)),n.push(Ui.h.replaceMove(g.e.lift(e.textEdit.range),e.textEdit.text))}let n=0,o=0;for(const[e,t]of i)e.pushStackElement(),e.pushEditOperations([],t,(()=>[])),e.pushStackElement(),o+=1,n+=t.length;return{ariaSummary:r.WU(kn.iN.bulkEditServiceSummary,n,o),isApplied:n>0}}))}};jr=Nr([Dr(0,L.q)],jr);let Kr=class extends An{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();e&&(t=e.getContainerDomNode())}return super.showContextView(e,t,i)}};Kr=Nr([Dr(0,Rt),Dr(1,c.$)],Kr);let qr=class extends ho{constructor(e,t,i,n,o,s){super(e,t,i,n,o,s),this.configure({blockMouse:!1})}};var $r;qr=Nr([Dr(0,He.b),Dr(1,Ze.lT),Dr(2,Ge.u),Dr(3,ln.d),Dr(4,$n.co),Dr(5,we.i6)],qr),(0,It.z)(W.Ui,Hr,0),(0,It.z)(Ki.V,Vr,0),(0,It.z)(Ki.y,Wr,0),(0,It.z)(Sn.ec,zr,0),(0,It.z)(wn.e,class{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return(0,xn.EZ)(e)}},0),(0,It.z)(He.b,class{publicLog2(){}},0),(0,It.z)(Vt.S,class{confirm(e){return Tr(this,void 0,void 0,(function*(){return{confirmed:this.doConfirm(e.message,e.detail),checkboxChecked:!1}}))}doConfirm(e,t){let i=e;return t&&(i=i+"\n\n"+t),window.confirm(i)}prompt(e){var t,i;return Tr(this,void 0,void 0,(function*(){let n;if(this.doConfirm(e.message,e.detail)){const o=[...null!==(t=e.buttons)&&void 0!==t?t:[]];e.cancelButton&&"string"!=typeof e.cancelButton&&"boolean"!=typeof e.cancelButton&&o.push(e.cancelButton),n=yield null===(i=o[0])||void 0===i?void 0:i.run({checkboxChecked:!1})}return{result:n}}))}error(e,t){return Tr(this,void 0,void 0,(function*(){yield this.prompt({type:Ht.Z.Error,message:e,detail:t})}))}},0),(0,It.z)(Ze.lT,Rr,0),(0,It.z)(So.lT,kr,0),(0,It.z)(x.O,class extends jn{constructor(){super()}},0),(0,It.z)(zs.Z,Ws.nI,0),(0,It.z)(ti.VZ,class extends Lr{constructor(){super(new ti.kw)}},0),(0,It.z)(L.q,Bo,0),(0,It.z)(No.i,Eo,0),(0,It.z)(we.i6,gr,0),(0,It.z)(Xe.R9,class{},0),(0,It.z)(Xe.ek,Mr,0),(0,It.z)(Ks.Uy,Ks.vm,0),(0,It.z)(Be.p,E.eu,0),(0,It.z)(Wi.vu,jr,0),(0,It.z)(Ln.Y,class{constructor(){this._neverEmitter=new d.Q5,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}},0),(0,It.z)(ji.S,Ar,0),(0,It.z)(m.F,js,0),(0,It.z)(Ho.Lw,Ho.XN,0),(0,It.z)(qi.H,Or,0),(0,It.z)(ln.d,Pr,0),(0,It.z)(zo.eJ,Bs,0),(0,It.z)(Ge.u,Kr,0),(0,It.z)(fo.v4,wo,0),(0,It.z)($e.p,tr,0),(0,It.z)(Ge.i,qr,0),(0,It.z)($n.co,Gs,0),(0,It.z)(p.e7,class{playAudioCue(e,t){return Tr(this,void 0,void 0,(function*(){}))}},0),function(e){const t=new Ye.y;for(const[e,i]of(0,It.d)())t.set(e,i);const i=new br(t,!0);t.set(Qe.TG,i),e.get=function(e){const n=t.get(e);if(!n)throw new Error("Missing service "+e);return n instanceof mr.M?i.invokeFunction((t=>t.get(e))):n};let n=!1;e.initialize=function(e){if(n)return i;n=!0;for(const[e,i]of(0,It.d)())t.get(e)||t.set(e,i);for(const i in e)if(e.hasOwnProperty(i)){const n=(0,Qe.yh)(i);t.get(n)instanceof mr.M&&t.set(n,e[i])}const o=(0,Er.n)();for(const e of o)try{i.createInstance(e)}catch(e){(0,ue.dL)(e)}return i}}($r||($r={}));var Gr=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Qr=function(e,t){return function(i,n){t(i,n,e)}};let Yr=0,Zr=!1,Xr=class extends se.Gm{constructor(e,t,i,n,o,s,r,a,l,c,h,d){const u=Object.assign({},t);u.ariaLabel=u.ariaLabel||kn.B8.editorViewAccessibleLabel,u.ariaLabel=u.ariaLabel+";"+kn.B8.accessibilityHelpMessage,super(e,u,{},i,n,o,s,a,l,c,h,d),this._standaloneKeybindingService=r instanceof Pr?r:null,function(e){if(!e){if(Zr)return;Zr=!0}oe.wW(e||document.body)}(u.ariaContainerElement)}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const n="DYNAMIC_"+ ++Yr,o=we.Ao.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,o),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),s.JT.None;const t=e.id,i=e.label,n=we.Ao.and(we.Ao.equals("editorId",this.getId()),we.Ao.deserialize(e.precondition)),o=e.keybindings,r=we.Ao.and(n,we.Ao.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,l=e.contextMenuOrder||0,c=(t,...i)=>Promise.resolve(e.run(this,...i)),h=new s.SL,d=this.getId()+":"+t;if(h.add(qi.P.registerCommand(d,c)),a){const e={command:{id:d,title:i},when:n,group:a,order:l};h.add($n.BH.appendMenuItem($n.eH.EditorContext,e))}if(Array.isArray(o))for(const e of o)h.add(this._standaloneKeybindingService.addDynamicKeybinding(d,e,c,r));const u=new Et.p(d,i,i,n,((...t)=>Promise.resolve(e.run(this,...t))),this._contextKeyService);return this._actions.set(t,u),h.add((0,s.OF)((()=>{this._actions.delete(t)}))),h}_triggerCommand(e,t){if(this._codeEditorService instanceof Mt)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};Xr=Gr([Qr(2,Qe.TG),Qr(3,c.$),Qr(4,qi.H),Qr(5,we.i6),Qr(6,ln.d),Qr(7,et.XE),Qr(8,Ze.lT),Qr(9,m.F),Qr(10,S.c_),Qr(11,Bi.p)],Xr);let Jr=class extends Xr{constructor(e,t,i,n,o,s,r,a,l,c,h,d,u,g,p){const m=Object.assign({},t);Ur(c,m,!1);const f=a.registerEditorContainer(e);"string"==typeof m.theme&&a.setTheme(m.theme),void 0!==m.autoDetectHighContrast&&a.setAutoDetectHighContrast(Boolean(m.autoDetectHighContrast));const _=m.model;let v;if(delete m.model,super(e,m,i,n,o,s,r,a,l,h,g,p),this._configurationService=c,this._standaloneThemeService=a,this._register(f),void 0===_){const e=u.getLanguageIdByMimeType(m.language)||m.language||Rn.bd;v=ta(d,u,m.value||"",e,void 0),this._ownsModel=!0}else v=_,this._ownsModel=!1;if(this._attachModel(v),v){const e={oldModelUrl:null,newModelUrl:v.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){Ur(this._configurationService,e,!1),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),void 0!==e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};Jr=Gr([Qr(2,Qe.TG),Qr(3,c.$),Qr(4,qi.H),Qr(5,we.i6),Qr(6,ln.d),Qr(7,zs.Z),Qr(8,Ze.lT),Qr(9,W.Ui),Qr(10,m.F),Qr(11,L.q),Qr(12,x.O),Qr(13,S.c_),Qr(14,Bi.p)],Jr);let ea=class extends ct{constructor(e,t,i,n,o,s,r,a,l,c,h){const d=Object.assign({},t);Ur(a,d,!0);const u=s.registerEditorContainer(e);"string"==typeof d.theme&&s.setTheme(d.theme),void 0!==d.autoDetectHighContrast&&s.setAutoDetectHighContrast(Boolean(d.autoDetectHighContrast)),super(e,d,{},h,n,i,o,s,r,l,c),this._configurationService=a,this._standaloneThemeService=s,this._register(u)}dispose(){super.dispose()}updateOptions(e){Ur(this._configurationService,e,!0),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),void 0!==e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(Xr,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};function ta(e,t,i,n,o){if(i=i||"",!n){const n=i.indexOf("\n");let s=i;return-1!==n&&(s=i.substring(0,n)),ia(e,i,t.createByFilepathOrFirstLine(o||null,s),o)}return ia(e,i,t.createById(n),o)}function ia(e,t,i,n){return e.createModel(t,i,n)}ea=Gr([Qr(2,Qe.TG),Qr(3,we.i6),Qr(4,c.$),Qr(5,zs.Z),Qr(6,Ze.lT),Qr(7,W.Ui),Qr(8,Ge.i),Qr(9,Xe.ek),Qr(10,$e.p)],ea);var na=i(60652),oa=i(45463),sa=i(82334),ra=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function aa(e){const t=$r.get(ln.d);return t instanceof Pr?t.addDynamicKeybindings(e.map((e=>({keybinding:e.keybinding,command:e.command,commandArgs:e.commandArgs,when:we.Ao.deserialize(e.when)})))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),s.JT.None)}var la=i(41264);function ca(e,t){return"boolean"==typeof e?e:t}function ha(e,t){return"string"==typeof e?e:t}function da(e,t=!1){t&&(e=e.map((function(e){return e.toLowerCase()})));const i=function(e){const t={};for(const i of e)t[i]=!0;return t}(e);return t?function(e){return void 0!==i[e.toLowerCase()]&&i.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==i[e]&&i.hasOwnProperty(e)}}function ua(e,t){t=t.replace(/@@/g,"");let i,n=0;do{i=!1,t=t.replace(/@(\w+)/g,(function(n,o){i=!0;let s="";if("string"==typeof e[o])s=e[o];else{if(!(e[o]&&e[o]instanceof RegExp))throw void 0===e[o]?B(e,"language definition does not contain attribute '"+o+"', used at: "+t):B(e,"attribute reference '"+o+"' must be a string, used at: "+t);s=e[o].source}return O(s)?"":"(?:"+s+")"})),n++}while(i&&n<5);t=t.replace(/\x01/g,"@");const o=(e.ignoreCase?"i":"")+(e.unicode?"u":"");return new RegExp(t,o)}function ga(e,t,i,n){let o=-1,s=i,r=i.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);r&&(r[3]&&(o=parseInt(r[3]),r[2]&&(o+=100)),s=r[4]);let a,l="~",c=s;if(s&&0!==s.length?/^\w*$/.test(c)?l="==":(r=s.match(/^(@|!@|~|!~|==|!=)(.*)$/),r&&(l=r[1],c=r[2])):(l="!=",c=""),"~"!==l&&"!~"!==l||!/^(\w|\|)*$/.test(c))if("@"===l||"!@"===l){const i=e[c];if(!i)throw B(e,"the @ match target '"+c+"' is not defined, in rule: "+t);if(!function(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(const e of t)if("string"!=typeof e)return!1;return!0}(0,i))throw B(e,"the @ match target '"+c+"' must be an array of strings, in rule: "+t);const n=da(i,e.ignoreCase);a=function(e){return"@"===l?n(e):!n(e)}}else if("~"===l||"!~"===l)if(c.indexOf("$")<0){const t=ua(e,"^"+c+"$");a=function(e){return"~"===l?t.test(e):!t.test(e)}}else a=function(t,i,n,o){return ua(e,"^"+H(e,c,i,n,o)+"$").test(t)};else if(c.indexOf("$")<0){const t=P(e,c);a=function(e){return"=="===l?e===t:e!==t}}else{const t=P(e,c);a=function(i,n,o,s,r){const a=H(e,t,n,o,s);return"=="===l?i===a:i!==a}}else{const t=da(c.split("|"),e.ignoreCase);a=function(e){return"~"===l?t(e):!t(e)}}return-1===o?{name:i,value:n,test:function(e,t,i,n){return a(e,e,t,i,n)}}:{name:i,value:n,test:function(e,t,i,n){const s=function(e,t,i,n){if(n<0)return e;if(n=100){n-=100;const e=i.split(".");if(e.unshift(i),n=0&&(n.tokenSubst=!0),"string"==typeof i.bracket)if("@open"===i.bracket)n.bracket=1;else{if("@close"!==i.bracket)throw B(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);n.bracket=-1}if(i.next){if("string"!=typeof i.next)throw B(e,"the next state must be a string value in rule: "+t);{let o=i.next;if(!/^(@pop|@push|@popall)$/.test(o)&&("@"===o[0]&&(o=o.substr(1)),o.indexOf("$")<0&&!function(e,t){let i=t;for(;i&&i.length>0;){if(e.stateNames[i])return!0;const t=i.lastIndexOf(".");i=t<0?null:i.substr(0,t)}return!1}(e,H(e,o,"",[],""))))throw B(e,"the next state '"+i.next+"' is not defined in rule: "+t);n.next=o}}return"number"==typeof i.goBack&&(n.goBack=i.goBack),"string"==typeof i.switchTo&&(n.switchTo=i.switchTo),"string"==typeof i.log&&(n.log=i.log),"string"==typeof i.nextEmbedded&&(n.nextEmbedded=i.nextEmbedded,e.usesEmbedded=!0),n}}if(Array.isArray(i)){const n=[];for(let o=0,s=i.length;o0&&"^"===i[0],this.name=this.name+": "+i,this.regex=ua(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,t){this.action=pa(e,this.name,t)}}function fa(e,t){if(!t||"object"!=typeof t)throw new Error("Monarch: expecting a language definition object");const i={};i.languageId=e,i.includeLF=ca(t.includeLF,!1),i.noThrow=!1,i.maxStack=100,i.start="string"==typeof t.start?t.start:null,i.ignoreCase=ca(t.ignoreCase,!1),i.unicode=ca(t.unicode,!1),i.tokenPostfix=ha(t.tokenPostfix,"."+i.languageId),i.defaultToken=ha(t.defaultToken,"source"),i.usesEmbedded=!1;const n=t;function o(e,s,r){for(const a of r){let r=a.include;if(r){if("string"!=typeof r)throw B(i,"an 'include' attribute must be a string at: "+e);if("@"===r[0]&&(r=r.substr(1)),!t.tokenizer[r])throw B(i,"include target '"+r+"' is not defined at: "+e);o(e+"."+r,s,t.tokenizer[r])}else{const t=new ma(e);if(Array.isArray(a)&&a.length>=1&&a.length<=3)if(t.setRegex(n,a[0]),a.length>=3)if("string"==typeof a[1])t.setAction(n,{token:a[1],next:a[2]});else{if("object"!=typeof a[1])throw B(i,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);{const e=a[1];e.next=a[2],t.setAction(n,e)}}else t.setAction(n,a[1]);else{if(!a.regex)throw B(i,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);a.name&&"string"==typeof a.name&&(t.name=a.name),a.matchOnlyAtStart&&(t.matchOnlyAtLineStart=ca(a.matchOnlyAtLineStart,!1)),t.setRegex(n,a.regex),t.setAction(n,a.action)}s.push(t)}}}if(n.languageId=e,n.includeLF=i.includeLF,n.ignoreCase=i.ignoreCase,n.unicode=i.unicode,n.noThrow=i.noThrow,n.usesEmbedded=i.usesEmbedded,n.stateNames=t.tokenizer,n.defaultToken=i.defaultToken,!t.tokenizer||"object"!=typeof t.tokenizer)throw B(i,"a language definition must define the 'tokenizer' attribute as an object");i.tokenizer=[];for(const e in t.tokenizer)if(t.tokenizer.hasOwnProperty(e)){i.start||(i.start=e);const n=t.tokenizer[e];i.tokenizer[e]=new Array,o("tokenizer."+e,i.tokenizer[e],n)}if(i.usesEmbedded=n.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw B(i,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const s=[];for(const e of t.brackets){let t=e;if(t&&Array.isArray(t)&&3===t.length&&(t={token:t[2],open:t[0],close:t[1]}),t.open===t.close)throw B(i,"open and close brackets in a 'brackets' attribute must be different: "+t.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!=typeof t.open||"string"!=typeof t.token||"string"!=typeof t.close)throw B(i,"every element in the 'brackets' array must be a '{open,close,token}' object or array");s.push({token:t.token+i.tokenPostfix,open:P(i,t.open),close:P(i,t.close)})}return i.brackets=s,i.noThrow=!0,i}var _a=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class va{constructor(e,t){this._languageId=e,this._actual=t}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if("function"==typeof this._actual.tokenize)return ba.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const n=this._actual.tokenizeEncoded(e,i);return new w.DI(n.tokens,n.endState)}}class ba{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let o=0,s=e.length;o0&&o[s-1]===l)continue;let c=a.startIndex;0===e?c=0:c_a(this,void 0,void 0,(function*(){const i=yield Promise.resolve(t.create());return i?"function"==typeof i.getInitialState?ya(e,i):new Q($r.get(x.O),$r.get(zs.Z),e,fa(e,i),$r.get(W.Ui)):null}))));return w.RW.registerFactory(e,i)}var Sa=i(58823);n.BH.wrappingIndent.defaultValue=0,n.BH.glyphMargin.defaultValue=!1,n.BH.autoIndent.defaultValue=3,n.BH.overviewRulerLanes.defaultValue=2,Sa.xC.setFormatterSelector(((e,t,i)=>Promise.resolve(e[0])));const ka=(0,o.O)();ka.editor={create:function(e,t,i){return $r.initialize(i||{}).createInstance(Jr,e,t)},getEditors:function(){return $r.get(c.$).listCodeEditors()},getDiffEditors:function(){return $r.get(c.$).listDiffEditors()},onDidCreateEditor:function(e){return $r.get(c.$).onCodeEditorAdd((t=>{e(t)}))},onDidCreateDiffEditor:function(e){return $r.get(c.$).onDiffEditorAdd((t=>{e(t)}))},createDiffEditor:function(e,t,i){return $r.initialize(i||{}).createInstance(ea,e,t)},createDiffNavigator:function(e,t){return $r.initialize({}).createInstance(v,e,t)},addCommand:function(e){if("string"!=typeof e.id||"function"!=typeof e.run)throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return qi.P.registerCommand(e.id,e.run)},addEditorAction:function(e){if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const t=we.Ao.deserialize(e.precondition),i=new s.SL;if(i.add(qi.P.registerCommand(e.id,((i,...n)=>me._l.runEditorCommand(i,n,t,((t,i,n)=>Promise.resolve(e.run(i,...n))))))),e.contextMenuGroupId){const n={command:{id:e.id,title:e.label},when:t,group:e.contextMenuGroupId,order:e.contextMenuOrder||0};i.add($n.BH.appendMenuItem($n.eH.EditorContext,n))}if(Array.isArray(e.keybindings)){const n=$r.get(ln.d);if(n instanceof Pr){const o=we.Ao.and(t,we.Ao.deserialize(e.keybindingContext));i.add(n.addDynamicKeybindings(e.keybindings.map((t=>({keybinding:t,command:e.id,when:o})))))}else console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService")}return i},addKeybindingRule:function(e){return aa([e])},addKeybindingRules:aa,createModel:function(e,t,i){const n=$r.get(x.O),o=n.getLanguageIdByMimeType(t)||t;return ta($r.get(L.q),n,e,o,i)},setModelLanguage:function(e,t){const i=$r.get(x.O),n=i.getLanguageIdByMimeType(t)||t||Rn.bd;e.setLanguage(i.createById(n))},setModelMarkers:function(e,t,i){e&&$r.get(So.lT).changeOne(t,e.uri,i)},getModelMarkers:function(e){return $r.get(So.lT).read(e)},removeAllMarkers:function(e){$r.get(So.lT).changeAll(e,[])},onDidChangeMarkers:function(e){return $r.get(So.lT).onMarkerChanged(e)},getModels:function(){return $r.get(L.q).getModels()},getModel:function(e){return $r.get(L.q).getModel(e)},onDidCreateModel:function(e){return $r.get(L.q).onModelAdded(e)},onWillDisposeModel:function(e){return $r.get(L.q).onModelRemoved(e)},onDidChangeModelLanguage:function(e){return $r.get(L.q).onModelLanguageChanged((t=>{e({model:t.model,oldLanguage:t.oldLanguageId})}))},createWebWorker:function(e){return function(e,t,i){return new N(e,t,i)}($r.get(L.q),$r.get(S.c_),e)},colorizeElement:function(e,t){const i=$r.get(x.O),n=$r.get(zs.Z);return n.registerEditorContainer(e),te.colorizeElement(n,i,e,t)},colorize:function(e,t,i){const n=$r.get(x.O);return $r.get(zs.Z).registerEditorContainer(document.body),te.colorize(n,e,t,i)},colorizeModelLine:function(e,t,i=4){return $r.get(zs.Z).registerEditorContainer(document.body),te.colorizeModelLine(e,t,i)},tokenize:function(e,t){w.RW.getOrCreate(t);const i=(s=t,w.RW.get(s)||{getInitialState:()=>k.TJ,tokenize:(e,t,i)=>(0,k.Ri)(s,i)}),n=(0,r.uq)(e),o=[];var s;let a=i.getInitialState();for(let e=0,t=n.length;era(this,void 0,void 0,(function*(){var n;if(!i)return null;const o=null===(n=t.options)||void 0===n?void 0:n.selection;let s;return o&&"number"==typeof o.endLineNumber&&"number"==typeof o.endColumn?s=o:o&&(s={lineNumber:o.startLineNumber,column:o.startColumn}),(yield e.openCodeEditor(i,t.resource,s))?i:null}))))},AccessibilitySupport:D.ao,ContentWidgetPositionPreference:D.r3,CursorChangeReason:D.Vi,DefaultEndOfLine:D._x,EditorAutoIndentStrategy:D.rf,EditorOption:D.wT,EndOfLinePreference:D.gm,EndOfLineSequence:D.jl,MinimapPosition:D.F5,MouseTargetType:D.MG,OverlayWidgetPositionPreference:D.E$,OverviewRulerLane:D.sh,GlyphMarginLane:D.U,RenderLineNumbersType:D.Lu,RenderMinimap:D.vQ,ScrollbarVisibility:D.g_,ScrollType:D.g4,TextEditorCursorBlinkingStyle:D.In,TextEditorCursorStyle:D.d2,TrackedRangeStickiness:D.OI,WrappingIndent:D.up,InjectedTextCursorStops:D.RM,PositionAffinity:D.py,ConfigurationChangedEvent:n.Bb,BareFontInfo:b.E4,FontInfo:b.pR,TextModelResolvedOptions:y.dJ,FindMatch:y.tk,ApplyUpdateResult:n.rk,LineRange:oa.z,LineRangeMapping:na.f0,RangeMapping:na.iy,EditorZoom:sa.C,EditorType:C.g,EditorOptions:n.BH},ka.languages={register:function(e){Rn.dQ.registerLanguage(e)},getLanguages:function(){let e=[];return e=e.concat(Rn.dQ.getLanguages()),e},onLanguage:function(e,t){const i=$r.get(x.O).onDidRequestRichLanguageFeatures((n=>{n===e&&(i.dispose(),t())}));return i},onLanguageEncountered:function(e,t){const i=$r.get(x.O).onDidRequestBasicLanguageFeatures((n=>{n===e&&(i.dispose(),t())}));return i},getEncodedLanguageId:function(e){return $r.get(x.O).languageIdCodec.encodeLanguageId(e)},setLanguageConfiguration:function(e,t){if(!$r.get(x.O).isRegisteredLanguageId(e))throw new Error(`Cannot set configuration for unknown language ${e}`);return $r.get(S.c_).register(e,t,100)},setColorMap:function(e){const t=$r.get(zs.Z);if(e){const i=[null];for(let t=1,n=e.length;tt}):w.RW.register(e,ya(e,t))},setMonarchTokensProvider:function(e,t){return Ca(t)?wa(e,{create:()=>t}):w.RW.register(e,(t=>new Q($r.get(x.O),$r.get(zs.Z),e,fa(e,t),$r.get(W.Ui)))(t))},registerReferenceProvider:function(e,t){return $r.get(Bi.p).referenceProvider.register(e,t)},registerRenameProvider:function(e,t){return $r.get(Bi.p).renameProvider.register(e,t)},registerCompletionItemProvider:function(e,t){return $r.get(Bi.p).completionProvider.register(e,t)},registerSignatureHelpProvider:function(e,t){return $r.get(Bi.p).signatureHelpProvider.register(e,t)},registerHoverProvider:function(e,t){return $r.get(Bi.p).hoverProvider.register(e,{provideHover:(e,i,n)=>{const o=e.getWordAtPosition(i);return Promise.resolve(t.provideHover(e,i,n)).then((e=>{if(e)return!e.range&&o&&(e.range=new g.e(i.lineNumber,o.startColumn,i.lineNumber,o.endColumn)),e.range||(e.range=new g.e(i.lineNumber,i.column,i.lineNumber,i.column)),e}))}})},registerDocumentSymbolProvider:function(e,t){return $r.get(Bi.p).documentSymbolProvider.register(e,t)},registerDocumentHighlightProvider:function(e,t){return $r.get(Bi.p).documentHighlightProvider.register(e,t)},registerLinkedEditingRangeProvider:function(e,t){return $r.get(Bi.p).linkedEditingRangeProvider.register(e,t)},registerDefinitionProvider:function(e,t){return $r.get(Bi.p).definitionProvider.register(e,t)},registerImplementationProvider:function(e,t){return $r.get(Bi.p).implementationProvider.register(e,t)},registerTypeDefinitionProvider:function(e,t){return $r.get(Bi.p).typeDefinitionProvider.register(e,t)},registerCodeLensProvider:function(e,t){return $r.get(Bi.p).codeLensProvider.register(e,t)},registerCodeActionProvider:function(e,t,i){return $r.get(Bi.p).codeActionProvider.register(e,{providedCodeActionKinds:null==i?void 0:i.providedCodeActionKinds,documentation:null==i?void 0:i.documentation,provideCodeActions:(e,i,n,o)=>{const s=$r.get(So.lT).read({resource:e.uri}).filter((e=>g.e.areIntersectingOrTouching(e,i)));return t.provideCodeActions(e,i,{markers:s,only:n.only,trigger:n.trigger},o)},resolveCodeAction:t.resolveCodeAction})},registerDocumentFormattingEditProvider:function(e,t){return $r.get(Bi.p).documentFormattingEditProvider.register(e,t)},registerDocumentRangeFormattingEditProvider:function(e,t){return $r.get(Bi.p).documentRangeFormattingEditProvider.register(e,t)},registerOnTypeFormattingEditProvider:function(e,t){return $r.get(Bi.p).onTypeFormattingEditProvider.register(e,t)},registerLinkProvider:function(e,t){return $r.get(Bi.p).linkProvider.register(e,t)},registerColorProvider:function(e,t){return $r.get(Bi.p).colorProvider.register(e,t)},registerFoldingRangeProvider:function(e,t){return $r.get(Bi.p).foldingRangeProvider.register(e,t)},registerDeclarationProvider:function(e,t){return $r.get(Bi.p).declarationProvider.register(e,t)},registerSelectionRangeProvider:function(e,t){return $r.get(Bi.p).selectionRangeProvider.register(e,t)},registerDocumentSemanticTokensProvider:function(e,t){return $r.get(Bi.p).documentSemanticTokensProvider.register(e,t)},registerDocumentRangeSemanticTokensProvider:function(e,t){return $r.get(Bi.p).documentRangeSemanticTokensProvider.register(e,t)},registerInlineCompletionsProvider:function(e,t){return $r.get(Bi.p).inlineCompletionsProvider.register(e,t)},registerInlayHintsProvider:function(e,t){return $r.get(Bi.p).inlayHintsProvider.register(e,t)},DocumentHighlightKind:D.MY,CompletionItemKind:D.cm,CompletionItemTag:D.we,CompletionItemInsertTextRule:D.a7,SymbolKind:D.cR,SymbolTag:D.r4,IndentAction:D.wU,CompletionTriggerKind:D.Ij,SignatureHelpTriggerKind:D.WW,InlayHintKind:D.gl,InlineCompletionTriggerKind:D.bw,CodeActionTriggerType:D.np,FoldingRangeKind:w.AD,SelectedSuggestionInfo:w.ln};const xa=ka.CancellationTokenSource,La=ka.Emitter,Ea=ka.KeyCode,Na=ka.KeyMod,Da=ka.Position,Ta=ka.Range,Ia=ka.Selection,Aa=ka.SelectionDirection,Ma=ka.MarkerSeverity,Ra=ka.MarkerTag,Oa=ka.Uri,Pa=ka.Token,Fa=ka.editor,Ba=ka.languages,Ha=globalThis.MonacoEnvironment;((null==Ha?void 0:Ha.globalAPI)||"function"==typeof define&&i.amdO)&&(globalThis.monaco=ka),void 0!==globalThis.require&&"function"==typeof globalThis.require.config&&globalThis.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})},29477:(e,t,i)=>{"use strict";i.r(t);var n=i(65321),o=i(38626),s=i(85152),r=i(93794),a=i(5976),l=i(1432),c=i(97295),h=i(70666),d=i(16830),u=i(29102),g=i(64662),p=i(93983),m=i(72065),f=i(91847),_=i(50988),v=i(20913),b=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};const y=new p.uy("accessibilityHelpWidgetVisible",!1);let w=class e extends a.JT{static get(t){return t.getContribution(e.ID)}constructor(e,t){super(),this._editor=e,this._widget=this._register(t.createInstance(S,this._editor))}show(){this._widget.show()}hide(){this._widget.hide()}};w.ID="editor.contrib.accessibilityHelpController",w=b([C(1,m.TG)],w);let S=class e extends r.${constructor(e,t,i,r){super(),this._contextKeyService=t,this._keybindingService=i,this._openerService=r,this._editor=e,this._isVisibleKey=y.bindTo(this._contextKeyService),this._domNode=(0,o.X)(document.createElement("div")),this._domNode.setClassName("accessibilityHelpWidget"),this._domNode.setDisplay("none"),this._domNode.setAttribute("role","dialog"),this._domNode.setAttribute("aria-modal","true"),this._domNode.setAttribute("aria-hidden","true");const a=(0,n.R3)(this._domNode.domNode,(0,n.$)("h1",void 0,v.Oe.accessibilityHelpTitle));a.id="help-dialog-heading",this._domNode.setAttribute("aria-labelledby",a.id),this._contentDomNode=(0,o.X)(document.createElement("div")),this._contentDomNode.setAttribute("role","document"),this._contentDomNode.domNode.id="help-dialog-content",this._domNode.appendChild(this._contentDomNode),this._contentDomNode.setAttribute("aria-describedby",this._contentDomNode.domNode.id),this._isVisible=!1,this._register(this._editor.onDidLayoutChange((()=>{this._isVisible&&this._layout()}))),this._register((0,n.mu)(this._contentDomNode.domNode,"keydown",(e=>{if(this._isVisible&&(e.equals(2083)&&((0,s.Z9)(v.Oe.emergencyConfOn),this._editor.updateOptions({accessibilitySupport:"on"}),(0,n.PO)(this._contentDomNode.domNode),this._buildContent(),this._contentDomNode.domNode.focus(),e.preventDefault(),e.stopPropagation()),e.equals(2086))){(0,s.Z9)(v.Oe.openingDocs);let t=this._editor.getRawOptions().accessibilityHelpUrl;void 0===t&&(t="https://go.microsoft.com/fwlink/?linkid=852450"),this._openerService.open(h.o.parse(t)),e.preventDefault(),e.stopPropagation()}}))),this.onblur(this._contentDomNode.domNode,(()=>{this.hide()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return e.ID}getDomNode(){return this._domNode.domNode}getPosition(){return{preference:null}}show(){this._isVisible||(this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus())}_descriptionForCommand(e,t,i){const n=this._keybindingService.lookupKeybinding(e);return n?c.WU(t,n.getAriaLabel()):c.WU(i,e)}_buildContent(){const e=this._contentDomNode.domNode,t=this._editor.getOptions(),i=this._editor.getSelections();let o=0;if(i){const e=this._editor.getModel();e&&i.forEach((t=>{o+=e.getValueLengthInRange(t)}))}(0,n.R3)(e,(0,n.$)("p",void 0,function(e,t){return e&&0!==e.length?1===e.length?t?c.WU(v.Oe.singleSelectionRange,e[0].positionLineNumber,e[0].positionColumn,t):c.WU(v.Oe.singleSelection,e[0].positionLineNumber,e[0].positionColumn):t?c.WU(v.Oe.multiSelectionRange,e.length,t):e.length>0?c.WU(v.Oe.multiSelection,e.length):"":v.Oe.noSelection}(i,o)));const s=(0,n.R3)(e,(0,n.$)("p"));t.get(59)?t.get(87)?s.textContent=v.Oe.readonlyDiffEditor:s.textContent=v.Oe.editableDiffEditor:t.get(87)?s.textContent=v.Oe.readonlyEditor:s.textContent=v.Oe.editableEditor;const r=(0,n.R3)(e,(0,n.$)("ul")),a=l.dz?v.Oe.changeConfigToOnMac:v.Oe.changeConfigToOnWinLinux;switch(t.get(2)){case 0:(0,n.R3)(r,(0,n.$)("li",void 0,a));break;case 2:(0,n.R3)(r,(0,n.$)("li",void 0,v.Oe.auto_on));break;case 1:(0,n.R3)(r,(0,n.$)("li",void 0,v.Oe.auto_off,a))}t.get(138)?(0,n.R3)(r,(0,n.$)("li",void 0,this._descriptionForCommand(g.ToggleTabFocusModeAction.ID,v.Oe.tabFocusModeOnMsg,v.Oe.tabFocusModeOnMsgNoKb))):(0,n.R3)(r,(0,n.$)("li",void 0,this._descriptionForCommand(g.ToggleTabFocusModeAction.ID,v.Oe.tabFocusModeOffMsg,v.Oe.tabFocusModeOffMsgNoKb)));const h=l.dz?v.Oe.openDocMac:v.Oe.openDocWinLinux;(0,n.R3)(r,(0,n.$)("li",void 0,h)),(0,n.R3)(e,(0,n.$)("p",void 0,v.Oe.outroMsg))}hide(){this._isVisible&&(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,(0,n.PO)(this._contentDomNode.domNode),this._editor.focus())}_layout(){const t=this._editor.getLayoutInfo(),i=Math.max(5,Math.min(e.WIDTH,t.width-40)),n=Math.max(5,Math.min(e.HEIGHT,t.height-40));this._domNode.setWidth(i),this._domNode.setHeight(n);const o=Math.round((t.height-n)/2);this._domNode.setTop(o);const s=Math.round((t.width-i)/2);this._domNode.setLeft(s)}};S.ID="editor.contrib.accessibilityHelpWidget",S.WIDTH=500,S.HEIGHT=300,S=b([C(1,p.i6),C(2,f.d),C(3,_.v4)],S);class k extends d.R6{constructor(){super({id:"editor.action.showAccessibilityHelp",label:v.Oe.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{primary:571,weight:100,linux:{primary:1595,secondary:[571]}}})}run(e,t){const i=w.get(t);null==i||i.show()}}(0,d._K)(w.ID,w,4),(0,d.Qr)(k);const x=d._l.bindToContribution(w.get);(0,d.fK)(new x({id:"closeAccessibilityHelp",precondition:y,handler:e=>e.hide(),kbOpts:{weight:200,kbExpr:u.u.focus,primary:9,secondary:[1033]}}))},19646:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IPadShowKeyboard:()=>a});var n=i(65321),o=i(5976),s=i(16830),r=i(1432);class a extends o.JT{constructor(e){super(),this.editor=e,this.widget=null,r.gn&&(this._register(e.onDidChangeConfiguration((()=>this.update()))),this.update())}update(){const e=!this.editor.getOption(87);!this.widget&&e?this.widget=new l(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}a.ID="editor.contrib.iPadShowKeyboard";class l extends o.JT{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(n.nm(this._domNode,"touchstart",(e=>{this.editor.focus()}))),this._register(n.nm(this._domNode,"focus",(e=>{this.editor.focus()}))),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return l.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}l.ID="editor.contrib.ShowKeyboardWidget",(0,s._K)(a.ID,a,3)},97830:(e,t,i)=>{"use strict";i.r(t);var n=i(65321),o=i(41264),s=i(5976),r=i(16830),a=i(96887),l=i(45797),c=i(276),h=i(72042),d=i(44156),u=i(20913),g=function(e,t){return function(i,n){t(i,n,e)}};let p=class e extends s.JT{static get(t){return t.getContribution(e.ID)}constructor(e,t,i){super(),this._editor=e,this._languageService=i,this._widget=null,this._register(this._editor.onDidChangeModel((e=>this.stop()))),this._register(this._editor.onDidChangeModelLanguage((e=>this.stop()))),this._register(a.RW.onDidChange((e=>this.stop()))),this._register(this._editor.onKeyUp((e=>9===e.keyCode&&this.stop())))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new f(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};p.ID="editor.contrib.inspectTokens",p=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([g(1,d.Z),g(2,h.O)],p);class m extends r.R6{constructor(){super({id:"editor.action.inspectTokens",label:u.ug.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){const i=p.get(t);null==i||i.launch()}}class f extends s.JT{constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=function(e,t){const i=a.RW.get(t);if(i)return i;const n=e.encodeLanguageId(t);return{getInitialState:()=>c.TJ,tokenize:(e,i,n)=>(0,c.Ri)(t,n),tokenizeEncoded:(e,t,i)=>(0,c.Dy)(n,i)}}(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition((e=>this._compute(this._editor.getPosition())))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return f._ID}_compute(e){const t=this._getTokensAtLine(e.lineNumber);let i=0;for(let n=t.tokens1.length-1;n>=0;n--){const o=t.tokens1[n];if(e.column-1>=o.offset){i=n;break}}let s=0;for(let i=t.tokens2.length>>>1;i>=0;i--)if(e.column-1>=t.tokens2[i<<1]){s=i;break}const r=this._model.getLineContent(e.lineNumber);let a="";if(i{"use strict";i.r(t),i.d(t,{GotoLineAction:()=>K,StandaloneCommandsQuickAccessProvider:()=>j});var n=i(89872),o=i(90725),s=i(20913),r=i(11640),a=i(21212),l=i(9488),c=i(98401),h=i(63580);function d(e,t){return t&&(e.stack||e.stacktrace)?h.NC("stackTrace.format","{0}: {1}",g(e),u(e.stack)||u(e.stacktrace)):g(e)}function u(e){return Array.isArray(e)?e.join("\n"):e}function g(e){return"string"==typeof e.code&&"number"==typeof e.errno&&"string"==typeof e.syscall?h.NC("nodeExceptionMessage","A system error occurred ({0})",e.message):e.message||h.NC("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function p(e=null,t=!1){if(!e)return h.NC("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(e)){const i=l.kX(e),n=p(i[0],t);return i.length>1?h.NC("error.moreErrors","{0} ({1} errors in total)",n,i.length):n}if(c.HD(e))return e;if(e.detail){const i=e.detail;if(i.error)return d(i.error,t);if(i.exception)return d(i.exception,t)}return e.stack?d(e,t):e.message?e.message:h.NC("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var m,f=i(17301),_=i(75392),v=i(5976),b=i(43702),C=i(94565),y=i(33108),w=i(28820),S=i(72065),k=i(91847),x=i(15393),L=i(71050),E=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function N(e){const t=e;return Array.isArray(t.items)}function D(e){const t=e;return!!t.picks&&t.additionalPicks instanceof Promise}!function(e){e[e.NO_ACTION=0]="NO_ACTION",e[e.CLOSE_PICKER=1]="CLOSE_PICKER",e[e.REFRESH_PICKER=2]="REFRESH_PICKER",e[e.REMOVE_ITEM=3]="REMOVE_ITEM"}(m||(m={}));class T extends v.JT{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,i){var n;const o=new v.SL;let s;e.canAcceptInBackground=!!(null===(n=this.options)||void 0===n?void 0:n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=o.add(new v.XK),a=()=>E(this,void 0,void 0,(function*(){const n=r.value=new v.SL;null==s||s.dispose(!0),e.busy=!1,s=new L.A(t);const o=s.token,a=e.value.substr(this.prefix.length).trim(),l=this._getPicks(a,n,o,i),h=(t,i)=>{var n;let o,s;if(N(t)?(o=t.items,s=t.active):o=t,0===o.length){if(i)return!1;(a.length>0||e.hideInput)&&(null===(n=this.options)||void 0===n?void 0:n.noResultsPick)&&(o=(0,c.mf)(this.options.noResultsPick)?[this.options.noResultsPick(a)]:[this.options.noResultsPick])}return e.items=o,s&&(e.activeItems=[s]),!0},d=t=>E(this,void 0,void 0,(function*(){let i=!1,n=!1;yield Promise.all([(()=>E(this,void 0,void 0,(function*(){"number"==typeof t.mergeDelay&&(yield(0,x.Vs)(t.mergeDelay),o.isCancellationRequested)||n||(i=h(t.picks,!0))})))(),(()=>E(this,void 0,void 0,(function*(){e.busy=!0;try{const n=yield t.additionalPicks;if(o.isCancellationRequested)return;let s,r,a,l;if(N(t.picks)?(s=t.picks.items,r=t.picks.active):s=t.picks,N(n)?(a=n.items,l=n.active):a=n,a.length>0||!i){let t;if(!r&&!l){const i=e.activeItems[0];i&&-1!==s.indexOf(i)&&(t=i)}h({items:[...s,...a],active:r||l||t})}}finally{o.isCancellationRequested||(e.busy=!1),n=!0}})))()])}));if(null===l);else if(D(l))yield d(l);else if(l instanceof Promise){e.busy=!0;try{const e=yield l;if(o.isCancellationRequested)return;D(e)?yield d(e):h(e)}finally{o.isCancellationRequested||(e.busy=!1)}}else h(l)}));return o.add(e.onDidChangeValue((()=>a()))),a(),o.add(e.onDidAccept((t=>{const[i]=e.selectedItems;"function"==typeof(null==i?void 0:i.accept)&&(t.inBackground||e.hide(),i.accept(e.keyMods,t))}))),o.add(e.onDidTriggerItemButton((({button:i,item:n})=>E(this,void 0,void 0,(function*(){var o,s;if("function"==typeof n.trigger){const r=null!==(s=null===(o=n.buttons)||void 0===o?void 0:o.indexOf(i))&&void 0!==s?s:-1;if(r>=0){const i=n.trigger(r,e.keyMods),o="number"==typeof i?i:yield i;if(t.isCancellationRequested)return;switch(o){case m.NO_ACTION:break;case m.CLOSE_PICKER:e.hide();break;case m.REFRESH_PICKER:a();break;case m.REMOVE_ITEM:{const t=e.items.indexOf(n);if(-1!==t){const i=e.items.slice(),n=i.splice(t,1),o=e.activeItems.filter((e=>e!==n[0])),s=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=i,o&&(e.activeItems=o),e.keepScrollPosition=s}break}}}}}))))),o}}var I=i(26904),A=i(10829),M=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},R=function(e,t){return function(i,n){t(i,n,e)}},O=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let P=class e extends T{constructor(t,i,n,o,s,r){super(e.PREFIX,t),this.instantiationService=i,this.keybindingService=n,this.commandService=o,this.telemetryService=s,this.dialogService=r,this.commandsHistory=this._register(this.instantiationService.createInstance(F)),this.options=t}_getPicks(t,i,n,o){var s,r;return O(this,void 0,void 0,(function*(){const i=yield this.getCommandPicks(n);if(n.isCancellationRequested)return[];const a=[];for(const n of i){const i=(0,c.f6)(e.WORD_FILTER(t,n.label)),o=n.commandAlias?(0,c.f6)(e.WORD_FILTER(t,n.commandAlias)):void 0;i||o?(n.highlights={label:i,detail:this.options.showAlias?o:void 0},a.push(n)):t===n.commandId&&a.push(n)}const l=new Map;for(const e of a){const t=l.get(e.label);t?(e.description=e.commandId,t.description=t.commandId):l.set(e.label,e)}a.sort(((e,t)=>{const i=this.commandsHistory.peek(e.commandId),n=this.commandsHistory.peek(t.commandId);if(i&&n)return i>n?-1:1;if(i)return-1;if(n)return 1;if(this.options.suggestedCommandIds){const i=this.options.suggestedCommandIds.has(e.commandId),n=this.options.suggestedCommandIds.has(t.commandId);if(i&&n)return 0;if(i)return-1;if(n)return 1}return e.label.localeCompare(t.label)}));const d=[];let u=!1,g=!!this.options.suggestedCommandIds;for(let e=0;eO(this,void 0,void 0,(function*(){const e=yield this.getAdditionalCommandPicks(i,a,t,n);return n.isCancellationRequested?[]:e.map((e=>this.toCommandPick(e,o)))})))()}:d}))}toCommandPick(e,t){if("separator"===e.type)return e;const i=this.keybindingService.lookupKeybinding(e.commandId),n=i?(0,h.NC)("commandPickAriaLabelWithKeybinding","{0}, {1}",e.label,i.getAriaLabel()):e.label;return Object.assign(Object.assign({},e),{ariaLabel:n,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:i,accept:()=>O(this,void 0,void 0,(function*(){var i;this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:null!==(i=null==t?void 0:t.from)&&void 0!==i?i:"quick open"});try{yield this.commandService.executeCommand(e.commandId)}catch(t){(0,f.n2)(t)||this.dialogService.error((0,h.NC)("canNotRun","Command '{0}' resulted in an error",e.label),p(t))}}))})}};P.PREFIX=">",P.WORD_FILTER=(0,_.or)(_.Ji,_.KZ,_.ir),P=M([R(1,S.TG),R(2,k.d),R(3,C.H),R(4,A.b),R(5,w.S)],P);let F=class e extends v.JT{constructor(e,t){super(),this.storageService=e,this.configurationService=t,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>this.updateConfiguration(e))))}updateConfiguration(t){t&&!t.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=e.getConfiguredCommandHistoryLength(this.configurationService),e.cache&&e.cache.limit!==this.configuredCommandsHistoryLength&&(e.cache.limit=this.configuredCommandsHistoryLength,e.saveState(this.storageService)))}load(){const t=this.storageService.get(e.PREF_KEY_CACHE,0);let i;if(t)try{i=JSON.parse(t)}catch(e){}const n=e.cache=new b.z6(this.configuredCommandsHistoryLength,1);if(i){let e;e=i.usesLRU?i.entries:i.entries.sort(((e,t)=>e.value-t.value)),e.forEach((e=>n.set(e.key,e.value)))}e.counter=this.storageService.getNumber(e.PREF_KEY_COUNTER,0,e.counter)}push(t){e.cache&&(e.cache.set(t,e.counter++),e.saveState(this.storageService))}peek(t){var i;return null===(i=e.cache)||void 0===i?void 0:i.peek(t)}static saveState(t){if(!e.cache)return;const i={usesLRU:!0,entries:[]};e.cache.forEach(((e,t)=>i.entries.push({key:t,value:e}))),t.store(e.PREF_KEY_CACHE,JSON.stringify(i),0,0),t.store(e.PREF_KEY_COUNTER,e.counter,0,0)}static getConfiguredCommandHistoryLength(t){var i,n;const o=null===(n=null===(i=t.getValue().workbench)||void 0===i?void 0:i.commandPalette)||void 0===n?void 0:n.history;return"number"==typeof o?o:e.DEFAULT_COMMANDS_HISTORY_LENGTH}};F.DEFAULT_COMMANDS_HISTORY_LENGTH=50,F.PREF_KEY_CACHE="commandPalette.mru.cache",F.PREF_KEY_COUNTER="commandPalette.mru.counter",F.counter=1,F=M([R(0,I.Uy),R(1,y.Ui)],F);class B extends P{constructor(e,t,i,n,o,s){super(e,t,i,n,o,s)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const i of e.getSupportedActions())t.push({commandId:i.id,commandAlias:i.alias,label:(0,a.x$)(i.label)||i.id});return t}}var H=i(16830),V=i(29102),W=i(41157),z=function(e,t){return function(i,n){t(i,n,e)}},U=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let j=class extends B{get activeTextEditorControl(){return(0,c.f6)(this.codeEditorService.getFocusedCodeEditor())}constructor(e,t,i,n,o,s){super({showAlias:!1},e,i,n,o,s),this.codeEditorService=t}getCommandPicks(){return U(this,void 0,void 0,(function*(){return this.getCodeEditorCommandPicks()}))}hasAdditionalCommandPicks(){return!1}getAdditionalCommandPicks(){return U(this,void 0,void 0,(function*(){return[]}))}};j=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([z(0,S.TG),z(1,r.$),z(2,k.d),z(3,C.H),z(4,A.b),z(5,w.S)],j);class K extends H.R6{constructor(){super({id:K.ID,label:s.UX.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:V.u.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(W.eJ).quickAccess.show(j.PREFIX)}}K.ID="editor.action.quickCommand",(0,H.Qr)(K),n.B.as(o.IP.Quickaccess).registerQuickAccessProvider({ctor:j,prefix:j.PREFIX,helpEntries:[{description:s.UX.quickCommandHelp,commandId:K.ID}]})},43588:(e,t,i)=>{"use strict";i.r(t),i.d(t,{GotoLineAction:()=>C,StandaloneGotoLineQuickAccessProvider:()=>_});var n=i(5976),o=i(65520),s=i(83943),r=i(63580);class a extends s.X{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=(0,r.NC)("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,n.JT.None}provideWithTextEditor(e,t,i){const s=e.editor,r=new n.SL;r.add(t.onDidAccept((i=>{const[n]=t.selectedItems;if(n){if(!this.isValidLineNumber(s,n.lineNumber))return;this.gotoLocation(e,{range:this.toRange(n.lineNumber,n.column),keyMods:t.keyMods,preserveFocus:i.inBackground}),i.inBackground||t.hide()}})));const l=()=>{const e=this.parsePosition(s,t.value.trim().substr(a.PREFIX.length)),i=this.getPickLabel(s,e.lineNumber,e.column);if(t.items=[{lineNumber:e.lineNumber,column:e.column,label:i}],t.ariaLabel=i,!this.isValidLineNumber(s,e.lineNumber))return void this.clearDecorations(s);const n=this.toRange(e.lineNumber,e.column);s.revealRangeInCenter(n,0),this.addDecorations(s,n)};l(),r.add(t.onDidChangeValue((()=>l())));const c=(0,o.Pi)(s);return c&&2===c.getOptions().get(65).renderType&&(c.updateOptions({lineNumbers:"on"}),r.add((0,n.OF)((()=>c.updateOptions({lineNumbers:"relative"}))))),r}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map((e=>parseInt(e,10))).filter((e=>!isNaN(e))),n=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:n+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?(0,r.NC)("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):(0,r.NC)("gotoLineLabel","Go to line {0}.",t);const n=e.getPosition()||{lineNumber:1,column:1},o=this.lineCount(e);return o>1?(0,r.NC)("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",n.lineNumber,n.column,o):(0,r.NC)("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",n.lineNumber,n.column)}isValidLineNumber(e,t){return!(!t||"number"!=typeof t)&&t>0&&t<=this.lineCount(e)}isValidColumn(e,t,i){if(!i||"number"!=typeof i)return!1;const n=this.getModel(e);if(!n)return!1;const o={lineNumber:t,column:i};return n.validatePosition(o).equals(o)}lineCount(e){var t,i;return null!==(i=null===(t=this.getModel(e))||void 0===t?void 0:t.getLineCount())&&void 0!==i?i:0}}a.PREFIX=":";var l=i(89872),c=i(90725),h=i(11640),d=i(98401),u=i(20913),g=i(4669),p=i(16830),m=i(29102),f=i(41157);let _=class extends a{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=g.ju.None}get activeTextEditorControl(){return(0,d.f6)(this.editorService.getFocusedCodeEditor())}};var v,b;_=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(v=0,b=h.$,function(e,t){b(e,t,v)})],_);class C extends p.R6{constructor(){super({id:C.ID,label:u.qq.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:m.u.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(f.eJ).quickAccess.show(_.PREFIX)}}C.ID="editor.action.gotoLine",(0,p.Qr)(C),l.B.as(c.IP.Quickaccess).registerQuickAccessProvider({ctor:_,prefix:_.PREFIX,helpEntries:[{description:u.qq.gotoLineActionLabel,commandId:C.ID}]})},48766:(e,t,i)=>{"use strict";i.r(t),i.d(t,{GotoSymbolAction:()=>j,StandaloneGotoSymbolQuickAccessProvider:()=>U}),i(71713);var n=i(15393),o=i(71050),s=i(73046),r=i(25670),a=i(75392),l=i(88721),c=i(1432),h=i(97295);const d=[void 0,[]];function u(e,t,i=0,n=0){const o=t;return o.values&&o.values.length>1?function(e,t,i,n){let o=0;const s=[];for(const r of t){const[t,a]=g(e,r,i,n);if("number"!=typeof t)return d;o+=t,s.push(...a)}return[o,p(s)]}(e,o.values,i,n):g(e,t,i,n)}function g(e,t,i,n){const o=(0,a.EW)(t.original,t.originalLowercase,i,e,e.toLowerCase(),n,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return o?[o[0],(0,a.mB)(o)]:d}function p(e){const t=e.sort(((e,t)=>e.start-t.start)),i=[];let n;for(const e of t)!n||(s=e,(o=n).end=0,r=m(e);let a;const c=e.split(f);if(c.length>1)for(const e of c){const t=m(e),{pathNormalized:i,normalized:n,normalizedLowercase:o}=v(e);n&&(a||(a=[]),a.push({original:e,originalLowercase:e.toLowerCase(),pathNormalized:i,normalized:n,normalizedLowercase:o,expectContiguousMatch:t}))}return{original:e,originalLowercase:t,pathNormalized:i,normalized:n,normalizedLowercase:o,values:a,containsPathSeparator:s,expectContiguousMatch:r}}function v(e){let t;t=c.ED?e.replace(/\//g,l.ir):e.replace(/\\/g,l.ir);const i=(0,h.R1)(t).replace(/\s|"/g,"");return{pathNormalized:t,normalized:i,normalizedLowercase:i.toLowerCase()}}function b(e){return Array.isArray(e)?_(e.map((e=>e.original)).join(f)):_(e.original)}var C=i(5976),y=i(24314),w=i(96887),S=i(30335),k=i(83943),x=i(63580),L=i(71922),E=i(9488),N=function(e,t){return function(i,n){t(i,n,e)}},D=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let T=class e extends k.X{constructor(e,t,i=Object.create(null)){super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,(0,x.NC)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),C.JT.None}provideWithTextEditor(e,t,i){const n=e.editor,o=this.getModel(n);return o?this._languageFeaturesService.documentSymbolProvider.has(o)?this.doProvideWithEditorSymbols(e,o,t,i):this.doProvideWithoutEditorSymbols(e,o,t,i):C.JT.None}doProvideWithoutEditorSymbols(e,t,i,n){const o=new C.SL;return this.provideLabelPick(i,(0,x.NC)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(()=>{D(this,void 0,void 0,(function*(){(yield this.waitForLanguageSymbolRegistry(t,o))&&!n.isCancellationRequested&&o.add(this.doProvideWithEditorSymbols(e,t,i,n))}))})(),o}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return D(this,void 0,void 0,(function*(){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;const i=new n.CR,o=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(o.dispose(),i.complete(!0))})));return t.add((0,C.OF)((()=>i.complete(!1)))),i.p}))}doProvideWithEditorSymbols(t,i,n,s){var r;const a=t.editor,l=new C.SL;l.add(n.onDidAccept((e=>{const[i]=n.selectedItems;i&&i.range&&(this.gotoLocation(t,{range:i.range.selection,keyMods:n.keyMods,preserveFocus:e.inBackground}),e.inBackground||n.hide())}))),l.add(n.onDidTriggerItemButton((({item:e})=>{e&&e.range&&(this.gotoLocation(t,{range:e.range.selection,keyMods:n.keyMods,forceSideBySide:!0}),n.hide())})));const c=this.getDocumentSymbols(i,s);let h;const d=t=>D(this,void 0,void 0,(function*(){null==h||h.dispose(!0),n.busy=!1,h=new o.A(s),n.busy=!0;try{const i=_(n.value.substr(e.PREFIX.length).trim()),o=yield this.doGetSymbolPicks(c,i,void 0,h.token);if(s.isCancellationRequested)return;if(o.length>0){if(n.items=o,t&&0===i.original.length){const e=(0,E.dF)(o,(e=>Boolean("separator"!==e.type&&e.range&&y.e.containsPosition(e.range.decoration,t))));e&&(n.activeItems=[e])}}else i.original.length>0?this.provideLabelPick(n,(0,x.NC)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(n,(0,x.NC)("noSymbolResults","No editor symbols"))}finally{s.isCancellationRequested||(n.busy=!1)}}));return l.add(n.onDidChangeValue((()=>d(void 0)))),d(null===(r=a.getSelection())||void 0===r?void 0:r.getPosition()),l.add(n.onDidChangeActive((()=>{const[e]=n.activeItems;e&&e.range&&(a.revealRangeInCenter(e.range.selection,0),this.addDecorations(a,e.range.decoration))}))),l}doGetSymbolPicks(t,i,n,o){var a,l;return D(this,void 0,void 0,(function*(){const c=yield t;if(o.isCancellationRequested)return[];const d=0===i.original.indexOf(e.SCOPE_PREFIX),g=d?1:0;let p,m,f;i.values&&i.values.length>1?(p=b(i.values[0]),m=b(i.values.slice(1))):p=i;const _=null===(l=null===(a=this.options)||void 0===a?void 0:a.openSideBySideDirection)||void 0===l?void 0:l.call(a);_&&(f=[{iconClass:"right"===_?r.k.asClassName(s.l.splitHorizontal):r.k.asClassName(s.l.splitVertical),tooltip:"right"===_?(0,x.NC)("openToSide","Open to the Side"):(0,x.NC)("openToBottom","Open to the Bottom")}]);const v=[];for(let k=0;kg){let B=!1;if(p!==i&&([T,M]=u(N,Object.assign(Object.assign({},i),{values:void 0}),g,D),"number"==typeof T&&(B=!0)),"number"!=typeof T&&([T,M]=u(N,p,g,D),"number"!=typeof T))continue;if(!B&&m){if(P&&m.original.length>0&&([R,O]=u(P,m)),"number"!=typeof R)continue;"number"==typeof T&&(T+=R)}}const F=L.tags&&L.tags.indexOf(1)>=0;v.push({index:k,kind:L.kind,score:T,label:N,ariaLabel:E,description:P,highlights:F?void 0:{label:M,description:O},range:{selection:y.e.collapseToStart(L.selectionRange),decoration:L.range},strikethrough:F,buttons:f})}const C=v.sort(((e,t)=>d?this.compareByKindAndScore(e,t):this.compareByScore(e,t)));let S=[];if(d){let H,V,W=0;function z(){V&&"number"==typeof H&&W>0&&(V.label=(0,h.WU)(A[H]||I,W))}for(const U of C)H!==U.kind?(z(),H=U.kind,W=1,V={type:"separator"},S.push(V)):W++,S.push(U);z()}else C.length>0&&(S=[{label:(0,x.NC)("symbols","symbols ({0})",v.length),type:"separator"},...C]);return S}))}compareByScore(e,t){if("number"!=typeof e.score&&"number"==typeof t.score)return 1;if("number"==typeof e.score&&"number"!=typeof t.score)return-1;if("number"==typeof e.score&&"number"==typeof t.score){if(e.score>t.score)return-1;if(e.scoret.index?1:0}compareByKindAndScore(e,t){const i=A[e.kind]||I,n=A[t.kind]||I,o=i.localeCompare(n);return 0===o?this.compareByScore(e,t):o}getDocumentSymbols(e,t){return D(this,void 0,void 0,(function*(){const i=yield this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()}))}};T.PREFIX="@",T.SCOPE_PREFIX=":",T.PREFIX_BY_CATEGORY=`${T.PREFIX}${T.SCOPE_PREFIX}`,T=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([N(0,L.p),N(1,S.Je)],T);const I=(0,x.NC)("property","properties ({0})"),A={5:(0,x.NC)("method","methods ({0})"),11:(0,x.NC)("function","functions ({0})"),8:(0,x.NC)("_constructor","constructors ({0})"),12:(0,x.NC)("variable","variables ({0})"),4:(0,x.NC)("class","classes ({0})"),22:(0,x.NC)("struct","structs ({0})"),23:(0,x.NC)("event","events ({0})"),24:(0,x.NC)("operator","operators ({0})"),10:(0,x.NC)("interface","interfaces ({0})"),2:(0,x.NC)("namespace","namespaces ({0})"),3:(0,x.NC)("package","packages ({0})"),25:(0,x.NC)("typeParameter","type parameters ({0})"),1:(0,x.NC)("modules","modules ({0})"),6:(0,x.NC)("property","properties ({0})"),9:(0,x.NC)("enum","enumerations ({0})"),21:(0,x.NC)("enumMember","enumeration members ({0})"),14:(0,x.NC)("string","strings ({0})"),0:(0,x.NC)("file","files ({0})"),17:(0,x.NC)("array","arrays ({0})"),15:(0,x.NC)("number","numbers ({0})"),16:(0,x.NC)("boolean","booleans ({0})"),18:(0,x.NC)("object","objects ({0})"),19:(0,x.NC)("key","keys ({0})"),7:(0,x.NC)("field","fields ({0})"),13:(0,x.NC)("constant","constants ({0})")};var M=i(89872),R=i(90725),O=i(11640),P=i(98401),F=i(20913),B=i(4669),H=i(16830),V=i(29102),W=i(41157),z=function(e,t){return function(i,n){t(i,n,e)}};let U=class extends T{constructor(e,t,i){super(t,i),this.editorService=e,this.onDidActiveTextEditorControlChange=B.ju.None}get activeTextEditorControl(){return(0,P.f6)(this.editorService.getFocusedCodeEditor())}};U=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([z(0,O.$),z(1,L.p),z(2,S.Je)],U);class j extends H.R6{constructor(){super({id:j.ID,label:F.aq.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:V.u.hasDocumentSymbolProvider,kbOpts:{kbExpr:V.u.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(W.eJ).quickAccess.show(T.PREFIX,{itemActivation:W.jG.NONE})}}j.ID="editor.action.quickOutline",(0,H.Qr)(j),M.B.as(R.IP.Quickaccess).registerQuickAccessProvider({ctor:U,prefix:T.PREFIX,helpEntries:[{description:F.aq.quickOutlineActionLabel,prefix:T.PREFIX,commandId:j.ID},{description:F.aq.quickOutlineByCategoryActionLabel,prefix:T.PREFIX_BY_CATEGORY}]})},78944:(e,t,i)=>{"use strict";i.r(t);var n=i(89872),o=i(90725),s=i(20913),r=i(63580),a=i(5976),l=i(91847),c=i(41157),h=function(e,t){return function(i,n){t(i,n,e)}};let d=class e{constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=n.B.as(o.IP.Quickaccess)}provide(t){const i=new a.SL;return i.add(t.onDidAccept((()=>{const[e]=t.selectedItems;e&&this.quickInputService.quickAccess.show(e.prefix,{preserveValue:!0})}))),i.add(t.onDidChangeValue((t=>{const i=this.registry.getQuickAccessProvider(t.substr(e.PREFIX.length));i&&i.prefix&&i.prefix!==e.PREFIX&&this.quickInputService.quickAccess.show(i.prefix,{preserveValue:!0})}))),t.items=this.getQuickAccessProviders().filter((t=>t.prefix!==e.PREFIX)),i}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort(((e,t)=>e.prefix.localeCompare(t.prefix))).flatMap((e=>this.createPicks(e)))}createPicks(e){return e.helpEntries.map((t=>{const i=t.prefix||e.prefix,n=i||"…";return{prefix:i,label:n,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:(0,r.NC)("helpPickAriaLabel","{0}, {1}",n,t.description),description:t.description}}))}};d.PREFIX="?",d=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([h(0,c.eJ),h(1,l.d)],d),n.B.as(o.IP.Quickaccess).registerQuickAccessProvider({ctor:d,prefix:"",helpEntries:[{description:s.ld.helpQuickAccessActionLabel}]})},45048:(e,t,i)=>{"use strict";i.r(t),i.d(t,{StandaloneReferencesController:()=>u});var n=i(16830),o=i(11640),s=i(27376),r=i(33108),a=i(93983),l=i(72065),c=i(59422),h=i(26904),d=function(e,t){return function(i,n){t(i,n,e)}};let u=class extends s.J{constructor(e,t,i,n,o,s,r){super(!0,e,t,i,n,o,s,r)}};u=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([d(1,a.i6),d(2,o.$),d(3,c.lT),d(4,l.TG),d(5,h.Uy),d(6,r.Ui)],u),(0,n._K)(s.J.ID,u,4)},58763:(e,t,i)=>{"use strict";i.d(t,{kR:()=>I,MU:()=>A,nI:()=>H,rW:()=>T,TG:()=>D});var n=i(65321),o=i(16268),s=i(41264),r=i(4669),a=i(96887),l=i(45797);class c{constructor(e,t,i,n,o){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=o}}const h=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class d{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(e){if(null===e)return 0;const t=e.match(h);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();let i=this._color2id.get(e);return i||(i=++this._lastColorId,this._color2id.set(e,i),this._id2color[i]=s.Il.fromHex("#"+e),i)}getColorMap(){return this._id2color.slice(0)}}class u{static createFromRawTokenTheme(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];const t=[];let i=0;for(let n=0,o=e.length;n{const i=function(e,t){return et?1:0}(e.token,t.token);return 0!==i?i:e.index-t.index}));let i=0,n="000000",o="ffffff";for(;e.length>=1&&""===e[0].token;){const t=e.shift();-1!==t.fontStyle&&(i=t.fontStyle),null!==t.foreground&&(n=t.foreground),null!==t.background&&(o=t.background)}const s=new d;for(const e of t)s.getId(e);const r=s.getId(n),a=s.getId(o),l=new p(i,r,a),c=new m(l);for(let t=0,i=e.length;t>>0,this._cache.set(t,i)}return(i|e<<0)>>>0}}const g=/\b(comment|string|regex|regexp)\b/;class p{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new p(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==i&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}class m{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(""===e)return this._mainRule;const t=e.indexOf(".");let i,n;-1===t?(i=e,n=""):(i=e.substring(0,t),n=e.substring(t+1));const o=this._children.get(i);return void 0!==o?o.match(n):this._mainRule}insert(e,t,i,n){if(""===e)return void this._mainRule.acceptOverwrite(t,i,n);const o=e.indexOf(".");let s,r;-1===o?(s=e,r=""):(s=e.substring(0,o),r=e.substring(o+1));let a=this._children.get(s);void 0===a&&(a=new m(this._mainRule.clone()),this._children.set(s,a)),a.insert(r,t,i,n)}}var f=i(8625),_=i(73910);const v={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[_.cvW]:"#FFFFFE",[_.NOs]:"#000000",[_.ES4]:"#E5EBF1",[f.tR]:"#D3D3D3",[f.Ym]:"#939393",[_.Rzx]:"#ADD6FF4D"}},b={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[_.cvW]:"#1E1E1E",[_.NOs]:"#D4D4D4",[_.ES4]:"#3A3D41",[f.tR]:"#404040",[f.Ym]:"#707070",[_.Rzx]:"#ADD6FF26"}},C={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[_.cvW]:"#000000",[_.NOs]:"#FFFFFF",[f.tR]:"#FFFFFF",[f.Ym]:"#FFFFFF"}},y={base:"hc-light",inherit:!1,rules:[{token:"",foreground:"292929",background:"FFFFFF"},{token:"invalid",foreground:"B5200D"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"264F70"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"B5200D"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"264F78"},{token:"attribute.value",foreground:"0451A5"},{token:"string",foreground:"A31515"},{token:"string.sql",foreground:"B5200D"},{token:"keyword",foreground:"0000FF"},{token:"keyword.flow",foreground:"AF00DB"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[_.cvW]:"#FFFFFF",[_.NOs]:"#292929",[f.tR]:"#292929",[f.Ym]:"#292929"}};var w=i(89872),S=i(97781),k=i(5976),x=i(92321),L=i(25670),E=i(59554);class N{getIcon(e){const t=(0,E.Ks)();let i=e.defaults;for(;L.k.isThemeIcon(i);){const e=t.getIcon(i.id);if(!e)return;i=e.defaults}return i}}const D="vs",T="vs-dark",I="hc-black",A="hc-light",M=w.B.as(_.IPX.ColorContribution),R=w.B.as(S.IP.ThemingContribution);class O{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const i=t.base;e.length>0?(P(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(const t in this.themeData.colors)e.set(t,s.Il.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=F(this.themeData.base);for(const i in t.colors)e.has(i)||e.set(i,s.Il.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){return this.getColors().get(e)||(!1!==t?this.getDefault(e):void 0)}getDefault(e){let t=this.defaultColors[e];return t||(t=M.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return this.getColors().has(e)}get type(){switch(this.base){case D:return x.eL.LIGHT;case I:return x.eL.HIGH_CONTRAST_DARK;case A:return x.eL.HIGH_CONTRAST_LIGHT;default:return x.eL.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const i=F(this.themeData.base);e=i.rules,i.encodedTokensColors&&(t=i.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],n=this.themeData.colors["editor.background"];if(i||n){const t={token:""};i&&(t.foreground=i),n&&(t.background=n),e.push(t)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=u.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const n=this.tokenTheme._match([e].concat(t).join(".")).metadata,o=l.N.getForeground(n),s=l.N.getFontStyle(n);return{foreground:o,italic:Boolean(1&s),bold:Boolean(2&s),underline:Boolean(4&s),strikethrough:Boolean(8&s)}}}function P(e){return e===D||e===T||e===I||e===A}function F(e){switch(e){case D:return v;case T:return b;case I:return C;case A:return y}}function B(e){const t=F(e);return new O(e,t)}class H extends k.JT{constructor(){super(),this._onColorThemeChange=this._register(new r.Q5),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new r.Q5),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new N,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(D,B(D)),this._knownThemes.set(T,B(T)),this._knownThemes.set(I,B(I)),this._knownThemes.set(A,B(A));const e=function(e){const t=new r.Q5,i=(0,E.Ks)();return i.onDidChange((()=>t.fire())),null==e||e.onDidProductIconThemeChange((()=>t.fire())),{onDidChange:t.event,getCSS(){const t=e?e.getProductIconTheme():new N,o={},s=e=>{const i=t.getIcon(e);if(!i)return;const s=i.font;return s?(o[s.id]=s.definition,`.codicon-${e.id}:before { content: '${i.fontCharacter}'; font-family: ${(0,n._h)(s.id)}; }`):`.codicon-${e.id}:before { content: '${i.fontCharacter}'; }`},r=[];for(const e of i.getIcons()){const t=s(e);t&&r.push(t)}for(const e in o){const t=o[e],i=t.weight?`font-weight: ${t.weight};`:"",s=t.style?`font-style: ${t.style};`:"",a=t.src.map((e=>`${(0,n.wY)(e.location)} format('${e.format}')`)).join(", ");r.push(`@font-face { src: ${a}; font-family: ${(0,n._h)(e)};${i}${s} font-display: block; }`)}return r.join("\n")}}}(this);this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(D),this._onOSSchemeChanged(),e.onDidChange((()=>{this._codiconCSS=e.getCSS(),this._updateCSS()})),(0,o.addMatchMediaChangeListener)("(forced-colors: active)",(()=>{this._onOSSchemeChanged()}))}registerEditorContainer(e){return n.OO(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=n.dS(void 0,(e=>{e.className="monaco-colors",e.textContent=this._allCSS})),this._styleElements.push(this._globalStyleElement)),k.JT.None}_registerShadowDomContainer(e){const t=n.dS(e,(e=>{e.className="monaco-colors",e.textContent=this._allCSS}));return this._styleElements.push(t),{dispose:()=>{for(let e=0;e{t.base===e&&t.notifyBaseUpdated()})),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(D),this._updateActualTheme(t)}_updateActualTheme(e){e&&this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const e=window.matchMedia("(forced-colors: active)").matches;if(e!==(0,x.c3)(this._theme.type)){let t;t=(0,x._T)(this._theme.type)?e?I:T:e?A:D,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const e=[],t={},i={addRule:i=>{t[i]||(e.push(i),t[i]=!0)}};R.getThemingParticipants().forEach((e=>e(this._theme,i,this._environment)));const n=[];for(const e of M.getColors()){const t=this._theme.getColor(e.id,!0);t&&n.push(`${(0,_.QO2)(e.id)}: ${t.toString()};`)}i.addRule(`.monaco-editor { ${n.join("\n")} }`);const o=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule(function(e){const t=[];for(let i=1,n=e.length;ie.textContent=this._allCSS))}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}},15662:(e,t,i)=>{"use strict";i.r(t);var n=i(16830),o=i(44156),s=i(20913),r=i(92321),a=i(58763);class l extends n.R6{constructor(){super({id:"editor.action.toggleHighContrast",label:s.xi.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(o.Z),n=i.getColorTheme();(0,r.c3)(n.type)?(i.setTheme(this._originalThemeName||((0,r._T)(n.type)?a.rW:a.TG)),this._originalThemeName=null):(i.setTheme((0,r._T)(n.type)?a.kR:a.MU),this._originalThemeName=n.themeName)}}(0,n.Qr)(l)},44156:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=(0,i(72065).yh)("themeService")},40605:(e,t,i)=>{"use strict";i.r(t),i.d(t,{cssDefaults:()=>g,lessDefaults:()=>m,scssDefaults:()=>p});var n=i(1593),o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of r(t))a.call(e,l)||l===i||o(e,l,{get:()=>t[l],enumerable:!(n=s(t,l))||n.enumerable});return e},c={};l(c,n,"default");var h=class{_onDidChange=new c.Emitter;_options;_modeConfiguration;_languageId;constructor(e,t,i){this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},d={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},u={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},g=new h("css",d,u),p=new h("scss",d,u),m=new h("less",d,u);function f(){return i.e(564).then(i.bind(i,45288))}c.languages.css={cssDefaults:g,lessDefaults:m,scssDefaults:p},c.languages.onLanguage("less",(()=>{f().then((e=>e.setupMode(m)))})),c.languages.onLanguage("scss",(()=>{f().then((e=>e.setupMode(p)))})),c.languages.onLanguage("css",(()=>{f().then((e=>e.setupMode(g)))}))},68423:(e,t,i)=>{"use strict";i.r(t),i.d(t,{handlebarDefaults:()=>b,handlebarLanguageService:()=>v,htmlDefaults:()=>_,htmlLanguageService:()=>f,razorDefaults:()=>y,razorLanguageService:()=>C,registerHTMLLanguageService:()=>w});var n=i(1593),o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of r(t))a.call(e,l)||l===i||o(e,l,{get:()=>t[l],enumerable:!(n=s(t,l))||n.enumerable});return e},c={};l(c,n,"default");var h=class{_onDidChange=new c.Emitter;_options;_modeConfiguration;_languageId;constructor(e,t,i){this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},d={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},suggest:{},data:{useDefaultDataProvider:!0}};function u(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===g,documentFormattingEdits:e===g,documentRangeFormattingEdits:e===g}}var g="html",p="handlebars",m="razor",f=w(g,d,u(g)),_=f.defaults,v=w(p,d,u(p)),b=v.defaults,C=w(m,d,u(m)),y=C.defaults;function w(e,t=d,n=u(e)){const o=new h(e,t,n);let s;const r=c.languages.onLanguage(e,(async()=>{s=(await i.e(377).then(i.bind(i,15377))).setupMode(o)}));return{defaults:o,dispose(){r.dispose(),s?.dispose(),s=void 0}}}c.languages.html={htmlDefaults:_,razorDefaults:y,handlebarDefaults:b,htmlLanguageService:f,handlebarLanguageService:v,razorLanguageService:C,registerHTMLLanguageService:w}},72323:(e,t,i)=>{"use strict";i.r(t),i.d(t,{jsonDefaults:()=>h});var n=i(1593),o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of r(t))a.call(e,l)||l===i||o(e,l,{get:()=>t[l],enumerable:!(n=s(t,l))||n.enumerable});return e},c={};l(c,n,"default");var h=new class{_onDidChange=new c.Emitter;_diagnosticsOptions;_modeConfiguration;_languageId;constructor(e,t,i){this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});c.languages.json={jsonDefaults:h},c.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),c.languages.onLanguage("json",(()=>{i.e(665).then(i.bind(i,90665)).then((e=>e.setupMode(h)))}))},63580:(e,t,i)=>{"use strict";i.d(t,{NC:()=>o,aj:()=>s});let n="undefined"!=typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function o(e,t,...i){return function(e,t){let i;return i=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,i)=>{const n=i[0],o=t[n];let s=e;return"string"==typeof o?s=o:"number"!=typeof o&&"boolean"!=typeof o&&null!=o||(s=String(o)),s})),n&&(i="["+i.replace(/[aouei]/g,"$&$&")+"]"),i}(t,i)}function s(e){}},31106:(e,t,i)=>{"use strict";i.d(t,{F:()=>o,U:()=>s});var n=i(93983);const o=(0,i(72065).yh)("accessibilityService"),s=new n.uy("accessibilityModeEnabled",!1)},22444:(e,t,i)=>{"use strict";i.d(t,{Mm:()=>I,Id:()=>O,vr:()=>D,LJ:()=>N});var n=i(65321),o=i(59069),s=i(88609),r=i(61364),a=i(74741),l=i(8030),c=i(5976),h=i(1432),d=i(63580),u=i(84144),g=i(93983),p=i(5606),m=i(72065),f=i(91847),_=i(59422),v=i(26904),b=i(97781),C=i(25670),y=i(92321),w=i(98401),S=i(73910),k=i(86253),x=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},L=function(e,t){return function(i,n){t(i,n,e)}},E=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function N(e,t,i,o){const s=e.getActions(t),r=n._q.getInstance();T(s,i,r.keyStatus.altKey||(h.ED||h.IJ)&&r.keyStatus.shiftKey,o?e=>e===o:e=>"navigation"===e)}function D(e,t,i,n,o,s){T(e.getActions(t),i,!1,"string"==typeof n?e=>e===n:n,o,s)}function T(e,t,i,n=(e=>"navigation"===e),o=(()=>!1),s=!1){let r,l;Array.isArray(t)?(r=t,l=t):(r=t.primary,l=t.secondary);const c=new Set;for(const[t,o]of e){let e;n(t)?(e=r,e.length>0&&s&&e.push(new a.Z0)):(e=l,e.length>0&&e.push(new a.Z0));for(let n of o){i&&(n=n instanceof u.U8&&n.alt?n.alt:n);const o=e.push(n);n instanceof a.wY&&c.add({group:t,action:n,index:o-1})}}for(const{group:e,action:t,index:i}of c){const s=n(e)?r:l,a=t.actions;a.length<=1&&o(t,e,s.length)&&s.splice(i,1,...a)}}let I=class extends s.gU{constructor(e,t,i,o,s,r,a){super(void 0,e,{icon:!(!e.class&&!e.item.icon),label:!e.class&&!e.item.icon,draggable:null==t?void 0:t.draggable,keybinding:null==t?void 0:t.keybinding,hoverDelegate:null==t?void 0:t.hoverDelegate}),this._keybindingService=i,this._notificationService=o,this._contextKeyService=s,this._themeService=r,this._contextMenuService=a,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new c.XK),this._altKey=n._q.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}onClick(e){return E(this,void 0,void 0,(function*(){e.preventDefault(),e.stopPropagation();try{yield this.actionRunner.run(this._commandAction,this._context)}catch(e){this._notificationService.error(e)}}))}render(e){super.render(e),e.classList.add("menu-entry"),this._updateItemClass(this._menuItemAction.item);let t=!1,i=this._altKey.keyStatus.altKey||(h.ED||h.IJ)&&this._altKey.keyStatus.shiftKey;const o=()=>{var e;const n=t&&i&&!!(null===(e=this._commandAction.alt)||void 0===e?void 0:e.enabled);n!==this._wantsAltCommand&&(this._wantsAltCommand=n,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._menuItemAction.alt&&this._register(this._altKey.event((e=>{i=e.altKey||(h.ED||h.IJ)&&e.shiftKey,o()}))),this._register((0,n.nm)(e,"mouseleave",(e=>{t=!1,o()}))),this._register((0,n.nm)(e,"mouseenter",(e=>{t=!0,o()})))}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var e;const t=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),i=t&&t.getLabel(),n=this._commandAction.tooltip||this._commandAction.label;let o=i?(0,d.NC)("titleAndKb","{0} ({1})",n,i):n;if(!this._wantsAltCommand&&(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)){const e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),n=i?(0,d.NC)("titleAndKb","{0} ({1})",e,i):e;o=(0,d.NC)("titleAndKbAndAlt","{0}\n[{1}] {2}",o,l.xo.modifierLabels[h.OS].altKey,n)}return o}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){this._itemClassDispose.value=void 0;const{element:t,label:i}=this;if(!t||!i)return;const o=this._commandAction.checked&&(s=e.toggled)&&void 0!==s.condition&&e.toggled.icon?e.toggled.icon:e.icon;var s;if(o)if(C.k.isThemeIcon(o)){const e=C.k.asClassNameArray(o);i.classList.add(...e),this._itemClassDispose.value=(0,c.OF)((()=>{i.classList.remove(...e)}))}else i.style.backgroundImage=(0,y._T)(this._themeService.getColorTheme().type)?(0,n.wY)(o.dark):(0,n.wY)(o.light),i.classList.add("icon"),this._itemClassDispose.value=(0,c.F8)((0,c.OF)((()=>{i.style.backgroundImage="",i.classList.remove("icon")})),this._themeService.onDidColorThemeChange((()=>{this.updateClass()})))}};I=x([L(2,f.d),L(3,_.lT),L(4,g.i6),L(5,b.XE),L(6,p.i)],I);let A=class extends r.C{constructor(e,t,i,n,o){var s,r,a;const l=Object.assign(Object.assign({},t),{menuAsChild:null!==(s=null==t?void 0:t.menuAsChild)&&void 0!==s&&s,classNames:null!==(r=null==t?void 0:t.classNames)&&void 0!==r?r:C.k.isThemeIcon(e.item.icon)?C.k.asClassName(e.item.icon):void 0,keybindingProvider:null!==(a=null==t?void 0:t.keybindingProvider)&&void 0!==a?a:e=>i.lookupKeybinding(e.id)});super(e,{getActions:()=>e.actions},n,l),this._keybindingService=i,this._contextMenuService=n,this._themeService=o}render(e){super.render(e),(0,w.p_)(this.element),e.classList.add("menu-entry");const t=this._action,{icon:i}=t.item;if(i&&!C.k.isThemeIcon(i)){this.element.classList.add("icon");const e=()=>{this.element&&(this.element.style.backgroundImage=(0,y._T)(this._themeService.getColorTheme().type)?(0,n.wY)(i.dark):(0,n.wY)(i.light))};e(),this._register(this._themeService.onDidColorThemeChange((()=>{e()})))}}};A=x([L(2,f.d),L(3,p.i),L(4,b.XE)],A);let M=class extends s.YH{constructor(e,t,i,n,o,s,l,c){var h,d,g;let p;super(null,e),this._keybindingService=i,this._notificationService=n,this._contextMenuService=o,this._menuService=s,this._instaService=l,this._storageService=c,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;const m=c.get(this._storageKey,1);m&&(p=e.actions.find((e=>m===e.id))),p||(p=e.actions[0]),this._defaultAction=this._instaService.createInstance(I,p,{keybinding:this._getDefaultActionKeybindingLabel(p)});const f=Object.assign({},null!=t?t:Object.create(null),{menuAsChild:null===(h=null==t?void 0:t.menuAsChild)||void 0===h||h,classNames:null!==(d=null==t?void 0:t.classNames)&&void 0!==d?d:["codicon","codicon-chevron-down"],actionRunner:null!==(g=null==t?void 0:t.actionRunner)&&void 0!==g?g:new a.Wi});this._dropdown=new r.C(e,e.actions,this._contextMenuService,f),this._dropdown.actionRunner.onDidRun((e=>{e.action instanceof u.U8&&this.update(e.action)}))}update(e){this._storageService.store(this._storageKey,e.id,1,0),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(I,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends a.Wi{runAction(e,t){return E(this,void 0,void 0,(function*(){yield e.run(void 0)}))}},this._container&&this._defaultAction.render((0,n.Ce)(this._container,(0,n.$)(".action-container")))}_getDefaultActionKeybindingLabel(e){var t;let i;if(null===(t=this._options)||void 0===t?void 0:t.renderKeybindingWithDefaultActionLabel){const t=this._keybindingService.lookupKeybinding(e.id);t&&(i=`(${t.getLabel()})`)}return i}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=(0,n.$)(".action-container");this._defaultAction.render((0,n.R3)(this._container,t)),this._register((0,n.nm)(t,n.tw.KEY_DOWN,(e=>{const t=new o.y(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())})));const i=(0,n.$)(".dropdown-action-container");this._dropdown.render((0,n.R3)(this._container,i)),this._register((0,n.nm)(i,n.tw.KEY_DOWN,(e=>{var t;const i=new o.y(e);i.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),null===(t=this._defaultAction.element)||void 0===t||t.focus(),i.stopPropagation())})))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};M=x([L(2,f.d),L(3,_.lT),L(4,p.i),L(5,u.co),L(6,m.TG),L(7,v.Uy)],M);let R=class extends s.Lc{constructor(e,t){super(null,e,e.actions.map((e=>({text:e.id===a.Z0.ID?"─────────":e.label,isDisabled:!e.enabled}))),0,t,k.BM,{ariaLabel:e.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,e.actions.findIndex((e=>e.checked))))}render(e){super.render(e),e.style.borderColor=(0,S.n_1)(S.a9O)}runAction(e,t){const i=this.action.actions[t];i&&this.actionRunner.run(i)}};function O(e,t,i){return t instanceof u.U8?e.createInstance(I,t,i):t instanceof u.NZ?t.item.isSelection?e.createInstance(R,t):t.item.rememberDefaultAction?e.createInstance(M,t,i):e.createInstance(A,t,i):void 0}R=x([L(1,p.u)],R)},84144:(e,t,i)=>{"use strict";i.d(t,{BH:()=>b,Ke:()=>w,NZ:()=>C,U8:()=>y,co:()=>_,eH:()=>f,f6:()=>m,r1:()=>S,vr:()=>p});var n=i(74741),o=i(25670),s=i(4669),r=i(5976),a=i(91741),l=i(94565),c=i(93983),h=i(72065),d=i(49989),u=function(e,t){return function(i,n){t(i,n,e)}},g=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);ot===e}}v._all=new Map;const b=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new s.SZ({merge:v.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(e){return this._commands.set(e.id,e),this._onDidChangeMenu.fire(v.for(f.CommandPalette)),(0,r.OF)((()=>{this._commands.delete(e.id)&&this._onDidChangeMenu.fire(v.for(f.CommandPalette))}))}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach(((t,i)=>e.set(i,t))),e}appendMenuItem(e,t){let i=this._menuItems.get(e);i||(i=new a.S,this._menuItems.set(e,i));const n=i.push(t);return this._onDidChangeMenu.fire(v.for(e)),(0,r.OF)(n)}appendMenuItems(e){const t=new r.SL;for(const{id:i,item:n}of e)t.add(this.appendMenuItem(i,n));return t}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===f.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const i of e)p(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach(((i,n)=>{t.has(n)||e.push({command:i})}))}};class C extends n.wY{constructor(e,t,i){super(`submenuitem.${e.submenu.id}`,"string"==typeof e.title?e.title:e.title.value,i,"submenu"),this.item=e,this.hideActions=t}}let y=class e{static label(e,t){return(null==t?void 0:t.renderShortTitle)&&e.shortTitle?"string"==typeof e.shortTitle?e.shortTitle:e.shortTitle.value:"string"==typeof e.title?e.title:e.title.value}constructor(t,i,n,s,r,a){var l,c;let h;if(this.hideActions=s,this._commandService=a,this.id=t.id,this.label=e.label(t,n),this.tooltip=null!==(c="string"==typeof t.tooltip?t.tooltip:null===(l=t.tooltip)||void 0===l?void 0:l.value)&&void 0!==c?c:"",this.enabled=!t.precondition||r.contextMatchesRules(t.precondition),this.checked=void 0,t.toggled){const e=t.toggled.condition?t.toggled:{condition:t.toggled};this.checked=r.contextMatchesRules(e.condition),this.checked&&e.tooltip&&(this.tooltip="string"==typeof e.tooltip?e.tooltip:e.tooltip.value),this.checked&&o.k.isThemeIcon(e.icon)&&(h=e.icon),e.title&&(this.label="string"==typeof e.title?e.title:e.title.value)}h||(h=o.k.isThemeIcon(t.icon)?t.icon:void 0),this.item=t,this.alt=i?new e(i,void 0,n,s,r,a):void 0,this._options=n,this.class=h&&o.k.asClassName(h)}run(...e){var t,i;let n=[];return(null===(t=this._options)||void 0===t?void 0:t.arg)&&(n=[...n,this._options.arg]),(null===(i=this._options)||void 0===i?void 0:i.shouldForwardArgs)&&(n=[...n,...e]),this._commandService.executeCommand(this.id,...n)}};y=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([u(4,c.i6),u(5,l.H)],y);class w{constructor(e){this.desc=e}}function S(e){const t=new r.SL,i=new e,n=i.desc,{f1:o,menu:s,keybinding:a,description:h}=n,u=g(n,["f1","menu","keybinding","description"]);if(t.add(l.P.registerCommand({id:u.id,handler:(e,...t)=>i.run(e,...t),description:h})),Array.isArray(s))for(const e of s)t.add(b.appendMenuItem(e.id,Object.assign({command:Object.assign(Object.assign({},u),{precondition:null===e.precondition?void 0:u.precondition})},e)));else s&&t.add(b.appendMenuItem(s.id,Object.assign({command:Object.assign(Object.assign({},u),{precondition:null===s.precondition?void 0:u.precondition})},s)));if(o&&(t.add(b.appendMenuItem(f.CommandPalette,{command:u,when:u.precondition})),t.add(b.addCommand(u))),Array.isArray(a))for(const e of a)t.add(d.W.registerKeybindingRule(Object.assign(Object.assign({},e),{id:u.id,when:u.precondition?c.Ao.and(u.precondition,e.when):e.when})));else a&&t.add(d.W.registerKeybindingRule(Object.assign(Object.assign({},a),{id:u.id,when:u.precondition?c.Ao.and(u.precondition,a.when):a.when})));return t}},69149:(e,t,i)=>{"use strict";i.d(t,{e7:()=>s,y$:()=>a});var n=i(72065),o=i(63580);const s=(0,n.yh)("audioCue");class r{static register(e){return new r(e.fileName)}constructor(e){this.fileName=e}}r.error=r.register({fileName:"error.mp3"}),r.warning=r.register({fileName:"warning.mp3"}),r.foldedArea=r.register({fileName:"foldedAreas.mp3"}),r.break=r.register({fileName:"break.mp3"}),r.quickFixes=r.register({fileName:"quickFixes.mp3"}),r.taskCompleted=r.register({fileName:"taskCompleted.mp3"}),r.taskFailed=r.register({fileName:"taskFailed.mp3"}),r.terminalBell=r.register({fileName:"terminalBell.mp3"}),r.diffLineInserted=r.register({fileName:"diffLineInserted.mp3"}),r.diffLineDeleted=r.register({fileName:"diffLineDeleted.mp3"}),r.diffLineModified=r.register({fileName:"diffLineModified.mp3"});class a{static register(e){const t=new a(e.sound,e.name,e.settingsKey);return a._audioCues.add(t),t}constructor(e,t,i){this.sound=e,this.name=t,this.settingsKey=i}}a._audioCues=new Set,a.error=a.register({name:(0,o.NC)("audioCues.lineHasError.name","Error on Line"),sound:r.error,settingsKey:"audioCues.lineHasError"}),a.warning=a.register({name:(0,o.NC)("audioCues.lineHasWarning.name","Warning on Line"),sound:r.warning,settingsKey:"audioCues.lineHasWarning"}),a.foldedArea=a.register({name:(0,o.NC)("audioCues.lineHasFoldedArea.name","Folded Area on Line"),sound:r.foldedArea,settingsKey:"audioCues.lineHasFoldedArea"}),a.break=a.register({name:(0,o.NC)("audioCues.lineHasBreakpoint.name","Breakpoint on Line"),sound:r.break,settingsKey:"audioCues.lineHasBreakpoint"}),a.inlineSuggestion=a.register({name:(0,o.NC)("audioCues.lineHasInlineSuggestion.name","Inline Suggestion on Line"),sound:r.quickFixes,settingsKey:"audioCues.lineHasInlineSuggestion"}),a.terminalQuickFix=a.register({name:(0,o.NC)("audioCues.terminalQuickFix.name","Terminal Quick Fix"),sound:r.quickFixes,settingsKey:"audioCues.terminalQuickFix"}),a.onDebugBreak=a.register({name:(0,o.NC)("audioCues.onDebugBreak.name","Debugger Stopped on Breakpoint"),sound:r.break,settingsKey:"audioCues.onDebugBreak"}),a.noInlayHints=a.register({name:(0,o.NC)("audioCues.noInlayHints","No Inlay Hints on Line"),sound:r.error,settingsKey:"audioCues.noInlayHints"}),a.taskCompleted=a.register({name:(0,o.NC)("audioCues.taskCompleted","Task Completed"),sound:r.taskCompleted,settingsKey:"audioCues.taskCompleted"}),a.taskFailed=a.register({name:(0,o.NC)("audioCues.taskFailed","Task Failed"),sound:r.taskFailed,settingsKey:"audioCues.taskFailed"}),a.terminalCommandFailed=a.register({name:(0,o.NC)("audioCues.terminalCommandFailed","Terminal Command Failed"),sound:r.error,settingsKey:"audioCues.terminalCommandFailed"}),a.terminalBell=a.register({name:(0,o.NC)("audioCues.terminalBell","Terminal Bell"),sound:r.terminalBell,settingsKey:"audioCues.terminalBell"}),a.notebookCellCompleted=a.register({name:(0,o.NC)("audioCues.notebookCellCompleted","Notebook Cell Completed"),sound:r.taskCompleted,settingsKey:"audioCues.notebookCellCompleted"}),a.notebookCellFailed=a.register({name:(0,o.NC)("audioCues.notebookCellFailed","Notebook Cell Failed"),sound:r.taskFailed,settingsKey:"audioCues.notebookCellFailed"}),a.diffLineInserted=a.register({name:(0,o.NC)("audioCues.diffLineInserted","Diff Line Inserted"),sound:r.diffLineInserted,settingsKey:"audioCues.diffLineInserted"}),a.diffLineDeleted=a.register({name:(0,o.NC)("audioCues.diffLineDeleted","Diff Line Deleted"),sound:r.diffLineDeleted,settingsKey:"audioCues.diffLineDeleted"}),a.diffLineModified=a.register({name:(0,o.NC)("audioCues.diffLineModified","Diff Line Modified"),sound:r.diffLineModified,settingsKey:"audioCues.diffLineModified"})},84972:(e,t,i)=>{"use strict";i.d(t,{p:()=>n});const n=(0,i(72065).yh)("clipboardService")},94565:(e,t,i)=>{"use strict";i.d(t,{H:()=>l,P:()=>c});var n=i(4669),o=i(53725),s=i(5976),r=i(91741),a=i(98401);const l=(0,i(72065).yh)("commandService"),c=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new n.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"==typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.description){const t=[];for(const i of e.description.args)t.push(i.constraint);const i=e.handler;e.handler=function(e,...n){return(0,a.D8)(n,t),i(e,...n)}}const{id:i}=e;let n=this._commands.get(i);n||(n=new r.S,this._commands.set(i,n));const o=n.unshift(e),l=(0,s.OF)((()=>{o();const e=this._commands.get(i);(null==e?void 0:e.isEmpty())&&this._commands.delete(i)}));return this._onDidRegisterCommand.fire(i),l}registerCommandAlias(e,t){return c.registerCommand(e,((e,...i)=>e.get(l).executeCommand(t,...i)))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return o.$.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const i=this.getCommand(t);i&&e.set(t,i)}return e}};c.registerCommand("noop",(()=>{}))},33108:(e,t,i)=>{"use strict";i.d(t,{KV:()=>s,Mt:()=>l,Od:()=>o,UI:()=>c,Ui:()=>n,xL:()=>r});const n=(0,i(72065).yh)("configurationService");function o(e,t){const i=Object.create(null);for(const n in e)s(i,n,e[n],t);return i}function s(e,t,i,n){const o=t.split("."),s=o.pop();let r=e;for(let e=0;e{"use strict";i.d(t,{IP:()=>h,eU:()=>w,ny:()=>S});var n=i(9488),o=i(4669),s=i(98401),r=i(63580),a=i(33108),l=i(81294),c=i(89872);const h={Configuration:"base.contributions.configuration"},d={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},_="vscode://schemas/settings/resourceLanguage",v=c.B.as(l.I.JSONContribution),b="\\[([^\\]]+)\\]",C=new RegExp(b,"g"),y=`^(${b})+$`,w=new RegExp(y);function S(e){const t=[];if(w.test(e)){let i=C.exec(e);for(;null==i?void 0:i.length;){const n=i[1].trim();n&&t.push(n),i=C.exec(e)}}return(0,n.EB)(t)}const k=new class{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new o.Q5,this._onDidUpdateConfiguration=new o.Q5,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:r.NC("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},v.registerSchema(_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=new Set;this.doRegisterConfigurations(e,t,i),v.registerSchema(_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){var i;const n=[];for(const{overrides:o,source:l}of e)for(const e in o)if(t.add(e),w.test(e)){const t=this.configurationDefaultsOverrides.get(e),c=null!==(i=null==t?void 0:t.valuesSources)&&void 0!==i?i:new Map;if(l)for(const t of Object.keys(o[e]))c.set(t,l);const h=Object.assign(Object.assign({},(null==t?void 0:t.value)||{}),o[e]);this.configurationDefaultsOverrides.set(e,{source:l,value:h,valuesSources:c});const d=(0,a.UI)(e),u={type:"object",default:h,description:r.NC("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",d),$ref:_,defaultDefaultValue:h,source:s.HD(l)?void 0:l,defaultValueSource:l};n.push(...S(e)),this.configurationProperties[e]=u,this.defaultLanguageConfigurationOverridesNode.properties[e]=u}else{this.configurationDefaultsOverrides.set(e,{value:o[e],source:l});const t=this.configurationProperties[e];t&&(this.updatePropertyDefaultValue(e,t),this.updateSchema(e,t))}this.doRegisterOverrideIdentifiers(n)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,i),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,i,n,o=3,r){var a;o=s.Jp(e.scope)?o:e.scope;const l=e.properties;if(l)for(const e in l){const c=l[e];t&&x(e,c)?delete l[e]:(c.source=i,c.defaultDefaultValue=l[e].default,this.updatePropertyDefaultValue(e,c),w.test(e)?c.scope=void 0:(c.scope=s.Jp(c.scope)?o:c.scope,c.restricted=s.Jp(c.restricted)?!!(null==n?void 0:n.includes(e)):c.restricted),!l[e].hasOwnProperty("included")||l[e].included?(this.configurationProperties[e]=l[e],(null===(a=l[e].policy)||void 0===a?void 0:a.name)&&this.policyConfigurations.set(l[e].policy.name,e),!l[e].deprecationMessage&&l[e].markdownDeprecationMessage&&(l[e].deprecationMessage=l[e].markdownDeprecationMessage),r.add(e)):(this.excludedConfigurationProperties[e]=l[e],delete l[e]))}const c=e.allOf;if(c)for(const e of c)this.validateAndRegisterProperties(e,t,i,n,o,r)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const i=e.properties;if(i)for(const e in i)this.updateSchema(e,i[e]);const n=e.allOf;null==n||n.forEach(t)};t(e)}updateSchema(e,t){switch(d.properties[e]=t,t.scope){case 1:u.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:p.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:f.properties[e]=t;break;case 5:f.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:r.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};this.updatePropertyDefaultValue(t,i),d.properties[t]=i,u.properties[t]=i,g.properties[t]=i,p.properties[t]=i,m.properties[t]=i,f.properties[t]=i}}registerOverridePropertyPatternKey(){const e={type:"object",description:r.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:_};d.patternProperties[y]=e,u.patternProperties[y]=e,g.patternProperties[y]=e,p.patternProperties[y]=e,m.patternProperties[y]=e,f.patternProperties[y]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e);let n=null==i?void 0:i.value,o=null==i?void 0:i.source;s.o8(n)&&(n=t.defaultDefaultValue,o=void 0),s.o8(n)&&(n=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=n,t.defaultValueSource=o}};function x(e,t){var i,n,o,s;return e.trim()?w.test(e)?r.NC("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==k.getConfigurationProperties()[e]?r.NC("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):(null===(i=t.policy)||void 0===i?void 0:i.name)&&void 0!==k.getPolicyConfigurations().get(null===(n=t.policy)||void 0===n?void 0:n.name)?r.NC("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,null===(o=t.policy)||void 0===o?void 0:o.name,k.getPolicyConfigurations().get(null===(s=t.policy)||void 0===s?void 0:s.name)):null:r.NC("config.property.empty","Cannot register an empty property")}c.B.add(h.Configuration,k)},93983:(e,t,i)=>{"use strict";i.d(t,{Ao:()=>k,i6:()=>q,uy:()=>K,Fb:()=>x,K8:()=>Q});var n=i(1432),o=i(97295),s=i(17301),r=i(63580);function a(...e){switch(e.length){case 1:return(0,r.NC)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,r.NC)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,r.NC)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const l=(0,r.NC)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),c=(0,r.NC)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class h{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,s.L6)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(a("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(a("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(a("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&this._input.charCodeAt(this._current)===e&&(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),i=h._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(l):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(c);const n=this._input.charCodeAt(e);if(t)t=!1;else{if(47===n&&!i){e++;break}91===n?i=!0:92===n?t=!0:93===n&&(i=!1)}e++}for(;e=this._input.length}}h._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0)))),h._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);var d=i(72065);const u=new Map;u.set("false",!1),u.set("true",!0),u.set("isMac",n.dz),u.set("isLinux",n.IJ),u.set("isWindows",n.ED),u.set("isWeb",n.$L),u.set("isMacNative",n.dz&&!n.$L),u.set("isEdge",n.un),u.set("isFirefox",n.vU),u.set("isChrome",n.i7),u.set("isSafari",n.G6);const g=Object.prototype.hasOwnProperty,p={regexParsingWithErrorRecovery:!0},m=(0,r.NC)("contextkey.parser.error.emptyString","Empty context key expression"),f=(0,r.NC)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),_=(0,r.NC)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),v=(0,r.NC)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),b=(0,r.NC)("contextkey.parser.error.unexpectedToken","Unexpected token"),C=(0,r.NC)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),y=(0,r.NC)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),w=(0,r.NC)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class S{constructor(e=p){this._config=e,this._scanner=new h,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?C:void 0;throw this._parsingErrors.push({message:b,offset:e.offset,lexeme:h.getLexeme(e),additionalInfo:t}),S._parseError}return e}catch(e){if(e!==S._parseError)throw e;return}}else this._parsingErrors.push({message:m,offset:0,lexeme:"",additionalInfo:f})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:k.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:k.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),E.INSTANCE;case 12:return this._advance(),N.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,v),null==e?void 0:e.negate()}case 17:return this._advance(),R.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),k.true();case 12:return this._advance(),k.false();case 0:{this._advance();const e=this._expr();return this._consume(1,v),e}case 17:{const t=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const i=e.lexeme,n=i.lastIndexOf("/"),o=n===i.length-1?void 0:this._removeFlagsGY(i.substring(n+1));let s;try{s=new RegExp(i.substring(1,n),o)}catch(t){throw this._errExpectedButGot("REGEX",e)}return V.create(t,s)}switch(e.type){case 10:case 19:{const i=[e.lexeme];this._advance();let n=this._peek(),o=0;for(let t=0;t=0){const s=i.slice(t+1,o),r="i"===i[o+1]?"i":"";try{n=new RegExp(s,r)}catch(t){throw this._errExpectedButGot("REGEX",e)}}}if(null===n)throw this._errExpectedButGot("REGEX",e);return V.create(t,n)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,_);const e=this._value();return k.notIn(t,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return k.equals(t,e);switch(e){case"true":return k.has(t);case"false":return k.not(t);default:return k.equals(t,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return k.notEquals(t,e);switch(e){case"true":return k.not(t);case"false":return k.has(t);default:return k.notEquals(t,e)}}case 5:return this._advance(),B.create(t,this._value());case 6:return this._advance(),H.create(t,this._value());case 7:return this._advance(),P.create(t,this._value());case 8:return this._advance(),F.create(t,this._value());case 13:return this._advance(),k.in(t,this._value());default:return k.has(t)}}case 20:throw this._parsingErrors.push({message:y,offset:e.offset,lexeme:"",additionalInfo:w}),S._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,i){const n=(0,r.NC)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,h.getLexeme(t)),o=t.offset,s=h.getLexeme(t);return this._parsingErrors.push({message:n,offset:o,lexeme:s,additionalInfo:i}),S._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}S._parseError=new Error;class k{static false(){return E.INSTANCE}static true(){return N.INSTANCE}static has(e){return D.create(e)}static equals(e,t){return T.create(e,t)}static notEquals(e,t){return M.create(e,t)}static regex(e,t){return V.create(e,t)}static in(e,t){return I.create(e,t)}static notIn(e,t){return A.create(e,t)}static not(e){return R.create(e)}static and(...e){return U.create(e,null,!0)}static or(...e){return j.create(e,null,!0)}static deserialize(e){if(null!=e)return this._parser.parse(e)}}function x(e,t){const i=e?e.substituteConstants():void 0,n=t?t.substituteConstants():void 0;return!i&&!n||!(!i||!n)&&i.equals(n)}function L(e,t){return e.cmp(t)}k._parser=new S({regexParsingWithErrorRecovery:!1});class E{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return N.INSTANCE}}E.INSTANCE=new E;class N{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return E.INSTANCE}}N.INSTANCE=new N;class D{static create(e,t=null){const i=u.get(e);return"boolean"==typeof i?i?N.INSTANCE:E.INSTANCE:new D(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"==typeof e?e?N.INSTANCE:E.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this)),this.negated}}class T{static create(e,t,i=null){if("boolean"==typeof t)return t?D.create(e,i):R.create(e,i);const n=u.get(e);return"boolean"==typeof n?t===(n?"true":"false")?N.INSTANCE:E.INSTANCE:new T(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){const e=u.get(this.key);if("boolean"==typeof e){const t=e?"true":"false";return this.value===t?N.INSTANCE:E.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=M.create(this.key,this.value,this)),this.negated}}class I{static create(e,t){return new I(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&this.key===e.key&&this.valueKey===e.valueKey}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):"string"==typeof i&&"object"==typeof t&&null!==t&&g.call(t,i)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=A.create(this.key,this.valueKey)),this.negated}}class A{static create(e,t){return new A(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=I.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class M{static create(e,t,i=null){if("boolean"==typeof t)return t?R.create(e,i):D.create(e,i);const n=u.get(e);return"boolean"==typeof n?t===(n?"true":"false")?E.INSTANCE:N.INSTANCE:new M(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){const e=u.get(this.key);if("boolean"==typeof e){const t=e?"true":"false";return this.value===t?E.INSTANCE:N.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this.value,this)),this.negated}}class R{static create(e,t=null){const i=u.get(e);return"boolean"==typeof i?i?E.INSTANCE:N.INSTANCE:new R(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:$(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"==typeof e?e?E.INSTANCE:N.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this)),this.negated}}function O(e,t){if("string"==typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"==typeof e||"number"==typeof e?t(e):E.INSTANCE}class P{static create(e,t,i=null){return O(t,(t=>new P(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,i=null){return O(t,(t=>new F(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class B{static create(e,t,i=null){return O(t,(t=>new B(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))new H(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class V{static create(e,t){return new V(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return ti?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this)),this.negated}}class W{static create(e){return new W(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function z(e){let t=null;for(let i=0,n=e.length;ie.expr.length)return 1;for(let t=0,i=this.expr.length;t1;){const e=n[n.length-1];if(9!==e.type)break;n.pop();const t=n.pop(),o=0===n.length,s=j.create(e.expr.map((e=>U.create([e,t],null,i))),null,o);s&&(n.push(s),n.sort(L))}if(1===n.length)return n[0];if(i){for(let e=0;ee.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=j.create(e,this,!0)}return this.negated}}class j{static create(e,t,i){return j._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,i=this.expr.length;te.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),i=e.shift(),n=[];for(const e of Z(t))for(const t of Z(i))n.push(U.create([e,t],null,!1));e.unshift(j.create(n,null,!1))}this.negated=j.create(e,this,!0)}return this.negated}}class K extends D{static all(){return K._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,"object"==typeof i?K._info.push(Object.assign(Object.assign({},i),{key:e})):!0!==i&&K._info.push({key:e,description:i,type:null!=t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return T.create(this.key,e)}}K._info=[];const q=(0,d.yh)("contextKeyService");function $(e,t){return et?1:0}function G(e,t,i,n){return ei?1:tn?1:0}function Q(e,t){if(0===e.type||1===t.type)return!0;if(9===e.type)return 9===t.type&&Y(e.expr,t.expr);if(9===t.type){for(const i of t.expr)if(Q(e,i))return!0;return!1}if(6===e.type){if(6===t.type)return Y(t.expr,e.expr);for(const i of e.expr)if(Q(i,t))return!0;return!1}return e.equals(t)}function Y(e,t){let i=0,n=0;for(;i{"use strict";i.d(t,{cv:()=>r,d0:()=>a});var n=i(1432),o=i(63580),s=i(93983);new s.uy("isMac",n.dz,(0,o.NC)("isMac","Whether the operating system is macOS")),new s.uy("isLinux",n.IJ,(0,o.NC)("isLinux","Whether the operating system is Linux"));const r=new s.uy("isWindows",n.ED,(0,o.NC)("isWindows","Whether the operating system is Windows")),a=(new s.uy("isWeb",n.$L,(0,o.NC)("isWeb","Whether the platform is a web browser")),new s.uy("isMacNative",n.dz&&!n.$L,(0,o.NC)("isMacNative","Whether the operating system is macOS on a non-browser platform")),new s.uy("isIOS",n.gn,(0,o.NC)("isIOS","Whether the operating system is iOS")),new s.uy("isMobile",n.tq,(0,o.NC)("isMobile","Whether the platform is a mobile web browser")),new s.uy("isDevelopment",!1,!0),new s.uy("productQualityType","",(0,o.NC)("productQualityType","Quality type of VS Code")),"inputFocus");new s.uy(a,!1,(0,o.NC)("inputFocus","Whether keyboard focus is inside an input box"))},5606:(e,t,i)=>{"use strict";i.d(t,{i:()=>s,u:()=>o});var n=i(72065);const o=(0,n.yh)("contextViewService"),s=(0,n.yh)("contextMenuService")},28820:(e,t,i)=>{"use strict";i.d(t,{S:()=>n});const n=(0,i(72065).yh)("dialogService")},16021:(e,t,i)=>{"use strict";i.d(t,{Ej:()=>u,GR:()=>h,Km:()=>c});var n=i(23547),o=i(43702),s=i(23897),r=i(70666),a=i(50988),l=i(89872);const c={EDITORS:"CodeEditors",FILES:"CodeFiles"};function h(e){var t;const i=[];if(e.dataTransfer&&e.dataTransfer.types.length>0){const o=e.dataTransfer.getData(c.EDITORS);if(o)try{i.push(...(0,s.Q)(o))}catch(e){}else try{const t=e.dataTransfer.getData(n.g.RESOURCES);i.push(...function(e){const t=[];if(e){const i=JSON.parse(e);for(const e of i)if(e.indexOf(":")>0){const{selection:i,uri:n}=(0,a.xI)(r.o.parse(e));t.push({resource:n,options:{selection:i}})}}return t}(t))}catch(e){}if(null===(t=e.dataTransfer)||void 0===t?void 0:t.files)for(let t=0;t{"use strict";i.d(t,{Yb:()=>E,Nq:()=>N,iX:()=>C});var n=i(3070),o=i(65321),s=i(82900),r=i(77927),a=i(93794),l=i(73046),c=i(4669),h=i(63580);const d=h.NC("defaultLabel","input"),u=h.NC("label.preserveCaseToggle","Preserve Case");class g extends s.Z{constructor(e){super({icon:l.l.preserveCase,title:u+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class p extends a.${constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new c.Q5),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new c.Q5),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new c.Q5),this._onInput=this._register(new c.Q5),this._onKeyUp=this._register(new c.Q5),this._onPreserveCaseKeyDown=this._register(new c.Q5),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||d;const s=n.appendPreserveCaseLabel||"",a=n.history||[],l=!!n.flexibleHeight,h=!!n.flexibleWidth,u=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new r.pG(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:a,showHistoryHint:n.showHistoryHint,flexibleHeight:l,flexibleWidth:h,flexibleMaxHeight:u,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new g(Object.assign({appendTitle:s,isChecked:!1},n.toggleStyles))),this._register(this.preserveCase.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.preserveCase.onKeyDown((e=>{this._onPreserveCaseKeyDown.fire(e)}))),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const p=[this.preserveCase.domNode];this.onkeydown(this.domNode,(e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){const t=p.indexOf(document.activeElement);if(t>=0){let i=-1;e.equals(17)?i=(t+1)%p.length:e.equals(15)&&(i=0===t?p.length-1:t-1),e.equals(9)?(p[t].blur(),this.inputBox.focus()):i>=0&&p[i].focus(),o.zB.stop(e,!0)}}}));const m=document.createElement("div");m.className="controls",m.style.display=this._showOptionButtons?"block":"none",m.appendChild(this.preserveCase.domNode),this.domNode.appendChild(m),null==e||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){var e;null===(e=this.inputBox)||void 0===e||e.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var m=i(93983),f=i(49989),_=i(5976),v=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},b=function(e,t){return function(i,n){t(i,n,e)}};const C=new m.uy("suggestWidgetVisible",!1,(0,h.NC)("suggestWidgetVisible","Whether suggestion are visible")),y="historyNavigationWidgetFocus",w="historyNavigationForwardsEnabled",S="historyNavigationBackwardsEnabled";let k;const x=[];function L(e,t){if(x.includes(t))throw new Error("Cannot register the same widget multiple times");x.push(t);const i=new _.SL,n=new m.uy(y,!1).bindTo(e),o=new m.uy(w,!0).bindTo(e),s=new m.uy(S,!0).bindTo(e),r=()=>{n.set(!0),k=t},a=()=>{n.set(!1),k===t&&(k=void 0)};return t.element===document.activeElement&&r(),i.add(t.onDidFocus((()=>r()))),i.add(t.onDidBlur((()=>a()))),i.add((0,_.OF)((()=>{x.splice(x.indexOf(t),1),a()}))),{historyNavigationForwardsEnablement:o,historyNavigationBackwardsEnablement:s,dispose(){i.dispose()}}}let E=class extends n.V{constructor(e,t,i,n){super(e,t,i);const o=this._register(n.createScoped(this.inputBox.element));this._register(L(o,this.inputBox))}};E=v([b(3,m.i6)],E);let N=class extends p{constructor(e,t,i,n,o=!1){super(e,t,o,i);const s=this._register(n.createScoped(this.inputBox.element));this._register(L(s,this.inputBox))}};N=v([b(3,m.i6)],N),f.W.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:m.Ao.and(m.Ao.has(y),m.Ao.equals(S,!0),C.isEqualTo(!1)),primary:16,secondary:[528],handler:e=>{null==k||k.showPreviousValue()}}),f.W.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:m.Ao.and(m.Ao.has(y),m.Ao.equals(w,!0),C.isEqualTo(!1)),primary:18,secondary:[530],handler:e=>{null==k||k.showNextValue()}})},97108:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});class n{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}},65026:(e,t,i)=>{"use strict";i.d(t,{d:()=>r,z:()=>s});var n=i(97108);const o=[];function s(e,t,i){t instanceof n.M||(t=new n.M(t,[],Boolean(i))),o.push([e,t])}function r(){return o}},72065:(e,t,i)=>{"use strict";var n;i.d(t,{I8:()=>n,TG:()=>o,yh:()=>s}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(n||(n={}));const o=s("instantiationService");function s(e){if(n.serviceIds.has(e))return n.serviceIds.get(e);const t=function(e,i,o){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,i){t[n.DI_TARGET]===t?t[n.DI_DEPENDENCIES].push({id:e,index:i}):(t[n.DI_DEPENDENCIES]=[{id:e,index:i}],t[n.DI_TARGET]=t)}(t,e,o)};return t.toString=()=>e,n.serviceIds.set(e,t),t}},60972:(e,t,i)=>{"use strict";i.d(t,{y:()=>n});class n{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}},81294:(e,t,i)=>{"use strict";i.d(t,{I:()=>s});var n=i(4669),o=i(89872);const s={JSONContribution:"base.contributions.json"},r=new class{constructor(){this._onDidChangeSchema=new n.Q5,this.schemasById={}}registerSchema(e,t){var i;this.schemasById[(i=e,i.length>0&&"#"===i.charAt(i.length-1)?i.substring(0,i.length-1):i)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};o.B.add(s.JSONContribution,r)},91847:(e,t,i)=>{"use strict";i.d(t,{d:()=>n});const n=(0,i(72065).yh)("keybindingService")},49989:(e,t,i)=>{"use strict";i.d(t,{W:()=>h});var n=i(8313),o=i(1432),s=i(94565),r=i(89872),a=i(5976),l=i(91741);class c{constructor(){this._coreKeybindings=new l.S,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(1===o.OS){if(e&&e.win)return e.win}else if(2===o.OS){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=c.bindToCurrentPlatform(e),i=new a.SL;if(t&&t.primary){const s=(0,n.Z9)(t.primary,o.OS);s&&i.add(this._registerDefaultKeybinding(s,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let s=0,r=t.secondary.length;s{r(),this._cachedMergedKeybindings=null}))}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(d)),this._cachedMergedKeybindings.slice(0)}}const h=new c;function d(e,t){if(e.weight1!==t.weight1)return e.weight1-t.weight1;if(e.command&&t.command){if(e.commandt.command)return 1}return e.weight2-t.weight2}r.B.add("platform.keybindingsRegistry",h)},44349:(e,t,i)=>{"use strict";i.d(t,{e:()=>n});const n=(0,i(72065).yh)("labelService")},46763:(e,t,i)=>{"use strict";i.d(t,{Lw:()=>Ke,XN:()=>qe,ls:()=>Ft,ev:()=>Lt,CQ:()=>Qe,PS:()=>tt,uJ:()=>nt});var n=i(65321),o=i(9488),s=i(71050),r=i(4669),a=i(5976),l=i(43799);class c{get templateId(){return this.renderer.templateId}constructor(e,t){this.renderer=e,this.modelProvider=t}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:a.JT.None}}renderElement(e,t,i,n){var o;if(null===(o=i.disposable)||void 0===o||o.dispose(),!i.data)return;const r=this.modelProvider();if(r.isResolved(e))return this.renderer.renderElement(r.get(e),e,i.data,n);const a=new s.A,l=r.resolve(e,a.token);i.disposable={dispose:()=>a.cancel()},this.renderer.renderPlaceholder(e,i.data),l.then((t=>this.renderer.renderElement(t,e,i.data,n)))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class h{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}class d{constructor(e,t,i,n,o={}){const s=()=>this.model,r=n.map((e=>new c(e,s)));this.list=new l.aV(e,t,i,r,function(e,t){return Object.assign(Object.assign({},t),{accessibilityProvider:t.accessibilityProvider&&new h(e,t.accessibilityProvider)})}(s,o))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return r.ju.map(this.list.onMouseDblClick,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onPointer(){return r.ju.map(this.list.onPointer,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onDidChangeSelection(){return r.ju.map(this.list.onDidChangeSelection,(({elements:e,indexes:t,browserEvent:i})=>({elements:e.map((e=>this._model.get(e))),indexes:t,browserEvent:i})))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,(0,o.w6)(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map((e=>this.model.get(e)))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}var u=i(23937);class g{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=g.TemplateId,this.renderedTemplates=new Set;const n=new Map(t.map((e=>[e.templateId,e])));this.renderers=[];for(const t of e){const e=n.get(t.templateId);if(!e)throw new Error(`Table cell renderer for template id ${t.templateId} not found.`);this.renderers.push(e)}}renderTemplate(e){const t=(0,n.R3)(e,(0,n.$)(".monaco-table-tr")),i=[],o=[];for(let e=0;enew p(e,t))),d={size:h.reduce(((e,t)=>e+t.column.weight),0),views:h.map((e=>({size:e.column.weight,view:e})))};this.splitview=this.disposables.add(new u.z(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:d})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const f=new g(o,s,(e=>this.splitview.getViewSize(e)));var _;this.list=this.disposables.add(new l.aV(e,this.domNode,(_=i,{getHeight:e=>_.getHeight(e),getTemplateId:()=>g.TemplateId}),[f],c)),r.ju.any(...h.map((e=>e.onDidLayout)))((([e,t])=>f.layoutColumn(e,t)),null,this.disposables),this.splitview.onDidSashReset((e=>{const t=o.reduce(((e,t)=>e+t.weight),0),i=o[e].weight/t*this.cachedWidth;this.splitview.resizeView(e,i)}),null,this.disposables),this.styleElement=(0,n.dS)(this.domNode),this.style(l.uZ)}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\ttop: ${this.virtualDelegate.headerRowHeight+1}px;\n\t\t\theight: calc(100% - ${this.virtualDelegate.headerRowHeight}px);\n\t\t}`),this.styleElement.textContent=t.join("\n"),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}m.InstanceCount=0,i(4850);var f,_,v=i(59069),b=(i(90317),i(3070),i(77927)),C=i(25707),y=i(82900);!function(e){e[e.Expanded=0]="Expanded",e[e.Collapsed=1]="Collapsed",e[e.PreserveOrExpanded=2]="PreserveOrExpanded",e[e.PreserveOrCollapsed=3]="PreserveOrCollapsed"}(f||(f={})),function(e){e[e.Unknown=0]="Unknown",e[e.Twistie=1]="Twistie",e[e.Element=2]="Element",e[e.Filter=3]="Filter"}(_||(_={}));class w extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class S{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}var k=i(15393),x=i(5635),L=i(2484),E=i(53725);function N(e){return"object"==typeof e&&"visibility"in e&&"data"in e}function D(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function T(e){return"boolean"==typeof e.collapsible}class I{constructor(e,t,i,n={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new r.E7,this._onDidChangeCollapseState=new r.Q5,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new r.Q5,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new r.Q5,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new k.vp(x.n),this.collapseByDefault=void 0!==n.collapseByDefault&&n.collapseByDefault,this.filter=n.filter,this.autoExpandSingleChildren=void 0!==n.autoExpandSingleChildren&&n.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=E.$.empty(),n={}){if(0===e.length)throw new w(this.user,"Invalid tree location");n.diffIdentityProvider?this.spliceSmart(n.diffIdentityProvider,e,t,i,n):this.spliceSimple(e,t,i,n)}spliceSmart(e,t,i,n,o,s){var r;void 0===n&&(n=E.$.empty()),void 0===s&&(s=null!==(r=o.diffDepth)&&void 0!==r?r:0);const{parentNode:a}=this.getParentNodeWithListIndex(t);if(!a.lastDiffIds)return this.spliceSimple(t,i,n,o);const l=[...n],c=t[t.length-1],h=new L.Hs({getElements:()=>a.lastDiffIds},{getElements:()=>[...a.children.slice(0,c),...l,...a.children.slice(c+i)].map((t=>e.getId(t.element).toString()))}).ComputeDiff(!1);if(h.quitEarly)return a.lastDiffIds=void 0,this.spliceSimple(t,i,l,o);const d=t.slice(0,-1),u=(t,i,n)=>{if(s>0)for(let r=0;rt.originalStart-e.originalStart)))u(g,p,g-(e.originalStart+e.originalLength)),g=e.originalStart,p=e.modifiedStart-c,this.spliceSimple([...d,g],e.originalLength,E.$.slice(l,p,p+e.modifiedLength),o);u(g,p,g)}spliceSimple(e,t,i=E.$.empty(),{onDidCreateNode:n,onDidDeleteNode:s,diffIdentityProvider:r}){const{parentNode:a,listIndex:l,revealed:c,visible:h}=this.getParentNodeWithListIndex(e),d=[],u=E.$.map(i,(e=>this.createTreeNode(e,a,a.visible?1:0,c,d,n))),g=e[e.length-1],p=a.children.length>0;let m=0;for(let e=g;e>=0&&er.getId(e.element).toString()))):a.lastDiffIds=a.children.map((e=>r.getId(e.element).toString())):a.lastDiffIds=void 0;let C=0;for(const e of b)e.visible&&C++;if(0!==C)for(let e=g+f.length;ee+(t.visible?t.renderNodeCount:0)),0);this._updateAncestorsRenderNodeCount(a,v-e),this.list.splice(l,e,d)}if(b.length>0&&s){const e=t=>{s(t),t.children.forEach(e)};b.forEach(e)}this._onDidSplice.fire({insertedNodes:f,deletedNodes:b});const y=a.children.length>0;p!==y&&this.setCollapsible(e.slice(0,-1),y);let w=a;for(;w;){if(2===w.visibility){this.refilterDelayer.trigger((()=>this.refilter()));break}w=w.parent}}rerender(e){if(0===e.length)throw new w(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:n}=this.getTreeNodeWithListIndex(e);t.visible&&n&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:n}=this.getTreeNodeWithListIndex(e);return i&&n?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);void 0===t&&(t=!i.collapsible);const n={collapsible:t};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,n)))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const n=this.getTreeNode(e);void 0===t&&(t=!n.collapsed);const o={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,o)))}_setCollapseState(e,t){const{node:i,listIndex:n,revealed:o}=this.getTreeNodeWithListIndex(e),s=this._setListNodeCollapseState(i,n,o,t);if(i!==this.root&&this.autoExpandSingleChildren&&s&&!T(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let n=-1;for(let e=0;e-1){n=-1;break}n=e}n>-1&&this._setCollapseState([...e,n],t)}return s}_setListNodeCollapseState(e,t,i,n){const o=this._setNodeCollapseState(e,n,!1);if(!i||!e.visible||!o)return o;const s=e.renderNodeCount,r=this.updateNodeAfterCollapseChange(e),a=s-(-1===t?0:1);return this.list.splice(t+1,a,r.slice(1)),o}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(T(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!T(t)&&t.recursive)for(const i of e.children)n=this._setNodeCollapseState(i,t,!0)||n;return n}expandTo(e){this.eventBufferer.bufferEvents((()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})}))}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,n,o,s){const r={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"==typeof e.collapsible?e.collapsible:void 0!==e.collapsed,collapsed:void 0===e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(r,i);r.visibility=a,n&&o.push(r);const l=e.children||E.$.empty(),c=n&&0!==a&&!r.collapsed;let h=0,d=1;for(const e of l){const t=this.createTreeNode(e,r,a,c,o,s);r.children.push(t),d+=t.renderNodeCount,t.visible&&(t.visibleChildIndex=h++)}return r.collapsible=r.collapsible||r.children.length>0,r.visibleChildrenCount=h,r.visible=2===a?h>0:1===a,r.visible?r.collapsed||(r.renderNodeCount=d):(r.renderNodeCount=0,n&&o.pop()),null==s||s(r),r}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,n=!0){let o;if(e!==this.root){if(o=this._filterNode(e,t),0===o)return e.visible=!1,e.renderNodeCount=0,!1;n&&i.push(e)}const s=i.length;e.renderNodeCount=e===this.root?0:1;let r=!1;if(e.collapsed&&0===o)e.visibleChildrenCount=0;else{let t=0;for(const s of e.children)r=this._updateNodeAfterFilterChange(s,o,i,n&&!e.collapsed)||r,s.visible&&(s.visibleChildIndex=t++);e.visibleChildrenCount=t}return e!==this.root&&(e.visible=2===o?r:1===o,e.visibility=o),e.visible?e.collapsed||(e.renderNodeCount+=i.length-s):(e.renderNodeCount=0,n&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return"boolean"==typeof i?(e.filterData=void 0,i?1:0):N(i)?(e.filterData=i.data,D(i.visibility)):(e.filterData=void 0,D(i))}hasTreeNode(e,t=this.root){if(!e||0===e.length)return!0;const[i,...n]=e;return!(i<0||i>t.children.length)&&this.hasTreeNode(n,t.children[i])}getTreeNode(e,t=this.root){if(!e||0===e.length)return t;const[i,...n]=e;if(i<0||i>t.children.length)throw new w(this.user,"Invalid tree location");return this.getTreeNode(n,t.children[i])}getTreeNodeWithListIndex(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:n,visible:o}=this.getParentNodeWithListIndex(e),s=e[e.length-1];if(s<0||s>t.children.length)throw new w(this.user,"Invalid tree location");const r=t.children[s];return{node:r,listIndex:i,revealed:n,visible:o&&r.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,o=!0){const[s,...r]=e;if(s<0||s>t.children.length)throw new w(this.user,"Invalid tree location");for(let e=0;ee.element))),this.data=e}}function U(e){return e instanceof C.kX?new z(e):e}class j{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=a.JT.None}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,U(e),t)}onDragOver(e,t,i,n,s=!0){const r=this.dnd.onDragOver(U(e),t&&t.element,i,n),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),void 0===t)return r;if(a&&"boolean"!=typeof r&&r.autoExpand&&(this.autoExpandDisposable=(0,k.Vg)((()=>{const e=this.modelProvider(),i=e.getNodeLocation(t);e.isCollapsed(i)&&e.setCollapsed(i,!1),this.autoExpandNode=void 0}),500)),"boolean"==typeof r||!r.accept||void 0===r.bubble||r.feedback)return s?r:{accept:"boolean"==typeof r?r:r.accept,effect:"boolean"==typeof r?void 0:r.effect,feedback:[i]};if(1===r.bubble){const i=this.modelProvider(),o=i.getNodeLocation(t),s=i.getParentNodeLocation(o),r=i.getNode(s),a=s&&i.getListIndex(s);return this.onDragOver(e,r,a,n,!1)}const l=this.modelProvider(),c=l.getNodeLocation(t),h=l.getListIndex(c),d=l.getListRenderCount(c);return Object.assign(Object.assign({},r),{feedback:(0,o.w6)(h,h+d)})}drop(e,t,i,n){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(U(e),t&&t.element,i,n)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}}class K{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){var i,n;null===(n=(i=this.delegate).setDynamicHeight)||void 0===n||n.call(i,e.element,t)}}!function(e){e.None="none",e.OnHover="onHover",e.Always="always"}(O||(O={}));class q{get elements(){return this._elements}constructor(e,t=[]){this._elements=t,this.disposables=new a.SL,this.onDidChange=r.ju.forEach(e,(e=>this._elements=e),this.disposables)}dispose(){this.disposables.dispose()}}class ${constructor(e,t,i,n,o,s={}){var l;this.renderer=e,this.modelProvider=t,this.activeNodes=n,this.renderedIndentGuides=o,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=$.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set,this.indentGuidesDisposable=a.JT.None,this.disposables=new a.SL,this.templateId=e.templateId,this.updateOptions(s),r.ju.map(i,(e=>e.node))(this.onDidChangeNodeTwistieState,this,this.disposables),null===(l=e.onDidChangeTwistieState)||void 0===l||l.call(e,this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if(void 0!==e.indent){const t=(0,H.uZ)(e.indent,0,40);if(t!==this.indent){this.indent=t;for(const[e,t]of this.renderedNodes)this.renderTreeElement(e,t)}}if(void 0!==e.renderIndentGuides){const t=e.renderIndentGuides!==O.None;if(t!==this.shouldRenderIndentGuides){this.shouldRenderIndentGuides=t;for(const[e,t]of this.renderedNodes)this._renderIndentGuides(e,t);if(this.indentGuidesDisposable.dispose(),t){const e=new a.SL;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements)}}}void 0!==e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=(0,n.R3)(e,(0,n.$)(".monaco-tl-row")),i=(0,n.R3)(t,(0,n.$)(".monaco-tl-indent")),o=(0,n.R3)(t,(0,n.$)(".monaco-tl-twistie")),s=(0,n.R3)(t,(0,n.$)(".monaco-tl-contents")),r=this.renderer.renderTemplate(s);return{container:e,indent:i,twistie:o,indentGuidesDisposable:a.JT.None,templateData:r}}renderElement(e,t,i,n){this.renderedNodes.set(e,i),this.renderedElements.set(e.element,e),this.renderTreeElement(e,i),this.renderer.renderElement(e,t,i.templateData,n)}disposeElement(e,t,i,n){var o,s;i.indentGuidesDisposable.dispose(),null===(s=(o=this.renderer).disposeElement)||void 0===s||s.call(o,e,t,i.templateData,n),"number"==typeof n&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(e,t))}renderTreeElement(e,t){const i=$.DefaultIndent+(e.depth-1)*this.indent;t.twistie.style.paddingLeft=`${i}px`,t.indent.style.width=i+this.indent-16+"px",e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded"),t.twistie.classList.remove(...M.k.asClassNameArray(A.l.treeItemExpanded));let n=!1;this.renderer.renderTwistie&&(n=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(n||t.twistie.classList.add(...M.k.asClassNameArray(A.l.treeItemExpanded)),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),this._renderIndentGuides(e,t)}_renderIndentGuides(e,t){if((0,n.PO)(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new a.SL,o=this.modelProvider();for(;;){const s=o.getNodeLocation(e),r=o.getParentNodeLocation(s);if(!r)break;const l=o.getNode(r),c=(0,n.$)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(l)&&c.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(c):t.indent.insertBefore(c,t.indent.firstElementChild),this.renderedIndentGuides.add(l,c),i.add((0,a.OF)((()=>this.renderedIndentGuides.delete(l,c)))),e=l}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach((e=>{const n=i.getNodeLocation(e);try{const o=i.getParentNodeLocation(n);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):o&&t.add(i.getNode(o))}catch(e){}})),this.activeIndentNodes.forEach((e=>{t.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.remove("active")))})),t.forEach((e=>{this.activeIndentNodes.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.add("active")))})),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),(0,a.B9)(this.disposables)}}$.DefaultIndent=8;class G{get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new a.SL,e.onWillRefilter(this.reset,this,this.disposables)}filter(e,t){let i=1;if(this._filter){const n=this._filter.filter(e,t);if(i="boolean"==typeof n?n?1:0:N(n)?D(n.visibility):n,0===i)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:B.CL.Default,visibility:i};const n=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),o=Array.isArray(n)?n:[n];for(const e of o){const t=e&&e.toString();if(void 0===t)return{data:B.CL.Default,visibility:i};let n;if(this.tree.findMatchType===F.Contiguous){const e=t.toLowerCase().indexOf(this._lowercasePattern);if(e>-1){n=[Number.MAX_SAFE_INTEGER,0];for(let t=this._lowercasePattern.length;t>0;t--)n.push(e+t-1)}}else n=(0,B.EW)(this._pattern,this._lowercasePattern,0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(n)return this._matchCount++,1===o.length?{data:n,visibility:i}:{data:{label:t,score:n},visibility:i}}return this.tree.findMode===P.Filter?"number"==typeof this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility:this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility(e):2:{data:B.CL.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){(0,a.B9)(this.disposables)}}b.g4,y.D,function(e){e[e.Highlight=0]="Highlight",e[e.Filter=1]="Filter"}(P||(P={})),function(e){e[e.Fuzzy=0]="Fuzzy",e[e.Contiguous=1]="Contiguous"}(F||(F={}));class Q{get pattern(){return this._pattern}get mode(){return this._mode}set mode(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}get matchType(){return this._matchType}set matchType(e){e!==this._matchType&&(this._matchType=e,this.widget&&(this.widget.matchType=this._matchType),this.tree.refilter(),this.render(),this._onDidChangeMatchType.fire(e))}constructor(e,t,i,n,o,s={}){var l,c;this.tree=e,this.view=i,this.filter=n,this.contextViewProvider=o,this.options=s,this._pattern="",this.width=0,this._onDidChangeMode=new r.Q5,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new r.Q5,this.onDidChangeMatchType=this._onDidChangeMatchType.event,this._onDidChangePattern=new r.Q5,this._onDidChangeOpenState=new r.Q5,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new a.SL,this.disposables=new a.SL,this._mode=null!==(l=e.options.defaultFindMode)&&void 0!==l?l:P.Highlight,this._matchType=null!==(c=e.options.defaultFindMatchType)&&void 0!==c?c:F.Fuzzy,t.onDidSplice(this.onDidSpliceModel,this,this.disposables)}updateOptions(e={}){void 0!==e.defaultFindMode&&(this.mode=e.defaultFindMode),void 0!==e.defaultFindMatchType&&(this.matchType=e.defaultFindMatchType)}onDidSpliceModel(){this.widget&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}render(){var e,t,i,n;const o=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&o?null===(e=this.tree.options.showNotFoundMessage)||void 0===e||e?null===(t=this.widget)||void 0===t||t.showMessage({type:2,content:(0,W.NC)("not found","No elements found.")}):null===(i=this.widget)||void 0===i||i.showMessage({type:2}):null===(n=this.widget)||void 0===n||n.clearMessage()}shouldAllowFocus(e){return!this.widget||!this.pattern||this._mode===P.Filter||this.filter.totalCount>0&&this.filter.matchCount<=1||!B.CL.isDefault(e.filterData)}layout(e){var t;this.width=e,null===(t=this.widget)||void 0===t||t.layout(e)}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}function Y(e){let t=_.Unknown;return(0,n.uU)(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=_.Twistie:(0,n.uU)(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?t=_.Element:(0,n.uU)(e.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(t=_.Filter),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function Z(e,t){t(e),e.children.forEach((e=>Z(e,t)))}class X{get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new r.Q5,this.onDidChange=this._onDidChange.event}set(e,t){!(null==t?void 0:t.__forceEvent)&&(0,o.fS)(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const e=this;this._onDidChange.fire({get elements(){return e.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map((e=>e.element))),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const e=this.createNodeSet(),i=t=>e.delete(t);return t.forEach((e=>Z(e,i))),void this.set([...e.values()])}const i=new Set,n=e=>i.add(this.identityProvider.getId(e.element).toString());t.forEach((e=>Z(e,n)));const o=new Map,s=e=>o.set(this.identityProvider.getId(e.element).toString(),e);e.forEach((e=>Z(e,s)));const r=[];for(const e of this.nodes){const t=this.identityProvider.getId(e.element).toString();if(i.has(t)){const e=o.get(t);e&&e.visible&&r.push(e)}else r.push(e)}if(this.nodes.length>0&&0===r.length){const e=this.getFirstViewElementWithTrait();e&&r.push(e)}this._set(r,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class J extends l.sx{constructor(e,t){super(e),this.tree=t}onViewPointer(e){if((0,l.iK)(e.browserEvent.target)||(0,l.cK)(e.browserEvent.target)||(0,l.hD)(e.browserEvent.target))return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16;let o=!1;if(o="function"==typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick,o&&!n&&2!==e.browserEvent.detail)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return super.onViewPointer(e);if(t.collapsible){const i=this.tree.getNodeLocation(t),s=e.browserEvent.altKey;if(this.tree.setFocus([i]),this.tree.toggleCollapsed(i,s),o&&n)return}super.onViewPointer(e)}onDoubleClick(e){!e.browserEvent.target.classList.contains("monaco-tl-twistie")&&this.tree.expandOnDoubleClick&&super.onDoubleClick(e)}}class ee extends l.aV{constructor(e,t,i,n,o,s,r,a){super(e,t,i,n,a),this.focusTrait=o,this.selectionTrait=s,this.anchorTrait=r}createMouseController(e){return new J(this,e.tree)}splice(e,t,i=[]){if(super.splice(e,t,i),0===i.length)return;const n=[],s=[];let r;i.forEach(((t,i)=>{this.focusTrait.has(t)&&n.push(e+i),this.selectionTrait.has(t)&&s.push(e+i),this.anchorTrait.has(t)&&(r=e+i)})),n.length>0&&super.setFocus((0,o.EB)([...super.getFocus(),...n])),s.length>0&&super.setSelection((0,o.EB)([...super.getSelection(),...s])),"number"==typeof r&&super.setAnchor(r)}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map((e=>this.element(e))),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map((e=>this.element(e))),t)}setAnchor(e,t=!1){super.setAnchor(e),t||(void 0===e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class te{get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return r.ju.filter(r.ju.map(this.view.onMouseDblClick,Y),(e=>e.target!==_.Filter))}get onPointer(){return r.ju.map(this.view.onPointer,Y)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return r.ju.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){var e,t;return null!==(t=null===(e=this.findController)||void 0===e?void 0:e.mode)&&void 0!==t?t:P.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get findMatchType(){var e,t;return null!==(t=null===(e=this.findController)||void 0===e?void 0:e.matchType)&&void 0!==t?t:F.Fuzzy}set findMatchType(e){this.findController&&(this.findController.matchType=e)}get expandOnDoubleClick(){return void 0===this._options.expandOnDoubleClick||this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return void 0===this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}constructor(e,t,i,o,s={}){var c;this._user=e,this._options=s,this.eventBufferer=new r.E7,this.onDidChangeFindOpenState=r.ju.None,this.disposables=new a.SL,this._onWillRefilter=new r.Q5,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new r.Q5;const h=new K(i),d=new r.ZD,u=new r.ZD,g=this.disposables.add(new q(u.event)),p=new R;this.renderers=o.map((e=>new $(e,(()=>this.model),d.event,g,p,s)));for(const e of this.renderers)this.disposables.add(e);let m;var f,_;s.keyboardNavigationLabelProvider&&(m=new G(this,s.keyboardNavigationLabelProvider,s.filter),s=Object.assign(Object.assign({},s),{filter:m}),this.disposables.add(m)),this.focus=new X((()=>this.view.getFocusedElements()[0]),s.identityProvider),this.selection=new X((()=>this.view.getSelectedElements()[0]),s.identityProvider),this.anchor=new X((()=>this.view.getAnchorElement()),s.identityProvider),this.view=new ee(e,t,h,this.renderers,this.focus,this.selection,this.anchor,Object.assign(Object.assign({},(f=()=>this.model,(_=s)&&Object.assign(Object.assign({},_),{identityProvider:_.identityProvider&&{getId:e=>_.identityProvider.getId(e.element)},dnd:_.dnd&&new j(f,_.dnd),multipleSelectionController:_.multipleSelectionController&&{isSelectionSingleChangeEvent:e=>_.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},e),{element:e.element})),isSelectionRangeChangeEvent:e=>_.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))},accessibilityProvider:_.accessibilityProvider&&Object.assign(Object.assign({},_.accessibilityProvider),{getSetSize(e){const t=f(),i=t.getNodeLocation(e),n=t.getParentNodeLocation(i);return t.getNode(n).visibleChildrenCount},getPosInSet:e=>e.visibleChildIndex+1,isChecked:_.accessibilityProvider&&_.accessibilityProvider.isChecked?e=>_.accessibilityProvider.isChecked(e.element):void 0,getRole:_.accessibilityProvider&&_.accessibilityProvider.getRole?e=>_.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel:e=>_.accessibilityProvider.getAriaLabel(e.element),getWidgetAriaLabel:()=>_.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:_.accessibilityProvider&&_.accessibilityProvider.getWidgetRole?()=>_.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:_.accessibilityProvider&&_.accessibilityProvider.getAriaLevel?e=>_.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:_.accessibilityProvider.getActiveDescendantId&&(e=>_.accessibilityProvider.getActiveDescendantId(e.element))}),keyboardNavigationLabelProvider:_.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},_.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:e=>_.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)})}))),{tree:this})),this.model=this.createModel(e,this.view,s),d.input=this.model.onDidChangeCollapseState;const b=r.ju.forEach(this.model.onDidSplice,(e=>{this.eventBufferer.bufferEvents((()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)}))}),this.disposables);if(b((()=>null),null,this.disposables),u.input=r.ju.chain(r.ju.any(b,this.focus.onDidChange,this.selection.onDidChange)).debounce((()=>null),0).map((()=>{const e=new Set;for(const t of this.focus.getNodes())e.add(t);for(const t of this.selection.getNodes())e.add(t);return[...e.values()]})).event,!1!==s.keyboardSupport){const e=r.ju.chain(this.view.onKeyDown).filter((e=>!(0,l.cK)(e.target))).map((e=>new v.y(e)));e.filter((e=>15===e.keyCode)).on(this.onLeftArrow,this,this.disposables),e.filter((e=>17===e.keyCode)).on(this.onRightArrow,this,this.disposables),e.filter((e=>10===e.keyCode)).on(this.onSpace,this,this.disposables)}if((null===(c=s.findWidgetEnabled)||void 0===c||c)&&s.keyboardNavigationLabelProvider&&s.contextViewProvider){const e=this.options.findWidgetStyles?{styles:this.options.findWidgetStyles}:void 0;this.findController=new Q(this,this.model,this.view,m,s.contextViewProvider,e),this.focusNavigationFilter=e=>this.findController.shouldAllowFocus(e),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindMode=r.ju.None,this.onDidChangeFindMatchType=r.ju.None;this.styleElement=(0,n.dS)(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===O.Always)}updateOptions(e={}){var t;this._options=Object.assign(Object.assign({},this._options),e);for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions(this._options),null===(t=this.findController)||void 0===t||t.updateOptions(e),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===O.Always)}get options(){return this._options}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}domFocus(){this.view.domFocus()}layout(e,t){var i;this.view.layout(e,t),(0,V.hj)(t)&&(null===(i=this.findController)||void 0===i||i.layout(t))}style(e){const t=`.${this.view.domId}`,i=[];e.treeIndentGuidesStroke&&(i.push(`.monaco-list${t}:hover .monaco-tl-indent > .indent-guide, .monaco-list${t}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeInactiveIndentGuidesStroke}; }`),i.push(`.monaco-list${t} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`)),this.styleElement.textContent=i.join("\n"),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}getNodeLocation(e){return this.model.getNodeLocation(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}toggleCollapsed(e,t=!1){return this.model.setCollapsed(e,void 0,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){const i=e.map((e=>this.model.getNode(e)));this.selection.set(i,t);const n=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setSelection(n,t,!0)}getSelection(){return this.selection.get()}setFocus(e,t){const i=e.map((e=>this.model.getNode(e)));this.focus.set(i,t);const n=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setFocus(n,t,!0)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);-1!==i&&this.view.reveal(i,t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!0)){const e=this.model.getParentNodeLocation(n);if(!e)return;const t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!1)){if(!i.children.some((e=>e.visible)))return;const[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i),o=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,o)}dispose(){(0,a.B9)(this.disposables),this.view.dispose()}}class ie{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new I(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare:(e,t)=>i.sorter.compare(e.element,t.element)}),this.identityProvider=i.identityProvider}setChildren(e,t=E.$.empty(),i={}){const n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=E.$.empty(),i){const n=new Set,o=new Set;this.model.splice([...e,0],Number.MAX_VALUE,t,Object.assign(Object.assign({},i),{onDidCreateNode:e=>{var t;if(null===e.element)return;const s=e;if(n.add(s.element),this.nodes.set(s.element,s),this.identityProvider){const e=this.identityProvider.getId(s.element).toString();o.add(e),this.nodesByIdentity.set(e,s)}null===(t=i.onDidCreateNode)||void 0===t||t.call(i,s)},onDidDeleteNode:e=>{var t;if(null===e.element)return;const s=e;if(n.has(s.element)||this.nodes.delete(s.element),this.identityProvider){const e=this.identityProvider.getId(s.element).toString();o.has(e)||this.nodesByIdentity.delete(e)}null===(t=i.onDidDeleteNode)||void 0===t||t.call(i,s)}}))}preserveCollapseState(e=E.$.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),E.$.map(e,(e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){const i=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(i)}if(!t){let t;return t=void 0===e.collapsed?void 0:e.collapsed===f.Collapsed||e.collapsed===f.PreserveOrCollapsed||e.collapsed!==f.Expanded&&e.collapsed!==f.PreserveOrExpanded&&Boolean(e.collapsed),Object.assign(Object.assign({},e),{children:this.preserveCollapseState(e.children),collapsed:t})}const i="boolean"==typeof e.collapsible?e.collapsible:t.collapsible;let n;return n=void 0===e.collapsed||e.collapsed===f.PreserveOrCollapsed||e.collapsed===f.PreserveOrExpanded?t.collapsed:e.collapsed===f.Collapsed||e.collapsed!==f.Expanded&&Boolean(e.collapsed),Object.assign(Object.assign({},e),{collapsible:i,collapsed:n,children:this.preserveCollapseState(e.children)})}))}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new w(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new w(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new w(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(null===e)return[];const t=this.nodes.get(e);if(!t)throw new w(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function ne(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:E.$.map(E.$.from(e.children),ne),collapsible:e.collapsible,collapsed:e.collapsed}}function oe(e){const t=[e.element],i=e.incompressible||!1;let n,o;for(;[o,n]=E.$.consume(E.$.from(e.children),2),1===o.length&&!o[0].incompressible;)e=o[0],t.push(e.element);return{element:{elements:t,incompressible:i},children:E.$.map(E.$.concat(o,n),oe),collapsible:e.collapsible,collapsed:e.collapsed}}function se(e,t=0){let i;return i=tse(e,0))),0===t&&e.element.incompressible?{element:e.element.elements[t],children:i,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[t],children:i,collapsible:e.collapsible,collapsed:e.collapsed}}function re(e){return se(e,0)}function ae(e,t,i){return e.element===t?Object.assign(Object.assign({},e),{children:i}):Object.assign(Object.assign({},e),{children:E.$.map(E.$.from(e.children),(e=>ae(e,t,i)))})}class le{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new ie(e,t,i),this.enabled=void 0===i.compressionEnabled||i.compressionEnabled,this.identityProvider=i.identityProvider}setChildren(e,t=E.$.empty(),i){const n=i.diffIdentityProvider&&(o=i.diffIdentityProvider,{getId:e=>e.elements.map((e=>o.getId(e).toString())).join("\0")});var o;if(null===e){const e=E.$.map(t,this.enabled?oe:ne);return void this._setChildren(null,e,{diffIdentityProvider:n,diffDepth:1/0})}const s=this.nodes.get(e);if(!s)throw new w(this.user,"Unknown compressed tree node");const r=this.model.getNode(s),a=this.model.getParentNodeLocation(s),l=this.model.getNode(a),c=ae(re(r),e,t),h=(this.enabled?oe:ne)(c),d=l.children.map((e=>e===r?h:e));this._setChildren(l.element,d,{diffIdentityProvider:n,diffDepth:r.depth-l.depth})}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const t=this.model.getNode().children,i=E.$.map(t,re),n=E.$.map(i,e?oe:ne);this._setChildren(null,n,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const n=new Set;this.model.setChildren(e,t,Object.assign(Object.assign({},i),{onDidCreateNode:e=>{for(const t of e.element.elements)n.add(t),this.nodes.set(t,e.element)},onDidDeleteNode:e=>{for(const t of e.element.elements)n.has(t)||this.nodes.delete(t)}}))}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if(void 0===e)return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return null===i?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;const t=this.nodes.get(e);if(!t)throw new w(this.user,`Tree element not found: ${e}`);return t}}const ce=e=>e[e.length-1];class he{get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map((e=>new he(this.unwrapper,e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e,t){this.unwrapper=e,this.node=t}}class de{get onDidSplice(){return r.ju.map(this.model.onDidSplice,(({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map((e=>this.nodeMapper.map(e))),deletedNodes:t.map((e=>this.nodeMapper.map(e)))})))}get onDidChangeCollapseState(){return r.ju.map(this.model.onDidChangeCollapseState,(({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t})))}get onDidChangeRenderNodeCount(){return r.ju.map(this.model.onDidChangeRenderNodeCount,(e=>this.nodeMapper.map(e)))}constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||ce;const n=e=>this.elementMapper(e.elements);this.nodeMapper=new S((e=>new he(n,e))),this.model=new le(e,function(e,t){return{splice(i,n,o){t.splice(i,n,o.map((t=>e.map(t))))},updateElementHeight(e,i){t.updateElementHeight(e,i)}}}(this.nodeMapper,t),function(e,t){return Object.assign(Object.assign({},t),{identityProvider:t.identityProvider&&{getId:i=>t.identityProvider.getId(e(i))},sorter:t.sorter&&{compare:(e,i)=>t.sorter.compare(e.elements[0],i.elements[0])},filter:t.filter&&{filter:(i,n)=>t.filter.filter(e(i),n)}})}(n,i))}setChildren(e,t=E.$.empty(),i={}){this.model.setChildren(e,t,i)}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return null==t?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var ue=i(49898);class ge extends te{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(e,t,i,n,o={}){super(e,t,i,n,o),this.user=e}setChildren(e,t=E.$.empty(),i){this.model.setChildren(e,t,i)}rerender(e){void 0!==e?this.model.rerender(e):this.view.rerender()}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new ie(e,t,i)}}class pe{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}constructor(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){const o=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);1===o.element.elements.length?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=o,this.renderer.renderCompressedElements(o,t,i.data,n))}disposeElement(e,t,i,n){var o,s,r,a;i.compressedTreeNode?null===(s=(o=this.renderer).disposeCompressedElements)||void 0===s||s.call(o,i.compressedTreeNode,t,i.data,n):null===(a=(r=this.renderer).disposeElement)||void 0===a||a.call(r,e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return!!this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}!function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);s>3&&r&&Object.defineProperty(t,i,r)}([ue.H],pe.prototype,"compressedTreeNodeProvider",null);class me extends ge{constructor(e,t,i,n,o={}){const s=()=>this;super(e,t,i,n.map((e=>new pe(s,e))),function(e,t){return t&&Object.assign(Object.assign({},t),{keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(i){let n;try{n=e().getCompressedTreeNode(i)}catch(e){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i)}return 1===n.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(n.element.elements)}}})}(s,o))}setChildren(e,t=E.$.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new de(e,t,i)}updateOptions(e={}){super.updateOptions(e),void 0!==e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var fe=i(17301),_e=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function ve(e){return Object.assign(Object.assign({},e),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function be(e,t){return!!t.parent&&(t.parent===e||be(e,t.parent))}class Ce{get element(){return this.node.element.element}get children(){return this.node.children.map((e=>new Ce(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class ye{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...M.k.asClassNameArray(A.l.treeItemLoading)),!0):(t.classList.remove(...M.k.asClassNameArray(A.l.treeItemLoading)),!1)}disposeElement(e,t,i,n){var o,s;null===(s=(o=this.renderer).disposeElement)||void 0===s||s.call(o,this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function we(e){return{browserEvent:e.browserEvent,elements:e.elements.map((e=>e.element))}}function Se(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}class ke extends C.kX{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function xe(e){return e instanceof C.kX?new ke(e):e}class Le{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,xe(e),t)}onDragOver(e,t,i,n,o=!0){return this.dnd.onDragOver(xe(e),t&&t.element,i,n)}drop(e,t,i,n){this.dnd.drop(xe(e),t&&t.element,i,n)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}}function Ee(e){return e&&Object.assign(Object.assign({},e),{collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:t=>e.identityProvider.getId(t.element)},dnd:e.dnd&&new Le(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:t=>e.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},t),{element:t.element})),isSelectionRangeChangeEvent:t=>e.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))},accessibilityProvider:e.accessibilityProvider&&Object.assign(Object.assign({},e.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>{var i;return!!(null===(i=e.accessibilityProvider)||void 0===i?void 0:i.isChecked(t.element))}:void 0,getAriaLabel:t=>e.accessibilityProvider.getAriaLabel(t.element),getWidgetAriaLabel:()=>e.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))}),filter:e.filter&&{filter:(t,i)=>e.filter.filter(t.element,i)},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}),sorter:void 0,expandOnlyOnTwistieClick:void 0===e.expandOnlyOnTwistieClick?void 0:"function"!=typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),defaultFindVisibility:t=>t.hasChildren&&t.stale?1:"number"==typeof e.defaultFindVisibility?e.defaultFindVisibility:void 0===e.defaultFindVisibility?2:e.defaultFindVisibility(t.element)})}function Ne(e,t){t(e),e.children.forEach((e=>Ne(e,t)))}class De{get onDidChangeFocus(){return r.ju.map(this.tree.onDidChangeFocus,we)}get onDidChangeSelection(){return r.ju.map(this.tree.onDidChangeSelection,we)}get onMouseDblClick(){return r.ju.map(this.tree.onMouseDblClick,Se)}get onPointer(){return r.ju.map(this.tree.onPointer,Se)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidDispose(){return this.tree.onDidDispose}constructor(e,t,i,n,o,s={}){this.user=e,this.dataSource=o,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new r.Q5,this._onDidChangeNodeSlowState=new r.Q5,this.nodeMapper=new S((e=>new Ce(e))),this.disposables=new a.SL,this.identityProvider=s.identityProvider,this.autoExpandSingleChildren=void 0!==s.autoExpandSingleChildren&&s.autoExpandSingleChildren,this.sorter=s.sorter,this.collapseByDefault=s.collapseByDefault,this.tree=this.createTree(e,t,i,n,s),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.root=ve({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Object.assign(Object.assign({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}createTree(e,t,i,n,o){const s=new K(i),r=n.map((e=>new ye(e,this.nodeMapper,this._onDidChangeNodeSlowState.event))),a=Ee(o)||{};return new ge(e,t,s,r,a)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}setInput(e,t){return _e(this,void 0,void 0,(function*(){this.refreshPromises.forEach((e=>e.cancel())),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};yield this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&"number"==typeof t.scrollTop&&(this.scrollTop=t.scrollTop)}))}_updateChildren(e=this.root.element,t=!0,i=!1,n,o){return _e(this,void 0,void 0,(function*(){if(void 0===this.root.element)throw new w(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield r.ju.toPromise(this._onDidRender.event));const s=this.getDataNode(e);if(yield this.refreshAndRenderNode(s,t,n,o),i)try{this.tree.rerender(s)}catch(e){}}))}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}expand(e,t=!1){return _e(this,void 0,void 0,(function*(){if(void 0===this.root.element)throw new w(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield r.ju.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i))return!1;if(i.refreshPromise&&(yield this.root.refreshPromise,yield r.ju.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i))return!1;const n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(yield this.root.refreshPromise,yield r.ju.toPromise(this._onDidRender.event)),n}))}setSelection(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map((e=>e.element))}setFocus(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map((e=>e.element))}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new w(this.user,`Data tree node not found: ${e}`);return t}refreshAndRenderNode(e,t,i,n){return _e(this,void 0,void 0,(function*(){yield this.refreshNode(e,t,i),this.render(e,i,n)}))}refreshNode(e,t,i){return _e(this,void 0,void 0,(function*(){let n;return this.subTreeRefreshPromises.forEach(((o,s)=>{!n&&function(e,t){return e===t||be(e,t)||be(t,e)}(s,e)&&(n=o.then((()=>this.refreshNode(e,t,i))))})),n||(e!==this.root&&this.tree.getNode(e).collapsed?(e.hasChildren=!!this.dataSource.hasChildren(e.element),void(e.stale=!0)):this.doRefreshSubTree(e,t,i))}))}doRefreshSubTree(e,t,i){return _e(this,void 0,void 0,(function*(){let n;e.refreshPromise=new Promise((e=>n=e)),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)}));try{const n=yield this.doRefreshNode(e,t,i);e.stale=!1,yield k.jT.settled(n.map((e=>this.doRefreshSubTree(e,t,i))))}finally{n()}}))}doRefreshNode(e,t,i){return _e(this,void 0,void 0,(function*(){let n;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){const t=this.doGetChildren(e);if((0,V.TW)(t))n=Promise.resolve(t);else{const i=(0,k.Vs)(800);i.then((()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)}),(e=>null)),n=t.finally((()=>i.cancel()))}}else n=Promise.resolve(E.$.empty());try{const o=yield n;return this.setChildren(e,o,t,i)}catch(t){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),(0,fe.n2)(t))return[];throw t}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}))}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return(0,V.TW)(i)?this.processChildren(i):(t=(0,k.PG)((()=>_e(this,void 0,void 0,(function*(){return this.processChildren(yield i)})))),this.refreshPromises.set(e,t),t.finally((()=>{this.refreshPromises.delete(e)})))}_onDidChangeCollapseState({node:e,deep:t}){null!==e.element&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(fe.dL))}setChildren(e,t,i,n){const o=[...t];if(0===e.children.length&&0===o.length)return[];const s=new Map,r=new Map;for(const t of e.children)if(s.set(t.element,t),this.identityProvider){const e=this.tree.isCollapsed(t);r.set(t.id,{node:t,collapsed:e})}const a=[],l=o.map((t=>{const o=!!this.dataSource.hasChildren(t);if(!this.identityProvider){const i=ve({element:t,parent:e,hasChildren:o});return o&&this.collapseByDefault&&!this.collapseByDefault(t)&&(i.collapsedByDefault=!1,a.push(i)),i}const l=this.identityProvider.getId(t).toString(),c=r.get(l);if(c){const e=c.node;return s.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=o,i?c.collapsed?(e.children.forEach((e=>Ne(e,(e=>this.nodes.delete(e.element))))),e.children.splice(0,e.children.length),e.stale=!0):a.push(e):o&&this.collapseByDefault&&!this.collapseByDefault(t)&&(e.collapsedByDefault=!1,a.push(e)),e}const h=ve({element:t,parent:e,id:l,hasChildren:o});return n&&n.viewState.focus&&n.viewState.focus.indexOf(l)>-1&&n.focus.push(h),n&&n.viewState.selection&&n.viewState.selection.indexOf(l)>-1&&n.selection.push(h),n&&n.viewState.expanded&&n.viewState.expanded.indexOf(l)>-1?a.push(h):o&&this.collapseByDefault&&!this.collapseByDefault(t)&&(h.collapsedByDefault=!1,a.push(h)),h}));for(const e of s.values())Ne(e,(e=>this.nodes.delete(e.element)));for(const e of l)this.nodes.set(e.element,e);return e.children.splice(0,e.children.length,...l),e!==this.root&&this.autoExpandSingleChildren&&1===l.length&&0===a.length&&(l[0].collapsedByDefault=!1,a.push(l[0])),a}render(e,t,i){const n=e.children.map((e=>this.asTreeElement(e,t))),o=i&&Object.assign(Object.assign({},i),{diffIdentityProvider:i.diffIdentityProvider&&{getId:e=>i.diffIdentityProvider.getId(e.element)}});this.tree.setChildren(e===this.root?null:e,n,o),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return i=!(t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1)&&e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?E.$.map(e.children,(e=>this.asTreeElement(e,t))):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose()}}class Te{get element(){return{elements:this.node.element.elements.map((e=>e.element)),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map((e=>new Te(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class Ie{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...M.k.asClassNameArray(A.l.treeItemLoading)),!0):(t.classList.remove(...M.k.asClassNameArray(A.l.treeItemLoading)),!1)}disposeElement(e,t,i,n){var o,s;null===(s=(o=this.renderer).disposeElement)||void 0===s||s.call(o,this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){var o,s;null===(s=(o=this.renderer).disposeCompressedElements)||void 0===s||s.call(o,this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=(0,a.B9)(this.disposables)}}class Ae extends De{constructor(e,t,i,n,o,s,r={}){super(e,t,i,o,s,r),this.compressionDelegate=n,this.compressibleNodeMapper=new S((e=>new Te(e))),this.filter=r.filter}createTree(e,t,i,n,o){const s=new K(i),r=n.map((e=>new Ie(e,this.nodeMapper,(()=>this.compressibleNodeMapper),this._onDidChangeNodeSlowState.event))),a=function(e){const t=e&&Ee(e);return t&&Object.assign(Object.assign({},t),{keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},t.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map((e=>e.element)))})})}(o)||{};return new me(e,t,s,r,a)}asTreeElement(e,t){return Object.assign({incompressible:this.compressionDelegate.isIncompressible(e.element)},super.asTreeElement(e,t))}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t){if(!this.identityProvider)return super.render(e,t);const i=e=>this.identityProvider.getId(e).toString(),n=e=>{const t=new Set;for(const n of e){const e=this.tree.getCompressedTreeNode(n===this.root?null:n);if(e.element)for(const n of e.element.elements)t.add(i(n.element))}return t},o=n(this.tree.getSelection()),s=n(this.tree.getFocus());super.render(e,t);const r=this.getSelection();let a=!1;const l=this.getFocus();let c=!1;const h=e=>{const t=e.element;if(t)for(let e=0;e{const t="boolean"==typeof(i=this.filter.filter(e,1))?i?1:0:N(i)?D(i.visibility):D(i);var i;if(2===t)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===t}))),super.processChildren(e)}}class Me extends te{constructor(e,t,i,n,o,s={}){super(e,t,i,n,s),this.user=e,this.dataSource=o,this.identityProvider=s.identityProvider}createModel(e,t,i){return new ie(e,t,i)}}var Re=i(33108),Oe=i(23193),Pe=i(93983),Fe=i(39282),Be=i(5606),He=i(72065),Ve=i(91847),We=i(89872),ze=i(86253),Ue=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},je=function(e,t){return function(i,n){t(i,n,e)}};const Ke=(0,He.yh)("listService");class qe{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new a.SL,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}setLastFocusedList(e){var t,i;e!==this._lastFocusedWidget&&(null===(t=this._lastFocusedWidget)||void 0===t||t.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,null===(i=this._lastFocusedWidget)||void 0===i||i.getHTMLElement().classList.add("last-focused"))}register(e,t){if(this._hasCreatedStyleController||(this._hasCreatedStyleController=!0,new l.wD((0,n.dS)(),"").style(ze.O2)),this.lists.some((t=>t.widget===e)))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),e.getHTMLElement()===document.activeElement&&this.setLastFocusedList(e),(0,a.F8)(e.onDidFocus((()=>this.setLastFocusedList(e))),(0,a.OF)((()=>this.lists.splice(this.lists.indexOf(i),1))),e.onDidDispose((()=>{this.lists=this.lists.filter((e=>e!==i)),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)})))}dispose(){this.disposables.dispose()}}const $e=new Pe.uy("listFocus",!0),Ge=new Pe.uy("listSupportsMultiselect",!0),Qe=Pe.Ao.and($e,Pe.Ao.not(Fe.d0)),Ye=new Pe.uy("listHasSelectionOrFocus",!1),Ze=new Pe.uy("listDoubleSelection",!1),Xe=new Pe.uy("listMultiSelection",!1),Je=new Pe.uy("listSelectionNavigation",!1),et=new Pe.uy("listSupportsFind",!0),tt=new Pe.uy("treeElementCanCollapse",!1),it=new Pe.uy("treeElementHasParent",!1),nt=new Pe.uy("treeElementCanExpand",!1),ot=new Pe.uy("treeElementHasChild",!1),st=new Pe.uy("treeFindOpen",!1),rt="listTypeNavigationMode",at="listAutomaticKeyboardNavigation";function lt(e,t){const i=e.createScoped(t.getHTMLElement());return $e.bindTo(i),i}const ct="workbench.list.multiSelectModifier",ht="workbench.list.openMode",dt="workbench.list.horizontalScrolling",ut="workbench.list.defaultFindMode",gt="workbench.list.typeNavigationMode",pt="workbench.list.keyboardNavigation",mt="workbench.list.scrollByPage",ft="workbench.list.defaultFindMatchType",_t="workbench.tree.indent",vt="workbench.tree.renderIndentGuides",bt="workbench.list.smoothScrolling",Ct="workbench.list.mouseWheelScrollSensitivity",yt="workbench.list.fastScrollSensitivity",wt="workbench.tree.expandMode";function St(e){return"alt"===e.getValue(ct)}class kt extends a.JT{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=St(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(ct)&&(this.useAltAsMultipleSelectionModifier=St(this.configurationService))})))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:(0,l.Zo)(e)}isSelectionRangeChangeEvent(e){return(0,l.wn)(e)}}function xt(e,t){var i;const n=e.get(Re.Ui),o=e.get(Ve.d),s=new a.SL;return[Object.assign(Object.assign({},t),{keyboardNavigationDelegate:{mightProducePrintableCharacter:e=>o.mightProducePrintableCharacter(e)},smoothScrolling:Boolean(n.getValue(bt)),mouseWheelScrollSensitivity:n.getValue(Ct),fastScrollSensitivity:n.getValue(yt),multipleSelectionController:null!==(i=t.multipleSelectionController)&&void 0!==i?i:s.add(new kt(n)),keyboardNavigationEventFilter:Mt(o),scrollByPage:Boolean(n.getValue(mt))}),s]}let Lt=class extends l.aV{constructor(e,t,i,n,o,s,r,a,l){const c=void 0!==o.horizontalScrolling?o.horizontalScrolling:Boolean(a.getValue(dt)),[h,d]=l.invokeFunction(xt,o);super(e,t,i,n,Object.assign(Object.assign({keyboardSupport:!1},h),{horizontalScrolling:c})),this.disposables.add(d),this.contextKeyService=lt(s,this),this.listSupportsMultiSelect=Ge.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport),Je.bindTo(this.contextKeyService).set(Boolean(o.selectionNavigation)),this.listHasSelectionOrFocus=Ye.bindTo(this.contextKeyService),this.listDoubleSelection=Ze.bindTo(this.contextKeyService),this.listMultiSelection=Xe.bindTo(this.contextKeyService),this.horizontalScrolling=o.horizontalScrolling,this._useAltAsMultipleSelectionModifier=St(a),this.disposables.add(this.contextKeyService),this.disposables.add(r.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(a.onDidChangeConfiguration((e=>{e.affectsConfiguration(ct)&&(this._useAltAsMultipleSelectionModifier=St(a));let t={};if(e.affectsConfiguration(dt)&&void 0===this.horizontalScrolling){const e=Boolean(a.getValue(dt));t=Object.assign(Object.assign({},t),{horizontalScrolling:e})}if(e.affectsConfiguration(mt)){const e=Boolean(a.getValue(mt));t=Object.assign(Object.assign({},t),{scrollByPage:e})}if(e.affectsConfiguration(bt)){const e=Boolean(a.getValue(bt));t=Object.assign(Object.assign({},t),{smoothScrolling:e})}if(e.affectsConfiguration(Ct)){const e=a.getValue(Ct);t=Object.assign(Object.assign({},t),{mouseWheelScrollSensitivity:e})}if(e.affectsConfiguration(yt)){const e=a.getValue(yt);t=Object.assign(Object.assign({},t),{fastScrollSensitivity:e})}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new Tt(this,Object.assign({configurationService:a},o)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,ze.TU)(e):ze.O2)}};Lt=Ue([je(5,Pe.i6),je(6,Ke),je(7,Re.Ui),je(8,He.TG)],Lt);let Et=class extends d{constructor(e,t,i,n,o,s,r,l,c){const h=void 0!==o.horizontalScrolling?o.horizontalScrolling:Boolean(l.getValue(dt)),[d,u]=c.invokeFunction(xt,o);super(e,t,i,n,Object.assign(Object.assign({keyboardSupport:!1},d),{horizontalScrolling:h})),this.disposables=new a.SL,this.disposables.add(u),this.contextKeyService=lt(s,this),this.horizontalScrolling=o.horizontalScrolling,this.listSupportsMultiSelect=Ge.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport),Je.bindTo(this.contextKeyService).set(Boolean(o.selectionNavigation)),this._useAltAsMultipleSelectionModifier=St(l),this.disposables.add(this.contextKeyService),this.disposables.add(r.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(ct)&&(this._useAltAsMultipleSelectionModifier=St(l));let t={};if(e.affectsConfiguration(dt)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(dt));t=Object.assign(Object.assign({},t),{horizontalScrolling:e})}if(e.affectsConfiguration(mt)){const e=Boolean(l.getValue(mt));t=Object.assign(Object.assign({},t),{scrollByPage:e})}if(e.affectsConfiguration(bt)){const e=Boolean(l.getValue(bt));t=Object.assign(Object.assign({},t),{smoothScrolling:e})}if(e.affectsConfiguration(Ct)){const e=l.getValue(Ct);t=Object.assign(Object.assign({},t),{mouseWheelScrollSensitivity:e})}if(e.affectsConfiguration(yt)){const e=l.getValue(yt);t=Object.assign(Object.assign({},t),{fastScrollSensitivity:e})}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new Tt(this,Object.assign({configurationService:l},o)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,ze.TU)(e):ze.O2)}dispose(){this.disposables.dispose(),super.dispose()}};Et=Ue([je(5,Pe.i6),je(6,Ke),je(7,Re.Ui),je(8,He.TG)],Et);let Nt=class extends m{constructor(e,t,i,n,o,s,r,a,l,c){const h=void 0!==s.horizontalScrolling?s.horizontalScrolling:Boolean(l.getValue(dt)),[d,u]=c.invokeFunction(xt,s);super(e,t,i,n,o,Object.assign(Object.assign({keyboardSupport:!1},d),{horizontalScrolling:h})),this.disposables.add(u),this.contextKeyService=lt(r,this),this.listSupportsMultiSelect=Ge.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==s.multipleSelectionSupport),Je.bindTo(this.contextKeyService).set(Boolean(s.selectionNavigation)),this.listHasSelectionOrFocus=Ye.bindTo(this.contextKeyService),this.listDoubleSelection=Ze.bindTo(this.contextKeyService),this.listMultiSelection=Xe.bindTo(this.contextKeyService),this.horizontalScrolling=s.horizontalScrolling,this._useAltAsMultipleSelectionModifier=St(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(s.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(ct)&&(this._useAltAsMultipleSelectionModifier=St(l));let t={};if(e.affectsConfiguration(dt)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(dt));t=Object.assign(Object.assign({},t),{horizontalScrolling:e})}if(e.affectsConfiguration(mt)){const e=Boolean(l.getValue(mt));t=Object.assign(Object.assign({},t),{scrollByPage:e})}if(e.affectsConfiguration(bt)){const e=Boolean(l.getValue(bt));t=Object.assign(Object.assign({},t),{smoothScrolling:e})}if(e.affectsConfiguration(Ct)){const e=l.getValue(Ct);t=Object.assign(Object.assign({},t),{mouseWheelScrollSensitivity:e})}if(e.affectsConfiguration(yt)){const e=l.getValue(yt);t=Object.assign(Object.assign({},t),{fastScrollSensitivity:e})}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new It(this,Object.assign({configurationService:l},s)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,ze.TU)(e):ze.O2)}dispose(){this.disposables.dispose(),super.dispose()}};Nt=Ue([je(6,Pe.i6),je(7,Ke),je(8,Re.Ui),je(9,He.TG)],Nt);class Dt extends a.JT{constructor(e,t){var i;super(),this.widget=e,this._onDidOpen=this._register(new r.Q5),this.onDidOpen=this._onDidOpen.event,this._register(r.ju.filter(this.widget.onDidChangeSelection,(e=>e.browserEvent instanceof KeyboardEvent))((e=>this.onSelectionFromKeyboard(e)))),this._register(this.widget.onPointer((e=>this.onPointer(e.element,e.browserEvent)))),this._register(this.widget.onMouseDblClick((e=>this.onMouseDblClick(e.element,e.browserEvent)))),"boolean"!=typeof(null==t?void 0:t.openOnSingleClick)&&(null==t?void 0:t.configurationService)?(this.openOnSingleClick="doubleClick"!==(null==t?void 0:t.configurationService.getValue(ht)),this._register(null==t?void 0:t.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(ht)&&(this.openOnSingleClick="doubleClick"!==(null==t?void 0:t.configurationService.getValue(ht)))})))):this.openOnSingleClick=null===(i=null==t?void 0:t.openOnSingleClick)||void 0===i||i}onSelectionFromKeyboard(e){if(1!==e.elements.length)return;const t=e.browserEvent,i="boolean"!=typeof t.preserveFocus||t.preserveFocus,n="boolean"==typeof t.pinned?t.pinned:!i;this._open(this.getSelectedElement(),i,n,!1,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick)return;if(2===t.detail)return;const i=1===t.button,n=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!0,i,n,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;const n=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!1,!0,n,t)}_open(e,t,i,n,o){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:o})}}class Tt extends Dt{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class It extends Dt{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class At extends Dt{constructor(e,t){super(e,t)}getSelectedElement(){var e;return null!==(e=this.widget.getSelection()[0])&&void 0!==e?e:void 0}}function Mt(e){let t=!1;return i=>{if(i.toKeyCodeChord().isModifierKey())return!1;if(t)return t=!1,!1;const n=e.softDispatch(i,i.target);return 1===(null==n?void 0:n.kind)?(t=!0,!1):(t=!1,!n)}}let Rt=class extends ge{constructor(e,t,i,n,o,s,r,a,l){const{options:c,getTypeNavigationMode:h,disposable:d}=s.invokeFunction(Wt,o);super(e,t,i,n,c),this.disposables.add(d),this.internals=new zt(this,o,h,o.overrideStyles,r,a,l),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};Rt=Ue([je(5,He.TG),je(6,Pe.i6),je(7,Ke),je(8,Re.Ui)],Rt);let Ot=class extends me{constructor(e,t,i,n,o,s,r,a,l){const{options:c,getTypeNavigationMode:h,disposable:d}=s.invokeFunction(Wt,o);super(e,t,i,n,c),this.disposables.add(d),this.internals=new zt(this,o,h,o.overrideStyles,r,a,l),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};Ot=Ue([je(5,He.TG),je(6,Pe.i6),je(7,Ke),je(8,Re.Ui)],Ot);let Pt=class extends Me{constructor(e,t,i,n,o,s,r,a,l,c){const{options:h,getTypeNavigationMode:d,disposable:u}=r.invokeFunction(Wt,s);super(e,t,i,n,o,h),this.disposables.add(u),this.internals=new zt(this,s,d,s.overrideStyles,a,l,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),void 0!==e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};Pt=Ue([je(6,He.TG),je(7,Pe.i6),je(8,Ke),je(9,Re.Ui)],Pt);let Ft=class extends De{get onDidOpen(){return this.internals.onDidOpen}constructor(e,t,i,n,o,s,r,a,l,c){const{options:h,getTypeNavigationMode:d,disposable:u}=r.invokeFunction(Wt,s);super(e,t,i,n,o,h),this.disposables.add(u),this.internals=new zt(this,s,d,s.overrideStyles,a,l,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};Ft=Ue([je(6,He.TG),je(7,Pe.i6),je(8,Ke),je(9,Re.Ui)],Ft);let Bt=class extends Ae{constructor(e,t,i,n,o,s,r,a,l,c,h){const{options:d,getTypeNavigationMode:u,disposable:g}=a.invokeFunction(Wt,r);super(e,t,i,n,o,s,d),this.disposables.add(g),this.internals=new zt(this,r,u,r.overrideStyles,l,c,h),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};function Ht(e){const t=e.getValue(ut);if("highlight"===t)return P.Highlight;if("filter"===t)return P.Filter;const i=e.getValue(pt);return"simple"===i||"highlight"===i?P.Highlight:"filter"===i?P.Filter:void 0}function Vt(e){const t=e.getValue(ft);return"fuzzy"===t?F.Fuzzy:"contiguous"===t?F.Contiguous:void 0}function Wt(e,t){var i;const n=e.get(Re.Ui),o=e.get(Be.u),s=e.get(Pe.i6),r=e.get(He.TG),a=void 0!==t.horizontalScrolling?t.horizontalScrolling:Boolean(n.getValue(dt)),[c,h]=r.invokeFunction(xt,t),d=t.additionalScrollHeight,u=void 0!==t.renderIndentGuides?t.renderIndentGuides:n.getValue(vt);return{getTypeNavigationMode:()=>{const e=s.getContextKeyValue(rt);if("automatic"===e)return l.AA.Automatic;if("trigger"===e)return l.AA.Trigger;if(!1===s.getContextKeyValue(at))return l.AA.Trigger;const t=n.getValue(gt);return"automatic"===t?l.AA.Automatic:"trigger"===t?l.AA.Trigger:void 0},disposable:h,options:Object.assign(Object.assign({keyboardSupport:!1},c),{indent:"number"==typeof n.getValue(_t)?n.getValue(_t):void 0,renderIndentGuides:u,smoothScrolling:Boolean(n.getValue(bt)),defaultFindMode:Ht(n),defaultFindMatchType:Vt(n),horizontalScrolling:a,scrollByPage:Boolean(n.getValue(mt)),additionalScrollHeight:d,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:null!==(i=t.expandOnlyOnTwistieClick)&&void 0!==i?i:"doubleClick"===n.getValue(wt),contextViewProvider:o,findWidgetStyles:ze.uX})}}Bt=Ue([je(7,He.TG),je(8,Pe.i6),je(9,Ke),je(10,Re.Ui)],Bt);let zt=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(e,t,i,n,o,s,r){var a;this.tree=e,this.disposables=[],this.contextKeyService=lt(o,e),this.listSupportsMultiSelect=Ge.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==t.multipleSelectionSupport),Je.bindTo(this.contextKeyService).set(Boolean(t.selectionNavigation)),this.listSupportFindWidget=et.bindTo(this.contextKeyService),this.listSupportFindWidget.set(null===(a=t.findWidgetEnabled)||void 0===a||a),this.hasSelectionOrFocus=Ye.bindTo(this.contextKeyService),this.hasDoubleSelection=Ze.bindTo(this.contextKeyService),this.hasMultiSelection=Xe.bindTo(this.contextKeyService),this.treeElementCanCollapse=tt.bindTo(this.contextKeyService),this.treeElementHasParent=it.bindTo(this.contextKeyService),this.treeElementCanExpand=nt.bindTo(this.contextKeyService),this.treeElementHasChild=ot.bindTo(this.contextKeyService),this.treeFindOpen=st.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=St(r),this.updateStyleOverrides(n);const l=()=>{const t=e.getFocus()[0];if(!t)return;const i=e.getNode(t);this.treeElementCanCollapse.set(i.collapsible&&!i.collapsed),this.treeElementHasParent.set(!!e.getParentElement(t)),this.treeElementCanExpand.set(i.collapsible&&i.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(t))},c=new Set;c.add(rt),c.add(at),this.disposables.push(this.contextKeyService,s.register(e),e.onDidChangeSelection((()=>{const t=e.getSelection(),i=e.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.hasSelectionOrFocus.set(t.length>0||i.length>0),this.hasMultiSelection.set(t.length>1),this.hasDoubleSelection.set(2===t.length)}))})),e.onDidChangeFocus((()=>{const t=e.getSelection(),i=e.getFocus();this.hasSelectionOrFocus.set(t.length>0||i.length>0),l()})),e.onDidChangeCollapseState(l),e.onDidChangeModel(l),e.onDidChangeFindOpenState((e=>this.treeFindOpen.set(e))),r.onDidChangeConfiguration((n=>{let o={};if(n.affectsConfiguration(ct)&&(this._useAltAsMultipleSelectionModifier=St(r)),n.affectsConfiguration(_t)){const e=r.getValue(_t);o=Object.assign(Object.assign({},o),{indent:e})}if(n.affectsConfiguration(vt)&&void 0===t.renderIndentGuides){const e=r.getValue(vt);o=Object.assign(Object.assign({},o),{renderIndentGuides:e})}if(n.affectsConfiguration(bt)){const e=Boolean(r.getValue(bt));o=Object.assign(Object.assign({},o),{smoothScrolling:e})}if(n.affectsConfiguration(ut)||n.affectsConfiguration(pt)){const e=Ht(r);o=Object.assign(Object.assign({},o),{defaultFindMode:e})}if(n.affectsConfiguration(gt)||n.affectsConfiguration(pt)){const e=i();o=Object.assign(Object.assign({},o),{typeNavigationMode:e})}if(n.affectsConfiguration(ft)){const e=Vt(r);o=Object.assign(Object.assign({},o),{defaultFindMatchType:e})}if(n.affectsConfiguration(dt)&&void 0===t.horizontalScrolling){const e=Boolean(r.getValue(dt));o=Object.assign(Object.assign({},o),{horizontalScrolling:e})}if(n.affectsConfiguration(mt)){const e=Boolean(r.getValue(mt));o=Object.assign(Object.assign({},o),{scrollByPage:e})}if(n.affectsConfiguration(wt)&&void 0===t.expandOnlyOnTwistieClick&&(o=Object.assign(Object.assign({},o),{expandOnlyOnTwistieClick:"doubleClick"===r.getValue(wt)})),n.affectsConfiguration(Ct)){const e=r.getValue(Ct);o=Object.assign(Object.assign({},o),{mouseWheelScrollSensitivity:e})}if(n.affectsConfiguration(yt)){const e=r.getValue(yt);o=Object.assign(Object.assign({},o),{fastScrollSensitivity:e})}Object.keys(o).length>0&&e.updateOptions(o)})),this.contextKeyService.onDidChangeContext((t=>{t.affectsSome(c)&&e.updateOptions({typeNavigationMode:i()})}))),this.navigator=new At(e,Object.assign({configurationService:r},t)),this.disposables.push(this.navigator)}updateOptions(e){void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){this.tree.style(e?(0,ze.TU)(e):ze.O2)}dispose(){this.disposables=(0,a.B9)(this.disposables)}};zt=Ue([je(4,Pe.i6),je(5,Ke),je(6,Re.Ui)],zt),We.B.as(Oe.IP.Configuration).registerConfiguration({id:"workbench",order:7,title:(0,W.NC)("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[ct]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,W.NC)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,W.NC)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:(0,W.NC)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[ht]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,W.NC)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[dt]:{type:"boolean",default:!1,description:(0,W.NC)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[mt]:{type:"boolean",default:!1,description:(0,W.NC)("list.scrollByPage","Controls whether clicks in the scrollbar scroll page by page.")},[_t]:{type:"number",default:8,minimum:4,maximum:40,description:(0,W.NC)("tree indent setting","Controls tree indentation in pixels.")},[vt]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:(0,W.NC)("render tree indent guides","Controls whether the tree should render indent guides.")},[bt]:{type:"boolean",default:!1,description:(0,W.NC)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Ct]:{type:"number",default:1,markdownDescription:(0,W.NC)("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[yt]:{type:"number",default:5,markdownDescription:(0,W.NC)("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[ut]:{type:"string",enum:["highlight","filter"],enumDescriptions:[(0,W.NC)("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),(0,W.NC)("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:(0,W.NC)("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[pt]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[(0,W.NC)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),(0,W.NC)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),(0,W.NC)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:(0,W.NC)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:(0,W.NC)("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' and\t'workbench.list.typeNavigationMode' instead.")},[ft]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[(0,W.NC)("defaultFindMatchTypeSettingKey.fuzzy","Use fuzzy matching when searching."),(0,W.NC)("defaultFindMatchTypeSettingKey.contiguous","Use contiguous matching when searching.")],default:"fuzzy",description:(0,W.NC)("defaultFindMatchTypeSettingKey","Controls the type of matching used when searching lists and trees in the workbench.")},[wt]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,W.NC)("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[gt]:{type:"string",enum:["automatic","trigger"],default:"automatic",description:(0,W.NC)("typeNavigationMode","Controls the how type navigation works in lists and trees in the workbench. When set to 'trigger', type navigation begins once the 'list.triggerTypeNavigation' command is run.")}}})},43557:(e,t,i)=>{"use strict";i.d(t,{VZ:()=>r,in:()=>a,kw:()=>h,qA:()=>d});var n=i(4669),o=i(5976),s=i(93983);const r=(0,i(72065).yh)("logService");var a;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(a||(a={}));const l=a.Info;class c extends o.JT{constructor(){super(...arguments),this.level=l,this._onDidChangeLogLevel=this._register(new n.Q5),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==a.Off&&this.level<=e}}class h extends c{constructor(e=l,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(a.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(a.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(a.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(a.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}dispose(){}}class d extends c{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const i of this.loggers)i.trace(e,...t)}debug(e,...t){for(const i of this.loggers)i.debug(e,...t)}info(e,...t){for(const i of this.loggers)i.info(e,...t)}error(e,...t){for(const i of this.loggers)i.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose()}}new s.uy("logLevel",function(e){switch(e){case a.Trace:return"trace";case a.Debug:return"debug";case a.Info:return"info";case a.Warning:return"warn";case a.Error:return"error";case a.Off:return"off"}}(a.Info))},98674:(e,t,i)=>{"use strict";i.d(t,{H0:()=>o,ZL:()=>n,lT:()=>l});var n,o,s=i(14603),r=i(63580),a=i(72065);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(n||(n={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,r.NC)("sev.error","Error"),t[e.Warning]=(0,r.NC)("sev.warning","Warning"),t[e.Info]=(0,r.NC)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case s.Z.Error:return e.Error;case s.Z.Warning:return e.Warning;case s.Z.Info:return e.Info;case s.Z.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return s.Z.Error;case e.Warning:return s.Z.Warning;case e.Info:return s.Z.Info;case e.Hint:return s.Z.Ignore}}}(n||(n={})),function(e){const t="";function i(e,i){const o=[t];return e.source?o.push(e.source.replace("¦","\\¦")):o.push(t),e.code?"string"==typeof e.code?o.push(e.code.replace("¦","\\¦")):o.push(e.code.value.replace("¦","\\¦")):o.push(t),void 0!==e.severity&&null!==e.severity?o.push(n.toString(e.severity)):o.push(t),e.message&&i?o.push(e.message.replace("¦","\\¦")):o.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?o.push(e.startLineNumber.toString()):o.push(t),void 0!==e.startColumn&&null!==e.startColumn?o.push(e.startColumn.toString()):o.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?o.push(e.endLineNumber.toString()):o.push(t),void 0!==e.endColumn&&null!==e.endColumn?o.push(e.endColumn.toString()):o.push(t),o.push(t),o.join("¦")}e.makeKey=function(e){return i(e,!0)},e.makeKeyOptionalMessage=i}(o||(o={}));const l=(0,a.yh)("markerService")},59422:(e,t,i)=>{"use strict";i.d(t,{EO:()=>a,lT:()=>r,zb:()=>s});var n=i(14603),o=i(72065),s=n.Z;const r=(0,o.yh)("notificationService");class a{}},50988:(e,t,i)=>{"use strict";i.d(t,{Gs:()=>a,v4:()=>s,xI:()=>l,xn:()=>r});var n=i(97295),o=i(70666);const s=(0,i(72065).yh)("openerService");function r(e,t){return o.o.isUri(e)?(0,n.qq)(e.scheme,t):(0,n.ok)(e,t+":")}function a(e,...t){return t.some((t=>r(e,t)))}function l(e){let t;const i=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(e.fragment);return i&&(t={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1,endLineNumber:i[4]?parseInt(i[4]):void 0,endColumn:i[4]?i[5]?parseInt(i[5]):1:void 0},e=e.with({fragment:""})),{selection:t,uri:e}}},90535:(e,t,i)=>{"use strict";i.d(t,{Ex:()=>s,R9:()=>o,ek:()=>r});var n=i(72065);const o=(0,n.yh)("progressService");Object.freeze({total(){},worked(){},done(){}});class s{constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}s.None=Object.freeze({report(){}});const r=(0,n.yh)("editorProgressService")},90725:(e,t,i)=>{"use strict";i.d(t,{IP:()=>a,Ry:()=>n});var n,o=i(9488),s=i(5976),r=i(89872);!function(e){e[e.PRESERVE=0]="PRESERVE",e[e.LAST=1]="LAST"}(n||(n={}));const a={Quickaccess:"workbench.contributions.quickaccess"};r.B.add(a.Quickaccess,new class{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort(((e,t)=>t.prefix.length-e.prefix.length)),(0,s.OF)((()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)}))}getQuickAccessProviders(){return(0,o.kX)([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find((t=>e.startsWith(t.prefix)))||this.defaultProvider}})},41157:(e,t,i)=>{"use strict";i.d(t,{Jq:()=>s,X5:()=>o,eJ:()=>a,jG:()=>r});var n=i(72065);const o={ctrlCmd:!1,alt:!1};var s,r;!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(s||(s={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(r||(r={})),new class{constructor(e){this.options=e}};const a=(0,n.yh)("quickInputService")},89872:(e,t,i)=>{"use strict";i.d(t,{B:()=>s});var n=i(35146),o=i(98401);const s=new class{constructor(){this.data=new Map}add(e,t){n.ok(o.HD(e)),n.ok(o.Kn(t)),n.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},26904:(e,t,i)=>{"use strict";i.d(t,{Uy:()=>p,vm:()=>_,fk:()=>m});var n,o,s=i(4669),r=i(5976),a=i(98401),l=i(15393),c=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};!function(e){e[e.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",e[e.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"}(n||(n={})),function(e){e[e.None=0]="None",e[e.Initialized=1]="Initialized",e[e.Closed=2]="Closed"}(o||(o={}));class h extends r.JT{constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new s.Q5),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=o.None,this.cache=new Map,this.flushDelayer=new l.rH(h.DEFAULT_FLUSH_DELAY),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal((e=>this.onDidChangeItemsExternal(e))))}onDidChangeItemsExternal(e){var t,i;null===(t=e.changed)||void 0===t||t.forEach(((e,t)=>this.accept(t,e))),null===(i=e.deleted)||void 0===i||i.forEach((e=>this.accept(e,void 0)))}accept(e,t){if(this.state===o.Closed)return;let i=!1;(0,a.Jp)(t)?i=this.cache.delete(e):this.cache.get(e)!==t&&(this.cache.set(e,t),i=!0),i&&this._onDidChangeStorage.fire(e)}get(e,t){const i=this.cache.get(e);return(0,a.Jp)(i)?t:i}getBoolean(e,t){const i=this.get(e);return(0,a.Jp)(i)?t:"true"===i}getNumber(e,t){const i=this.get(e);return(0,a.Jp)(i)?t:parseInt(i,10)}set(e,t){return c(this,void 0,void 0,(function*(){if(this.state===o.Closed)return;if((0,a.Jp)(t))return this.delete(e);const i=String(t);return this.cache.get(e)!==i?(this.cache.set(e,i),this.pendingInserts.set(e,i),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire(e),this.doFlush()):void 0}))}delete(e){return c(this,void 0,void 0,(function*(){if(this.state!==o.Closed)return this.cache.delete(e)?(this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire(e),this.doFlush()):void 0}))}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}flushPending(){return c(this,void 0,void 0,(function*(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally((()=>{var e;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)null===(e=this.whenFlushedCallbacks.pop())||void 0===e||e()}))}))}doFlush(e){return c(this,void 0,void 0,(function*(){return this.flushDelayer.trigger((()=>this.flushPending()),e)}))}dispose(){this.flushDelayer.dispose(),super.dispose()}}h.DEFAULT_FLUSH_DELAY=100;class d{constructor(){this.onDidChangeItemsExternal=s.ju.None,this.items=new Map}updateItems(e){var t,i;return c(this,void 0,void 0,(function*(){null===(t=e.insert)||void 0===t||t.forEach(((e,t)=>this.items.set(t,e))),null===(i=e.delete)||void 0===i||i.forEach((e=>this.items.delete(e)))}))}}var u=i(72065);const g="__$__targetStorageMarker",p=(0,u.yh)("storageService");var m;!function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(m||(m={}));class f extends r.JT{constructor(e={flushInterval:f.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new s.K3),this.onDidChangeValue=this._onDidChangeValue.event,this._onDidChangeTarget=this._register(new s.K3),this._onWillSaveState=this._register(new s.Q5),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}emitDidChangeValue(e,t){if(t===g){switch(e){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:t,target:this.getKeyTargets(e)[t]})}get(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.get(e,i)}getBoolean(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getBoolean(e,i)}getNumber(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getNumber(e,i)}store(e,t,i,n){(0,a.Jp)(t)?this.remove(e,i):this.withPausedEmitters((()=>{var o;this.updateKeyTarget(e,i,n),null===(o=this.getStorage(i))||void 0===o||o.set(e,t)}))}remove(e,t){this.withPausedEmitters((()=>{var i;this.updateKeyTarget(e,t,void 0),null===(i=this.getStorage(t))||void 0===i||i.delete(e)}))}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i){var n,o;const s=this.getKeyTargets(t);"number"==typeof i?s[e]!==i&&(s[e]=i,null===(n=this.getStorage(t))||void 0===n||n.set(g,JSON.stringify(s))):"number"==typeof s[e]&&(delete s[e],null===(o=this.getStorage(t))||void 0===o||o.set(g,JSON.stringify(s)))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(e){switch(e){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(e){const t=this.getStorage(e);return t?function(e){const t=e.get(g);if(t)try{return JSON.parse(t)}catch(e){}return Object.create(null)}(t):Object.create(null)}}f.DEFAULT_FLUSH_INTERVAL=6e4;class _ extends f{constructor(){super(),this.applicationStorage=this._register(new h(new d,{hint:n.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new h(new d,{hint:n.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new h(new d,{hint:n.STORAGE_IN_MEMORY})),this._register(this.workspaceStorage.onDidChangeStorage((e=>this.emitDidChangeValue(1,e)))),this._register(this.profileStorage.onDidChangeStorage((e=>this.emitDidChangeValue(0,e)))),this._register(this.applicationStorage.onDidChangeStorage((e=>this.emitDidChangeValue(-1,e))))}getStorage(e){switch(e){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}},10829:(e,t,i)=>{"use strict";i.d(t,{b:()=>n});const n=(0,i(72065).yh)("telemetryService")},86253:(e,t,i)=>{"use strict";i.d(t,{BM:()=>p,Hc:()=>c,O2:()=>u,TU:()=>g,ZR:()=>m,b5:()=>a,eO:()=>s,ku:()=>d,pl:()=>l,uX:()=>h,wG:()=>r});var n=i(73910),o=i(41264);const s={keybindingLabelBackground:(0,n.n_1)(n.oQ$),keybindingLabelForeground:(0,n.n_1)(n.lWp),keybindingLabelBorder:(0,n.n_1)(n.AWI),keybindingLabelBottomBorder:(0,n.n_1)(n.K19),keybindingLabelShadow:(0,n.n_1)(n.rh)},r={buttonForeground:(0,n.n_1)(n.j5u),buttonSeparator:(0,n.n_1)(n.iFQ),buttonBackground:(0,n.n_1)(n.b7$),buttonHoverBackground:(0,n.n_1)(n.GO4),buttonSecondaryForeground:(0,n.n_1)(n.qBU),buttonSecondaryBackground:(0,n.n_1)(n.ESD),buttonSecondaryHoverBackground:(0,n.n_1)(n.xEn),buttonBorder:(0,n.n_1)(n.GYc)},a={progressBarBackground:(0,n.n_1)(n.zRJ)},l={inputActiveOptionBorder:(0,n.n_1)(n.PRb),inputActiveOptionForeground:(0,n.n_1)(n.Pvw),inputActiveOptionBackground:(0,n.n_1)(n.XEs)},c=((0,n.n_1)(n.SUp),(0,n.n_1)(n.nd),(0,n.n_1)(n.BQ0),(0,n.n_1)(n.D0T),(0,n.n_1)(n.Hfx),(0,n.n_1)(n.rh),(0,n.n_1)(n.lRK),(0,n.n_1)(n.JpG),(0,n.n_1)(n.BOY),(0,n.n_1)(n.OLZ),(0,n.n_1)(n.url),{inputBackground:(0,n.n_1)(n.sEe),inputForeground:(0,n.n_1)(n.zJb),inputBorder:(0,n.n_1)(n.dt_),inputValidationInfoBorder:(0,n.n_1)(n.EPQ),inputValidationInfoBackground:(0,n.n_1)(n._lC),inputValidationInfoForeground:(0,n.n_1)(n.YI3),inputValidationWarningBorder:(0,n.n_1)(n.C3g),inputValidationWarningBackground:(0,n.n_1)(n.RV_),inputValidationWarningForeground:(0,n.n_1)(n.SUG),inputValidationErrorBorder:(0,n.n_1)(n.OZR),inputValidationErrorBackground:(0,n.n_1)(n.paE),inputValidationErrorForeground:(0,n.n_1)(n._t9)}),h={listFilterWidgetBackground:(0,n.n_1)(n.vGG),listFilterWidgetOutline:(0,n.n_1)(n.oSI),listFilterWidgetNoMatchesOutline:(0,n.n_1)(n.Saq),listFilterWidgetShadow:(0,n.n_1)(n.y65),inputBoxStyles:c,toggleStyles:l},d={badgeBackground:(0,n.n_1)(n.g8u),badgeForeground:(0,n.n_1)(n.qeD),badgeBorder:(0,n.n_1)(n.lRK)},u=((0,n.n_1)(n.ixd),(0,n.n_1)(n.l80),(0,n.n_1)(n.H6q),(0,n.n_1)(n.H6q),(0,n.n_1)(n.fSI),{listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:(0,n.n_1)(n._bK),listFocusForeground:(0,n.n_1)(n._2n),listFocusOutline:(0,n.n_1)(n.Oop),listActiveSelectionBackground:(0,n.n_1)(n.dCr),listActiveSelectionForeground:(0,n.n_1)(n.M6C),listActiveSelectionIconForeground:(0,n.n_1)(n.Tnx),listFocusAndSelectionOutline:(0,n.n_1)(n.Bqu),listFocusAndSelectionBackground:(0,n.n_1)(n.dCr),listFocusAndSelectionForeground:(0,n.n_1)(n.M6C),listInactiveSelectionBackground:(0,n.n_1)(n.rg2),listInactiveSelectionIconForeground:(0,n.n_1)(n.kvU),listInactiveSelectionForeground:(0,n.n_1)(n.ytC),listInactiveFocusBackground:(0,n.n_1)(n.s$),listInactiveFocusOutline:(0,n.n_1)(n.F3d),listHoverBackground:(0,n.n_1)(n.mV1),listHoverForeground:(0,n.n_1)(n.$d5),listDropBackground:(0,n.n_1)(n.AS1),listSelectionOutline:(0,n.n_1)(n.xL1),listHoverOutline:(0,n.n_1)(n.xL1),treeIndentGuidesStroke:(0,n.n_1)(n.UnT),treeInactiveIndentGuidesStroke:(0,n.n_1)(n.KjV),tableColumnsBorder:(0,n.n_1)(n.uxu),tableOddRowsBackgroundColor:(0,n.n_1)(n.EQn)});function g(e){return function(e,t){const i=Object.assign({},t);for(const t in e){const o=e[t];i[t]=void 0!==o?(0,n.n_1)(o):void 0}return i}(e,u)}const p={selectBackground:(0,n.n_1)(n.XV0),selectListBackground:(0,n.n_1)(n.Fgs),selectForeground:(0,n.n_1)(n._g0),decoratorRightForeground:(0,n.n_1)(n.kJk),selectBorder:(0,n.n_1)(n.a9O),focusBorder:(0,n.n_1)(n.R80),listFocusBackground:(0,n.n_1)(n.Vqd),listInactiveSelectionIconForeground:(0,n.n_1)(n.cbQ),listFocusForeground:(0,n.n_1)(n.NPS),listFocusOutline:(0,n.BtC)(n.xL1,o.Il.transparent.toString()),listHoverBackground:(0,n.n_1)(n.mV1),listHoverForeground:(0,n.n_1)(n.$d5),listHoverOutline:(0,n.n_1)(n.xL1),selectListBorder:(0,n.n_1)(n.D1_),listBackground:void 0,listActiveSelectionBackground:void 0,listActiveSelectionForeground:void 0,listActiveSelectionIconForeground:void 0,listFocusAndSelectionBackground:void 0,listDropBackground:void 0,listInactiveSelectionBackground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusBackground:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listFocusAndSelectionForeground:void 0,listFocusAndSelectionOutline:void 0,listInactiveFocusForeground:void 0,tableColumnsBorder:void 0,tableOddRowsBackgroundColor:void 0,treeIndentGuidesStroke:void 0,treeInactiveIndentGuidesStroke:void 0},m={shadowColor:(0,n.n_1)(n.rh),borderColor:(0,n.n_1)(n.Cdg),foregroundColor:(0,n.n_1)(n.DEr),backgroundColor:(0,n.n_1)(n.Hz8),selectionForegroundColor:(0,n.n_1)(n.jbW),selectionBackgroundColor:(0,n.n_1)(n.$DX),selectionBorderColor:(0,n.n_1)(n.E3h),separatorColor:(0,n.n_1)(n.ZGJ),scrollbarShadow:(0,n.n_1)(n._wn),scrollbarSliderBackground:(0,n.n_1)(n.etL),scrollbarSliderHoverBackground:(0,n.n_1)(n.ABB),scrollbarSliderActiveBackground:(0,n.n_1)(n.ynu)}},73910:(e,t,i)=>{"use strict";i.d(t,{$DX:()=>Ft,$d5:()=>ut,A42:()=>k,ABB:()=>ie,AS1:()=>gt,AWI:()=>xe,BOY:()=>ci,BQ0:()=>Et,Bqu:()=>it,BtC:()=>u,C3g:()=>P,CNo:()=>Be,Cdg:()=>Mt,CzK:()=>qe,D0T:()=>pe,D1_:()=>fe,DEr:()=>Rt,Dut:()=>de,E3h:()=>Bt,EPQ:()=>M,EQn:()=>xt,ES4:()=>De,ESD:()=>Y,EiJ:()=>Oe,F3d:()=>ht,F9q:()=>Ze,Fgs:()=>W,Fm_:()=>Jt,GO4:()=>$,GYc:()=>G,Gj_:()=>oi,Gwp:()=>pt,H6q:()=>Ut,HCL:()=>je,Hfx:()=>me,Hz8:()=>Ot,IPX:()=>g,IYc:()=>ii,Ido:()=>_,Itd:()=>ai,Ivo:()=>si,JpG:()=>li,K19:()=>Le,KjV:()=>St,L_t:()=>Xe,M6C:()=>ot,MUv:()=>Ae,NOs:()=>ge,NPS:()=>Tt,Ng6:()=>_e,OLZ:()=>hi,OZR:()=>H,Oop:()=>tt,P4M:()=>Qe,P6G:()=>m,P6Y:()=>Ye,PRb:()=>N,PX0:()=>mt,PpC:()=>We,Pvw:()=>T,QO2:()=>h,R80:()=>b,RV_:()=>R,Rzx:()=>Te,SPM:()=>ei,SUG:()=>O,SUY:()=>ti,SUp:()=>Lt,Saq:()=>Ct,T83:()=>he,Tnx:()=>st,UnT:()=>wt,VVv:()=>Ve,Vqd:()=>At,XEs:()=>D,XV0:()=>V,XZx:()=>v,YI3:()=>A,ZGJ:()=>Ht,ZnX:()=>gi,_2n:()=>et,_Yy:()=>He,_bK:()=>Je,_g0:()=>z,_lC:()=>I,_t9:()=>B,_wn:()=>ee,a9O:()=>U,b6y:()=>re,b7$:()=>q,bKB:()=>Ue,c63:()=>ce,cbQ:()=>It,cvW:()=>ue,dCr:()=>nt,dRz:()=>f,dt_:()=>E,etL:()=>te,fSI:()=>jt,g8u:()=>X,gkn:()=>Pe,hEj:()=>Ee,hX8:()=>ze,iFQ:()=>K,ixd:()=>zt,j5u:()=>j,jUe:()=>Me,jbW:()=>Pt,kJk:()=>ye,kVY:()=>ri,keg:()=>$e,kvU:()=>lt,kwl:()=>pi,l80:()=>Wt,lRK:()=>C,lUq:()=>Vt,lWp:()=>ke,lXJ:()=>se,loF:()=>Ce,mV1:()=>dt,n_1:()=>d,nd:()=>Nt,nyM:()=>Ie,oQ$:()=>Se,oSI:()=>bt,opG:()=>we,ov3:()=>ni,pW3:()=>le,paE:()=>F,phM:()=>Ke,pnM:()=>Re,qBU:()=>Q,qeD:()=>J,rg2:()=>rt,rh:()=>S,s$:()=>ct,sEe:()=>x,tZ6:()=>be,uoC:()=>ae,url:()=>w,uxu:()=>kt,vGG:()=>vt,xEn:()=>Z,xL1:()=>y,y65:()=>yt,yJx:()=>Fe,yb5:()=>Ne,ynu:()=>ne,ypS:()=>Ge,ytC:()=>at,zJb:()=>L,zKr:()=>ve,zRJ:()=>oe});var n=i(15393),o=i(41264),s=i(4669),r=i(35146),a=i(63580),l=i(81294),c=i(89872);function h(e){return`--vscode-${e.replace(/\./g,"-")}`}function d(e){return`var(${h(e)})`}function u(e,t){return`var(${h(e)}, ${t})`}const g={ColorContribution:"base.contributions.colors"},p=new class{constructor(){this._onDidChangeSchema=new s.Q5,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,n=!1,o){const s={id:e,description:i,defaults:t,needsTransparency:n,deprecationMessage:o};this.colorsById[e]=s;const r={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return o&&(r.deprecationMessage=o),this.colorSchema.properties[e]=r,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const i=this.colorsById[e];if(i&&i.defaults)return fi(i.defaults[t.type],t)}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const i=-1===e.indexOf(".")?0:1,n=-1===t.indexOf(".")?0:1;return i!==n?i-n:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function m(e,t,i,n,o){return p.registerColor(e,t,i,n,o)}c.B.add(g.ColorContribution,p);const f=m("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},a.NC("foreground","Overall foreground color. This color is only used if not overridden by a component.")),_=(m("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},a.NC("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),m("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},a.NC("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component."))),v=(m("descriptionForeground",{light:"#717171",dark:gi(f,.7),hcDark:gi(f,.7),hcLight:gi(f,.7)},a.NC("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),m("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},a.NC("iconForeground","The default color for icons in the workbench."))),b=m("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},a.NC("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),C=m("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},a.NC("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),y=m("contrastActiveBorder",{light:null,dark:null,hcDark:b,hcLight:b},a.NC("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),w=(m("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},a.NC("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),m("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:o.Il.black,hcLight:"#292929"},a.NC("textSeparatorForeground","Color for text separators.")),m("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},a.NC("textLinkForeground","Foreground color for links in text."))),S=(m("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},a.NC("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),m("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#D7BA7D",hcLight:"#292929"},a.NC("textPreformatForeground","Foreground color for preformatted text segments.")),m("textBlockQuote.background",{light:"#7f7f7f1a",dark:"#7f7f7f1a",hcDark:null,hcLight:"#F2F2F2"},a.NC("textBlockQuoteBackground","Background color for block quotes in text.")),m("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:o.Il.white,hcLight:"#292929"},a.NC("textBlockQuoteBorder","Border color for block quotes in text.")),m("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:o.Il.black,hcLight:"#F2F2F2"},a.NC("textCodeBlockBackground","Background color for code blocks in text.")),m("widget.shadow",{dark:gi(o.Il.black,.36),light:gi(o.Il.black,.16),hcDark:null,hcLight:null},a.NC("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),k=m("widget.border",{dark:null,light:null,hcDark:C,hcLight:C},a.NC("widgetBorder","Border color of widgets such as find/replace inside the editor.")),x=m("input.background",{dark:"#3C3C3C",light:o.Il.white,hcDark:o.Il.black,hcLight:o.Il.white},a.NC("inputBoxBackground","Input box background.")),L=m("input.foreground",{dark:f,light:f,hcDark:f,hcLight:f},a.NC("inputBoxForeground","Input box foreground.")),E=m("input.border",{dark:null,light:null,hcDark:C,hcLight:C},a.NC("inputBoxBorder","Input box border.")),N=m("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:C,hcLight:C},a.NC("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),D=(m("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},a.NC("inputOption.hoverBackground","Background color of activated options in input fields.")),m("inputOption.activeBackground",{dark:gi(b,.4),light:gi(b,.2),hcDark:o.Il.transparent,hcLight:o.Il.transparent},a.NC("inputOption.activeBackground","Background hover color of options in input fields."))),T=m("inputOption.activeForeground",{dark:o.Il.white,light:o.Il.black,hcDark:f,hcLight:f},a.NC("inputOption.activeForeground","Foreground color of activated options in input fields.")),I=(m("input.placeholderForeground",{light:gi(f,.5),dark:gi(f,.5),hcDark:gi(f,.7),hcLight:gi(f,.7)},a.NC("inputPlaceholderForeground","Input box foreground color for placeholder text.")),m("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:o.Il.black,hcLight:o.Il.white},a.NC("inputValidationInfoBackground","Input validation background color for information severity."))),A=m("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:f},a.NC("inputValidationInfoForeground","Input validation foreground color for information severity.")),M=m("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:C,hcLight:C},a.NC("inputValidationInfoBorder","Input validation border color for information severity.")),R=m("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:o.Il.black,hcLight:o.Il.white},a.NC("inputValidationWarningBackground","Input validation background color for warning severity.")),O=m("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:f},a.NC("inputValidationWarningForeground","Input validation foreground color for warning severity.")),P=m("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:C,hcLight:C},a.NC("inputValidationWarningBorder","Input validation border color for warning severity.")),F=m("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:o.Il.black,hcLight:o.Il.white},a.NC("inputValidationErrorBackground","Input validation background color for error severity.")),B=m("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:f},a.NC("inputValidationErrorForeground","Input validation foreground color for error severity.")),H=m("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:C,hcLight:C},a.NC("inputValidationErrorBorder","Input validation border color for error severity.")),V=m("dropdown.background",{dark:"#3C3C3C",light:o.Il.white,hcDark:o.Il.black,hcLight:o.Il.white},a.NC("dropdownBackground","Dropdown background.")),W=m("dropdown.listBackground",{dark:null,light:null,hcDark:o.Il.black,hcLight:o.Il.white},a.NC("dropdownListBackground","Dropdown list background.")),z=m("dropdown.foreground",{dark:"#F0F0F0",light:f,hcDark:o.Il.white,hcLight:f},a.NC("dropdownForeground","Dropdown foreground.")),U=m("dropdown.border",{dark:V,light:"#CECECE",hcDark:C,hcLight:C},a.NC("dropdownBorder","Dropdown border.")),j=m("button.foreground",{dark:o.Il.white,light:o.Il.white,hcDark:o.Il.white,hcLight:o.Il.white},a.NC("buttonForeground","Button foreground color.")),K=m("button.separator",{dark:gi(j,.4),light:gi(j,.4),hcDark:gi(j,.4),hcLight:gi(j,.4)},a.NC("buttonSeparator","Button separator color.")),q=m("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},a.NC("buttonBackground","Button background color.")),$=m("button.hoverBackground",{dark:ui(q,.2),light:di(q,.2),hcDark:q,hcLight:q},a.NC("buttonHoverBackground","Button background color when hovering.")),G=m("button.border",{dark:C,light:C,hcDark:C,hcLight:C},a.NC("buttonBorder","Button border color.")),Q=m("button.secondaryForeground",{dark:o.Il.white,light:o.Il.white,hcDark:o.Il.white,hcLight:f},a.NC("buttonSecondaryForeground","Secondary button foreground color.")),Y=m("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:o.Il.white},a.NC("buttonSecondaryBackground","Secondary button background color.")),Z=m("button.secondaryHoverBackground",{dark:ui(Y,.2),light:di(Y,.2),hcDark:null,hcLight:null},a.NC("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),X=m("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:o.Il.black,hcLight:"#0F4A85"},a.NC("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),J=m("badge.foreground",{dark:o.Il.white,light:"#333",hcDark:o.Il.white,hcLight:o.Il.white},a.NC("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),ee=m("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},a.NC("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),te=m("scrollbarSlider.background",{dark:o.Il.fromHex("#797979").transparent(.4),light:o.Il.fromHex("#646464").transparent(.4),hcDark:gi(C,.6),hcLight:gi(C,.4)},a.NC("scrollbarSliderBackground","Scrollbar slider background color.")),ie=m("scrollbarSlider.hoverBackground",{dark:o.Il.fromHex("#646464").transparent(.7),light:o.Il.fromHex("#646464").transparent(.7),hcDark:gi(C,.8),hcLight:gi(C,.8)},a.NC("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),ne=m("scrollbarSlider.activeBackground",{dark:o.Il.fromHex("#BFBFBF").transparent(.4),light:o.Il.fromHex("#000000").transparent(.6),hcDark:C,hcLight:C},a.NC("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),oe=m("progressBar.background",{dark:o.Il.fromHex("#0E70C0"),light:o.Il.fromHex("#0E70C0"),hcDark:C,hcLight:C},a.NC("progressBarBackground","Background color of the progress bar that can show for long running operations.")),se=(m("editorError.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),m("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},a.NC("editorError.foreground","Foreground color of error squigglies in the editor."))),re=m("editorError.border",{dark:null,light:null,hcDark:o.Il.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},a.NC("errorBorder","If set, color of double underlines for errors in the editor.")),ae=(m("editorWarning.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),m("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},a.NC("editorWarning.foreground","Foreground color of warning squigglies in the editor."))),le=m("editorWarning.border",{dark:null,light:null,hcDark:o.Il.fromHex("#FFCC00").transparent(.8),hcLight:o.Il.fromHex("#FFCC00").transparent(.8)},a.NC("warningBorder","If set, color of double underlines for warnings in the editor.")),ce=(m("editorInfo.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),m("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},a.NC("editorInfo.foreground","Foreground color of info squigglies in the editor."))),he=m("editorInfo.border",{dark:null,light:null,hcDark:o.Il.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},a.NC("infoBorder","If set, color of double underlines for infos in the editor.")),de=m("editorHint.foreground",{dark:o.Il.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},a.NC("editorHint.foreground","Foreground color of hint squigglies in the editor.")),ue=(m("editorHint.border",{dark:null,light:null,hcDark:o.Il.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},a.NC("hintBorder","If set, color of double underlines for hints in the editor.")),m("sash.hoverBorder",{dark:b,light:b,hcDark:b,hcLight:b},a.NC("sashActiveBorder","Border color of active sashes.")),m("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:o.Il.black,hcLight:o.Il.white},a.NC("editorBackground","Editor background color."))),ge=m("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:o.Il.white,hcLight:f},a.NC("editorForeground","Editor default foreground color.")),pe=(m("editorStickyScroll.background",{light:ue,dark:ue,hcDark:ue,hcLight:ue},a.NC("editorStickyScrollBackground","Sticky scroll background color for the editor")),m("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},a.NC("editorStickyScrollHoverBackground","Sticky scroll on hover background color for the editor")),m("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:o.Il.white},a.NC("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),me=m("editorWidget.foreground",{dark:f,light:f,hcDark:f,hcLight:f},a.NC("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),fe=m("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:C,hcLight:C},a.NC("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),_e=m("editorWidget.resizeBorder",{light:null,dark:null,hcDark:null,hcLight:null},a.NC("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),ve=m("quickInput.background",{dark:pe,light:pe,hcDark:pe,hcLight:pe},a.NC("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),be=m("quickInput.foreground",{dark:me,light:me,hcDark:me,hcLight:me},a.NC("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),Ce=m("quickInputTitle.background",{dark:new o.Il(new o.VS(255,255,255,.105)),light:new o.Il(new o.VS(0,0,0,.06)),hcDark:"#000000",hcLight:o.Il.white},a.NC("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),ye=m("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:o.Il.white,hcLight:"#0F4A85"},a.NC("pickerGroupForeground","Quick picker color for grouping labels.")),we=m("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:o.Il.white,hcLight:"#0F4A85"},a.NC("pickerGroupBorder","Quick picker color for grouping borders.")),Se=m("keybindingLabel.background",{dark:new o.Il(new o.VS(128,128,128,.17)),light:new o.Il(new o.VS(221,221,221,.4)),hcDark:o.Il.transparent,hcLight:o.Il.transparent},a.NC("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),ke=m("keybindingLabel.foreground",{dark:o.Il.fromHex("#CCCCCC"),light:o.Il.fromHex("#555555"),hcDark:o.Il.white,hcLight:f},a.NC("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),xe=m("keybindingLabel.border",{dark:new o.Il(new o.VS(51,51,51,.6)),light:new o.Il(new o.VS(204,204,204,.4)),hcDark:new o.Il(new o.VS(111,195,223)),hcLight:C},a.NC("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),Le=m("keybindingLabel.bottomBorder",{dark:new o.Il(new o.VS(68,68,68,.6)),light:new o.Il(new o.VS(187,187,187,.4)),hcDark:new o.Il(new o.VS(111,195,223)),hcLight:f},a.NC("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),Ee=m("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},a.NC("editorSelectionBackground","Color of the editor selection.")),Ne=m("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:o.Il.white},a.NC("editorSelectionForeground","Color of the selected text for high contrast.")),De=m("editor.inactiveSelectionBackground",{light:gi(Ee,.5),dark:gi(Ee,.5),hcDark:gi(Ee,.7),hcLight:gi(Ee,.5)},a.NC("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),Te=m("editor.selectionHighlightBackground",{light:mi(Ee,ue,.3,.6),dark:mi(Ee,ue,.3,.6),hcDark:null,hcLight:null},a.NC("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),Ie=(m("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:y,hcLight:y},a.NC("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),m("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},a.NC("editorFindMatch","Color of the current search match."))),Ae=m("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},a.NC("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),Me=m("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},a.NC("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Re=m("editor.findMatchBorder",{light:null,dark:null,hcDark:y,hcLight:y},a.NC("editorFindMatchBorder","Border color of the current search match.")),Oe=m("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:y,hcLight:y},a.NC("findMatchHighlightBorder","Border color of the other search matches.")),Pe=m("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:gi(y,.4),hcLight:gi(y,.4)},a.NC("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Fe=(m("searchEditor.findMatchBackground",{light:gi(Ae,.66),dark:gi(Ae,.66),hcDark:Ae,hcLight:Ae},a.NC("searchEditor.queryMatch","Color of the Search Editor query matches.")),m("searchEditor.findMatchBorder",{light:gi(Oe,.66),dark:gi(Oe,.66),hcDark:Oe,hcLight:Oe},a.NC("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches.")),m("search.resultsInfoForeground",{light:f,dark:gi(f,.65),hcDark:f,hcLight:f},a.NC("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),m("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},a.NC("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),m("editorHoverWidget.background",{light:pe,dark:pe,hcDark:pe,hcLight:pe},a.NC("hoverBackground","Background color of the editor hover."))),Be=(m("editorHoverWidget.foreground",{light:me,dark:me,hcDark:me,hcLight:me},a.NC("hoverForeground","Foreground color of the editor hover.")),m("editorHoverWidget.border",{light:fe,dark:fe,hcDark:fe,hcLight:fe},a.NC("hoverBorder","Border color of the editor hover."))),He=(m("editorHoverWidget.statusBarBackground",{dark:ui(Fe,.2),light:di(Fe,.05),hcDark:pe,hcLight:pe},a.NC("statusBarBackground","Background color of the editor hover status bar.")),m("editorLink.activeForeground",{dark:"#4E94CE",light:o.Il.blue,hcDark:o.Il.cyan,hcLight:"#292929"},a.NC("activeLinkForeground","Color of active links."))),Ve=m("editorInlayHint.foreground",{dark:J,light:J,hcDark:o.Il.black,hcLight:J},a.NC("editorInlayHintForeground","Foreground color of inline hints")),We=m("editorInlayHint.background",{dark:gi(X,.8),light:gi(X,.6),hcDark:"#f38518",hcLight:X},a.NC("editorInlayHintBackground","Background color of inline hints")),ze=m("editorInlayHint.typeForeground",{dark:Ve,light:Ve,hcDark:Ve,hcLight:Ve},a.NC("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),Ue=m("editorInlayHint.typeBackground",{dark:We,light:We,hcDark:We,hcLight:We},a.NC("editorInlayHintBackgroundTypes","Background color of inline hints for types")),je=m("editorInlayHint.parameterForeground",{dark:Ve,light:Ve,hcDark:Ve,hcLight:Ve},a.NC("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),Ke=m("editorInlayHint.parameterBackground",{dark:We,light:We,hcDark:We,hcLight:We},a.NC("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),qe=(m("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},a.NC("editorLightBulbForeground","The color used for the lightbulb actions icon.")),m("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},a.NC("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),new o.Il(new o.VS(155,185,85,.2))),$e=new o.Il(new o.VS(255,0,0,.2)),Ge=m("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},a.NC("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Qe=m("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},a.NC("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Ye=(m("diffEditor.insertedLineBackground",{dark:qe,light:qe,hcDark:null,hcLight:null},a.NC("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),m("diffEditor.removedLineBackground",{dark:$e,light:$e,hcDark:null,hcLight:null},a.NC("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),m("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),m("diffEditorGutter.removedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),m("diffEditorOverview.insertedForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content."))),Ze=m("diffEditorOverview.removedForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),Xe=(m("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},a.NC("diffEditorInsertedOutline","Outline color for the text that got inserted.")),m("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},a.NC("diffEditorRemovedOutline","Outline color for text that got removed.")),m("diffEditor.border",{dark:null,light:null,hcDark:C,hcLight:C},a.NC("diffEditorBorder","Border color between the two text editors.")),m("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},a.NC("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views."))),Je=m("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),et=m("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),tt=m("list.focusOutline",{dark:b,light:b,hcDark:y,hcLight:y},a.NC("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),it=m("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),nt=m("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},a.NC("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ot=m("list.activeSelectionForeground",{dark:o.Il.white,light:o.Il.white,hcDark:null,hcLight:null},a.NC("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),st=m("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),rt=m("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},a.NC("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),at=m("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),lt=m("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),ct=m("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),ht=m("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),dt=m("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:o.Il.white.transparent(.1),hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},a.NC("listHoverBackground","List/Tree background when hovering over items using the mouse.")),ut=m("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),gt=m("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},a.NC("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),pt=m("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:b,hcLight:b},a.NC("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),mt=m("list.focusHighlightForeground",{dark:pt,light:(ft=nt,_t=pt,"#BBE7FF",{op:6,if:ft,then:_t,else:"#BBE7FF"}),hcDark:pt,hcLight:pt},a.NC("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));var ft,_t;m("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},a.NC("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),m("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},a.NC("listErrorForeground","Foreground color of list items containing errors.")),m("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},a.NC("listWarningForeground","Foreground color of list items containing warnings."));const vt=m("listFilterWidget.background",{light:di(pe,0),dark:ui(pe,0),hcDark:pe,hcLight:pe},a.NC("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),bt=m("listFilterWidget.outline",{dark:o.Il.transparent,light:o.Il.transparent,hcDark:"#f38518",hcLight:"#007ACC"},a.NC("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Ct=m("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:C,hcLight:C},a.NC("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),yt=m("listFilterWidget.shadow",{dark:S,light:S,hcDark:S,hcLight:S},a.NC("listFilterWidgetShadow","Shadown color of the type filter widget in lists and trees.")),wt=(m("list.filterMatchBackground",{dark:Ae,light:Ae,hcDark:null,hcLight:null},a.NC("listFilterMatchHighlight","Background color of the filtered match.")),m("list.filterMatchBorder",{dark:Oe,light:Oe,hcDark:C,hcLight:y},a.NC("listFilterMatchHighlightBorder","Border color of the filtered match.")),m("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},a.NC("treeIndentGuidesStroke","Tree stroke color for the indentation guides."))),St=m("tree.inactiveIndentGuidesStroke",{dark:gi(wt,.4),light:gi(wt,.4),hcDark:gi(wt,.4),hcLight:gi(wt,.4)},a.NC("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),kt=m("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},a.NC("tableColumnsBorder","Table border color between columns.")),xt=m("tree.tableOddRowsBackground",{dark:gi(f,.04),light:gi(f,.04),hcDark:null,hcLight:null},a.NC("tableOddRowsBackgroundColor","Background color for odd table rows.")),Lt=(m("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},a.NC("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized. ")),m("checkbox.background",{dark:V,light:V,hcDark:V,hcLight:V},a.NC("checkbox.background","Background color of checkbox widget."))),Et=(m("checkbox.selectBackground",{dark:pe,light:pe,hcDark:pe,hcLight:pe},a.NC("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),m("checkbox.foreground",{dark:z,light:z,hcDark:z,hcLight:z},a.NC("checkbox.foreground","Foreground color of checkbox widget."))),Nt=m("checkbox.border",{dark:U,light:U,hcDark:U,hcLight:U},a.NC("checkbox.border","Border color of checkbox widget.")),Dt=(m("checkbox.selectBorder",{dark:v,light:v,hcDark:v,hcLight:v},a.NC("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),m("quickInput.list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},"",void 0,a.NC("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead"))),Tt=m("quickInputList.focusForeground",{dark:ot,light:ot,hcDark:ot,hcLight:ot},a.NC("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),It=m("quickInputList.focusIconForeground",{dark:st,light:st,hcDark:st,hcLight:st},a.NC("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),At=m("quickInputList.focusBackground",{dark:pi(Dt,nt),light:pi(Dt,nt),hcDark:null,hcLight:null},a.NC("quickInput.listFocusBackground","Quick picker background color for the focused item.")),Mt=m("menu.border",{dark:null,light:null,hcDark:C,hcLight:C},a.NC("menuBorder","Border color of menus.")),Rt=m("menu.foreground",{dark:z,light:z,hcDark:z,hcLight:z},a.NC("menuForeground","Foreground color of menu items.")),Ot=m("menu.background",{dark:V,light:V,hcDark:V,hcLight:V},a.NC("menuBackground","Background color of menu items.")),Pt=m("menu.selectionForeground",{dark:ot,light:ot,hcDark:ot,hcLight:ot},a.NC("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Ft=m("menu.selectionBackground",{dark:nt,light:nt,hcDark:nt,hcLight:nt},a.NC("menuSelectionBackground","Background color of the selected menu item in menus.")),Bt=m("menu.selectionBorder",{dark:null,light:null,hcDark:y,hcLight:y},a.NC("menuSelectionBorder","Border color of the selected menu item in menus.")),Ht=m("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:C,hcLight:C},a.NC("menuSeparatorBackground","Color of a separator menu item in menus.")),Vt=m("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},a.NC("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),Wt=(m("toolbar.hoverOutline",{dark:null,light:null,hcDark:y,hcLight:y},a.NC("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),m("toolbar.activeBackground",{dark:ui(Vt,.1),light:di(Vt,.1),hcDark:null,hcLight:null},a.NC("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),m("editor.snippetTabstopHighlightBackground",{dark:new o.Il(new o.VS(124,124,124,.3)),light:new o.Il(new o.VS(10,50,100,.2)),hcDark:new o.Il(new o.VS(124,124,124,.3)),hcLight:new o.Il(new o.VS(10,50,100,.2))},a.NC("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),m("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),m("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),m("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new o.Il(new o.VS(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},a.NC("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),m("breadcrumb.foreground",{light:gi(f,.8),dark:gi(f,.8),hcDark:gi(f,.8),hcLight:gi(f,.8)},a.NC("breadcrumbsFocusForeground","Color of focused breadcrumb items."))),zt=m("breadcrumb.background",{light:ue,dark:ue,hcDark:ue,hcLight:ue},a.NC("breadcrumbsBackground","Background color of breadcrumb items.")),Ut=m("breadcrumb.focusForeground",{light:di(f,.2),dark:ui(f,.1),hcDark:ui(f,.1),hcLight:ui(f,.1)},a.NC("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),jt=m("breadcrumb.activeSelectionForeground",{light:di(f,.2),dark:ui(f,.1),hcDark:ui(f,.1),hcLight:ui(f,.1)},a.NC("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),Kt=(m("breadcrumbPicker.background",{light:pe,dark:pe,hcDark:pe,hcLight:pe},a.NC("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),o.Il.fromHex("#40C8AE").transparent(.5)),qt=o.Il.fromHex("#40A6FF").transparent(.5),$t=o.Il.fromHex("#606060").transparent(.4),Gt=.4,Qt=m("merge.currentHeaderBackground",{dark:Kt,light:Kt,hcDark:null,hcLight:null},a.NC("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),Yt=(m("merge.currentContentBackground",{dark:gi(Qt,Gt),light:gi(Qt,Gt),hcDark:gi(Qt,Gt),hcLight:gi(Qt,Gt)},a.NC("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),m("merge.incomingHeaderBackground",{dark:qt,light:qt,hcDark:null,hcLight:null},a.NC("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),Zt=(m("merge.incomingContentBackground",{dark:gi(Yt,Gt),light:gi(Yt,Gt),hcDark:gi(Yt,Gt),hcLight:gi(Yt,Gt)},a.NC("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),m("merge.commonHeaderBackground",{dark:$t,light:$t,hcDark:null,hcLight:null},a.NC("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),Xt=(m("merge.commonContentBackground",{dark:gi(Zt,Gt),light:gi(Zt,Gt),hcDark:gi(Zt,Gt),hcLight:gi(Zt,Gt)},a.NC("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),m("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},a.NC("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),Jt=(m("editorOverviewRuler.currentContentForeground",{dark:gi(Qt,1),light:gi(Qt,1),hcDark:Xt,hcLight:Xt},a.NC("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),m("editorOverviewRuler.incomingContentForeground",{dark:gi(Yt,1),light:gi(Yt,1),hcDark:Xt,hcLight:Xt},a.NC("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),m("editorOverviewRuler.commonContentForeground",{dark:gi(Zt,1),light:gi(Zt,1),hcDark:Xt,hcLight:Xt},a.NC("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),m("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},a.NC("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0)),ei=m("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},a.NC("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),ti=m("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},a.NC("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),ii=m("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},a.NC("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),ni=m("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},a.NC("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),oi=m("minimap.errorHighlight",{dark:new o.Il(new o.VS(255,18,18,.7)),light:new o.Il(new o.VS(255,18,18,.7)),hcDark:new o.Il(new o.VS(255,50,50,1)),hcLight:"#B5200D"},a.NC("minimapError","Minimap marker color for errors.")),si=m("minimap.warningHighlight",{dark:ae,light:ae,hcDark:le,hcLight:le},a.NC("overviewRuleWarning","Minimap marker color for warnings.")),ri=m("minimap.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("minimapBackground","Minimap background color.")),ai=m("minimap.foregroundOpacity",{dark:o.Il.fromHex("#000f"),light:o.Il.fromHex("#000f"),hcDark:o.Il.fromHex("#000f"),hcLight:o.Il.fromHex("#000f")},a.NC("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),li=(m("minimapSlider.background",{light:gi(te,.5),dark:gi(te,.5),hcDark:gi(te,.5),hcLight:gi(te,.5)},a.NC("minimapSliderBackground","Minimap slider background color.")),m("minimapSlider.hoverBackground",{light:gi(ie,.5),dark:gi(ie,.5),hcDark:gi(ie,.5),hcLight:gi(ie,.5)},a.NC("minimapSliderHoverBackground","Minimap slider background color when hovering.")),m("minimapSlider.activeBackground",{light:gi(ne,.5),dark:gi(ne,.5),hcDark:gi(ne,.5),hcLight:gi(ne,.5)},a.NC("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),m("problemsErrorIcon.foreground",{dark:se,light:se,hcDark:se,hcLight:se},a.NC("problemsErrorIconForeground","The color used for the problems error icon."))),ci=m("problemsWarningIcon.foreground",{dark:ae,light:ae,hcDark:ae,hcLight:ae},a.NC("problemsWarningIconForeground","The color used for the problems warning icon.")),hi=m("problemsInfoIcon.foreground",{dark:ce,light:ce,hcDark:ce,hcLight:ce},a.NC("problemsInfoIconForeground","The color used for the problems info icon."));function di(e,t){return{op:0,value:e,factor:t}}function ui(e,t){return{op:1,value:e,factor:t}}function gi(e,t){return{op:2,value:e,factor:t}}function pi(...e){return{op:4,values:e}}function mi(e,t,i,n){return{op:5,value:e,background:t,factor:i,transparency:n}}function fi(e,t){if(null!==e)return"string"==typeof e?"#"===e[0]?o.Il.fromHex(e):t.getColor(e):e instanceof o.Il?e:"object"==typeof e?function(e,t){var i,n,s,a;switch(e.op){case 0:return null===(i=fi(e.value,t))||void 0===i?void 0:i.darken(e.factor);case 1:return null===(n=fi(e.value,t))||void 0===n?void 0:n.lighten(e.factor);case 2:return null===(s=fi(e.value,t))||void 0===s?void 0:s.transparent(e.factor);case 3:{const i=fi(e.background,t);return i?null===(a=fi(e.value,t))||void 0===a?void 0:a.makeOpaque(i):fi(e.value,t)}case 4:for(const i of e.values){const e=fi(i,t);if(e)return e}return;case 6:return fi(t.defines(e.if)?e.then:e.else,t);case 5:{const i=fi(e.value,t);if(!i)return;const n=fi(e.background,t);return n?i.isDarkerThan(n)?o.Il.getLighterColor(i,n,e.factor).transparent(e.transparency):o.Il.getDarkerColor(i,n,e.factor).transparent(e.transparency):i.transparent(e.factor*e.transparency)}default:throw(0,r.vE)(e)}}(e,t):void 0}m("charts.foreground",{dark:f,light:f,hcDark:f,hcLight:f},a.NC("chartsForeground","The foreground color used in charts.")),m("charts.lines",{dark:gi(f,.5),light:gi(f,.5),hcDark:gi(f,.5),hcLight:gi(f,.5)},a.NC("chartsLines","The color used for horizontal lines in charts.")),m("charts.red",{dark:se,light:se,hcDark:se,hcLight:se},a.NC("chartsRed","The red color used in chart visualizations.")),m("charts.blue",{dark:ce,light:ce,hcDark:ce,hcLight:ce},a.NC("chartsBlue","The blue color used in chart visualizations.")),m("charts.yellow",{dark:ae,light:ae,hcDark:ae,hcLight:ae},a.NC("chartsYellow","The yellow color used in chart visualizations.")),m("charts.orange",{dark:ti,light:ti,hcDark:ti,hcLight:ti},a.NC("chartsOrange","The orange color used in chart visualizations.")),m("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},a.NC("chartsGreen","The green color used in chart visualizations.")),m("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},a.NC("chartsPurple","The purple color used in chart visualizations."));const _i="vscode://schemas/workbench-colors",vi=c.B.as(l.I.JSONContribution);vi.registerSchema(_i,p.getColorSchema());const bi=new n.pY((()=>vi.notifySchemaChanged(_i)),200);p.onDidChangeSchema((()=>{bi.isScheduled()||bi.schedule()}))},59554:(e,t,i)=>{"use strict";i.d(t,{Ks:()=>f,q5:()=>m,s_:()=>C});var n,o,s=i(15393),r=i(73046),a=i(25670),l=i(4669),c=i(98401),h=i(70666),d=i(63580),u=i(81294),g=i(89872);!function(e){e.getDefinition=function(e,t){let i=e.defaults;for(;a.k.isThemeIcon(i);){const e=p.getIcon(i.id);if(!e)return;i=e.defaults}return i}}(n||(n={})),function(e){e.toJSONObject=function(e){return{weight:e.weight,style:e.style,src:e.src.map((e=>({format:e.format,location:e.location.toString()})))}},e.fromJSONObject=function(e){const t=e=>(0,c.HD)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every((e=>(0,c.HD)(e.format)&&(0,c.HD)(e.location))))return{weight:t(e.weight),style:t(e.style),src:e.src.map((e=>({format:e.format,location:h.o.parse(e.location)})))}}}(o||(o={}));const p=new class{constructor(){this._onDidChange=new l.Q5,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,d.NC)("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:(0,d.NC)("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${a.k.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){const o=this.iconsById[e];if(o){if(i&&!o.description){o.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire()}return o}const s={id:e,description:i,defaults:t,deprecationMessage:n};this.iconsById[e]=s;const r={$ref:"#/definitions/icons"};return n&&(r.deprecationMessage=n),i&&(r.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=r,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map((e=>this.iconsById[e]))}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;a.k.isThemeIcon(e.defaults);)e=this.iconsById[e.defaults.id];return`codicon codicon-${e?e.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const n=Object.keys(this.iconsById).map((e=>this.iconsById[e]));for(const o of n.filter((e=>!!e.description)).sort(e))i.push(`||${o.id}|${a.k.isThemeIcon(o.defaults)?o.defaults.id:o.id}|${o.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const o of n.filter((e=>!a.k.isThemeIcon(e.defaults))).sort(e))i.push(`||${o.id}|`);return i.join("\n")}};function m(e,t,i,n){return p.registerIcon(e,t,i,n)}function f(){return p}g.B.add("base.contributions.icons",p),function(){const e=(0,r.u)();for(const t in e){const i="\\"+e[t].toString(16);p.registerIcon(t,{fontCharacter:i})}}();const _="vscode://schemas/icons",v=g.B.as(u.I.JSONContribution);v.registerSchema(_,p.getIconSchema());const b=new s.pY((()=>v.notifySchemaChanged(_)),200);p.onDidChange((()=>{b.isScheduled()||b.schedule()}));const C=m("widget-close",r.l.close,(0,d.NC)("widgetClose","Icon for the close action in widgets."));m("goto-previous-location",r.l.arrowUp,(0,d.NC)("previousChangeIcon","Icon for goto previous editor location.")),m("goto-next-location",r.l.arrowDown,(0,d.NC)("nextChangeIcon","Icon for goto next editor location.")),a.k.modify(r.l.sync,"spin"),a.k.modify(r.l.loading,"spin")},92321:(e,t,i)=>{"use strict";var n;function o(e){return e===n.HIGH_CONTRAST_DARK||e===n.HIGH_CONTRAST_LIGHT}function s(e){return e===n.DARK||e===n.HIGH_CONTRAST_DARK}i.d(t,{_T:()=>s,c3:()=>o,eL:()=>n}),function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(n||(n={}))},97781:(e,t,i)=>{"use strict";i.d(t,{EN:()=>c,IP:()=>d,Ic:()=>g,XE:()=>l,bB:()=>p,m6:()=>h});var n=i(4669),o=i(5976),s=i(72065),r=i(89872),a=i(92321);const l=(0,s.yh)("themeService");function c(e){return{id:e}}function h(e){switch(e){case a.eL.DARK:return"vs-dark";case a.eL.HIGH_CONTRAST_DARK:return"hc-black";case a.eL.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const d={ThemingContribution:"base.contributions.theming"},u=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new n.Q5}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,o.OF)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function g(e){return u.onColorThemeChange(e)}r.B.add(d.ThemingContribution,u);class p extends o.JT{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((e=>this.onThemeChange(e))))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},64862:(e,t,i)=>{"use strict";i.d(t,{Xt:()=>s,YO:()=>o,gJ:()=>r,tJ:()=>n});const n=(0,i(72065).yh)("undoRedoService");class o{constructor(e,t){this.resource=e,this.elements=t}}class s{constructor(){this.id=s._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}s._ID=0,s.None=new s;class r{constructor(){this.id=r._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}r._ID=0,r.None=new r},40382:(e,t,i)=>{"use strict";i.d(t,{A6:()=>g,c$:()=>l,eb:()=>a,ec:()=>r,md:()=>u,p$:()=>p,uT:()=>d,x:()=>m});var n=i(63580),o=i(88721),s=(i(4767),i(70666));const r=(0,i(72065).yh)("contextService");function a(e){const t=e;return"string"==typeof(null==t?void 0:t.id)&&s.o.isUri(t.uri)}function l(e){return"string"==typeof(null==e?void 0:e.id)&&!a(e)&&!function(e){const t=e;return"string"==typeof(null==t?void 0:t.id)&&s.o.isUri(t.configPath)}(e)}const c={id:"ext-dev"},h={id:"empty-window"};function d(e,t){if("string"==typeof e||void 0===e)return"string"==typeof e?{id:(0,o.EZ)(e)}:t?c:h;const i=e;return i.configuration?{id:i.id,configPath:i.configuration}:1===i.folders.length?{id:i.id,uri:i.folders[0].uri}:{id:i.id}}class u{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}const g="code-workspace",p=((0,n.NC)("codeWorkspace","Code Workspace"),"4064f6ec-cb38-4ad0-af64-ee6467e63c82");function m(e){return e.id===p}},33425:(e,t,i)=>{"use strict";i.d(t,{Y:()=>n});const n=(0,i(72065).yh)("workspaceTrustManagementService")},31515:(e,t,i)=>{"use strict";const{DOCUMENT_MODE:n}=i(16152),o="html",s=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],r=s.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),a=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],l=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],c=l.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function h(e){const t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function d(e,t){for(let i=0;i-1)return n.QUIRKS;let e=null===t?r:s;if(d(i,e))return n.QUIRKS;if(e=null===t?l:c,d(i,e))return n.LIMITED_QUIRKS}return n.NO_QUIRKS},t.serializeContent=function(e,t,i){let n="!DOCTYPE ";return e&&(n+=e),t?n+=" PUBLIC "+h(t):i&&(n+=" SYSTEM"),null!==i&&(n+=" "+h(i)),n}},41734:e=>{"use strict";e.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}},88779:(e,t,i)=>{"use strict";const n=i(55763),o=i(16152),s=o.TAG_NAMES,r=o.NAMESPACES,a=o.ATTRS,l={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},c={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:r.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:r.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:r.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:r.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:r.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:r.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:r.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:r.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:r.XML},"xml:space":{prefix:"xml",name:"space",namespace:r.XML},xmlns:{prefix:"",name:"xmlns",namespace:r.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:r.XMLNS}},h=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},d={[s.B]:!0,[s.BIG]:!0,[s.BLOCKQUOTE]:!0,[s.BODY]:!0,[s.BR]:!0,[s.CENTER]:!0,[s.CODE]:!0,[s.DD]:!0,[s.DIV]:!0,[s.DL]:!0,[s.DT]:!0,[s.EM]:!0,[s.EMBED]:!0,[s.H1]:!0,[s.H2]:!0,[s.H3]:!0,[s.H4]:!0,[s.H5]:!0,[s.H6]:!0,[s.HEAD]:!0,[s.HR]:!0,[s.I]:!0,[s.IMG]:!0,[s.LI]:!0,[s.LISTING]:!0,[s.MENU]:!0,[s.META]:!0,[s.NOBR]:!0,[s.OL]:!0,[s.P]:!0,[s.PRE]:!0,[s.RUBY]:!0,[s.S]:!0,[s.SMALL]:!0,[s.SPAN]:!0,[s.STRONG]:!0,[s.STRIKE]:!0,[s.SUB]:!0,[s.SUP]:!0,[s.TABLE]:!0,[s.TT]:!0,[s.U]:!0,[s.UL]:!0,[s.VAR]:!0};t.causesExit=function(e){const t=e.tagName;return!(t!==s.FONT||null===n.getTokenAttr(e,a.COLOR)&&null===n.getTokenAttr(e,a.SIZE)&&null===n.getTokenAttr(e,a.FACE))||d[t]},t.adjustTokenMathMLAttrs=function(e){for(let t=0;t{"use strict";const i=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const n=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};t.SPECIAL_ELEMENTS={[i.HTML]:{[n.ADDRESS]:!0,[n.APPLET]:!0,[n.AREA]:!0,[n.ARTICLE]:!0,[n.ASIDE]:!0,[n.BASE]:!0,[n.BASEFONT]:!0,[n.BGSOUND]:!0,[n.BLOCKQUOTE]:!0,[n.BODY]:!0,[n.BR]:!0,[n.BUTTON]:!0,[n.CAPTION]:!0,[n.CENTER]:!0,[n.COL]:!0,[n.COLGROUP]:!0,[n.DD]:!0,[n.DETAILS]:!0,[n.DIR]:!0,[n.DIV]:!0,[n.DL]:!0,[n.DT]:!0,[n.EMBED]:!0,[n.FIELDSET]:!0,[n.FIGCAPTION]:!0,[n.FIGURE]:!0,[n.FOOTER]:!0,[n.FORM]:!0,[n.FRAME]:!0,[n.FRAMESET]:!0,[n.H1]:!0,[n.H2]:!0,[n.H3]:!0,[n.H4]:!0,[n.H5]:!0,[n.H6]:!0,[n.HEAD]:!0,[n.HEADER]:!0,[n.HGROUP]:!0,[n.HR]:!0,[n.HTML]:!0,[n.IFRAME]:!0,[n.IMG]:!0,[n.INPUT]:!0,[n.LI]:!0,[n.LINK]:!0,[n.LISTING]:!0,[n.MAIN]:!0,[n.MARQUEE]:!0,[n.MENU]:!0,[n.META]:!0,[n.NAV]:!0,[n.NOEMBED]:!0,[n.NOFRAMES]:!0,[n.NOSCRIPT]:!0,[n.OBJECT]:!0,[n.OL]:!0,[n.P]:!0,[n.PARAM]:!0,[n.PLAINTEXT]:!0,[n.PRE]:!0,[n.SCRIPT]:!0,[n.SECTION]:!0,[n.SELECT]:!0,[n.SOURCE]:!0,[n.STYLE]:!0,[n.SUMMARY]:!0,[n.TABLE]:!0,[n.TBODY]:!0,[n.TD]:!0,[n.TEMPLATE]:!0,[n.TEXTAREA]:!0,[n.TFOOT]:!0,[n.TH]:!0,[n.THEAD]:!0,[n.TITLE]:!0,[n.TR]:!0,[n.TRACK]:!0,[n.UL]:!0,[n.WBR]:!0,[n.XMP]:!0},[i.MATHML]:{[n.MI]:!0,[n.MO]:!0,[n.MN]:!0,[n.MS]:!0,[n.MTEXT]:!0,[n.ANNOTATION_XML]:!0},[i.SVG]:{[n.TITLE]:!0,[n.FOREIGN_OBJECT]:!0,[n.DESC]:!0}}},54284:(e,t)=>{"use strict";const i=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];t.REPLACEMENT_CHARACTER="�",t.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},t.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},t.isSurrogate=function(e){return e>=55296&&e<=57343},t.isSurrogatePair=function(e){return e>=56320&&e<=57343},t.getSurrogatePairCodePoint=function(e,t){return 1024*(e-55296)+9216+t},t.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},t.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||i.indexOf(e)>-1}},23843:(e,t,i)=>{"use strict";const n=i(81704);e.exports=class extends n{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}}},22232:(e,t,i)=>{"use strict";const n=i(23843),o=i(70050),s=i(46110),r=i(81704);e.exports=class extends n{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(i,n){t._bootstrap.call(this,i,n),r.install(this.tokenizer,o,e.opts),r.install(this.tokenizer,s)},_processInputToken(i){e.ctLoc=i.location,t._processInputToken.call(this,i)},_err(t,i){e.locBeforeToken=i&&i.beforeToken,e._reportError(t)}}}}},23288:(e,t,i)=>{"use strict";const n=i(23843),o=i(57930),s=i(81704);e.exports=class extends n{constructor(e,t){super(e,t),this.posTracker=s.install(e,o),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}}},70050:(e,t,i)=>{"use strict";const n=i(23843),o=i(23288),s=i(81704);e.exports=class extends n{constructor(e,t){super(e,t);const i=s.install(e.preprocessor,o,t);this.posTracker=i.posTracker}}},11077:(e,t,i)=>{"use strict";const n=i(81704);e.exports=class extends n{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(i){e.onItemPop(this.current),t.remove.call(this,i)}}}}},452:(e,t,i)=>{"use strict";const n=i(81704),o=i(55763),s=i(46110),r=i(11077),a=i(16152).TAG_NAMES;e.exports=class extends n{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const i=t.location,n=this.treeAdapter.getTagName(e),s={};t.type===o.END_TAG_TOKEN&&n===t.tagName?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,s)}}_getOverriddenMethods(e,t){return{_bootstrap(i,o){t._bootstrap.call(this,i,o),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const a=n.install(this.tokenizer,s);e.posTracker=a.posTracker,n.install(this.openElements,r,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(i){t._runParsingLoop.call(this,i);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(i){e.currentToken=i,t._processTokenInForeignContent.call(this,i)},_processToken(i){if(e.currentToken=i,t._processToken.call(this,i),i.type===o.END_TAG_TOKEN&&(i.tagName===a.HTML||i.tagName===a.BODY&&this.openElements.hasInScope(a.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];if(this.treeAdapter.getTagName(n)===i.tagName){e._setEndLocation(n,i);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const i=this.treeAdapter.getChildNodes(this.document),n=i.length;for(let t=0;t{"use strict";const n=i(81704),o=i(55763),s=i(57930);e.exports=class extends n{constructor(e){super(e),this.tokenizer=e,this.posTracker=n.install(e.preprocessor,s),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const i={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(i){t._createDoctypeToken.call(this,i),this.currentToken.location=e.ctLoc},_createCharacterToken(i,n){t._createCharacterToken.call(this,i,n),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(i){t._createAttr.call(this,i),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(i){t._leaveAttrName.call(this,i),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(i){t._leaveAttrValue.call(this,i),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const i=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=i.startLine,this.currentCharacterToken.location.endCol=i.startCol,this.currentCharacterToken.location.endOffset=i.startOffset),this.currentToken.type===o.EOF_TOKEN?(i.endLine=i.startLine,i.endCol=i.startCol,i.endOffset=i.startOffset):(i.endLine=e.posTracker.line,i.endCol=e.posTracker.col+1,i.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const i=this.currentCharacterToken&&this.currentCharacterToken.location;i&&-1===i.endOffset&&(i.endLine=e.posTracker.line,i.endCol=e.posTracker.col,i.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(o.MODE).forEach((n=>{const s=o.MODE[n];i[s]=function(i){e.ctLoc=e._getCurrentLocation(),t[s].call(this,i)}})),i}}},57930:(e,t,i)=>{"use strict";const n=i(81704);e.exports=class extends n{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const i=this.pos+1,n=this.html[i];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=i),("\n"===n||"\r"===n&&"\n"!==this.html[i+1])&&(e.isEol=!0),e.col=i-e.lineStartPos+1,e.offset=e.droppedBufferSize+i,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const i=this.pos;t.dropParsedChunk.call(this);const n=i-this.pos;e.lineStartPos-=n,e.droppedBufferSize+=n,e.offset=e.droppedBufferSize+this.pos}}}}},12484:e=>{"use strict";class t{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const i=[];if(this.length>=3){const n=this.treeAdapter.getAttrList(e).length,o=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const r=this.entries[e];if(r.type===t.MARKER_ENTRY)break;const a=r.element,l=this.treeAdapter.getAttrList(a);this.treeAdapter.getTagName(a)===o&&this.treeAdapter.getNamespaceURI(a)===s&&l.length===n&&i.push({idx:e,attrs:l})}}return i.length<3?[]:i}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let i=t.length;if(i){const n=this.treeAdapter.getAttrList(e),o=n.length,s=Object.create(null);for(let e=0;e=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:t.MARKER_ENTRY}),this.length++}pushElement(e,i){this._ensureNoahArkCondition(e),this.entries.push({type:t.ELEMENT_ENTRY,element:e,token:i}),this.length++}insertElementAfterBookmark(e,i){let n=this.length-1;for(;n>=0&&this.entries[n]!==this.bookmark;n--);this.entries.splice(n+1,0,{type:t.ELEMENT_ENTRY,element:e,token:i}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===t.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let i=this.length-1;i>=0;i--){const n=this.entries[i];if(n.type===t.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(n.element)===e)return n}return null}getElementEntry(e){for(let i=this.length-1;i>=0;i--){const n=this.entries[i];if(n.type===t.ELEMENT_ENTRY&&n.element===e)return n}return null}}t.MARKER_ENTRY="MARKER_ENTRY",t.ELEMENT_ENTRY="ELEMENT_ENTRY",e.exports=t},7045:(e,t,i)=>{"use strict";const n=i(55763),o=i(46519),s=i(12484),r=i(452),a=i(22232),l=i(81704),c=i(17296),h=i(8904),d=i(31515),u=i(88779),g=i(41734),p=i(54284),m=i(16152),f=m.TAG_NAMES,_=m.NAMESPACES,v=m.ATTRS,b={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:c},C="hidden",y=8,w=3,S="INITIAL_MODE",k="BEFORE_HTML_MODE",x="BEFORE_HEAD_MODE",L="IN_HEAD_MODE",E="IN_HEAD_NO_SCRIPT_MODE",N="AFTER_HEAD_MODE",D="IN_BODY_MODE",T="TEXT_MODE",I="IN_TABLE_MODE",A="IN_TABLE_TEXT_MODE",M="IN_CAPTION_MODE",R="IN_COLUMN_GROUP_MODE",O="IN_TABLE_BODY_MODE",P="IN_ROW_MODE",F="IN_CELL_MODE",B="IN_SELECT_MODE",H="IN_SELECT_IN_TABLE_MODE",V="IN_TEMPLATE_MODE",W="AFTER_BODY_MODE",z="IN_FRAMESET_MODE",U="AFTER_FRAMESET_MODE",j="AFTER_AFTER_BODY_MODE",K="AFTER_AFTER_FRAMESET_MODE",q={[f.TR]:P,[f.TBODY]:O,[f.THEAD]:O,[f.TFOOT]:O,[f.CAPTION]:M,[f.COLGROUP]:R,[f.TABLE]:I,[f.BODY]:D,[f.FRAMESET]:z},$={[f.CAPTION]:I,[f.COLGROUP]:I,[f.TBODY]:I,[f.TFOOT]:I,[f.THEAD]:I,[f.COL]:R,[f.TR]:O,[f.TD]:P,[f.TH]:P},G={[S]:{[n.CHARACTER_TOKEN]:le,[n.NULL_CHARACTER_TOKEN]:le,[n.WHITESPACE_CHARACTER_TOKEN]:ie,[n.COMMENT_TOKEN]:oe,[n.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);const i=t.forceQuirks?m.DOCUMENT_MODE.QUIRKS:d.getDocumentMode(t);d.isConforming(t)||e._err(g.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,i),e.insertionMode=k},[n.START_TAG_TOKEN]:le,[n.END_TAG_TOKEN]:le,[n.EOF_TOKEN]:le},[k]:{[n.CHARACTER_TOKEN]:ce,[n.NULL_CHARACTER_TOKEN]:ce,[n.WHITESPACE_CHARACTER_TOKEN]:ie,[n.COMMENT_TOKEN]:oe,[n.DOCTYPE_TOKEN]:ie,[n.START_TAG_TOKEN]:function(e,t){t.tagName===f.HTML?(e._insertElement(t,_.HTML),e.insertionMode=x):ce(e,t)},[n.END_TAG_TOKEN]:function(e,t){const i=t.tagName;i!==f.HTML&&i!==f.HEAD&&i!==f.BODY&&i!==f.BR||ce(e,t)},[n.EOF_TOKEN]:ce},[x]:{[n.CHARACTER_TOKEN]:he,[n.NULL_CHARACTER_TOKEN]:he,[n.WHITESPACE_CHARACTER_TOKEN]:ie,[n.COMMENT_TOKEN]:oe,[n.DOCTYPE_TOKEN]:ne,[n.START_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.HTML?Ne(e,t):i===f.HEAD?(e._insertElement(t,_.HTML),e.headElement=e.openElements.current,e.insertionMode=L):he(e,t)},[n.END_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.HEAD||i===f.BODY||i===f.HTML||i===f.BR?he(e,t):e._err(g.endTagWithoutMatchingOpenElement)},[n.EOF_TOKEN]:he},[L]:{[n.CHARACTER_TOKEN]:ge,[n.NULL_CHARACTER_TOKEN]:ge,[n.WHITESPACE_CHARACTER_TOKEN]:re,[n.COMMENT_TOKEN]:oe,[n.DOCTYPE_TOKEN]:ne,[n.START_TAG_TOKEN]:de,[n.END_TAG_TOKEN]:ue,[n.EOF_TOKEN]:ge},[E]:{[n.CHARACTER_TOKEN]:pe,[n.NULL_CHARACTER_TOKEN]:pe,[n.WHITESPACE_CHARACTER_TOKEN]:re,[n.COMMENT_TOKEN]:oe,[n.DOCTYPE_TOKEN]:ne,[n.START_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.HTML?Ne(e,t):i===f.BASEFONT||i===f.BGSOUND||i===f.HEAD||i===f.LINK||i===f.META||i===f.NOFRAMES||i===f.STYLE?de(e,t):i===f.NOSCRIPT?e._err(g.nestedNoscriptInHead):pe(e,t)},[n.END_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.NOSCRIPT?(e.openElements.pop(),e.insertionMode=L):i===f.BR?pe(e,t):e._err(g.endTagWithoutMatchingOpenElement)},[n.EOF_TOKEN]:pe},[N]:{[n.CHARACTER_TOKEN]:me,[n.NULL_CHARACTER_TOKEN]:me,[n.WHITESPACE_CHARACTER_TOKEN]:re,[n.COMMENT_TOKEN]:oe,[n.DOCTYPE_TOKEN]:ne,[n.START_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.HTML?Ne(e,t):i===f.BODY?(e._insertElement(t,_.HTML),e.framesetOk=!1,e.insertionMode=D):i===f.FRAMESET?(e._insertElement(t,_.HTML),e.insertionMode=z):i===f.BASE||i===f.BASEFONT||i===f.BGSOUND||i===f.LINK||i===f.META||i===f.NOFRAMES||i===f.SCRIPT||i===f.STYLE||i===f.TEMPLATE||i===f.TITLE?(e._err(g.abandonedHeadElementChild),e.openElements.push(e.headElement),de(e,t),e.openElements.remove(e.headElement)):i===f.HEAD?e._err(g.misplacedStartTagForHeadElement):me(e,t)},[n.END_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.BODY||i===f.HTML||i===f.BR?me(e,t):i===f.TEMPLATE?ue(e,t):e._err(g.endTagWithoutMatchingOpenElement)},[n.EOF_TOKEN]:me},[D]:{[n.CHARACTER_TOKEN]:_e,[n.NULL_CHARACTER_TOKEN]:ie,[n.WHITESPACE_CHARACTER_TOKEN]:fe,[n.COMMENT_TOKEN]:oe,[n.DOCTYPE_TOKEN]:ie,[n.START_TAG_TOKEN]:Ne,[n.END_TAG_TOKEN]:Ae,[n.EOF_TOKEN]:Me},[T]:{[n.CHARACTER_TOKEN]:re,[n.NULL_CHARACTER_TOKEN]:re,[n.WHITESPACE_CHARACTER_TOKEN]:re,[n.COMMENT_TOKEN]:ie,[n.DOCTYPE_TOKEN]:ie,[n.START_TAG_TOKEN]:ie,[n.END_TAG_TOKEN]:function(e,t){t.tagName===f.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[n.EOF_TOKEN]:function(e,t){e._err(g.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[I]:{[n.CHARACTER_TOKEN]:Re,[n.NULL_CHARACTER_TOKEN]:Re,[n.WHITESPACE_CHARACTER_TOKEN]:Re,[n.COMMENT_TOKEN]:oe,[n.DOCTYPE_TOKEN]:ie,[n.START_TAG_TOKEN]:Oe,[n.END_TAG_TOKEN]:Pe,[n.EOF_TOKEN]:Me},[A]:{[n.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[n.NULL_CHARACTER_TOKEN]:ie,[n.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[n.COMMENT_TOKEN]:Be,[n.DOCTYPE_TOKEN]:Be,[n.START_TAG_TOKEN]:Be,[n.END_TAG_TOKEN]:Be,[n.EOF_TOKEN]:Be},[M]:{[n.CHARACTER_TOKEN]:_e,[n.NULL_CHARACTER_TOKEN]:ie,[n.WHITESPACE_CHARACTER_TOKEN]:fe,[n.COMMENT_TOKEN]:oe,[n.DOCTYPE_TOKEN]:ie,[n.START_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.CAPTION||i===f.COL||i===f.COLGROUP||i===f.TBODY||i===f.TD||i===f.TFOOT||i===f.TH||i===f.THEAD||i===f.TR?e.openElements.hasInTableScope(f.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=I,e._processToken(t)):Ne(e,t)},[n.END_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.CAPTION||i===f.TABLE?e.openElements.hasInTableScope(f.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=I,i===f.TABLE&&e._processToken(t)):i!==f.BODY&&i!==f.COL&&i!==f.COLGROUP&&i!==f.HTML&&i!==f.TBODY&&i!==f.TD&&i!==f.TFOOT&&i!==f.TH&&i!==f.THEAD&&i!==f.TR&&Ae(e,t)},[n.EOF_TOKEN]:Me},[R]:{[n.CHARACTER_TOKEN]:He,[n.NULL_CHARACTER_TOKEN]:He,[n.WHITESPACE_CHARACTER_TOKEN]:re,[n.COMMENT_TOKEN]:oe,[n.DOCTYPE_TOKEN]:ie,[n.START_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.HTML?Ne(e,t):i===f.COL?(e._appendElement(t,_.HTML),t.ackSelfClosing=!0):i===f.TEMPLATE?de(e,t):He(e,t)},[n.END_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.COLGROUP?e.openElements.currentTagName===f.COLGROUP&&(e.openElements.pop(),e.insertionMode=I):i===f.TEMPLATE?ue(e,t):i!==f.COL&&He(e,t)},[n.EOF_TOKEN]:Me},[O]:{[n.CHARACTER_TOKEN]:Re,[n.NULL_CHARACTER_TOKEN]:Re,[n.WHITESPACE_CHARACTER_TOKEN]:Re,[n.COMMENT_TOKEN]:oe,[n.DOCTYPE_TOKEN]:ie,[n.START_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,_.HTML),e.insertionMode=P):i===f.TH||i===f.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(f.TR),e.insertionMode=P,e._processToken(t)):i===f.CAPTION||i===f.COL||i===f.COLGROUP||i===f.TBODY||i===f.TFOOT||i===f.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=I,e._processToken(t)):Oe(e,t)},[n.END_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.TBODY||i===f.TFOOT||i===f.THEAD?e.openElements.hasInTableScope(i)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=I):i===f.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=I,e._processToken(t)):(i!==f.BODY&&i!==f.CAPTION&&i!==f.COL&&i!==f.COLGROUP||i!==f.HTML&&i!==f.TD&&i!==f.TH&&i!==f.TR)&&Pe(e,t)},[n.EOF_TOKEN]:Me},[P]:{[n.CHARACTER_TOKEN]:Re,[n.NULL_CHARACTER_TOKEN]:Re,[n.WHITESPACE_CHARACTER_TOKEN]:Re,[n.COMMENT_TOKEN]:oe,[n.DOCTYPE_TOKEN]:ie,[n.START_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.TH||i===f.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,_.HTML),e.insertionMode=F,e.activeFormattingElements.insertMarker()):i===f.CAPTION||i===f.COL||i===f.COLGROUP||i===f.TBODY||i===f.TFOOT||i===f.THEAD||i===f.TR?e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=O,e._processToken(t)):Oe(e,t)},[n.END_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.TR?e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=O):i===f.TABLE?e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=O,e._processToken(t)):i===f.TBODY||i===f.TFOOT||i===f.THEAD?(e.openElements.hasInTableScope(i)||e.openElements.hasInTableScope(f.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=O,e._processToken(t)):(i!==f.BODY&&i!==f.CAPTION&&i!==f.COL&&i!==f.COLGROUP||i!==f.HTML&&i!==f.TD&&i!==f.TH)&&Pe(e,t)},[n.EOF_TOKEN]:Me},[F]:{[n.CHARACTER_TOKEN]:_e,[n.NULL_CHARACTER_TOKEN]:ie,[n.WHITESPACE_CHARACTER_TOKEN]:fe,[n.COMMENT_TOKEN]:oe,[n.DOCTYPE_TOKEN]:ie,[n.START_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.CAPTION||i===f.COL||i===f.COLGROUP||i===f.TBODY||i===f.TD||i===f.TFOOT||i===f.TH||i===f.THEAD||i===f.TR?(e.openElements.hasInTableScope(f.TD)||e.openElements.hasInTableScope(f.TH))&&(e._closeTableCell(),e._processToken(t)):Ne(e,t)},[n.END_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.TD||i===f.TH?e.openElements.hasInTableScope(i)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(i),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=P):i===f.TABLE||i===f.TBODY||i===f.TFOOT||i===f.THEAD||i===f.TR?e.openElements.hasInTableScope(i)&&(e._closeTableCell(),e._processToken(t)):i!==f.BODY&&i!==f.CAPTION&&i!==f.COL&&i!==f.COLGROUP&&i!==f.HTML&&Ae(e,t)},[n.EOF_TOKEN]:Me},[B]:{[n.CHARACTER_TOKEN]:re,[n.NULL_CHARACTER_TOKEN]:ie,[n.WHITESPACE_CHARACTER_TOKEN]:re,[n.COMMENT_TOKEN]:oe,[n.DOCTYPE_TOKEN]:ie,[n.START_TAG_TOKEN]:Ve,[n.END_TAG_TOKEN]:We,[n.EOF_TOKEN]:Me},[H]:{[n.CHARACTER_TOKEN]:re,[n.NULL_CHARACTER_TOKEN]:ie,[n.WHITESPACE_CHARACTER_TOKEN]:re,[n.COMMENT_TOKEN]:oe,[n.DOCTYPE_TOKEN]:ie,[n.START_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.CAPTION||i===f.TABLE||i===f.TBODY||i===f.TFOOT||i===f.THEAD||i===f.TR||i===f.TD||i===f.TH?(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e._processToken(t)):Ve(e,t)},[n.END_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.CAPTION||i===f.TABLE||i===f.TBODY||i===f.TFOOT||i===f.THEAD||i===f.TR||i===f.TD||i===f.TH?e.openElements.hasInTableScope(i)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e._processToken(t)):We(e,t)},[n.EOF_TOKEN]:Me},[V]:{[n.CHARACTER_TOKEN]:_e,[n.NULL_CHARACTER_TOKEN]:ie,[n.WHITESPACE_CHARACTER_TOKEN]:fe,[n.COMMENT_TOKEN]:oe,[n.DOCTYPE_TOKEN]:ie,[n.START_TAG_TOKEN]:function(e,t){const i=t.tagName;if(i===f.BASE||i===f.BASEFONT||i===f.BGSOUND||i===f.LINK||i===f.META||i===f.NOFRAMES||i===f.SCRIPT||i===f.STYLE||i===f.TEMPLATE||i===f.TITLE)de(e,t);else{const n=$[i]||D;e._popTmplInsertionMode(),e._pushTmplInsertionMode(n),e.insertionMode=n,e._processToken(t)}},[n.END_TAG_TOKEN]:function(e,t){t.tagName===f.TEMPLATE&&ue(e,t)},[n.EOF_TOKEN]:ze},[W]:{[n.CHARACTER_TOKEN]:Ue,[n.NULL_CHARACTER_TOKEN]:Ue,[n.WHITESPACE_CHARACTER_TOKEN]:fe,[n.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[n.DOCTYPE_TOKEN]:ie,[n.START_TAG_TOKEN]:function(e,t){t.tagName===f.HTML?Ne(e,t):Ue(e,t)},[n.END_TAG_TOKEN]:function(e,t){t.tagName===f.HTML?e.fragmentContext||(e.insertionMode=j):Ue(e,t)},[n.EOF_TOKEN]:ae},[z]:{[n.CHARACTER_TOKEN]:ie,[n.NULL_CHARACTER_TOKEN]:ie,[n.WHITESPACE_CHARACTER_TOKEN]:re,[n.COMMENT_TOKEN]:oe,[n.DOCTYPE_TOKEN]:ie,[n.START_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.HTML?Ne(e,t):i===f.FRAMESET?e._insertElement(t,_.HTML):i===f.FRAME?(e._appendElement(t,_.HTML),t.ackSelfClosing=!0):i===f.NOFRAMES&&de(e,t)},[n.END_TAG_TOKEN]:function(e,t){t.tagName!==f.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===f.FRAMESET||(e.insertionMode=U))},[n.EOF_TOKEN]:ae},[U]:{[n.CHARACTER_TOKEN]:ie,[n.NULL_CHARACTER_TOKEN]:ie,[n.WHITESPACE_CHARACTER_TOKEN]:re,[n.COMMENT_TOKEN]:oe,[n.DOCTYPE_TOKEN]:ie,[n.START_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.HTML?Ne(e,t):i===f.NOFRAMES&&de(e,t)},[n.END_TAG_TOKEN]:function(e,t){t.tagName===f.HTML&&(e.insertionMode=K)},[n.EOF_TOKEN]:ae},[j]:{[n.CHARACTER_TOKEN]:je,[n.NULL_CHARACTER_TOKEN]:je,[n.WHITESPACE_CHARACTER_TOKEN]:fe,[n.COMMENT_TOKEN]:se,[n.DOCTYPE_TOKEN]:ie,[n.START_TAG_TOKEN]:function(e,t){t.tagName===f.HTML?Ne(e,t):je(e,t)},[n.END_TAG_TOKEN]:je,[n.EOF_TOKEN]:ae},[K]:{[n.CHARACTER_TOKEN]:ie,[n.NULL_CHARACTER_TOKEN]:ie,[n.WHITESPACE_CHARACTER_TOKEN]:fe,[n.COMMENT_TOKEN]:se,[n.DOCTYPE_TOKEN]:ie,[n.START_TAG_TOKEN]:function(e,t){const i=t.tagName;i===f.HTML?Ne(e,t):i===f.NOFRAMES&&de(e,t)},[n.END_TAG_TOKEN]:ie,[n.EOF_TOKEN]:ae}};function Q(e,t){let i=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return i?e.openElements.contains(i.element)?e.openElements.hasInScope(t.tagName)||(i=null):(e.activeFormattingElements.removeEntry(i),i=null):Ie(e,t),i}function Y(e,t){let i=null;for(let n=e.openElements.stackTop;n>=0;n--){const o=e.openElements.items[n];if(o===t.element)break;e._isSpecialElement(o)&&(i=o)}return i||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),i}function Z(e,t,i){let n=t,o=e.openElements.getCommonAncestor(t);for(let s=0,r=o;r!==i;s++,r=o){o=e.openElements.getCommonAncestor(r);const i=e.activeFormattingElements.getElementEntry(r),a=i&&s>=w;!i||a?(a&&e.activeFormattingElements.removeEntry(i),e.openElements.remove(r)):(r=X(e,i),n===t&&(e.activeFormattingElements.bookmark=i),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(r,n),n=r)}return n}function X(e,t){const i=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,i,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function J(e,t,i){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(i);else{const n=e.treeAdapter.getTagName(t),o=e.treeAdapter.getNamespaceURI(t);n===f.TEMPLATE&&o===_.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,i)}}function ee(e,t,i){const n=e.treeAdapter.getNamespaceURI(i.element),o=i.token,s=e.treeAdapter.createElement(o.tagName,n,o.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,i.token),e.activeFormattingElements.removeEntry(i),e.openElements.remove(i.element),e.openElements.insertAfter(t,s)}function te(e,t){let i;for(let n=0;n0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==f.TEMPLATE&&e._err(g.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(g.endTagWithoutMatchingOpenElement)}function ge(e,t){e.openElements.pop(),e.insertionMode=N,e._processToken(t)}function pe(e,t){const i=t.type===n.EOF_TOKEN?g.openElementsLeftAfterEof:g.disallowedContentInNoscriptInHead;e._err(i),e.openElements.pop(),e.insertionMode=L,e._processToken(t)}function me(e,t){e._insertFakeElement(f.BODY),e.insertionMode=D,e._processToken(t)}function fe(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function _e(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ve(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML)}function be(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Ce(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function we(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,_.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Se(e,t){e._appendElement(t,_.HTML),t.ackSelfClosing=!0}function ke(e,t){e._switchToTextParsing(t,n.MODE.RAWTEXT)}function xe(e,t){e.openElements.currentTagName===f.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML)}function Le(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,_.HTML)}function Ee(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML)}function Ne(e,t){const i=t.tagName;switch(i.length){case 1:i===f.I||i===f.S||i===f.B||i===f.U?Ce(e,t):i===f.P?ve(e,t):i===f.A?function(e,t){const i=e.activeFormattingElements.getElementEntryInScopeWithTagName(f.A);i&&(te(e,t),e.openElements.remove(i.element),e.activeFormattingElements.removeEntry(i)),e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):Ee(e,t);break;case 2:i===f.DL||i===f.OL||i===f.UL?ve(e,t):i===f.H1||i===f.H2||i===f.H3||i===f.H4||i===f.H5||i===f.H6?function(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement();const i=e.openElements.currentTagName;i!==f.H1&&i!==f.H2&&i!==f.H3&&i!==f.H4&&i!==f.H5&&i!==f.H6||e.openElements.pop(),e._insertElement(t,_.HTML)}(e,t):i===f.LI||i===f.DD||i===f.DT?function(e,t){e.framesetOk=!1;const i=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){const n=e.openElements.items[t],o=e.treeAdapter.getTagName(n);let s=null;if(i===f.LI&&o===f.LI?s=f.LI:i!==f.DD&&i!==f.DT||o!==f.DD&&o!==f.DT||(s=o),s){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s);break}if(o!==f.ADDRESS&&o!==f.DIV&&o!==f.P&&e._isSpecialElement(n))break}e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML)}(e,t):i===f.EM||i===f.TT?Ce(e,t):i===f.BR?we(e,t):i===f.HR?function(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._appendElement(t,_.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t):i===f.RB?Le(e,t):i===f.RT||i===f.RP?function(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(f.RTC),e._insertElement(t,_.HTML)}(e,t):i!==f.TH&&i!==f.TD&&i!==f.TR&&Ee(e,t);break;case 3:i===f.DIV||i===f.DIR||i===f.NAV?ve(e,t):i===f.PRE?be(e,t):i===f.BIG?Ce(e,t):i===f.IMG||i===f.WBR?we(e,t):i===f.XMP?function(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,n.MODE.RAWTEXT)}(e,t):i===f.SVG?function(e,t){e._reconstructActiveFormattingElements(),u.adjustTokenSVGAttrs(t),u.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,_.SVG):e._insertElement(t,_.SVG),t.ackSelfClosing=!0}(e,t):i===f.RTC?Le(e,t):i!==f.COL&&Ee(e,t);break;case 4:i===f.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):i===f.BASE||i===f.LINK||i===f.META?de(e,t):i===f.BODY?function(e,t){const i=e.openElements.tryPeekProperlyNestedBodyElement();i&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(i,t.attrs))}(e,t):i===f.MAIN||i===f.MENU?ve(e,t):i===f.FORM?function(e,t){const i=e.openElements.tmplCount>0;e.formElement&&!i||(e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML),i||(e.formElement=e.openElements.current))}(e,t):i===f.CODE||i===f.FONT?Ce(e,t):i===f.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(f.NOBR)&&(te(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,_.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):i===f.AREA?we(e,t):i===f.MATH?function(e,t){e._reconstructActiveFormattingElements(),u.adjustTokenMathMLAttrs(t),u.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,_.MATHML):e._insertElement(t,_.MATHML),t.ackSelfClosing=!0}(e,t):i===f.MENU?function(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML)}(e,t):i!==f.HEAD&&Ee(e,t);break;case 5:i===f.STYLE||i===f.TITLE?de(e,t):i===f.ASIDE?ve(e,t):i===f.SMALL?Ce(e,t):i===f.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==m.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML),e.framesetOk=!1,e.insertionMode=I}(e,t):i===f.EMBED?we(e,t):i===f.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,_.HTML);const i=n.getTokenAttr(t,v.TYPE);i&&i.toLowerCase()===C||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):i===f.PARAM||i===f.TRACK?Se(e,t):i===f.IMAGE?function(e,t){t.tagName=f.IMG,we(e,t)}(e,t):i!==f.FRAME&&i!==f.TBODY&&i!==f.TFOOT&&i!==f.THEAD&&Ee(e,t);break;case 6:i===f.SCRIPT?de(e,t):i===f.CENTER||i===f.FIGURE||i===f.FOOTER||i===f.HEADER||i===f.HGROUP||i===f.DIALOG?ve(e,t):i===f.BUTTON?function(e,t){e.openElements.hasInScope(f.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.framesetOk=!1}(e,t):i===f.STRIKE||i===f.STRONG?Ce(e,t):i===f.APPLET||i===f.OBJECT?ye(e,t):i===f.KEYGEN?we(e,t):i===f.SOURCE?Se(e,t):i===f.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,n.MODE.RAWTEXT)}(e,t):i===f.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.framesetOk=!1,e.insertionMode===I||e.insertionMode===M||e.insertionMode===O||e.insertionMode===P||e.insertionMode===F?e.insertionMode=H:e.insertionMode=B}(e,t):i===f.OPTION?xe(e,t):Ee(e,t);break;case 7:i===f.BGSOUND?de(e,t):i===f.DETAILS||i===f.ADDRESS||i===f.ARTICLE||i===f.SECTION||i===f.SUMMARY?ve(e,t):i===f.LISTING?be(e,t):i===f.MARQUEE?ye(e,t):i===f.NOEMBED?ke(e,t):i!==f.CAPTION&&Ee(e,t);break;case 8:i===f.BASEFONT?de(e,t):i===f.FRAMESET?function(e,t){const i=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&i&&(e.treeAdapter.detachNode(i),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,_.HTML),e.insertionMode=z)}(e,t):i===f.FIELDSET?ve(e,t):i===f.TEXTAREA?function(e,t){e._insertElement(t,_.HTML),e.skipNextNewLine=!0,e.tokenizer.state=n.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=T}(e,t):i===f.TEMPLATE?de(e,t):i===f.NOSCRIPT?e.options.scriptingEnabled?ke(e,t):Ee(e,t):i===f.OPTGROUP?xe(e,t):i!==f.COLGROUP&&Ee(e,t);break;case 9:i===f.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML),e.tokenizer.state=n.MODE.PLAINTEXT}(e,t):Ee(e,t);break;case 10:i===f.BLOCKQUOTE||i===f.FIGCAPTION?ve(e,t):Ee(e,t);break;default:Ee(e,t)}}function De(e,t){const i=t.tagName;e.openElements.hasInScope(i)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(i))}function Te(e,t){const i=t.tagName;e.openElements.hasInScope(i)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(i),e.activeFormattingElements.clearToLastMarker())}function Ie(e,t){const i=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){const n=e.openElements.items[t];if(e.treeAdapter.getTagName(n)===i){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilElementPopped(n);break}if(e._isSpecialElement(n))break}}function Ae(e,t){const i=t.tagName;switch(i.length){case 1:i===f.A||i===f.B||i===f.I||i===f.S||i===f.U?te(e,t):i===f.P?function(e){e.openElements.hasInButtonScope(f.P)||e._insertFakeElement(f.P),e._closePElement()}(e):Ie(e,t);break;case 2:i===f.DL||i===f.UL||i===f.OL?De(e,t):i===f.LI?function(e){e.openElements.hasInListItemScope(f.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(f.LI),e.openElements.popUntilTagNamePopped(f.LI))}(e):i===f.DD||i===f.DT?function(e,t){const i=t.tagName;e.openElements.hasInScope(i)&&(e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i))}(e,t):i===f.H1||i===f.H2||i===f.H3||i===f.H4||i===f.H5||i===f.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):i===f.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(f.BR),e.openElements.pop(),e.framesetOk=!1}(e):i===f.EM||i===f.TT?te(e,t):Ie(e,t);break;case 3:i===f.BIG?te(e,t):i===f.DIR||i===f.DIV||i===f.NAV||i===f.PRE?De(e,t):Ie(e,t);break;case 4:i===f.BODY?function(e){e.openElements.hasInScope(f.BODY)&&(e.insertionMode=W)}(e):i===f.HTML?function(e,t){e.openElements.hasInScope(f.BODY)&&(e.insertionMode=W,e._processToken(t))}(e,t):i===f.FORM?function(e){const t=e.openElements.tmplCount>0,i=e.formElement;t||(e.formElement=null),(i||t)&&e.openElements.hasInScope(f.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(f.FORM):e.openElements.remove(i))}(e):i===f.CODE||i===f.FONT||i===f.NOBR?te(e,t):i===f.MAIN||i===f.MENU?De(e,t):Ie(e,t);break;case 5:i===f.ASIDE?De(e,t):i===f.SMALL?te(e,t):Ie(e,t);break;case 6:i===f.CENTER||i===f.FIGURE||i===f.FOOTER||i===f.HEADER||i===f.HGROUP||i===f.DIALOG?De(e,t):i===f.APPLET||i===f.OBJECT?Te(e,t):i===f.STRIKE||i===f.STRONG?te(e,t):Ie(e,t);break;case 7:i===f.ADDRESS||i===f.ARTICLE||i===f.DETAILS||i===f.SECTION||i===f.SUMMARY||i===f.LISTING?De(e,t):i===f.MARQUEE?Te(e,t):Ie(e,t);break;case 8:i===f.FIELDSET?De(e,t):i===f.TEMPLATE?ue(e,t):Ie(e,t);break;case 10:i===f.BLOCKQUOTE||i===f.FIGCAPTION?De(e,t):Ie(e,t);break;default:Ie(e,t)}}function Me(e,t){e.tmplInsertionModeStackTop>-1?ze(e,t):e.stopped=!0}function Re(e,t){const i=e.openElements.currentTagName;i===f.TABLE||i===f.TBODY||i===f.TFOOT||i===f.THEAD||i===f.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=A,e._processToken(t)):Fe(e,t)}function Oe(e,t){const i=t.tagName;switch(i.length){case 2:i===f.TD||i===f.TH||i===f.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(f.TBODY),e.insertionMode=O,e._processToken(t)}(e,t):Fe(e,t);break;case 3:i===f.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(f.COLGROUP),e.insertionMode=R,e._processToken(t)}(e,t):Fe(e,t);break;case 4:i===f.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,_.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):Fe(e,t);break;case 5:i===f.TABLE?function(e,t){e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):i===f.STYLE?de(e,t):i===f.TBODY||i===f.TFOOT||i===f.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,_.HTML),e.insertionMode=O}(e,t):i===f.INPUT?function(e,t){const i=n.getTokenAttr(t,v.TYPE);i&&i.toLowerCase()===C?e._appendElement(t,_.HTML):Fe(e,t),t.ackSelfClosing=!0}(e,t):Fe(e,t);break;case 6:i===f.SCRIPT?de(e,t):Fe(e,t);break;case 7:i===f.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,_.HTML),e.insertionMode=M}(e,t):Fe(e,t);break;case 8:i===f.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,_.HTML),e.insertionMode=R}(e,t):i===f.TEMPLATE?de(e,t):Fe(e,t);break;default:Fe(e,t)}}function Pe(e,t){const i=t.tagName;i===f.TABLE?e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode()):i===f.TEMPLATE?ue(e,t):i!==f.BODY&&i!==f.CAPTION&&i!==f.COL&&i!==f.COLGROUP&&i!==f.HTML&&i!==f.TBODY&&i!==f.TD&&i!==f.TFOOT&&i!==f.TH&&i!==f.THEAD&&i!==f.TR&&Fe(e,t)}function Fe(e,t){const i=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=i}function Be(e,t){let i=0;if(e.hasNonWhitespacePendingCharacterToken)for(;i0?(e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function Ue(e,t){e.insertionMode=D,e._processToken(t)}function je(e,t){e.insertionMode=D,e._processToken(t)}e.exports=class{constructor(e){this.options=h(b,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&l.install(this,r),this.options.onParseError&&l.install(this,a,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(f.TEMPLATE,_.HTML,[]));const i=this.treeAdapter.createElement("documentmock",_.HTML,[]);this._bootstrap(i,t),this.treeAdapter.getTagName(t)===f.TEMPLATE&&this._pushTmplInsertionMode(V),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const n=this.treeAdapter.getFirstChild(i),o=this.treeAdapter.createDocumentFragment();return this._adoptNodes(n,o),o}_bootstrap(e,t){this.tokenizer=new n(this.options),this.stopped=!1,this.insertionMode=S,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new o(this.document,this.treeAdapter),this.activeFormattingElements=new s(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===n.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===n.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==_.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,_.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=T}switchToPlaintextParsing(){this.insertionMode=T,this.originalInsertionMode=D,this.tokenizer.state=n.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===f.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===_.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===f.TITLE||e===f.TEXTAREA?this.tokenizer.state=n.MODE.RCDATA:e===f.STYLE||e===f.XMP||e===f.IFRAME||e===f.NOEMBED||e===f.NOFRAMES||e===f.NOSCRIPT?this.tokenizer.state=n.MODE.RAWTEXT:e===f.SCRIPT?this.tokenizer.state=n.MODE.SCRIPT_DATA:e===f.PLAINTEXT&&(this.tokenizer.state=n.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",i=e.publicId||"",n=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,i,n)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const i=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(i)}_insertElement(e,t){const i=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(i),this.openElements.push(i)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,_.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,_.HTML,e.attrs),i=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,i),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(f.HTML,_.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const i=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,i)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let i=this.treeAdapter.getFirstChild(e);i;i=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(i),this.treeAdapter.appendChild(t,i)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const i=this.treeAdapter.getNamespaceURI(t);if(i===_.HTML)return!1;if(this.treeAdapter.getTagName(t)===f.ANNOTATION_XML&&i===_.MATHML&&e.type===n.START_TAG_TOKEN&&e.tagName===f.SVG)return!1;const o=e.type===n.CHARACTER_TOKEN||e.type===n.NULL_CHARACTER_TOKEN||e.type===n.WHITESPACE_CHARACTER_TOKEN;return!((e.type===n.START_TAG_TOKEN&&e.tagName!==f.MGLYPH&&e.tagName!==f.MALIGNMARK||o)&&this._isIntegrationPoint(t,_.MATHML)||(e.type===n.START_TAG_TOKEN||o)&&this._isIntegrationPoint(t,_.HTML)||e.type===n.EOF_TOKEN)}_processToken(e){G[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){G[D][e.type](this,e)}_processTokenInForeignContent(e){e.type===n.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===n.NULL_CHARACTER_TOKEN?function(e,t){t.chars=p.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===n.WHITESPACE_CHARACTER_TOKEN?re(this,e):e.type===n.COMMENT_TOKEN?oe(this,e):e.type===n.START_TAG_TOKEN?function(e,t){if(u.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==_.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const i=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(i);n===_.MATHML?u.adjustTokenMathMLAttrs(t):n===_.SVG&&(u.adjustTokenSVGTagName(t),u.adjustTokenSVGAttrs(t)),u.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}(this,e):e.type===n.END_TAG_TOKEN&&function(e,t){for(let i=e.openElements.stackTop;i>0;i--){const n=e.openElements.items[i];if(e.treeAdapter.getNamespaceURI(n)===_.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(n).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(n);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===n.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(g.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){const i=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e),o=this.treeAdapter.getAttrList(e);return u.isIntegrationPoint(i,n,o,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,i=null;do{if(t--,i=this.activeFormattingElements.entries[t],i.type===s.MARKER_ENTRY||this.openElements.contains(i.element)){t++;break}}while(t>0);for(let n=t;n=0;e--){let i=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(i=this.fragmentContext));const n=this.treeAdapter.getTagName(i),o=q[n];if(o){this.insertionMode=o;break}if(!(t||n!==f.TD&&n!==f.TH)){this.insertionMode=F;break}if(!t&&n===f.HEAD){this.insertionMode=L;break}if(n===f.SELECT){this._resetInsertionModeForSelect(e);break}if(n===f.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(n===f.HTML){this.insertionMode=this.headElement?N:x;break}if(t){this.insertionMode=D;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],i=this.treeAdapter.getTagName(e);if(i===f.TEMPLATE)break;if(i===f.TABLE)return void(this.insertionMode=H)}this.insertionMode=B}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===f.TABLE||t===f.TBODY||t===f.TFOOT||t===f.THEAD||t===f.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const i=this.openElements.items[t],n=this.treeAdapter.getTagName(i),o=this.treeAdapter.getNamespaceURI(i);if(n===f.TEMPLATE&&o===_.HTML){e.parent=this.treeAdapter.getTemplateContent(i);break}if(n===f.TABLE){e.parent=this.treeAdapter.getParentNode(i),e.parent?e.beforeElement=i:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);return m.SPECIAL_ELEMENTS[i][t]}}},46519:(e,t,i)=>{"use strict";const n=i(16152),o=n.TAG_NAMES,s=n.NAMESPACES;function r(e){switch(e.length){case 1:return e===o.P;case 2:return e===o.RB||e===o.RP||e===o.RT||e===o.DD||e===o.DT||e===o.LI;case 3:return e===o.RTC;case 6:return e===o.OPTION;case 8:return e===o.OPTGROUP}return!1}function a(e){switch(e.length){case 1:return e===o.P;case 2:return e===o.RB||e===o.RP||e===o.RT||e===o.DD||e===o.DT||e===o.LI||e===o.TD||e===o.TH||e===o.TR;case 3:return e===o.RTC;case 5:return e===o.TBODY||e===o.TFOOT||e===o.THEAD;case 6:return e===o.OPTION;case 7:return e===o.CAPTION;case 8:return e===o.OPTGROUP||e===o.COLGROUP}return!1}function l(e,t){switch(e.length){case 2:if(e===o.TD||e===o.TH)return t===s.HTML;if(e===o.MI||e===o.MO||e===o.MN||e===o.MS)return t===s.MATHML;break;case 4:if(e===o.HTML)return t===s.HTML;if(e===o.DESC)return t===s.SVG;break;case 5:if(e===o.TABLE)return t===s.HTML;if(e===o.MTEXT)return t===s.MATHML;if(e===o.TITLE)return t===s.SVG;break;case 6:return(e===o.APPLET||e===o.OBJECT)&&t===s.HTML;case 7:return(e===o.CAPTION||e===o.MARQUEE)&&t===s.HTML;case 8:return e===o.TEMPLATE&&t===s.HTML;case 13:return e===o.FOREIGN_OBJECT&&t===s.SVG;case 14:return e===o.ANNOTATION_XML&&t===s.MATHML}return!1}e.exports=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let i=this.stackTop;i>=0;i--)if(this.items[i]===e){t=i;break}return t}_isInTemplate(){return this.currentTagName===o.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===s.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const i=this._indexOf(e);this.items[i]=t,i===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const i=this._indexOf(e)+1;this.items.splice(i,0,t),i===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,i=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&i===s.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===o.H1||e===o.H2||e===o.H3||e===o.H4||e===o.H5||e===o.H6&&t===s.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===o.TD||e===o.TH&&t===s.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==o.TABLE&&this.currentTagName!==o.TEMPLATE&&this.currentTagName!==o.HTML||this.treeAdapter.getNamespaceURI(this.current)!==s.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==o.TBODY&&this.currentTagName!==o.TFOOT&&this.currentTagName!==o.THEAD&&this.currentTagName!==o.TEMPLATE&&this.currentTagName!==o.HTML||this.treeAdapter.getNamespaceURI(this.current)!==s.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==o.TR&&this.currentTagName!==o.TEMPLATE&&this.currentTagName!==o.HTML||this.treeAdapter.getNamespaceURI(this.current)!==s.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===o.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===o.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const i=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(i===e&&n===s.HTML)return!0;if(l(i,n))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),i=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===o.H1||t===o.H2||t===o.H3||t===o.H4||t===o.H5||t===o.H6)&&i===s.HTML)return!0;if(l(t,i))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const i=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(i===e&&n===s.HTML)return!0;if((i===o.UL||i===o.OL)&&n===s.HTML||l(i,n))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const i=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(i===e&&n===s.HTML)return!0;if(i===o.BUTTON&&n===s.HTML||l(i,n))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const i=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===s.HTML){if(i===e)return!0;if(i===o.TABLE||i===o.TEMPLATE||i===o.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===s.HTML){if(t===o.TBODY||t===o.THEAD||t===o.TFOOT)return!0;if(t===o.TABLE||t===o.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const i=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===s.HTML){if(i===e)return!0;if(i!==o.OPTION&&i!==o.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;r(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;a(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;r(this.currentTagName)&&this.currentTagName!==e;)this.pop()}}},55763:(e,t,i)=>{"use strict";const n=i(77118),o=i(54284),s=i(5482),r=i(41734),a=o.CODE_POINTS,l=o.CODE_POINT_SEQUENCES,c={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},h="DATA_STATE",d="RCDATA_STATE",u="RAWTEXT_STATE",g="SCRIPT_DATA_STATE",p="PLAINTEXT_STATE",m="TAG_OPEN_STATE",f="END_TAG_OPEN_STATE",_="TAG_NAME_STATE",v="RCDATA_LESS_THAN_SIGN_STATE",b="RCDATA_END_TAG_OPEN_STATE",C="RCDATA_END_TAG_NAME_STATE",y="RAWTEXT_LESS_THAN_SIGN_STATE",w="RAWTEXT_END_TAG_OPEN_STATE",S="RAWTEXT_END_TAG_NAME_STATE",k="SCRIPT_DATA_LESS_THAN_SIGN_STATE",x="SCRIPT_DATA_END_TAG_OPEN_STATE",L="SCRIPT_DATA_END_TAG_NAME_STATE",E="SCRIPT_DATA_ESCAPE_START_STATE",N="SCRIPT_DATA_ESCAPE_START_DASH_STATE",D="SCRIPT_DATA_ESCAPED_STATE",T="SCRIPT_DATA_ESCAPED_DASH_STATE",I="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",A="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",M="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",R="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",O="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",P="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",F="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",B="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",H="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",V="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",W="BEFORE_ATTRIBUTE_NAME_STATE",z="ATTRIBUTE_NAME_STATE",U="AFTER_ATTRIBUTE_NAME_STATE",j="BEFORE_ATTRIBUTE_VALUE_STATE",K="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",q="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",$="ATTRIBUTE_VALUE_UNQUOTED_STATE",G="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Q="SELF_CLOSING_START_TAG_STATE",Y="BOGUS_COMMENT_STATE",Z="MARKUP_DECLARATION_OPEN_STATE",X="COMMENT_START_STATE",J="COMMENT_START_DASH_STATE",ee="COMMENT_STATE",te="COMMENT_LESS_THAN_SIGN_STATE",ie="COMMENT_LESS_THAN_SIGN_BANG_STATE",ne="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",oe="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",se="COMMENT_END_DASH_STATE",re="COMMENT_END_STATE",ae="COMMENT_END_BANG_STATE",le="DOCTYPE_STATE",ce="BEFORE_DOCTYPE_NAME_STATE",he="DOCTYPE_NAME_STATE",de="AFTER_DOCTYPE_NAME_STATE",ue="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",ge="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",pe="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",me="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",fe="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",_e="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",ve="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",be="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ce="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",ye="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",we="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Se="BOGUS_DOCTYPE_STATE",ke="CDATA_SECTION_STATE",xe="CDATA_SECTION_BRACKET_STATE",Le="CDATA_SECTION_END_STATE",Ee="CHARACTER_REFERENCE_STATE",Ne="NAMED_CHARACTER_REFERENCE_STATE",De="AMBIGUOS_AMPERSAND_STATE",Te="NUMERIC_CHARACTER_REFERENCE_STATE",Ie="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Ae="DECIMAL_CHARACTER_REFERENCE_START_STATE",Me="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Re="DECIMAL_CHARACTER_REFERENCE_STATE",Oe="NUMERIC_CHARACTER_REFERENCE_END_STATE";function Pe(e){return e===a.SPACE||e===a.LINE_FEED||e===a.TABULATION||e===a.FORM_FEED}function Fe(e){return e>=a.DIGIT_0&&e<=a.DIGIT_9}function Be(e){return e>=a.LATIN_CAPITAL_A&&e<=a.LATIN_CAPITAL_Z}function He(e){return e>=a.LATIN_SMALL_A&&e<=a.LATIN_SMALL_Z}function Ve(e){return He(e)||Be(e)}function We(e){return Ve(e)||Fe(e)}function ze(e){return e>=a.LATIN_CAPITAL_A&&e<=a.LATIN_CAPITAL_F}function Ue(e){return e>=a.LATIN_SMALL_A&&e<=a.LATIN_SMALL_F}function je(e){return e+32}function Ke(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function qe(e){return String.fromCharCode(je(e))}function $e(e,t){const i=s[++e];let n=++e,o=n+i-1;for(;n<=o;){const e=n+o>>>1,r=s[e];if(rt))return s[e+i];o=e-1}}return-1}class Ge{constructor(){this.preprocessor=new n,this.tokenQueue=[],this.allowCDATA=!1,this.state=h,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Ge.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,i){let n=0,o=!0;const s=e.length;let r,l=0,c=t;for(;l0&&(c=this._consume(),n++),c===a.EOF){o=!1;break}if(r=e[l],c!==r&&(i||c!==je(r))){o=!1;break}}if(!o)for(;n--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==l.SCRIPT_STRING.length)return!1;for(let e=0;e0&&this._err(r.endTagWithAttributes),e.selfClosing&&this._err(r.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=Ge.CHARACTER_TOKEN;Pe(e)?t=Ge.WHITESPACE_CHARACTER_TOKEN:e===a.NULL&&(t=Ge.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,Ke(e))}_emitSeveralCodePoints(e){for(let t=0;t-1;){const e=s[n],o=e<7;o&&1&e&&(t=2&e?[s[++n],s[++n]]:[s[++n]],i=0);const r=this._consume();if(this.tempBuff.push(r),i++,r===a.EOF)break;n=o?4&e?$e(n,r):-1:r===e?++n:-1}for(;i--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===K||this.returnState===q||this.returnState===$}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===a.EQUALS_SIGN||We(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e")):e===a.NULL?(this._err(r.unexpectedNullCharacter),this.state=D,this._emitChars(o.REPLACEMENT_CHARACTER)):e===a.EOF?(this._err(r.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=D,this._emitCodePoint(e))}[A](e){e===a.SOLIDUS?(this.tempBuff=[],this.state=M):Ve(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(O)):(this._emitChars("<"),this._reconsumeInState(D))}[M](e){Ve(e)?(this._createEndTagToken(),this._reconsumeInState(R)):(this._emitChars("")):e===a.NULL?(this._err(r.unexpectedNullCharacter),this.state=P,this._emitChars(o.REPLACEMENT_CHARACTER)):e===a.EOF?(this._err(r.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=P,this._emitCodePoint(e))}[H](e){e===a.SOLIDUS?(this.tempBuff=[],this.state=V,this._emitChars("/")):this._reconsumeInState(P)}[V](e){Pe(e)||e===a.SOLIDUS||e===a.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?D:P,this._emitCodePoint(e)):Be(e)?(this.tempBuff.push(je(e)),this._emitCodePoint(e)):He(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(P)}[W](e){Pe(e)||(e===a.SOLIDUS||e===a.GREATER_THAN_SIGN||e===a.EOF?this._reconsumeInState(U):e===a.EQUALS_SIGN?(this._err(r.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=z):(this._createAttr(""),this._reconsumeInState(z)))}[z](e){Pe(e)||e===a.SOLIDUS||e===a.GREATER_THAN_SIGN||e===a.EOF?(this._leaveAttrName(U),this._unconsume()):e===a.EQUALS_SIGN?this._leaveAttrName(j):Be(e)?this.currentAttr.name+=qe(e):e===a.QUOTATION_MARK||e===a.APOSTROPHE||e===a.LESS_THAN_SIGN?(this._err(r.unexpectedCharacterInAttributeName),this.currentAttr.name+=Ke(e)):e===a.NULL?(this._err(r.unexpectedNullCharacter),this.currentAttr.name+=o.REPLACEMENT_CHARACTER):this.currentAttr.name+=Ke(e)}[U](e){Pe(e)||(e===a.SOLIDUS?this.state=Q:e===a.EQUALS_SIGN?this.state=j:e===a.GREATER_THAN_SIGN?(this.state=h,this._emitCurrentToken()):e===a.EOF?(this._err(r.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(z)))}[j](e){Pe(e)||(e===a.QUOTATION_MARK?this.state=K:e===a.APOSTROPHE?this.state=q:e===a.GREATER_THAN_SIGN?(this._err(r.missingAttributeValue),this.state=h,this._emitCurrentToken()):this._reconsumeInState($))}[K](e){e===a.QUOTATION_MARK?this.state=G:e===a.AMPERSAND?(this.returnState=K,this.state=Ee):e===a.NULL?(this._err(r.unexpectedNullCharacter),this.currentAttr.value+=o.REPLACEMENT_CHARACTER):e===a.EOF?(this._err(r.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ke(e)}[q](e){e===a.APOSTROPHE?this.state=G:e===a.AMPERSAND?(this.returnState=q,this.state=Ee):e===a.NULL?(this._err(r.unexpectedNullCharacter),this.currentAttr.value+=o.REPLACEMENT_CHARACTER):e===a.EOF?(this._err(r.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ke(e)}[$](e){Pe(e)?this._leaveAttrValue(W):e===a.AMPERSAND?(this.returnState=$,this.state=Ee):e===a.GREATER_THAN_SIGN?(this._leaveAttrValue(h),this._emitCurrentToken()):e===a.NULL?(this._err(r.unexpectedNullCharacter),this.currentAttr.value+=o.REPLACEMENT_CHARACTER):e===a.QUOTATION_MARK||e===a.APOSTROPHE||e===a.LESS_THAN_SIGN||e===a.EQUALS_SIGN||e===a.GRAVE_ACCENT?(this._err(r.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Ke(e)):e===a.EOF?(this._err(r.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Ke(e)}[G](e){Pe(e)?this._leaveAttrValue(W):e===a.SOLIDUS?this._leaveAttrValue(Q):e===a.GREATER_THAN_SIGN?(this._leaveAttrValue(h),this._emitCurrentToken()):e===a.EOF?(this._err(r.eofInTag),this._emitEOFToken()):(this._err(r.missingWhitespaceBetweenAttributes),this._reconsumeInState(W))}[Q](e){e===a.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=h,this._emitCurrentToken()):e===a.EOF?(this._err(r.eofInTag),this._emitEOFToken()):(this._err(r.unexpectedSolidusInTag),this._reconsumeInState(W))}[Y](e){e===a.GREATER_THAN_SIGN?(this.state=h,this._emitCurrentToken()):e===a.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===a.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.data+=o.REPLACEMENT_CHARACTER):this.currentToken.data+=Ke(e)}[Z](e){this._consumeSequenceIfMatch(l.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=X):this._consumeSequenceIfMatch(l.DOCTYPE_STRING,e,!1)?this.state=le:this._consumeSequenceIfMatch(l.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=ke:(this._err(r.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Y):this._ensureHibernation()||(this._err(r.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Y))}[X](e){e===a.HYPHEN_MINUS?this.state=J:e===a.GREATER_THAN_SIGN?(this._err(r.abruptClosingOfEmptyComment),this.state=h,this._emitCurrentToken()):this._reconsumeInState(ee)}[J](e){e===a.HYPHEN_MINUS?this.state=re:e===a.GREATER_THAN_SIGN?(this._err(r.abruptClosingOfEmptyComment),this.state=h,this._emitCurrentToken()):e===a.EOF?(this._err(r.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[ee](e){e===a.HYPHEN_MINUS?this.state=se:e===a.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=te):e===a.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.data+=o.REPLACEMENT_CHARACTER):e===a.EOF?(this._err(r.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Ke(e)}[te](e){e===a.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=ie):e===a.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(ee)}[ie](e){e===a.HYPHEN_MINUS?this.state=ne:this._reconsumeInState(ee)}[ne](e){e===a.HYPHEN_MINUS?this.state=oe:this._reconsumeInState(se)}[oe](e){e!==a.GREATER_THAN_SIGN&&e!==a.EOF&&this._err(r.nestedComment),this._reconsumeInState(re)}[se](e){e===a.HYPHEN_MINUS?this.state=re:e===a.EOF?(this._err(r.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[re](e){e===a.GREATER_THAN_SIGN?(this.state=h,this._emitCurrentToken()):e===a.EXCLAMATION_MARK?this.state=ae:e===a.HYPHEN_MINUS?this.currentToken.data+="-":e===a.EOF?(this._err(r.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(ee))}[ae](e){e===a.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=se):e===a.GREATER_THAN_SIGN?(this._err(r.incorrectlyClosedComment),this.state=h,this._emitCurrentToken()):e===a.EOF?(this._err(r.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(ee))}[le](e){Pe(e)?this.state=ce:e===a.GREATER_THAN_SIGN?this._reconsumeInState(ce):e===a.EOF?(this._err(r.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(ce))}[ce](e){Pe(e)||(Be(e)?(this._createDoctypeToken(qe(e)),this.state=he):e===a.NULL?(this._err(r.unexpectedNullCharacter),this._createDoctypeToken(o.REPLACEMENT_CHARACTER),this.state=he):e===a.GREATER_THAN_SIGN?(this._err(r.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=h):e===a.EOF?(this._err(r.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Ke(e)),this.state=he))}[he](e){Pe(e)?this.state=de:e===a.GREATER_THAN_SIGN?(this.state=h,this._emitCurrentToken()):Be(e)?this.currentToken.name+=qe(e):e===a.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.name+=o.REPLACEMENT_CHARACTER):e===a.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Ke(e)}[de](e){Pe(e)||(e===a.GREATER_THAN_SIGN?(this.state=h,this._emitCurrentToken()):e===a.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(l.PUBLIC_STRING,e,!1)?this.state=ue:this._consumeSequenceIfMatch(l.SYSTEM_STRING,e,!1)?this.state=ve:this._ensureHibernation()||(this._err(r.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Se)))}[ue](e){Pe(e)?this.state=ge:e===a.QUOTATION_MARK?(this._err(r.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=pe):e===a.APOSTROPHE?(this._err(r.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=me):e===a.GREATER_THAN_SIGN?(this._err(r.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=h,this._emitCurrentToken()):e===a.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Se))}[ge](e){Pe(e)||(e===a.QUOTATION_MARK?(this.currentToken.publicId="",this.state=pe):e===a.APOSTROPHE?(this.currentToken.publicId="",this.state=me):e===a.GREATER_THAN_SIGN?(this._err(r.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=h,this._emitCurrentToken()):e===a.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Se)))}[pe](e){e===a.QUOTATION_MARK?this.state=fe:e===a.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.publicId+=o.REPLACEMENT_CHARACTER):e===a.GREATER_THAN_SIGN?(this._err(r.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=h):e===a.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Ke(e)}[me](e){e===a.APOSTROPHE?this.state=fe:e===a.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.publicId+=o.REPLACEMENT_CHARACTER):e===a.GREATER_THAN_SIGN?(this._err(r.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=h):e===a.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Ke(e)}[fe](e){Pe(e)?this.state=_e:e===a.GREATER_THAN_SIGN?(this.state=h,this._emitCurrentToken()):e===a.QUOTATION_MARK?(this._err(r.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Ce):e===a.APOSTROPHE?(this._err(r.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=ye):e===a.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Se))}[_e](e){Pe(e)||(e===a.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=h):e===a.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Ce):e===a.APOSTROPHE?(this.currentToken.systemId="",this.state=ye):e===a.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Se)))}[ve](e){Pe(e)?this.state=be:e===a.QUOTATION_MARK?(this._err(r.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Ce):e===a.APOSTROPHE?(this._err(r.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=ye):e===a.GREATER_THAN_SIGN?(this._err(r.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=h,this._emitCurrentToken()):e===a.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Se))}[be](e){Pe(e)||(e===a.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Ce):e===a.APOSTROPHE?(this.currentToken.systemId="",this.state=ye):e===a.GREATER_THAN_SIGN?(this._err(r.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=h,this._emitCurrentToken()):e===a.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Se)))}[Ce](e){e===a.QUOTATION_MARK?this.state=we:e===a.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.systemId+=o.REPLACEMENT_CHARACTER):e===a.GREATER_THAN_SIGN?(this._err(r.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=h):e===a.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Ke(e)}[ye](e){e===a.APOSTROPHE?this.state=we:e===a.NULL?(this._err(r.unexpectedNullCharacter),this.currentToken.systemId+=o.REPLACEMENT_CHARACTER):e===a.GREATER_THAN_SIGN?(this._err(r.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=h):e===a.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Ke(e)}[we](e){Pe(e)||(e===a.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=h):e===a.EOF?(this._err(r.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(r.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Se)))}[Se](e){e===a.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=h):e===a.NULL?this._err(r.unexpectedNullCharacter):e===a.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[ke](e){e===a.RIGHT_SQUARE_BRACKET?this.state=xe:e===a.EOF?(this._err(r.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[xe](e){e===a.RIGHT_SQUARE_BRACKET?this.state=Le:(this._emitChars("]"),this._reconsumeInState(ke))}[Le](e){e===a.GREATER_THAN_SIGN?this.state=h:e===a.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(ke))}[Ee](e){this.tempBuff=[a.AMPERSAND],e===a.NUMBER_SIGN?(this.tempBuff.push(e),this.state=Te):We(e)?this._reconsumeInState(Ne):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ne](e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[a.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===a.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(r.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=De}[De](e){We(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Ke(e):this._emitCodePoint(e):(e===a.SEMICOLON&&this._err(r.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Te](e){this.charRefCode=0,e===a.LATIN_SMALL_X||e===a.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=Ie):this._reconsumeInState(Ae)}[Ie](e){!function(e){return Fe(e)||ze(e)||Ue(e)}(e)?(this._err(r.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState(Me)}[Ae](e){Fe(e)?this._reconsumeInState(Re):(this._err(r.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Me](e){ze(e)?this.charRefCode=16*this.charRefCode+e-55:Ue(e)?this.charRefCode=16*this.charRefCode+e-87:Fe(e)?this.charRefCode=16*this.charRefCode+e-48:e===a.SEMICOLON?this.state=Oe:(this._err(r.missingSemicolonAfterCharacterReference),this._reconsumeInState(Oe))}[Re](e){Fe(e)?this.charRefCode=10*this.charRefCode+e-48:e===a.SEMICOLON?this.state=Oe:(this._err(r.missingSemicolonAfterCharacterReference),this._reconsumeInState(Oe))}[Oe](){if(this.charRefCode===a.NULL)this._err(r.nullCharacterReference),this.charRefCode=a.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(r.characterReferenceOutsideUnicodeRange),this.charRefCode=a.REPLACEMENT_CHARACTER;else if(o.isSurrogate(this.charRefCode))this._err(r.surrogateCharacterReference),this.charRefCode=a.REPLACEMENT_CHARACTER;else if(o.isUndefinedCodePoint(this.charRefCode))this._err(r.noncharacterCharacterReference);else if(o.isControlCodePoint(this.charRefCode)||this.charRefCode===a.CARRIAGE_RETURN){this._err(r.controlCharacterReference);const e=c[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}Ge.CHARACTER_TOKEN="CHARACTER_TOKEN",Ge.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",Ge.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",Ge.START_TAG_TOKEN="START_TAG_TOKEN",Ge.END_TAG_TOKEN="END_TAG_TOKEN",Ge.COMMENT_TOKEN="COMMENT_TOKEN",Ge.DOCTYPE_TOKEN="DOCTYPE_TOKEN",Ge.EOF_TOKEN="EOF_TOKEN",Ge.HIBERNATION_TOKEN="HIBERNATION_TOKEN",Ge.MODE={DATA:h,RCDATA:d,RAWTEXT:u,SCRIPT_DATA:g,PLAINTEXT:p},Ge.getTokenAttr=function(e,t){for(let i=e.attrs.length-1;i>=0;i--)if(e.attrs[i].name===t)return e.attrs[i].value;return null},e.exports=Ge},5482:e=>{"use strict";e.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},77118:(e,t,i)=>{"use strict";const n=i(54284),o=i(41734),s=n.CODE_POINTS;e.exports=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if(n.isSurrogatePair(t))return this.pos++,this._addGap(),n.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,s.EOF;return this._err(o.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,s.EOF;let e=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&e===s.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):e===s.CARRIAGE_RETURN?(this.skipNextNewLine=!0,s.LINE_FEED):(this.skipNextNewLine=!1,n.isSurrogate(e)&&(e=this._processSurrogate(e)),e>31&&e<127||e===s.LINE_FEED||e===s.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){n.isControlCodePoint(e)?this._err(o.controlCharacterInInputStream):n.isUndefinedCodePoint(e)&&this._err(o.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}},17296:(e,t,i)=>{"use strict";const{DOCUMENT_MODE:n}=i(16152);t.createDocument=function(){return{nodeName:"#document",mode:n.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,i){return{nodeName:e,tagName:e,attrs:i,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const o=function(e){return{nodeName:"#text",value:e,parentNode:null}},s=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},r=t.insertBefore=function(e,t,i){const n=e.childNodes.indexOf(i);e.childNodes.splice(n,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,i,n){let o=null;for(let t=0;t{"use strict";e.exports=function(e,t){return[e,t=t||Object.create(null)].reduce(((e,t)=>(Object.keys(t).forEach((i=>{e[i]=t[i]})),e)),Object.create(null))}},81704:e=>{"use strict";class t{constructor(e){const t={},i=this._getOverriddenMethods(this,t);for(const n of Object.keys(i))"function"==typeof i[n]&&(t[n]=e[n],e[n]=i[n])}_getOverriddenMethods(){throw new Error("Not implemented")}}t.install=function(e,t,i){e.__mixins||(e.__mixins=[]);for(let i=0;i{var n=i(18139);e.exports=function(e,t){var i,o=null;if(!e||"string"!=typeof e)return o;for(var s,r,a=n(e),l="function"==typeof t,c=0,h=a.length;cp.show()),e):(c=!0,null!==d&&o.cancelAnimationFrame(d),a||((i=(a=s.createElement("canvas")).style).position="fixed",i.top=i.left=i.right=i.margin=i.padding=0,i.zIndex=100001,i.display="none",g.className&&a.classList.add(g.className),s.body.appendChild(a),t="resize",e=r,(i=o).addEventListener?i.addEventListener(t,e,!1):i.attachEvent?i.attachEvent("on"+t,e):i["on"+t]=e),a.style.opacity=1,a.style.display="block",p.progress(0),g.autoRun&&function e(){h=o.requestAnimationFrame(e),p.progress("+"+.05*Math.pow(1-Math.sqrt(l),2))}()))},progress:function(e){return void 0===e||("string"==typeof e&&(e=(0<=e.indexOf("+")||0<=e.indexOf("-")?l:0)+parseFloat(e)),l=1{},44301:(e,t,i)=>{"use strict";i.d(t,{T:()=>o});const n=document.createElement("i");function o(e){const t="&"+e+";";n.innerHTML=t;const i=n.textContent;return(59!==i.charCodeAt(i.length-1)||"semi"===e)&&i!==t&&i}},42946:(e,t,i)=>{"use strict";i.d(t,{V:()=>Ce});var n={};function o(e,t){return e&&"object"==typeof e&&(e.value||(t?e.alt:"")||"children"in e&&s(e.children,t)||Array.isArray(e)&&s(e,t))||""}function s(e,t){for(var i=[],n=-1;++nge,contentInitial:()=>ae,disable:()=>pe,document:()=>re,flow:()=>ce,flowInitial:()=>le,insideSpan:()=>ue,string:()=>he,text:()=>de});var r=i(4663),a=i(42761),l=i(32473);const c={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(i){if(null!==i)return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),(0,a.f)(e,t,"linePrefix");e.consume(i)}),(function(t){return e.enter("paragraph"),n(t)}));let i;return t;function n(t){const n=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=n),i=n,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):(0,l.Ch)(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),o)}}};var h=i(21905);const d={tokenize:function(e){const t=this,i=[];let n,o,s,r=0;return a;function a(n){if(rs))return;const i=t.events.length;let o,a,l=i;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){a=t.events[l][1].end;break}o=!0}for(C(r),e=i;en;){const n=i[o];t.containerState=n[1],n[0].exit.call(t,e)}i.length=n}function y(){n.write([null]),o=void 0,n=void 0,t.containerState._closeFlow=void 0}}},u={tokenize:function(e,t,i){return(0,a.f)(e,e.attempt(this.parser.constructs.document,t,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var g=i(23402);function p(e){const t={};let i,n,o,s,r,a,l,c=-1;for(;++c=4?t(o):e.interrupt(n.parser.constructs.flow,i,t)(o)}},partial:!0},v={tokenize:function(e){const t=this,i=e.attempt(g.w,(function(n){if(null!==n)return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,i;e.consume(n)}),e.attempt(this.parser.constructs.flowInitial,n,(0,a.f)(e,e.attempt(this.parser.constructs.flow,n,e.attempt(f,n)),"linePrefix")));return i;function n(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,i;e.consume(n)}}},b={resolveAll:S()},C=w("string"),y=w("text");function w(e){return{tokenize:function(t){const i=this,n=this.parser.constructs[e],o=t.attempt(n,s,r);return s;function s(e){return l(e)?o(e):r(e)}function r(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),a)}function l(e){if(null===e)return!0;const t=n[e];let o=-1;if(t)for(;++o-1&&(r[0]=r[0].slice(n)),s>0&&r.push(e[o].slice(0,s))),r}(r,e)}function f(){return Object.assign({},n)}function _(e){c=void 0,g=e,p=p(e)}function v(e,t){t.restore()}function b(e,t){return function(i,o,s){let r,l,h,g;return Array.isArray(i)?m(i):"tokenize"in i?m([i]):(p=i,function(e){const t=null!==e&&p[e],i=null!==e&&p.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(i)?i:i?[i]:[]])(e)});var p;function m(e){return r=e,l=0,0===e.length?s:_(e[l])}function _(e){return function(i){return g=function(){const e=f(),t=u.previous,i=u.currentConstruct,o=u.events.length,s=Array.from(a);return{restore:function(){n=e,u.previous=t,u.currentConstruct=i,u.events.length=o,a=s,y()},from:o}}(),h=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name)?b():e.tokenize.call(t?Object.assign(Object.create(u),t):u,d,v,b)(i)}}function v(t){return c=!0,e(h,g),o}function b(e){return c=!0,g.restore(),++lh?i(o):(e.consume(o),m):41===o?d--?(e.consume(o),m):(e.exit("chunkString"),e.exit(a),e.exit(r),e.exit(n),t(o)):null===o||(0,l.z3)(o)?d?i(o):(e.exit("chunkString"),e.exit(a),e.exit(r),e.exit(n),t(o)):(0,l.Av)(o)?i(o):(e.consume(o),92===o?f:m)}function f(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}function M(e,t,i,n,o,s){const r=this;let a,c=0;return function(t){return e.enter(n),e.enter(o),e.consume(t),e.exit(o),e.enter(s),h};function h(u){return null===u||91===u||93===u&&!a||94===u&&!c&&"_hiddenFootnoteSupport"in r.parser.constructs||c>999?i(u):93===u?(e.exit(s),e.enter(o),e.consume(u),e.exit(o),e.exit(n),t):(0,l.Ch)(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),d(u))}function d(t){return null===t||91===t||93===t||(0,l.Ch)(t)||c++>999?(e.exit("chunkString"),h(t)):(e.consume(t),a=a||!(0,l.xz)(t),92===t?u:d)}function u(t){return 91===t||92===t||93===t?(e.consume(t),c++,d):d(t)}}function R(e,t,i,n,o,s){let r;return function(t){return e.enter(n),e.enter(o),e.consume(t),e.exit(o),r=40===t?41:t,c};function c(i){return i===r?(e.enter(o),e.consume(i),e.exit(o),e.exit(n),t):(e.enter(s),h(i))}function h(t){return t===r?(e.exit(s),c(r)):null===t?i(t):(0,l.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,a.f)(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return t===r||null===t||(0,l.Ch)(t)?(e.exit("chunkString"),h(t)):(e.consume(t),92===t?u:d)}function u(t){return t===r||92===t?(e.consume(t),d):d(t)}}function O(e,t){let i;return function n(o){return(0,l.Ch)(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i=!0,n):(0,l.xz)(o)?(0,a.f)(e,n,i?"linePrefix":"lineSuffix")(o):t(o)}}var P=i(11098);const F={name:"definition",tokenize:function(e,t,i){const n=this;let o;return function(t){return e.enter("definition"),M.call(n,e,s,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function s(t){return o=(0,P.d)(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),O(e,A(e,e.attempt(B,(0,a.f)(e,r,"whitespace"),(0,a.f)(e,r,"whitespace")),i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):i(t)}function r(s){return null===s||(0,l.Ch)(s)?(e.exit("definition"),n.parser.defined.includes(o)||n.parser.defined.push(o),t(s)):i(s)}}},B={tokenize:function(e,t,i){return function(t){return(0,l.z3)(t)?O(e,n)(t):i(t)};function n(t){return 34===t||39===t||40===t?R(e,(0,a.f)(e,o,"whitespace"),i,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):i(t)}function o(e){return null===e||(0,l.Ch)(e)?t(e):i(e)}},partial:!0},H={name:"codeIndented",tokenize:function(e,t,i){const n=this;return function(t){return e.enter("codeIndented"),(0,a.f)(e,o,"linePrefix",5)(t)};function o(e){const t=n.events[n.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?s(e):i(e)}function s(t){return null===t?c(t):(0,l.Ch)(t)?e.attempt(V,s,c)(t):(e.enter("codeFlowValue"),r(t))}function r(t){return null===t||(0,l.Ch)(t)?(e.exit("codeFlowValue"),s(t)):(e.consume(t),r)}function c(i){return e.exit("codeIndented"),t(i)}}},V={tokenize:function(e,t,i){const n=this;return o;function o(t){return n.parser.lazy[n.now().line]?i(t):(0,l.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):(0,a.f)(e,s,"linePrefix",5)(t)}function s(e){const s=n.events[n.events.length-1];return s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(e):(0,l.Ch)(e)?o(e):i(e)}},partial:!0},W={name:"headingAtx",tokenize:function(e,t,i){const n=this;let o=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),s(t)};function s(a){return 35===a&&o++<6?(e.consume(a),s):null===a||(0,l.z3)(a)?(e.exit("atxHeadingSequence"),n.interrupt?t(a):r(a)):i(a)}function r(i){return 35===i?(e.enter("atxHeadingSequence"),c(i)):null===i||(0,l.Ch)(i)?(e.exit("atxHeading"),t(i)):(0,l.xz)(i)?(0,a.f)(e,r,"whitespace")(i):(e.enter("atxHeadingText"),h(i))}function c(t){return 35===t?(e.consume(t),c):(e.exit("atxHeadingSequence"),r(t))}function h(t){return null===t||35===t||(0,l.z3)(t)?(e.exit("atxHeadingText"),r(t)):(e.consume(t),h)}},resolve:function(e,t){let i,n,o=e.length-2,s=3;return"whitespace"===e[s][1].type&&(s+=2),o-2>s&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(s===o-1||o-4>s&&"whitespace"===e[o-2][1].type)&&(o-=s+1===o?2:4),o>s&&(i={type:"atxHeadingText",start:e[s][1].start,end:e[o][1].end},n={type:"chunkText",start:e[s][1].start,end:e[o][1].end,contentType:"text"},(0,h.d)(e,s,o-s+1,[["enter",i,t],["enter",n,t],["exit",n,t],["exit",i,t]])),e}},z={name:"setextUnderline",tokenize:function(e,t,i){const n=this;let o,s,r=n.events.length;for(;r--;)if("lineEnding"!==n.events[r][1].type&&"linePrefix"!==n.events[r][1].type&&"content"!==n.events[r][1].type){s="paragraph"===n.events[r][1].type;break}return function(t){return n.parser.lazy[n.now().line]||!n.interrupt&&!s?i(t):(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),o=t,c(t))};function c(t){return t===o?(e.consume(t),c):(e.exit("setextHeadingLineSequence"),(0,a.f)(e,h,"lineSuffix")(t))}function h(n){return null===n||(0,l.Ch)(n)?(e.exit("setextHeadingLine"),t(n)):i(n)}},resolveTo:function(e,t){let i,n,o,s=e.length;for(;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){i=s;break}"paragraph"===e[s][1].type&&(n=s)}else"content"===e[s][1].type&&e.splice(s,1),o||"definition"!==e[s][1].type||(o=s);const r={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[n][1].type="setextHeadingText",o?(e.splice(n,0,["enter",r,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end=Object.assign({},e[o][1].end)):e[i][1]=r,e.push(["exit",r,t]),e}},U=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],j=["pre","script","style","textarea"],K={name:"htmlFlow",tokenize:function(e,t,i){const n=this;let o,s,r,a,c;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),h};function h(a){return 33===a?(e.consume(a),d):47===a?(e.consume(a),p):63===a?(e.consume(a),o=3,n.interrupt?t:O):(0,l.jv)(a)?(e.consume(a),r=String.fromCharCode(a),s=!0,m):i(a)}function d(s){return 45===s?(e.consume(s),o=2,u):91===s?(e.consume(s),o=5,r="CDATA[",a=0,g):(0,l.jv)(s)?(e.consume(s),o=4,n.interrupt?t:O):i(s)}function u(o){return 45===o?(e.consume(o),n.interrupt?t:O):i(o)}function g(o){return o===r.charCodeAt(a++)?(e.consume(o),a===r.length?n.interrupt?t:E:g):i(o)}function p(t){return(0,l.jv)(t)?(e.consume(t),r=String.fromCharCode(t),m):i(t)}function m(a){return null===a||47===a||62===a||(0,l.z3)(a)?47!==a&&s&&j.includes(r.toLowerCase())?(o=1,n.interrupt?t(a):E(a)):U.includes(r.toLowerCase())?(o=6,47===a?(e.consume(a),f):n.interrupt?t(a):E(a)):(o=7,n.interrupt&&!n.parser.lazy[n.now().line]?i(a):s?v(a):_(a)):45===a||(0,l.H$)(a)?(e.consume(a),r+=String.fromCharCode(a),m):i(a)}function f(o){return 62===o?(e.consume(o),n.interrupt?t:E):i(o)}function _(t){return(0,l.xz)(t)?(e.consume(t),_):x(t)}function v(t){return 47===t?(e.consume(t),x):58===t||95===t||(0,l.jv)(t)?(e.consume(t),b):(0,l.xz)(t)?(e.consume(t),v):x(t)}function b(t){return 45===t||46===t||58===t||95===t||(0,l.H$)(t)?(e.consume(t),b):C(t)}function C(t){return 61===t?(e.consume(t),y):(0,l.xz)(t)?(e.consume(t),C):v(t)}function y(t){return null===t||60===t||61===t||62===t||96===t?i(t):34===t||39===t?(e.consume(t),c=t,w):(0,l.xz)(t)?(e.consume(t),y):(c=null,S(t))}function w(t){return null===t||(0,l.Ch)(t)?i(t):t===c?(e.consume(t),k):(e.consume(t),w)}function S(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||(0,l.z3)(t)?C(t):(e.consume(t),S)}function k(e){return 47===e||62===e||(0,l.xz)(e)?v(e):i(e)}function x(t){return 62===t?(e.consume(t),L):i(t)}function L(t){return(0,l.xz)(t)?(e.consume(t),L):null===t||(0,l.Ch)(t)?E(t):i(t)}function E(t){return 45===t&&2===o?(e.consume(t),I):60===t&&1===o?(e.consume(t),A):62===t&&4===o?(e.consume(t),P):63===t&&3===o?(e.consume(t),O):93===t&&5===o?(e.consume(t),R):!(0,l.Ch)(t)||6!==o&&7!==o?null===t||(0,l.Ch)(t)?N(t):(e.consume(t),E):e.check(q,P,N)(t)}function N(t){return e.exit("htmlFlowData"),D(t)}function D(t){return null===t?F(t):(0,l.Ch)(t)?e.attempt({tokenize:T,partial:!0},D,F)(t):(e.enter("htmlFlowData"),E(t))}function T(e,t,i){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return n.parser.lazy[n.now().line]?i(e):t(e)}}function I(t){return 45===t?(e.consume(t),O):E(t)}function A(t){return 47===t?(e.consume(t),r="",M):E(t)}function M(t){return 62===t&&j.includes(r.toLowerCase())?(e.consume(t),P):(0,l.jv)(t)&&r.length<8?(e.consume(t),r+=String.fromCharCode(t),M):E(t)}function R(t){return 93===t?(e.consume(t),O):E(t)}function O(t){return 62===t?(e.consume(t),P):45===t&&2===o?(e.consume(t),O):E(t)}function P(t){return null===t||(0,l.Ch)(t)?(e.exit("htmlFlowData"),F(t)):(e.consume(t),P)}function F(i){return e.exit("htmlFlow"),t(i)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},q={tokenize:function(e,t,i){return function(n){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),e.attempt(g.w,t,i)}},partial:!0},$={name:"codeFenced",tokenize:function(e,t,i){const n=this,o={tokenize:function(e,t,i){let n=0;return(0,a.f)(e,(function(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),o(t)}),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function o(t){return t===h?(e.consume(t),n++,o):n1&&e[d][1].end.offset-e[d][1].start.offset>1?2:1;const u=Object.assign({},e[i][1].end),g=Object.assign({},e[d][1].start);se(u,-a),se(g,a),s={type:a>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[i][1].end)},r={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[d][1].start),end:g},o={type:a>1?"strongText":"emphasisText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[d][1].start)},n={type:a>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},r.end)},e[i][1].end=Object.assign({},s.start),e[d][1].start=Object.assign({},r.end),l=[],e[i][1].end.offset-e[i][1].start.offset&&(l=(0,h.V)(l,[["enter",e[i][1],t],["exit",e[i][1],t]])),l=(0,h.V)(l,[["enter",n,t],["enter",s,t],["exit",s,t],["enter",o,t]]),l=(0,h.V)(l,(0,x.C)(t.parser.constructs.insideSpan.null,e.slice(i+1,d),t)),l=(0,h.V)(l,[["exit",o,t],["enter",r,t],["exit",r,t],["exit",n,t]]),e[d][1].end.offset-e[d][1].start.offset?(c=2,l=(0,h.V)(l,[["enter",e[d][1],t],["exit",e[d][1],t]])):c=0,(0,h.d)(e,i-1,d-i+3,l),d=i+l.length-c-2;break}for(d=-1;++d0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||ke).call(o,void 0,e[0])}for(i.position={start:ye(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ye(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},h=-1;++h{"use strict";i.d(t,{w:()=>s});var n=i(42761),o=i(32473);const s={tokenize:function(e,t,i){return(0,n.f)(e,(function(e){return null===e||(0,o.Ch)(e)?t(e):i(e)}),"linePrefix")},partial:!0}},42761:(e,t,i)=>{"use strict";i.d(t,{f:()=>o});var n=i(32473);function o(e,t,i,o){const s=o?o-1:Number.POSITIVE_INFINITY;let r=0;return function(o){return(0,n.xz)(o)?(e.enter(i),a(o)):t(o)};function a(o){return(0,n.xz)(o)&&r++{"use strict";i.d(t,{jv:()=>n,H$:()=>r,n9:()=>l,Av:()=>c,pY:()=>o,AF:()=>s,sR:()=>a,Ch:()=>d,z3:()=>h,xz:()=>u,Xh:()=>p,B8:()=>g});const n=m(/[A-Za-z]/),o=m(/\d/),s=m(/[\dA-Fa-f]/),r=m(/[\dA-Za-z]/),a=m(/[!-/:-@[-`{-~]/),l=m(/[#-'*+\--9=?A-Z^-~]/);function c(e){return null!==e&&(e<32||127===e)}function h(e){return null!==e&&(e<0||32===e)}function d(e){return null!==e&&e<-2}function u(e){return-2===e||-1===e||32===e}const g=m(/\s/),p=m(/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/);function m(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}},21905:(e,t,i)=>{"use strict";function n(e,t,i,n){const o=e.length;let s,r=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,i=i>0?i:0,n.length<1e4)s=Array.from(n),s.unshift(t,i),[].splice.apply(e,s);else for(i&&[].splice.apply(e,[t,i]);r0?(n(e,e.length,0,t),e):t}i.d(t,{V:()=>o,d:()=>n})},62987:(e,t,i)=>{"use strict";i.d(t,{r:()=>o});var n=i(32473);function o(e){return null===e||(0,n.z3)(e)||(0,n.B8)(e)?1:(0,n.Xh)(e)?2:void 0}},4663:(e,t,i)=>{"use strict";i.d(t,{W:()=>s});var n=i(21905);const o={}.hasOwnProperty;function s(e){const t={};let i=-1;for(;++i{"use strict";function n(e,t){const i=Number.parseInt(e,t);return i<9||11===i||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||65535==(65535&i)||65534==(65535&i)||i>1114111?"�":String.fromCharCode(i)}i.d(t,{o:()=>n})},47881:(e,t,i)=>{"use strict";i.d(t,{v:()=>r});var n=i(44301),o=i(80889);const s=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function r(e){return e.replace(s,a)}function a(e,t,i){if(t)return t;if(35===i.charCodeAt(0)){const e=i.charCodeAt(1),t=120===e||88===e;return(0,o.o)(i.slice(t?2:1),t?16:10)}return(0,n.T)(i)||e}},11098:(e,t,i)=>{"use strict";function n(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}i.d(t,{d:()=>n})},63233:(e,t,i)=>{"use strict";function n(e,t,i){const n=[];let o=-1;for(;++on})},16343:(e,t,i)=>{"use strict";function n(e){return e&&"object"==typeof e?"position"in e||"type"in e?s(e.position):"start"in e||"end"in e?s(e):"line"in e||"column"in e?o(e):"":""}function o(e){return r(e&&e.line)+":"+r(e&&e.column)}function s(e){return o(e&&e.start)+"-"+o(e&&e.end)}function r(e){return e&&"number"==typeof e?e:1}i.d(t,{y:()=>n})}},i={};function n(e){var o=i[e];if(void 0!==o)return o.exports;var s=i[e]={exports:{}};return t[e].call(s.exports,s,s.exports,n),s.exports}n.m=t,n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,i)=>(n.f[i](e,t),t)),[])),n.u=e=>(552===e?"mermaid":e)+".js",n.miniCssF=e=>{},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},n.l=(t,i,o,s)=>{if(e[t])e[t].push(i);else{var r,a;if(void 0!==o)for(var l=document.getElementsByTagName("script"),c=0;c{r.onerror=r.onload=null,clearTimeout(u);var o=e[t];if(delete e[t],r.parentNode&&r.parentNode.removeChild(r),o&&o.forEach((e=>e(n))),i)return i(n)},u=setTimeout(d.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=d.bind(null,r.onerror),r.onload=d.bind(null,r.onload),a&&document.head.appendChild(r)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");if(i.length)for(var o=i.length-1;o>-1&&!e;)e=i[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={143:0};n.f.j=(t,i)=>{var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)i.push(o[2]);else{var s=new Promise(((i,n)=>o=e[t]=[i,n]));i.push(o[2]=s);var r=n.p+n.u(t),a=new Error;n.l(r,(i=>{if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var s=i&&("load"===i.type?"missing":i.type),r=i&&i.target&&i.target.src;a.message="Loading chunk "+t+" failed.\n("+s+": "+r+")",a.name="ChunkLoadError",a.type=s,a.request=r,o[1](a)}}),"chunk-"+t,t)}};var t=(t,i)=>{var o,s,[r,a,l]=i,c=0;if(r.some((t=>0!==e[t]))){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);l&&l(n)}for(t&&t(i);c{"use strict";var e={};n.r(e),n.d(e,{boolean:()=>Yo,booleanish:()=>Zo,commaOrSpaceSeparated:()=>is,commaSeparated:()=>ts,number:()=>Jo,overloadedBoolean:()=>Xo,spaceSeparated:()=>es}),n(96458);var t,i=e=>"function"==typeof e?e:function(){return e},o="undefined"!=typeof self?self:null,s="undefined"!=typeof window?window:null,r=o||s||r,a="closed",l="errored",c="joined",h="joining",d="leaving",u="phx_close",g="phx_error",p="phx_reply",m="phx_leave",f="websocket",_=class{constructor(e,t,i,n){this.channel=e,this.event=t,this.payload=i||function(){return{}},this.receivedResp=null,this.timeout=n,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:e,response:t,_ref:i}){this.recHooks.filter((t=>t.status===e)).forEach((e=>e.callback(t)))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,(e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)})),this.timeoutTimer=setTimeout((()=>{this.trigger("timeout",{})}),this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},v=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout((()=>{this.tries=this.tries+1,this.callback()}),this.timerCalc(this.tries+1))}},b=class{static request(e,t,i,n,o,s,a){if(r.XDomainRequest){let i=new r.XDomainRequest;return this.xdomainRequest(i,e,t,n,o,s,a)}{let l=new r.XMLHttpRequest;return this.xhrRequest(l,e,t,i,n,o,s,a)}}static xdomainRequest(e,t,i,n,o,s,r){return e.timeout=o,e.open(t,i),e.onload=()=>{let t=this.parseJSON(e.responseText);r&&r(t)},s&&(e.ontimeout=s),e.onprogress=()=>{},e.send(n),e}static xhrRequest(e,t,i,n,o,s,r,a){return e.open(t,i,!0),e.timeout=s,e.setRequestHeader("Content-Type",n),e.onerror=()=>a&&a(null),e.onreadystatechange=()=>{if(4===e.readyState&&a){let t=this.parseJSON(e.responseText);a(t)}},r&&(e.ontimeout=r),e.send(o),e}static parseJSON(e){if(!e||""===e)return null;try{return JSON.parse(e)}catch(t){return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let i=[];for(var n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let o=t?`${t}[${n}]`:n,s=e[n];"object"==typeof s?i.push(this.serialize(s,o)):i.push(encodeURIComponent(o)+"="+encodeURIComponent(s))}return i.join("&")}static appendParams(e,t){if(0===Object.keys(t).length)return e;let i=e.match(/\?/)?"&":"?";return`${e}${i}${this.serialize(t)}`}},C=class{constructor(e){this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=0,this.poll()}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+f),"$1/longpoll")}endpointURL(){return b.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,i){this.close(e,t,i),this.readyState=0}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return 1===this.readyState||0===this.readyState}poll(){this.ajax("GET","application/json",null,(()=>this.ontimeout()),(e=>{if(e){var{status:t,token:i,messages:n}=e;this.token=i}else t=0;switch(t){case 200:n.forEach((e=>{setTimeout((()=>this.onmessage({data:e})),0)})),this.poll();break;case 204:this.poll();break;case 410:this.readyState=1,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${t}`)}}))}send(e){this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout((()=>{this.batchSend(this.currentBatch),this.currentBatch=null}),0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST","application/x-ndjson",e.join("\n"),(()=>this.onerror("timeout")),(e=>{this.awaitingBatchAck=!1,e&&200===e.status?this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[]):(this.onerror(e&&e.status),this.closeAndRetry(1011,"internal server error",!1))}))}close(e,t,i){for(let e of this.reqs)e.abort();this.readyState=3;let n=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:i});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,"undefined"!=typeof CloseEvent?this.onclose(new CloseEvent("close",n)):this.onclose(n)}ajax(e,t,i,n,o){let s;s=b.request(e,this.endpointURL(),t,i,this.timeout,(()=>{this.reqs.delete(s),n()}),(e=>{this.reqs.delete(s),this.isActive()&&o(e)})),this.reqs.add(s)}},y={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let i=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(i))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[i,n,o,s,r]=JSON.parse(e);return t({join_ref:i,ref:n,topic:o,event:s,payload:r})}},binaryEncode(e){let{join_ref:t,ref:i,event:n,topic:o,payload:s}=e,r=this.META_LENGTH+t.length+i.length+o.length+n.length,a=new ArrayBuffer(this.HEADER_LENGTH+r),l=new DataView(a),c=0;l.setUint8(c++,this.KINDS.push),l.setUint8(c++,t.length),l.setUint8(c++,i.length),l.setUint8(c++,o.length),l.setUint8(c++,n.length),Array.from(t,(e=>l.setUint8(c++,e.charCodeAt(0)))),Array.from(i,(e=>l.setUint8(c++,e.charCodeAt(0)))),Array.from(o,(e=>l.setUint8(c++,e.charCodeAt(0)))),Array.from(n,(e=>l.setUint8(c++,e.charCodeAt(0))));var h=new Uint8Array(a.byteLength+s.byteLength);return h.set(new Uint8Array(a),0),h.set(new Uint8Array(s),a.byteLength),h.buffer},binaryDecode(e){let t=new DataView(e),i=t.getUint8(0),n=new TextDecoder;switch(i){case this.KINDS.push:return this.decodePush(e,t,n);case this.KINDS.reply:return this.decodeReply(e,t,n);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,n)}},decodePush(e,t,i){let n=t.getUint8(1),o=t.getUint8(2),s=t.getUint8(3),r=this.HEADER_LENGTH+this.META_LENGTH-1,a=i.decode(e.slice(r,r+n));r+=n;let l=i.decode(e.slice(r,r+o));r+=o;let c=i.decode(e.slice(r,r+s));return r+=s,{join_ref:a,ref:null,topic:l,event:c,payload:e.slice(r,e.byteLength)}},decodeReply(e,t,i){let n=t.getUint8(1),o=t.getUint8(2),s=t.getUint8(3),r=t.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,l=i.decode(e.slice(a,a+n));a+=n;let c=i.decode(e.slice(a,a+o));a+=o;let h=i.decode(e.slice(a,a+s));a+=s;let d=i.decode(e.slice(a,a+r));a+=r;let u=e.slice(a,e.byteLength);return{join_ref:l,ref:c,topic:h,event:p,payload:{status:d,response:u}}},decodeBroadcast(e,t,i){let n=t.getUint8(1),o=t.getUint8(2),s=this.HEADER_LENGTH+2,r=i.decode(e.slice(s,s+n));s+=n;let a=i.decode(e.slice(s,s+o));return s+=o,{join_ref:null,ref:null,topic:r,event:a,payload:e.slice(s,e.byteLength)}}},w=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=t.timeout||1e4,this.transport=t.transport||r.WebSocket||C,this.establishedConnections=0,this.defaultEncoder=y.encode.bind(y),this.defaultDecoder=y.decode.bind(y),this.closeWasClean=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.transport!==C?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;s&&s.addEventListener&&(s.addEventListener("pagehide",(e=>{this.conn&&(this.disconnect(),n=this.connectClock)})),s.addEventListener("pageshow",(e=>{n===this.connectClock&&(n=null,this.connect())}))),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.rejoinAfterMs=e=>t.rejoinAfterMs?t.rejoinAfterMs(e):[1e3,2e3,5e3][e-1]||1e4,this.reconnectAfterMs=e=>t.reconnectAfterMs?t.reconnectAfterMs(e):[10,50,100,150,200,250,500,1e3,2e3][e-1]||5e3,this.logger=t.logger||null,this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=i(t.params||{}),this.endPoint=`${e}/${f}`,this.vsn=t.vsn||"2.0.0",this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new v((()=>{this.teardown((()=>this.connect()))}),this.reconnectAfterMs)}getLongPollTransport(){return C}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=b.appendParams(b.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return"/"!==e.charAt(0)?e:"/"===e.charAt(1)?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,i){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(e,t,i)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=i(e)),this.conn||(this.connectClock++,this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e))}log(e,t,i){this.logger(e,t,i)}hasLogger(){return null!==this.logger}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),i=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let n=this.onMessage((o=>{o.ref===t&&(this.off([n]),e(Date.now()-i))}));return!0}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach((([,e])=>e()))}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown((()=>this.reconnectTimer.scheduleTimeout()),1e3,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout((()=>this.sendHeartbeat()),this.heartbeatIntervalMs))}teardown(e,t,i){if(!this.conn)return e&&e();this.waitForBufferDone((()=>{this.conn&&(t?this.conn.close(t,i||""):this.conn.close()),this.waitForSocketClosed((()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()}))}))}waitForBufferDone(e,t=1){5!==t&&this.conn&&this.conn.bufferedAmount?setTimeout((()=>{this.waitForBufferDone(e,t+1)}),150*t):e()}waitForSocketClosed(e,t=1){5!==t&&this.conn&&3!==this.conn.readyState?setTimeout((()=>{this.waitForSocketClosed(e,t+1)}),150*t):e()}onConnClose(e){let t=e&&e.code;this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(),this.clearHeartbeats(),this.closeWasClean||1e3===t||this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach((([,t])=>t(e)))}onConnError(e){this.hasLogger()&&this.log("transport",e);let t=this.transport,i=this.establishedConnections;this.stateChangeCallbacks.error.forEach((([,n])=>{n(e,t,i)})),(t===this.transport||i>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach((e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(g)}))}connectionState(){switch(this.conn&&this.conn.readyState){case 0:return"connecting";case 1:return"open";case 2:return"closing";default:return"closed"}}isConnected(){return"open"===this.connectionState()}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter((t=>t.joinRef()!==e.joinRef()))}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter((([t])=>-1===e.indexOf(t)))}channel(e,t={}){let n=new class{constructor(e,t,n){this.state=a,this.topic=e,this.params=i(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new _(this,"phx_join",this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new v((()=>{this.socket.isConnected()&&this.rejoin()}),this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError((()=>this.rejoinTimer.reset()))),this.stateChangeRefs.push(this.socket.onOpen((()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()}))),this.joinPush.receive("ok",(()=>{this.state=c,this.rejoinTimer.reset(),this.pushBuffer.forEach((e=>e.send())),this.pushBuffer=[]})),this.joinPush.receive("error",(()=>{this.state=l,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()})),this.onClose((()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=a,this.socket.remove(this)})),this.onError((e=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,e),this.isJoining()&&this.joinPush.reset(),this.state=l,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()})),this.joinPush.receive("timeout",(()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new _(this,m,i({}),this.timeout).send(),this.state=l,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()})),this.on(p,((e,t)=>{this.trigger(this.replyEventName(t),e)}))}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(e){this.on(u,e)}onError(e){return this.on(g,(t=>e(t)))}on(e,t){let i=this.bindingRef++;return this.bindings.push({event:e,ref:i,callback:t}),i}off(e,t){this.bindings=this.bindings.filter((i=>!(i.event===e&&(void 0===t||t===i.ref))))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,i=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let n=new _(this,e,(function(){return t}),i);return this.canPush()?n.send():(n.startTimeout(),this.pushBuffer.push(n)),n}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=d;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(u,"leave")},n=new _(this,m,i({}),e);return n.receive("ok",(()=>t())).receive("timeout",(()=>t())),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,i){return t}isMember(e,t,i,n){return!(this.topic!==e||n&&n!==this.joinRef()&&(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:i,joinRef:n}),1))}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=h,this.joinPush.resend(e))}trigger(e,t,i,n){let o=this.onMessage(e,t,i,n);if(t&&!o)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let s=this.bindings.filter((t=>t.event===e));for(let e=0;ethis.conn.send(e))):this.sendBuffer.push((()=>this.encode(e,(e=>this.conn.send(e)))))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout((()=>this.heartbeatTimeout()),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach((e=>e())),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,(e=>{let{topic:t,event:i,payload:n,ref:o,join_ref:s}=e;o&&o===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout((()=>this.sendHeartbeat()),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${n.status||""} ${t} ${i} ${o&&"("+o+")"||""}`,n);for(let e=0;et.topic===e&&(t.isJoined()||t.isJoining())));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}},S="consecutive-reloads",k=["phx-click-loading","phx-change-loading","phx-submit-loading","phx-keydown-loading","phx-keyup-loading","phx-blur-loading","phx-focus-loading"],x="data-phx-component",L="data-phx-link",E="data-phx-ref",N="data-phx-ref-src",D="track-uploads",T="data-phx-upload-ref",I="data-phx-preflighted-refs",A="drop-target",M="data-phx-active-refs",R="phx:live-file:updated",O="data-phx-skip",P="data-phx-prune",F="page-loading",B="phx-connected",H="phx-loading",V="phx-no-feedback",W="phx-error",z="data-phx-parent-id",U="data-phx-main",j="data-phx-root-id",K="feedback-for",q="phx-has-focused",$=["text","textarea","number","email","password","search","tel","url","date","time","datetime-local","color","range"],G=["checkbox","radio"],Q="phx-has-submitted",Y="data-phx-session",Z=`[${Y}]`,X="data-phx-sticky",J="data-phx-static",ee="data-phx-readonly",te="data-phx-disabled",ie="disable-with",ne="data-phx-disable-with-restore",oe="hook",se="update",re="stream",ae="phxPrivate",le="auto-recover",ce="phx:live-socket:debug",he="phx:live-socket:profiling",de="phx:live-socket:latency-sim",ue="mounted",ge="debounce-trigger",pe="throttled",me="debounce-prev-key",fe={debounce:300,throttle:300},_e="d",ve="s",be="c",Ce="e",ye="r",we="t",Se="stream",ke=(e,t)=>console.error&&console.error(e,t),xe=e=>{let t=typeof e;return"number"===t||"string"===t&&/^(0|[1-9]\d*)$/.test(e)},Le=e=>"function"==typeof e?e:function(){return e},Ee=e=>JSON.parse(JSON.stringify(e)),Ne=(e,t,i)=>{do{if(e.matches(`[${t}]`)&&!e.disabled)return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType&&!(i&&i.isSameNode(e)||e.matches(Z)));return null},De=e=>null!==e&&"object"==typeof e&&!(e instanceof Array),Te=e=>{for(let t in e)return!1;return!0},Ie=(e,t)=>e&&t(e),Ae=function(e,t,i,n){e.forEach((e=>{let t=new class{constructor(e,t,i){this.liveSocket=i,this.entry=e,this.offset=0,this.chunkSize=t,this.chunkTimer=null,this.uploadChannel=i.channel(`lvu:${e.ref}`,{token:e.metadata()})}error(e){clearTimeout(this.chunkTimer),this.uploadChannel.leave(),this.entry.error(e)}upload(){this.uploadChannel.onError((e=>this.error(e))),this.uploadChannel.join().receive("ok",(e=>this.readNextChunk())).receive("error",(e=>this.error(e)))}isDone(){return this.offset>=this.entry.file.size}readNextChunk(){let e=new window.FileReader,t=this.entry.file.slice(this.offset,this.chunkSize+this.offset);e.onload=e=>{if(null!==e.target.error)return ke("Read error: "+e.target.error);this.offset+=e.target.result.byteLength,this.pushChunk(e.target.result)},e.readAsArrayBuffer(t)}pushChunk(e){this.uploadChannel.isJoined()&&this.uploadChannel.push("chunk",e).receive("ok",(()=>{this.entry.progress(this.offset/this.entry.file.size*100),this.isDone()||(this.chunkTimer=setTimeout((()=>this.readNextChunk()),this.liveSocket.getLatencySim()||0))}))}}(e,i.config.chunk_size,n);t.upload()}))},Me={canPushState:()=>void 0!==history.pushState,dropLocal(e,t,i){return e.removeItem(this.localKey(t,i))},updateLocal(e,t,i,n,o){let s=this.getLocal(e,t,i),r=this.localKey(t,i),a=null===s?n:o(s);return e.setItem(r,JSON.stringify(a)),a},getLocal(e,t,i){return JSON.parse(e.getItem(this.localKey(t,i)))},updateCurrentState(e){this.canPushState()&&history.replaceState(e(history.state||{}),"",window.location.href)},pushState(e,t,i){if(this.canPushState()){if(i!==window.location.href){if("redirect"==t.type&&t.scroll){let e=history.state||{};e.scroll=t.scroll,history.replaceState(e,"",window.location.href)}delete t.scroll,history[e+"State"](t,"",i||null);let n=this.getHashTargetEl(window.location.hash);n?n.scrollIntoView():"redirect"===t.type&&window.scroll(0,0)}}else this.redirect(i)},setCookie(e,t){document.cookie=`${e}=${t}`},getCookie:e=>document.cookie.replace(new RegExp(`(?:(?:^|.*;s*)${e}s*=s*([^;]*).*$)|^.*$`),"$1"),redirect(e,t){t&&Me.setCookie("__phoenix_flash__",t+"; max-age=60000; path=/"),window.location=e},localKey:(e,t)=>`${e}-${t}`,getHashTargetEl(e){let t=e.toString().substring(1);if(""!==t)return document.getElementById(t)||document.querySelector(`a[name="${t}"]`)}},Re=Me,Oe={byId:e=>document.getElementById(e)||ke(`no id found for ${e}`),removeClass(e,t){e.classList.remove(t),0===e.classList.length&&e.removeAttribute("class")},all(e,t,i){if(!e)return[];let n=Array.from(e.querySelectorAll(t));return i?n.forEach(i):n},childNodeLength(e){let t=document.createElement("template");return t.innerHTML=e,t.content.childElementCount},isUploadInput:e=>"file"===e.type&&null!==e.getAttribute(T),findUploadInputs(e){return this.all(e,`input[type="file"][${T}]`)},findComponentNodeList(e,t){return this.filterWithinSameLiveView(this.all(e,`[${x}="${t}"]`),e)},isPhxDestroyed:e=>!(!e.id||!Oe.private(e,"destroyed")),wantsNewTab:e=>e.ctrlKey||e.shiftKey||e.metaKey||e.button&&1===e.button||"_blank"===e.target.getAttribute("target"),isUnloadableFormSubmit(e){return!e.defaultPrevented&&!this.wantsNewTab(e)},isNewPageHref(e,t){let i;try{i=new URL(e)}catch(n){try{i=new URL(e,t)}catch(e){return!0}}return i.host!==t.host||i.protocol!==t.protocol||i.pathname!==t.pathname||i.search!==t.search||""===i.hash&&!i.href.endsWith("#")},markPhxChildDestroyed(e){this.isPhxChild(e)&&e.setAttribute(Y,""),this.putPrivate(e,"destroyed",!0)},findPhxChildrenInFragment(e,t){let i=document.createElement("template");return i.innerHTML=e,this.findPhxChildren(i.content,t)},isIgnored:(e,t)=>"ignore"===(e.getAttribute(t)||e.getAttribute("data-phx-update")),isPhxUpdate:(e,t,i)=>e.getAttribute&&i.indexOf(e.getAttribute(t))>=0,findPhxSticky(e){return this.all(e,`[${X}]`)},findPhxChildren(e,t){return this.all(e,`${Z}[${z}="${t}"]`)},findParentCIDs(e,t){let i=new Set(t),n=t.reduce(((t,i)=>{let n=`[${x}="${i}"] [${x}]`;return this.filterWithinSameLiveView(this.all(e,n),e).map((e=>parseInt(e.getAttribute(x)))).forEach((e=>t.delete(e))),t}),i);return 0===n.size?new Set(t):n},filterWithinSameLiveView(e,t){return t.querySelector(Z)?e.filter((e=>this.withinSameLiveView(e,t))):e},withinSameLiveView(e,t){for(;e=e.parentNode;){if(e.isSameNode(t))return!0;if(null!==e.getAttribute(Y))return!1}},private:(e,t)=>e[ae]&&e[ae][t],deletePrivate(e,t){e[ae]&&delete e[ae][t]},putPrivate(e,t,i){e[ae]||(e[ae]={}),e[ae][t]=i},updatePrivate(e,t,i,n){let o=this.private(e,t);void 0===o?this.putPrivate(e,t,n(i)):this.putPrivate(e,t,n(o))},copyPrivates(e,t){t[ae]&&(e[ae]=t[ae])},putTitle(e){let t=document.querySelector("title");if(t){let{prefix:i,suffix:n}=t.dataset;document.title=`${i||""}${e}${n||""}`}else document.title=e},debounce(e,t,i,n,o,s,r,a){let l=e.getAttribute(i),c=e.getAttribute(o);""===l&&(l=n),""===c&&(c=s);let h=l||c;switch(h){case null:return a();case"blur":return void(this.once(e,"debounce-blur")&&e.addEventListener("blur",(()=>a())));default:let i=parseInt(h),n=()=>c?this.deletePrivate(e,pe):a(),o=this.incCycle(e,ge,n);if(isNaN(i))return ke(`invalid throttle/debounce value: ${h}`);if(c){let n=!1;if("keydown"===t.type){let i=this.private(e,me);this.putPrivate(e,me,t.key),n=i!==t.key}if(!n&&this.private(e,pe))return!1;a(),this.putPrivate(e,pe,!0),setTimeout((()=>{r()&&this.triggerCycle(e,ge)}),i)}else setTimeout((()=>{r()&&this.triggerCycle(e,ge,o)}),i);let s=e.form;s&&this.once(s,"bind-debounce")&&s.addEventListener("submit",(()=>{Array.from(new FormData(s).entries(),(([e])=>{let t=s.querySelector(`[name="${e}"]`);this.incCycle(t,ge),this.deletePrivate(t,pe)}))})),this.once(e,"bind-debounce")&&e.addEventListener("blur",(()=>this.triggerCycle(e,ge)))}},triggerCycle(e,t,i){let[n,o]=this.private(e,t);i||(i=n),i===n&&(this.incCycle(e,t),o())},once(e,t){return!0!==this.private(e,t)&&(this.putPrivate(e,t,!0),!0)},incCycle(e,t,i=function(){}){let[n]=this.private(e,t)||[0,i];return n++,this.putPrivate(e,t,[n,i]),n},discardError(e,t,i){let n=t.getAttribute&&t.getAttribute(i),o=n&&e.querySelector(`[id="${n}"], [name="${n}"], [name="${n}[]"]`);o&&(this.private(o,q)||this.private(o,Q)||t.classList.add(V))},resetForm(e,t){Array.from(e.elements).forEach((e=>{let i=`[${t}="${e.id}"],\n [${t}="${e.name}"],\n [${t}="${e.name.replace(/\[\]$/,"")}"]`;this.deletePrivate(e,q),this.deletePrivate(e,Q),this.all(document,i,(e=>{e.classList.add(V)}))}))},showError(e,t){(e.id||e.name)&&this.all(e.form,`[${t}="${e.id}"], [${t}="${e.name}"]`,(e=>{this.removeClass(e,V)}))},isPhxChild:e=>e.getAttribute&&e.getAttribute(z),isPhxSticky:e=>e.getAttribute&&null!==e.getAttribute(X),firstPhxChild(e){return this.isPhxChild(e)?e:this.all(e,`[${z}]`)[0]},dispatchEvent(e,t,i={}){let n={bubbles:void 0===i.bubbles||!!i.bubbles,cancelable:!0,detail:i.detail||{}},o="click"===t?new MouseEvent("click",n):new CustomEvent(t,n);e.dispatchEvent(o)},cloneNode(e,t){if(void 0===t)return e.cloneNode(!0);{let i=e.cloneNode(!1);return i.innerHTML=t,i}},mergeAttrs(e,t,i={}){let n=i.exclude||[],o=i.isIgnored,s=t.attributes;for(let i=s.length-1;i>=0;i--){let o=s[i].name;n.indexOf(o)<0&&e.setAttribute(o,t.getAttribute(o))}let r=e.attributes;for(let i=r.length-1;i>=0;i--){let n=r[i].name;o?n.startsWith("data-")&&!t.hasAttribute(n)&&e.removeAttribute(n):t.hasAttribute(n)||e.removeAttribute(n)}},mergeFocusedInput(e,t){e instanceof HTMLSelectElement||Oe.mergeAttrs(e,t,{exclude:["value"]}),t.readOnly?e.setAttribute("readonly",!0):e.removeAttribute("readonly")},hasSelectionRange:e=>e.setSelectionRange&&("text"===e.type||"textarea"===e.type),restoreFocus(e,t,i){if(!Oe.isTextualInput(e))return;let n=e.matches(":focus");e.readOnly&&e.blur(),n||e.focus(),this.hasSelectionRange(e)&&e.setSelectionRange(t,i)},isFormInput:e=>/^(?:input|select|textarea)$/i.test(e.tagName)&&"button"!==e.type,syncAttrsToProps(e){e instanceof HTMLInputElement&&G.indexOf(e.type.toLocaleLowerCase())>=0&&(e.checked=null!==e.getAttribute("checked"))},isTextualInput:e=>$.indexOf(e.type)>=0,isNowTriggerFormExternal:(e,t)=>e.getAttribute&&null!==e.getAttribute(t),syncPendingRef(e,t,i){let n=e.getAttribute(E);if(null===n)return!0;let o=e.getAttribute(N);return Oe.isFormInput(e)||null!==e.getAttribute(i)?(Oe.isUploadInput(e)&&Oe.mergeAttrs(e,t,{isIgnored:!0}),Oe.putPrivate(e,E,t),!1):(k.forEach((i=>{e.classList.contains(i)&&t.classList.add(i)})),t.setAttribute(E,n),t.setAttribute(N,o),!0)},cleanChildNodes(e,t){if(Oe.isPhxUpdate(e,t,["append","prepend"])){let t=[];e.childNodes.forEach((e=>{e.id||(e.nodeType===Node.TEXT_NODE&&""===e.nodeValue.trim()||ke(`only HTML element tags with an id are allowed inside containers with phx-update.\n\nremoving illegal node: "${(e.outerHTML||e.nodeValue).trim()}"\n\n`),t.push(e))})),t.forEach((e=>e.remove()))}},replaceRootContainer(e,t,i){let n=new Set(["id",Y,J,U,j]);if(e.tagName.toLowerCase()===t.toLowerCase())return Array.from(e.attributes).filter((e=>!n.has(e.name.toLowerCase()))).forEach((t=>e.removeAttribute(t.name))),Object.keys(i).filter((e=>!n.has(e.toLowerCase()))).forEach((t=>e.setAttribute(t,i[t]))),e;{let o=document.createElement(t);return Object.keys(i).forEach((e=>o.setAttribute(e,i[e]))),n.forEach((t=>o.setAttribute(t,e.getAttribute(t)))),o.innerHTML=e.innerHTML,e.replaceWith(o),o}},getSticky(e,t,i){let n=(Oe.private(e,"sticky")||[]).find((([e])=>t===e));if(n){let[e,t,i]=n;return i}return"function"==typeof i?i():i},deleteSticky(e,t){this.updatePrivate(e,"sticky",[],(e=>e.filter((([e,i])=>e!==t))))},putSticky(e,t,i){let n=i(e);this.updatePrivate(e,"sticky",[],(e=>{let o=e.findIndex((([e])=>t===e));return o>=0?e[o]=[t,i,n]:e.push([t,i,n]),e}))},applyStickyOperations(e){let t=Oe.private(e,"sticky");t&&t.forEach((([t,i,n])=>this.putSticky(e,t,i)))}},Pe=Oe,Fe=class{static isActive(e,t){let i=void 0===t._phxRef,n=e.getAttribute(M).split(",").indexOf(He.genFileRef(t))>=0;return t.size>0&&(i||n)}static isPreflighted(e,t){return e.getAttribute(I).split(",").indexOf(He.genFileRef(t))>=0&&this.isActive(e,t)}constructor(e,t,i){this.ref=He.genFileRef(t),this.fileEl=e,this.file=t,this.view=i,this.meta=null,this._isCancelled=!1,this._isDone=!1,this._progress=0,this._lastProgressSent=-1,this._onDone=function(){},this._onElUpdated=this.onElUpdated.bind(this),this.fileEl.addEventListener(R,this._onElUpdated)}metadata(){return this.meta}progress(e){this._progress=Math.floor(e),this._progress>this._lastProgressSent&&(this._progress>=100?(this._progress=100,this._lastProgressSent=100,this._isDone=!0,this.view.pushFileProgress(this.fileEl,this.ref,100,(()=>{He.untrackFile(this.fileEl,this.file),this._onDone()}))):(this._lastProgressSent=this._progress,this.view.pushFileProgress(this.fileEl,this.ref,this._progress)))}cancel(){this._isCancelled=!0,this._isDone=!0,this._onDone()}isDone(){return this._isDone}error(e="failed"){this.fileEl.removeEventListener(R,this._onElUpdated),this.view.pushFileProgress(this.fileEl,this.ref,{error:e}),He.clearFiles(this.fileEl)}onDone(e){this._onDone=()=>{this.fileEl.removeEventListener(R,this._onElUpdated),e()}}onElUpdated(){-1===this.fileEl.getAttribute(M).split(",").indexOf(this.ref)&&this.cancel()}toPreflightPayload(){return{last_modified:this.file.lastModified,name:this.file.name,relative_path:this.file.webkitRelativePath,size:this.file.size,type:this.file.type,ref:this.ref}}uploader(e){if(this.meta.uploader){let t=e[this.meta.uploader]||ke(`no uploader configured for ${this.meta.uploader}`);return{name:this.meta.uploader,callback:t}}return{name:"channel",callback:Ae}}zipPostFlight(e){this.meta=e.entries[this.ref],this.meta||ke(`no preflight upload response returned with ref ${this.ref}`,{input:this.fileEl,response:e})}},Be=0,He=class{static genFileRef(e){let t=e._phxRef;return void 0!==t?t:(e._phxRef=(Be++).toString(),e._phxRef)}static getEntryDataURL(e,t,i){let n=this.activeFiles(e).find((e=>this.genFileRef(e)===t));i(URL.createObjectURL(n))}static hasUploadsInProgress(e){let t=0;return Pe.findUploadInputs(e).forEach((e=>{e.getAttribute(I)!==e.getAttribute("data-phx-done-refs")&&t++})),t>0}static serializeUploads(e){let t=this.activeFiles(e),i={};return t.forEach((t=>{let n={path:e.name},o=e.getAttribute(T);i[o]=i[o]||[],n.ref=this.genFileRef(t),n.last_modified=t.lastModified,n.name=t.name||n.ref,n.relative_path=t.webkitRelativePath,n.type=t.type,n.size=t.size,i[o].push(n)})),i}static clearFiles(e){e.value=null,e.removeAttribute(T),Pe.putPrivate(e,"files",[])}static untrackFile(e,t){Pe.putPrivate(e,"files",Pe.private(e,"files").filter((e=>!Object.is(e,t))))}static trackFiles(e,t,i){if(null!==e.getAttribute("multiple")){let i=t.filter((t=>!this.activeFiles(e).find((e=>Object.is(e,t)))));Pe.putPrivate(e,"files",this.activeFiles(e).concat(i)),e.value=null}else i&&i.files.length>0&&(e.files=i.files),Pe.putPrivate(e,"files",t)}static activeFileInputs(e){let t=Pe.findUploadInputs(e);return Array.from(t).filter((e=>e.files&&this.activeFiles(e).length>0))}static activeFiles(e){return(Pe.private(e,"files")||[]).filter((t=>Fe.isActive(e,t)))}static inputsAwaitingPreflight(e){let t=Pe.findUploadInputs(e);return Array.from(t).filter((e=>this.filesAwaitingPreflight(e).length>0))}static filesAwaitingPreflight(e){return this.activeFiles(e).filter((t=>!Fe.isPreflighted(e,t)))}constructor(e,t,i){this.view=t,this.onComplete=i,this._entries=Array.from(He.filesAwaitingPreflight(e)||[]).map((i=>new Fe(e,i,t))),this.numEntriesInProgress=this._entries.length}entries(){return this._entries}initAdapterUpload(e,t,i){this._entries=this._entries.map((t=>(t.zipPostFlight(e),t.onDone((()=>{this.numEntriesInProgress--,0===this.numEntriesInProgress&&this.onComplete()})),t)));let n=this._entries.reduce(((e,t)=>{let{name:n,callback:o}=t.uploader(i.uploaders);return e[n]=e[n]||{callback:o,entries:[]},e[n].entries.push(t),e}),{});for(let o in n){let{callback:s,entries:r}=n[o];s(r,t,e,i)}}},Ve={focusMain(){let e=document.querySelector("main h1, main, h1");if(e){let t=e.tabIndex;e.tabIndex=-1,e.focus(),e.tabIndex=t}},anyOf:(e,t)=>t.find((t=>e instanceof t)),isFocusable(e,t){return e instanceof HTMLAnchorElement&&"ignore"!==e.rel||e instanceof HTMLAreaElement&&void 0!==e.href||!e.disabled&&this.anyOf(e,[HTMLInputElement,HTMLSelectElement,HTMLTextAreaElement,HTMLButtonElement])||e instanceof HTMLIFrameElement||e.tabIndex>0||!t&&0===e.tabIndex&&null!==e.getAttribute("tabindex")&&"true"!==e.getAttribute("aria-hidden")},attemptFocus(e,t){if(this.isFocusable(e,t))try{e.focus()}catch(e){}return!!document.activeElement&&document.activeElement.isSameNode(e)},focusFirstInteractive(e){let t=e.firstElementChild;for(;t;){if(this.attemptFocus(t,!0)||this.focusFirstInteractive(t,!0))return!0;t=t.nextElementSibling}},focusFirst(e){let t=e.firstElementChild;for(;t;){if(this.attemptFocus(t)||this.focusFirst(t))return!0;t=t.nextElementSibling}},focusLast(e){let t=e.lastElementChild;for(;t;){if(this.attemptFocus(t)||this.focusLast(t))return!0;t=t.previousElementSibling}}},We={LiveFileUpload:{activeRefs(){return this.el.getAttribute(M)},preflightedRefs(){return this.el.getAttribute(I)},mounted(){this.preflightedWas=this.preflightedRefs()},updated(){let e=this.preflightedRefs();this.preflightedWas!==e&&(this.preflightedWas=e,""===e&&this.__view.cancelSubmit(this.el.form)),""===this.activeRefs()&&(this.el.value=null),this.el.dispatchEvent(new CustomEvent(R))}},LiveImgPreview:{mounted(){this.ref=this.el.getAttribute("data-phx-entry-ref"),this.inputEl=document.getElementById(this.el.getAttribute(T)),He.getEntryDataURL(this.inputEl,this.ref,(e=>{this.url=e,this.el.src=e}))},destroyed(){URL.revokeObjectURL(this.url)}},FocusWrap:{mounted(){this.focusStart=this.el.firstElementChild,this.focusEnd=this.el.lastElementChild,this.focusStart.addEventListener("focus",(()=>Ve.focusLast(this.el))),this.focusEnd.addEventListener("focus",(()=>Ve.focusFirst(this.el))),this.el.addEventListener("phx:show-end",(()=>this.el.focus())),"none"!==window.getComputedStyle(this.el).display&&Ve.focusFirst(this.el)}}},ze="undefined"==typeof document?void 0:document,Ue=!!ze&&"content"in ze.createElement("template"),je=!!ze&&ze.createRange&&"createContextualFragment"in ze.createRange();function Ke(e,t){var i,n,o=e.nodeName,s=t.nodeName;return o===s||(i=o.charCodeAt(0),n=s.charCodeAt(0),i<=90&&n>=97?o===s.toUpperCase():n<=90&&i>=97&&s===o.toUpperCase())}function qe(e,t,i){e[i]!==t[i]&&(e[i]=t[i],e[i]?e.setAttribute(i,""):e.removeAttribute(i))}var $e={OPTION:function(e,t){var i=e.parentNode;if(i){var n=i.nodeName.toUpperCase();"OPTGROUP"===n&&(n=(i=i.parentNode)&&i.nodeName.toUpperCase()),"SELECT"!==n||i.hasAttribute("multiple")||(e.hasAttribute("selected")&&!t.selected&&(e.setAttribute("selected","selected"),e.removeAttribute("selected")),i.selectedIndex=-1)}qe(e,t,"selected")},INPUT:function(e,t){qe(e,t,"checked"),qe(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),t.hasAttribute("value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var i=t.value;e.value!==i&&(e.value=i);var n=e.firstChild;if(n){var o=n.nodeValue;if(o==i||!i&&o==e.placeholder)return;n.nodeValue=i}},SELECT:function(e,t){if(!t.hasAttribute("multiple")){for(var i,n,o=-1,s=0,r=e.firstChild;r;)if("OPTGROUP"===(n=r.nodeName&&r.nodeName.toUpperCase()))r=(i=r).firstChild;else{if("OPTION"===n){if(r.hasAttribute("selected")){o=s;break}s++}!(r=r.nextSibling)&&i&&(r=i.nextSibling,i=null)}e.selectedIndex=o}}};function Ge(){}function Qe(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}var Ye,Ze=(Ye=function(e,t){var i,n,o,s,r=t.attributes;if(11!==t.nodeType&&11!==e.nodeType){for(var a=r.length-1;a>=0;a--)n=(i=r[a]).name,o=i.namespaceURI,s=i.value,o?(n=i.localName||n,e.getAttributeNS(o,n)!==s&&("xmlns"===i.prefix&&(n=i.name),e.setAttributeNS(o,n,s))):e.getAttribute(n)!==s&&e.setAttribute(n,s);for(var l=e.attributes,c=l.length-1;c>=0;c--)n=(i=l[c]).name,(o=i.namespaceURI)?(n=i.localName||n,t.hasAttributeNS(o,n)||e.removeAttributeNS(o,n)):t.hasAttribute(n)||e.removeAttribute(n)}},function(e,i,n){if(n||(n={}),"string"==typeof i)if("#document"===e.nodeName||"HTML"===e.nodeName||"BODY"===e.nodeName){var o=i;(i=ze.createElement("html")).innerHTML=o}else s=(s=i).trim(),i=Ue?function(e){var t=ze.createElement("template");return t.innerHTML=e,t.content.childNodes[0]}(s):je?function(e){return t||(t=ze.createRange()).selectNode(ze.body),t.createContextualFragment(e).childNodes[0]}(s):function(e){var t=ze.createElement("body");return t.innerHTML=e,t.childNodes[0]}(s);else 11===i.nodeType&&(i=i.firstElementChild);var s,r=n.getNodeKey||Qe,a=n.onBeforeNodeAdded||Ge,l=n.onNodeAdded||Ge,c=n.onBeforeElUpdated||Ge,h=n.onElUpdated||Ge,d=n.onBeforeNodeDiscarded||Ge,u=n.onNodeDiscarded||Ge,g=n.onBeforeElChildrenUpdated||Ge,p=n.skipFromChildren||Ge,m=n.addChild||function(e,t){return e.appendChild(t)},f=!0===n.childrenOnly,_=Object.create(null),v=[];function b(e){v.push(e)}function C(e,t){if(1===e.nodeType)for(var i=e.firstChild;i;){var n=void 0;t&&(n=r(i))?b(n):(u(i),i.firstChild&&C(i,t)),i=i.nextSibling}}function y(e,t,i){!1!==d(e)&&(t&&t.removeChild(e),u(e),C(e,i))}function w(e){l(e);for(var t=e.firstChild;t;){var i=t.nextSibling,n=r(t);if(n){var o=_[n];o&&Ke(t,o)?(t.parentNode.replaceChild(o,t),S(o,t)):w(t)}else w(t);t=i}}function S(e,t,i){var n=r(t);if(n&&delete _[n],!i){if(!1===c(e,t))return;if(Ye(e,t),h(e),!1===g(e,t))return}"TEXTAREA"!==e.nodeName?function(e,t){var i,n,o,s,l,c=p(e),h=t.firstChild,d=e.firstChild;e:for(;h;){for(s=h.nextSibling,i=r(h);!c&&d;){if(o=d.nextSibling,h.isSameNode&&h.isSameNode(d)){h=s,d=o;continue e}n=r(d);var u=d.nodeType,g=void 0;if(u===h.nodeType&&(1===u?(i?i!==n&&((l=_[i])?o===l?g=!1:(e.insertBefore(l,d),n?b(n):y(d,e,!0),d=l):g=!1):n&&(g=!1),(g=!1!==g&&Ke(d,h))&&S(d,h)):3!==u&&8!=u||(g=!0,d.nodeValue!==h.nodeValue&&(d.nodeValue=h.nodeValue))),g){h=s,d=o;continue e}n?b(n):y(d,e,!0),d=o}if(i&&(l=_[i])&&Ke(l,h))c||m(e,l),S(l,h);else{var f=a(h);!1!==f&&(f&&(h=f),h.actualize&&(h=h.actualize(e.ownerDocument||ze)),m(e,h),w(h))}h=s,d=o}!function(e,t,i){for(;t;){var n=t.nextSibling;(i=r(t))?b(i):y(t,e,!0),t=n}}(e,d,n);var v=$e[e.nodeName];v&&v(e,t)}(e,t):$e.TEXTAREA(e,t)}!function e(t){if(1===t.nodeType||11===t.nodeType)for(var i=t.firstChild;i;){var n=r(i);n&&(_[n]=i),e(i),i=i.nextSibling}}(e);var k,x,L=e,E=L.nodeType,N=i.nodeType;if(!f)if(1===E)1===N?Ke(e,i)||(u(e),L=function(e,t){for(var i=e.firstChild;i;){var n=i.nextSibling;t.appendChild(i),i=n}return t}(e,(k=i.nodeName,(x=i.namespaceURI)&&"http://www.w3.org/1999/xhtml"!==x?ze.createElementNS(x,k):ze.createElement(k)))):L=i;else if(3===E||8===E){if(N===E)return L.nodeValue!==i.nodeValue&&(L.nodeValue=i.nodeValue),L;L=i}if(L===i)u(e);else{if(i.isSameNode&&i.isSameNode(L))return;if(S(L,i,f),v)for(var D=0,T=v.length;D{if(i&&i.isSameNode(e)&&Pe.isFormInput(e))return Pe.mergeFocusedInput(e,t),!1}})}constructor(e,t,i,n,o,s){this.view=e,this.liveSocket=e.liveSocket,this.container=t,this.id=i,this.rootID=e.root.id,this.html=n,this.streams=o,this.streamInserts={},this.targetCID=s,this.cidPatch=xe(this.targetCID),this.pendingRemoves=[],this.phxRemove=this.liveSocket.binding("remove"),this.callbacks={beforeadded:[],beforeupdated:[],beforephxChildAdded:[],afteradded:[],afterupdated:[],afterdiscarded:[],afterphxChildAdded:[],aftertransitionsDiscarded:[]}}before(e,t){this.callbacks[`before${e}`].push(t)}after(e,t){this.callbacks[`after${e}`].push(t)}trackBefore(e,...t){this.callbacks[`before${e}`].forEach((e=>e(...t)))}trackAfter(e,...t){this.callbacks[`after${e}`].forEach((e=>e(...t)))}markPrunableContentForRemoval(){let e=this.liveSocket.binding(se);Pe.all(this.container,`[${e}=${re}]`,(e=>e.innerHTML="")),Pe.all(this.container,`[${e}=append] > *, [${e}=prepend] > *`,(e=>{e.setAttribute(P,"")}))}perform(){let{view:e,liveSocket:t,container:i,html:n}=this,o=this.isCIDPatch()?this.targetCIDContainer(n):i;if(this.isCIDPatch()&&!o)return;let s=t.getActiveElement(),{selectionStart:r,selectionEnd:a}=s&&Pe.hasSelectionRange(s)?s:{},l=t.binding(se),c=t.binding(K),h=t.binding(ie),d=t.binding("trigger-action"),u=[],g=[],p=[],m=null,f=t.time("premorph container prep",(()=>this.buildDiffHTML(i,n,l,o)));return this.trackBefore("added",i),this.trackBefore("updated",i,i),t.time("morphdom",(()=>{this.streams.forEach((([e,t])=>{this.streamInserts=Object.assign(this.streamInserts,e),t.forEach((e=>{let t=i.querySelector(`[id="${e}"]`);t&&(this.maybePendingRemove(t)||(t.remove(),this.onNodeDiscarded(t)))}))})),Xe(o,f,{childrenOnly:null===o.getAttribute(x),getNodeKey:e=>Pe.isPhxDestroyed(e)?null:e.id,skipFromChildren:e=>e.getAttribute(l)===re,addChild:(e,t)=>{let i=t.id?this.streamInserts[t.id]:void 0;if(void 0===i)return e.appendChild(t);if(0===i)e.insertAdjacentElement("afterbegin",t);else if(-1===i)e.appendChild(t);else if(i>0){let n=Array.from(e.children)[i];e.insertBefore(t,n)}},onBeforeNodeAdded:e=>(this.trackBefore("added",e),e),onNodeAdded:t=>{t instanceof HTMLImageElement&&t.srcset?t.srcset=t.srcset:t instanceof HTMLVideoElement&&t.autoplay&&t.play(),Pe.isNowTriggerFormExternal(t,d)&&(m=t),Pe.discardError(o,t,c),(Pe.isPhxChild(t)&&e.ownsElement(t)||Pe.isPhxSticky(t)&&e.ownsElement(t.parentNode))&&this.trackAfter("phxChildAdded",t),u.push(t)},onNodeDiscarded:e=>this.onNodeDiscarded(e),onBeforeNodeDiscarded:e=>!((!e.getAttribute||null===e.getAttribute(P))&&(null!==e.parentElement&&e.id&&Pe.isPhxUpdate(e.parentElement,l,[re,"append","prepend"])||this.maybePendingRemove(e)||this.skipCIDSibling(e))),onElUpdated:e=>{Pe.isNowTriggerFormExternal(e,d)&&(m=e),g.push(e),this.maybeReOrderStream(e)},onBeforeElUpdated:(e,t)=>{if(Pe.cleanChildNodes(t,l),this.skipCIDSibling(t))return!1;if(Pe.isPhxSticky(e))return!1;if(Pe.isIgnored(e,l)||e.form&&e.form.isSameNode(m))return this.trackBefore("updated",e,t),Pe.mergeAttrs(e,t,{isIgnored:!0}),g.push(e),Pe.applyStickyOperations(e),!1;if("number"===e.type&&e.validity&&e.validity.badInput)return!1;if(!Pe.syncPendingRef(e,t,h))return Pe.isUploadInput(e)&&(this.trackBefore("updated",e,t),g.push(e)),Pe.applyStickyOperations(e),!1;if(Pe.isPhxChild(t)){let i=e.getAttribute(Y);return Pe.mergeAttrs(e,t,{exclude:[J]}),""!==i&&e.setAttribute(Y,i),e.setAttribute(j,this.rootID),Pe.applyStickyOperations(e),!1}return Pe.copyPrivates(t,e),Pe.discardError(o,t,c),s&&e.isSameNode(s)&&Pe.isFormInput(e)&&"hidden"!==e.type?(this.trackBefore("updated",e,t),Pe.mergeFocusedInput(e,t),Pe.syncAttrsToProps(e),g.push(e),Pe.applyStickyOperations(e),!1):(Pe.isPhxUpdate(t,l,["append","prepend"])&&p.push(new class{constructor(e,t,i){let n=new Set,o=new Set([...t.children].map((e=>e.id))),s=[];Array.from(e.children).forEach((e=>{if(e.id&&(n.add(e.id),o.has(e.id))){let t=e.previousElementSibling&&e.previousElementSibling.id;s.push({elementId:e.id,previousElementId:t})}})),this.containerId=t.id,this.updateType=i,this.elementsToModify=s,this.elementIdsToAdd=[...o].filter((e=>!n.has(e)))}perform(){let e=Pe.byId(this.containerId);this.elementsToModify.forEach((t=>{t.previousElementId?Ie(document.getElementById(t.previousElementId),(e=>{Ie(document.getElementById(t.elementId),(t=>{t.previousElementSibling&&t.previousElementSibling.id==e.id||e.insertAdjacentElement("afterend",t)}))})):Ie(document.getElementById(t.elementId),(t=>{null==t.previousElementSibling||e.insertAdjacentElement("afterbegin",t)}))})),"prepend"==this.updateType&&this.elementIdsToAdd.reverse().forEach((t=>{Ie(document.getElementById(t),(t=>e.insertAdjacentElement("afterbegin",t)))}))}}(e,t,t.getAttribute(l))),Pe.syncAttrsToProps(t),Pe.applyStickyOperations(t),this.trackBefore("updated",e,t),!0)}})})),t.isDebugEnabled()&&function(){let e=new Set,t=document.querySelectorAll("*[id]");for(let i=0,n=t.length;i0&&t.time("post-morph append/prepend restoration",(()=>{p.forEach((e=>e.perform()))})),t.silenceEvents((()=>Pe.restoreFocus(s,r,a))),Pe.dispatchEvent(document,"phx:update"),u.forEach((e=>this.trackAfter("added",e))),g.forEach((e=>this.trackAfter("updated",e))),this.transitionPendingRemoves(),m&&(t.unload(),m.submit()),!0}onNodeDiscarded(e){(Pe.isPhxChild(e)||Pe.isPhxSticky(e))&&this.liveSocket.destroyViewByEl(e),this.trackAfter("discarded",e)}maybePendingRemove(e){return!(!e.getAttribute||null===e.getAttribute(this.phxRemove)||(this.pendingRemoves.push(e),0))}maybeReOrderStream(e){let t=e.id?this.streamInserts[e.id]:void 0;if(void 0!==t)if(0===t)e.parentElement.insertBefore(e,e.parentElement.firstElementChild);else if(t>0){let i=Array.from(e.parentElement.children),n=i.indexOf(e);if(t>=i.length-1)e.parentElement.appendChild(e);else{let o=i[t];n>t?e.parentElement.insertBefore(e,o):e.parentElement.insertBefore(e,o.nextElementSibling)}}}transitionPendingRemoves(){let{pendingRemoves:e,liveSocket:t}=this;e.length>0&&(t.transitionRemoves(e),t.requestDOMUpdate((()=>{e.forEach((e=>{let i=Pe.firstPhxChild(e);i&&t.destroyViewByEl(i),e.remove()})),this.trackAfter("transitionsDiscarded",e)})))}isCIDPatch(){return this.cidPatch}skipCIDSibling(e){return e.nodeType===Node.ELEMENT_NODE&&null!==e.getAttribute(O)}targetCIDContainer(e){if(!this.isCIDPatch())return;let[t,...i]=Pe.findComponentNodeList(this.container,this.targetCID);return 0===i.length&&1===Pe.childNodeLength(e)?t:t&&t.parentNode}buildDiffHTML(e,t,i,n){let o=this.isCIDPatch(),s=o&&n.getAttribute(x)===this.targetCID.toString();if(!o||s)return t;{let e=null,i=document.createElement("template");e=Pe.cloneNode(n);let[o,...s]=Pe.findComponentNodeList(e,this.targetCID);return i.innerHTML=t,s.forEach((e=>e.remove())),Array.from(e.childNodes).forEach((e=>{e.id&&e.nodeType===Node.ELEMENT_NODE&&e.getAttribute(x)!==this.targetCID.toString()&&(e.setAttribute(O,""),e.innerHTML="")})),Array.from(i.content.childNodes).forEach((t=>e.insertBefore(t,o))),o.remove(),e.outerHTML}}indexOf(e,t){return Array.from(e.children).indexOf(t)}},et=class{static extract(e){let{[ye]:t,[Ce]:i,[we]:n}=e;return delete e[ye],delete e[Ce],delete e[we],{diff:e,title:n,reply:t||null,events:i||[]}}constructor(e,t){this.viewId=e,this.rendered={},this.mergeDiff(t)}parentViewId(){return this.viewId}toString(e){let[t,i]=this.recursiveToString(this.rendered,this.rendered[be],e);return[t,i]}recursiveToString(e,t=e[be],i){let n={buffer:"",components:t,onlyCids:i=i?new Set(i):null,streams:new Set};return this.toOutputBuffer(e,null,n),[n.buffer,n.streams]}componentCIDs(e){return Object.keys(e[be]||{}).map((e=>parseInt(e)))}isComponentOnlyDiff(e){return!!e[be]&&1===Object.keys(e).length}getComponent(e,t){return e[be][t]}mergeDiff(e){let t=e[be],i={};if(delete e[be],this.rendered=this.mutableMerge(this.rendered,e),this.rendered[be]=this.rendered[be]||{},t){let n=this.rendered[be];for(let e in t)t[e]=this.cachedFindComponent(e,t[e],n,t,i);for(let e in t)n[e]=t[e];e[be]=t}}cachedFindComponent(e,t,i,n,o){if(o[e])return o[e];{let s,r,a=t[ve];if(xe(a)){let e;e=a>0?this.cachedFindComponent(a,n[a],i,n,o):i[-a],r=e[ve],s=this.cloneMerge(e,t),s[ve]=r}else s=void 0!==t[ve]?t:this.cloneMerge(i[e]||{},t);return o[e]=s,s}}mutableMerge(e,t){return void 0!==t[ve]?t:(this.doMutableMerge(e,t),e)}doMutableMerge(e,t){for(let i in t){let n=t[i],o=e[i];De(n)&&void 0===n[ve]&&De(o)?this.doMutableMerge(o,n):e[i]=n}}cloneMerge(e,t){let i={...e,...t};for(let n in i){let o=t[n],s=e[n];De(o)&&void 0===o[ve]&&De(s)&&(i[n]=this.cloneMerge(s,o))}return i}componentToString(e){let[t,i]=this.recursiveCIDToString(this.rendered[be],e);return[t,i]}pruneCIDs(e){e.forEach((e=>delete this.rendered[be][e]))}get(){return this.rendered}isNewFingerprint(e={}){return!!e[ve]}templateStatic(e,t){return"number"==typeof e?t[e]:e}toOutputBuffer(e,t,i){if(e[_e])return this.comprehensionToBuffer(e,t,i);let{[ve]:n}=e;n=this.templateStatic(n,t),i.buffer+=n[0];for(let o=1;o0||a.length>0)&&(e[_e]=[],i.streams.add(s))}dynamicToBuffer(e,t,i){if("number"==typeof e){let[t,n]=this.recursiveCIDToString(i.components,e,i.onlyCids);i.buffer+=t,i.streams=new Set([...i.streams,...n])}else De(e)?this.toOutputBuffer(e,t,i):i.buffer+=e}recursiveCIDToString(e,t,i){let n=e[t]||ke(`no component for CID ${t}`,e),o=document.createElement("template"),[s,r]=this.recursiveToString(n,e,i);o.innerHTML=s;let a=o.content,l=i&&!i.has(t),[c,h]=Array.from(a.childNodes).reduce((([e,i],n,s)=>n.nodeType===Node.ELEMENT_NODE?n.getAttribute(x)?[e,!0]:(n.setAttribute(x,t),n.id||(n.id=`${this.parentViewId()}-${t}-${s}`),l&&(n.setAttribute(O,""),n.innerHTML=""),[!0,i]):""!==n.nodeValue.trim()?(ke(`only HTML element tags are allowed at the root of components.\n\ngot: "${n.nodeValue.trim()}"\n\nwithin:\n`,o.innerHTML.trim()),n.replaceWith(this.createSpan(n.nodeValue,t)),[!0,i]):(n.remove(),[e,i])),[!1,!1]);return c||h?!c&&h?(ke("expected at least one HTML element tag directly inside a component, but only subcomponents were found. A component must render at least one HTML tag directly inside itself.",o.innerHTML.trim()),[o.innerHTML,r]):[o.innerHTML,r]:(ke("expected at least one HTML element tag inside a component, but the component is empty:\n",o.innerHTML.trim()),[this.createSpan("",t).outerHTML,r])}createSpan(e,t){let i=document.createElement("span");return i.innerText=e,i.setAttribute(x,t),i}},tt=1,it=class{static makeID(){return tt++}static elementID(e){return e.phxHookId}constructor(e,t,i){this.__view=e,this.liveSocket=e.liveSocket,this.__callbacks=i,this.__listeners=new Set,this.__isDisconnected=!1,this.el=t,this.el.phxHookId=this.constructor.makeID();for(let e in this.__callbacks)this[e]=this.__callbacks[e]}__mounted(){this.mounted&&this.mounted()}__updated(){this.updated&&this.updated()}__beforeUpdate(){this.beforeUpdate&&this.beforeUpdate()}__destroyed(){this.destroyed&&this.destroyed()}__reconnected(){this.__isDisconnected&&(this.__isDisconnected=!1,this.reconnected&&this.reconnected())}__disconnected(){this.__isDisconnected=!0,this.disconnected&&this.disconnected()}pushEvent(e,t={},i=function(){}){return this.__view.pushHookEvent(null,e,t,i)}pushEventTo(e,t,i={},n=function(){}){return this.__view.withinTargets(e,((e,o)=>e.pushHookEvent(o,t,i,n)))}handleEvent(e,t){let i=(i,n)=>n?e:t(i.detail);return window.addEventListener(`phx:${e}`,i),this.__listeners.add(i),i}removeHandleEvent(e){let t=e(null,!0);window.removeEventListener(`phx:${t}`,e),this.__listeners.delete(e)}upload(e,t){return this.__view.dispatchUploads(e,t)}uploadTo(e,t,i){return this.__view.withinTargets(e,(e=>e.dispatchUploads(t,i)))}__cleanup__(){this.__listeners.forEach((e=>this.removeHandleEvent(e)))}},nt=null,ot={exec(e,t,i,n,o){let[s,r]=o||[null,{}];("["===t.charAt(0)?JSON.parse(t):[[s,r]]).forEach((([o,a])=>{o===s&&r.data&&(a.data=Object.assign(a.data||{},r.data)),this.filterToEls(n,a).forEach((s=>{this[`exec_${o}`](e,t,i,n,s,a)}))}))},isVisible:e=>!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length>0),exec_exec(e,t,i,n,o,[s,r]){(r?Pe.all(document,r):[n]).forEach((t=>{let n=t.getAttribute(s);if(!n)throw new Error(`expected ${s} to contain JS command on "${r}"`);i.liveSocket.execJS(t,n,e)}))},exec_dispatch(e,t,i,n,o,{to:s,event:r,detail:a,bubbles:l}){(a=a||{}).dispatcher=n,Pe.dispatchEvent(o,r,{detail:a,bubbles:l})},exec_push(e,t,i,n,o,s){if(!i.isConnected())return;let{event:r,data:a,target:l,page_loading:c,loading:h,value:d,dispatcher:u}=s,g={loading:h,value:d,target:l,page_loading:!!c},p="change"===e&&u?u:n,m=l||p.getAttribute(i.binding("target"))||p;i.withinTargets(m,((i,o)=>{if("change"===e){let{newCid:e,_target:a,callback:l}=s;a=a||(Pe.isFormInput(n)?n.name:void 0),a&&(g._target=a),i.pushInput(n,o,e,r||t,g,l)}else if("submit"===e){let{submitter:e}=s;i.submitForm(n,o,r||t,e,g)}else i.pushEvent(e,n,o,r||t,a,g)}))},exec_navigate(e,t,i,n,o,{href:s,replace:r}){i.liveSocket.historyRedirect(s,r?"replace":"push")},exec_patch(e,t,i,n,o,{href:s,replace:r}){i.liveSocket.pushHistoryPatch(s,r?"replace":"push",n)},exec_focus(e,t,i,n,o){window.requestAnimationFrame((()=>Ve.attemptFocus(o)))},exec_focus_first(e,t,i,n,o){window.requestAnimationFrame((()=>Ve.focusFirstInteractive(o)||Ve.focusFirst(o)))},exec_push_focus(e,t,i,n,o){window.requestAnimationFrame((()=>nt=o||n))},exec_pop_focus(e,t,i,n,o){window.requestAnimationFrame((()=>{nt&&nt.focus(),nt=null}))},exec_add_class(e,t,i,n,o,{names:s,transition:r,time:a}){this.addOrRemoveClasses(o,s,[],r,a,i)},exec_remove_class(e,t,i,n,o,{names:s,transition:r,time:a}){this.addOrRemoveClasses(o,[],s,r,a,i)},exec_transition(e,t,i,n,o,{time:s,transition:r}){this.addOrRemoveClasses(o,[],[],r,s,i)},exec_toggle(e,t,i,n,o,{display:s,ins:r,outs:a,time:l}){this.toggle(e,i,o,s,r,a,l)},exec_show(e,t,i,n,o,{display:s,transition:r,time:a}){this.show(e,i,o,s,r,a)},exec_hide(e,t,i,n,o,{display:s,transition:r,time:a}){this.hide(e,i,o,s,r,a)},exec_set_attr(e,t,i,n,o,{attr:[s,r]}){this.setOrRemoveAttrs(o,[[s,r]],[])},exec_remove_attr(e,t,i,n,o,{attr:s}){this.setOrRemoveAttrs(o,[],[s])},show(e,t,i,n,o,s){this.isVisible(i)||this.toggle(e,t,i,n,o,null,s)},hide(e,t,i,n,o,s){this.isVisible(i)&&this.toggle(e,t,i,n,null,o,s)},toggle(e,t,i,n,o,s,r){let[a,l,c]=o||[[],[],[]],[h,d,u]=s||[[],[],[]];if(a.length>0||h.length>0)if(this.isVisible(i)){let e=()=>{this.addOrRemoveClasses(i,d,a.concat(l).concat(c)),window.requestAnimationFrame((()=>{this.addOrRemoveClasses(i,h,[]),window.requestAnimationFrame((()=>this.addOrRemoveClasses(i,u,d)))}))};i.dispatchEvent(new Event("phx:hide-start")),t.transition(r,e,(()=>{this.addOrRemoveClasses(i,[],h.concat(u)),Pe.putSticky(i,"toggle",(e=>e.style.display="none")),i.dispatchEvent(new Event("phx:hide-end"))}))}else{if("remove"===e)return;let o=()=>{this.addOrRemoveClasses(i,l,h.concat(d).concat(u));let e=n||this.defaultDisplay(i);Pe.putSticky(i,"toggle",(t=>t.style.display=e)),window.requestAnimationFrame((()=>{this.addOrRemoveClasses(i,a,[]),window.requestAnimationFrame((()=>this.addOrRemoveClasses(i,c,l)))}))};i.dispatchEvent(new Event("phx:show-start")),t.transition(r,o,(()=>{this.addOrRemoveClasses(i,[],a.concat(c)),i.dispatchEvent(new Event("phx:show-end"))}))}else this.isVisible(i)?window.requestAnimationFrame((()=>{i.dispatchEvent(new Event("phx:hide-start")),Pe.putSticky(i,"toggle",(e=>e.style.display="none")),i.dispatchEvent(new Event("phx:hide-end"))})):window.requestAnimationFrame((()=>{i.dispatchEvent(new Event("phx:show-start"));let e=n||this.defaultDisplay(i);Pe.putSticky(i,"toggle",(t=>t.style.display=e)),i.dispatchEvent(new Event("phx:show-end"))}))},addOrRemoveClasses(e,t,i,n,o,s){let[r,a,l]=n||[[],[],[]];if(r.length>0){let n=()=>this.addOrRemoveClasses(e,a.concat(r),[]),c=()=>this.addOrRemoveClasses(e,t.concat(l),i.concat(r).concat(a));return s.transition(o,n,c)}window.requestAnimationFrame((()=>{let[n,o]=Pe.getSticky(e,"classes",[[],[]]),s=t.filter((t=>n.indexOf(t)<0&&!e.classList.contains(t))),r=i.filter((t=>o.indexOf(t)<0&&e.classList.contains(t))),a=n.filter((e=>i.indexOf(e)<0)).concat(s),l=o.filter((e=>t.indexOf(e)<0)).concat(r);Pe.putSticky(e,"classes",(e=>(e.classList.remove(...l),e.classList.add(...a),[a,l])))}))},setOrRemoveAttrs(e,t,i){let[n,o]=Pe.getSticky(e,"attrs",[[],[]]),s=t.map((([e,t])=>e)).concat(i),r=n.filter((([e,t])=>!s.includes(e))).concat(t),a=o.filter((e=>!s.includes(e))).concat(i);Pe.putSticky(e,"attrs",(e=>(a.forEach((t=>e.removeAttribute(t))),r.forEach((([t,i])=>e.setAttribute(t,i))),[r,a])))},hasAllClasses:(e,t)=>t.every((t=>e.classList.contains(t))),isToggledOut(e,t){return!this.isVisible(e)||this.hasAllClasses(e,t)},filterToEls:(e,{to:t})=>t?Pe.all(document,t):[e],defaultDisplay:e=>({tr:"table-row",td:"table-cell"}[e.tagName.toLowerCase()]||"block")},st=ot,rt=(e,t,i=[])=>{let{submitter:n,...o}=t,s=new FormData(e);n&&n.hasAttribute("name")&&n.form&&n.form===e&&s.append(n.name,n.value);let r=[];s.forEach(((e,t,i)=>{e instanceof File&&r.push(t)})),r.forEach((e=>s.delete(e)));let a=new URLSearchParams;for(let[e,t]of s.entries())(0===i.length||i.indexOf(e)>=0)&&a.append(e,t);for(let e in o)a.append(e,o[e]);return a.toString()},at=class{constructor(e,t,i,n,o){this.isDead=!1,this.liveSocket=t,this.flash=n,this.parent=i,this.root=i?i.root:this,this.el=e,this.id=this.el.id,this.ref=0,this.childJoins=0,this.loaderTimer=null,this.pendingDiffs=[],this.pruningCIDs=[],this.redirect=!1,this.href=null,this.joinCount=this.parent?this.parent.joinCount-1:0,this.joinPending=!0,this.destroyed=!1,this.joinCallback=function(e){e&&e()},this.stopCallback=function(){},this.pendingJoinOps=this.parent?null:[],this.viewHooks={},this.uploaders={},this.formSubmits=[],this.children=this.parent?null:{},this.root.children[this.id]={},this.channel=this.liveSocket.channel(`lv:${this.id}`,(()=>({redirect:this.redirect?this.href:void 0,url:this.redirect?void 0:this.href||void 0,params:this.connectParams(o),session:this.getSession(),static:this.getStatic(),flash:this.flash})))}setHref(e){this.href=e}setRedirect(e){this.redirect=!0,this.href=e}isMain(){return this.el.hasAttribute(U)}connectParams(e){let t=this.liveSocket.params(this.el),i=Pe.all(document,`[${this.binding("track-static")}]`).map((e=>e.src||e.href)).filter((e=>"string"==typeof e));return i.length>0&&(t._track_static=i),t._mounts=this.joinCount,t._live_referer=e,t}isConnected(){return this.channel.canPush()}getSession(){return this.el.getAttribute(Y)}getStatic(){let e=this.el.getAttribute(J);return""===e?null:e}destroy(e=function(){}){this.destroyAllChildren(),this.destroyed=!0,delete this.root.children[this.id],this.parent&&delete this.root.children[this.parent.id][this.id],clearTimeout(this.loaderTimer);let t=()=>{e();for(let e in this.viewHooks)this.destroyHook(this.viewHooks[e])};Pe.markPhxChildDestroyed(this.el),this.log("destroyed",(()=>["the child has been removed from the parent"])),this.channel.leave().receive("ok",t).receive("error",t).receive("timeout",t)}setContainerClasses(...e){this.el.classList.remove(B,H,W),this.el.classList.add(...e)}showLoader(e){if(clearTimeout(this.loaderTimer),e)this.loaderTimer=setTimeout((()=>this.showLoader()),e);else{for(let e in this.viewHooks)this.viewHooks[e].__disconnected();this.setContainerClasses(H)}}execAll(e){Pe.all(this.el,`[${e}]`,(t=>this.liveSocket.execJS(t,t.getAttribute(e))))}hideLoader(){clearTimeout(this.loaderTimer),this.setContainerClasses(B),this.execAll(this.binding("connected"))}triggerReconnected(){for(let e in this.viewHooks)this.viewHooks[e].__reconnected()}log(e,t){this.liveSocket.log(this,e,t)}transition(e,t,i=function(){}){this.liveSocket.transition(e,t,i)}withinTargets(e,t){if(e instanceof HTMLElement||e instanceof SVGElement)return this.liveSocket.owner(e,(i=>t(i,e)));if(xe(e))0===Pe.findComponentNodeList(this.el,e).length?ke(`no component found matching phx-target of ${e}`):t(this,parseInt(e));else{let i=Array.from(document.querySelectorAll(e));0===i.length&&ke(`nothing found matching the phx-target selector "${e}"`),i.forEach((e=>this.liveSocket.owner(e,(i=>t(i,e)))))}}applyDiff(e,t,i){this.log(e,(()=>["",Ee(t)]));let{diff:n,reply:o,events:s,title:r}=et.extract(t);i({diff:n,reply:o,events:s}),r&&window.requestAnimationFrame((()=>Pe.putTitle(r)))}onJoin(e){let{rendered:t,container:i}=e;if(i){let[e,t]=i;this.el=Pe.replaceRootContainer(this.el,e,t)}this.childJoins=0,this.joinPending=!0,this.flash=null,Re.dropLocal(this.liveSocket.localStorage,window.location.pathname,S),this.applyDiff("mount",t,(({diff:t,events:i})=>{this.rendered=new et(this.id,t);let[n,o]=this.renderContainer(null,"join");this.dropPendingRefs();let s=this.formsForRecovery(n);this.joinCount++,s.length>0?s.forEach((([e,t,r],a)=>{this.pushFormRecovery(e,r,(e=>{a===s.length-1&&this.onJoinComplete(e,n,o,i)}))})):this.onJoinComplete(e,n,o,i)}))}dropPendingRefs(){Pe.all(document,`[${N}="${this.id}"][${E}]`,(e=>{e.removeAttribute(E),e.removeAttribute(N)}))}onJoinComplete({live_patch:e},t,i,n){if(this.joinCount>1||this.parent&&!this.parent.isJoinPending())return this.applyJoinPatch(e,t,i,n);0===Pe.findPhxChildrenInFragment(t,this.id).filter((e=>{let t=e.id&&this.el.querySelector(`[id="${e.id}"]`),i=t&&t.getAttribute(J);return i&&e.setAttribute(J,i),this.joinChild(e)})).length?this.parent?(this.root.pendingJoinOps.push([this,()=>this.applyJoinPatch(e,t,i,n)]),this.parent.ackJoin(this)):(this.onAllChildJoinsComplete(),this.applyJoinPatch(e,t,i,n)):this.root.pendingJoinOps.push([this,()=>this.applyJoinPatch(e,t,i,n)])}attachTrueDocEl(){this.el=Pe.byId(this.id),this.el.setAttribute(j,this.root.id)}execNewMounted(){Pe.all(this.el,`[${this.binding(oe)}], [data-phx-${oe}]`,(e=>{this.maybeAddNewHook(e)})),Pe.all(this.el,`[${this.binding(ue)}]`,(e=>this.maybeMounted(e)))}applyJoinPatch(e,t,i,n){this.attachTrueDocEl();let o=new Je(this,this.el,this.id,t,i,null);if(o.markPrunableContentForRemoval(),this.performPatch(o,!1),this.joinNewChildren(),this.execNewMounted(),this.joinPending=!1,this.liveSocket.dispatchEvents(n),this.applyPendingUpdates(),e){let{kind:t,to:i}=e;this.liveSocket.historyPatch(i,t)}this.hideLoader(),this.joinCount>1&&this.triggerReconnected(),this.stopCallback()}triggerBeforeUpdateHook(e,t){this.liveSocket.triggerDOM("onBeforeElUpdated",[e,t]);let i=this.getHook(e),n=i&&Pe.isIgnored(e,this.binding(se));if(i&&!e.isEqualNode(t)&&(!n||(o=e.dataset,s=t.dataset,JSON.stringify(o)!==JSON.stringify(s))))return i.__beforeUpdate(),i;var o,s}maybeMounted(e){let t=e.getAttribute(this.binding(ue)),i=t&&Pe.private(e,"mounted");t&&!i&&(this.liveSocket.execJS(e,t),Pe.putPrivate(e,"mounted",!0))}maybeAddNewHook(e,t){let i=this.addHook(e);i&&i.__mounted()}performPatch(e,t){let i=[],n=!1,o=new Set;return e.after("added",(e=>{this.liveSocket.triggerDOM("onNodeAdded",[e]),this.maybeAddNewHook(e),e.getAttribute&&this.maybeMounted(e)})),e.after("phxChildAdded",(e=>{Pe.isPhxSticky(e)?this.liveSocket.joinRootViews():n=!0})),e.before("updated",((e,t)=>{this.triggerBeforeUpdateHook(e,t)&&o.add(e.id)})),e.after("updated",(e=>{o.has(e.id)&&this.getHook(e).__updated()})),e.after("discarded",(e=>{e.nodeType===Node.ELEMENT_NODE&&i.push(e)})),e.after("transitionsDiscarded",(e=>this.afterElementsRemoved(e,t))),e.perform(),this.afterElementsRemoved(i,t),n}afterElementsRemoved(e,t){let i=[];e.forEach((e=>{let t=Pe.all(e,`[${x}]`),n=Pe.all(e,`[${this.binding(oe)}]`);t.concat(e).forEach((e=>{let t=this.componentID(e);xe(t)&&-1===i.indexOf(t)&&i.push(t)})),n.concat(e).forEach((e=>{let t=this.getHook(e);t&&this.destroyHook(t)}))})),t&&this.maybePushComponentsDestroyed(i)}joinNewChildren(){Pe.findPhxChildren(this.el,this.id).forEach((e=>this.joinChild(e)))}getChildById(e){return this.root.children[this.id][e]}getDescendentByEl(e){return e.id===this.id?this:this.children[e.getAttribute(z)][e.id]}destroyDescendent(e){for(let t in this.root.children)for(let i in this.root.children[t])if(i===e)return this.root.children[t][i].destroy()}joinChild(e){if(!this.getChildById(e.id)){let t=new at(e,this.liveSocket,this);return this.root.children[this.id][t.id]=t,t.join(),this.childJoins++,!0}}isJoinPending(){return this.joinPending}ackJoin(e){this.childJoins--,0===this.childJoins&&(this.parent?this.parent.ackJoin(this):this.onAllChildJoinsComplete())}onAllChildJoinsComplete(){this.joinCallback((()=>{this.pendingJoinOps.forEach((([e,t])=>{e.isDestroyed()||t()})),this.pendingJoinOps=[]}))}update(e,t){if(this.isJoinPending()||this.liveSocket.hasPendingLink()&&this.root.isMain())return this.pendingDiffs.push({diff:e,events:t});this.rendered.mergeDiff(e);let i=!1;this.rendered.isComponentOnlyDiff(e)?this.liveSocket.time("component patch complete",(()=>{Pe.findParentCIDs(this.el,this.rendered.componentCIDs(e)).forEach((t=>{this.componentPatch(this.rendered.getComponent(e,t),t)&&(i=!0)}))})):Te(e)||this.liveSocket.time("full patch complete",(()=>{let[t,n]=this.renderContainer(e,"update"),o=new Je(this,this.el,this.id,t,n,null);i=this.performPatch(o,!0)})),this.liveSocket.dispatchEvents(t),i&&this.joinNewChildren()}renderContainer(e,t){return this.liveSocket.time(`toString diff (${t})`,(()=>{let t=this.el.tagName,i=e?this.rendered.componentCIDs(e).concat(this.pruningCIDs):null,[n,o]=this.rendered.toString(i);return[`<${t}>${n}`,o]}))}componentPatch(e,t){if(Te(e))return!1;let[i,n]=this.rendered.componentToString(t),o=new Je(this,this.el,this.id,i,n,t);return this.performPatch(o,!0)}getHook(e){return this.viewHooks[it.elementID(e)]}addHook(e){if(it.elementID(e)||!e.getAttribute)return;let t=e.getAttribute(`data-phx-${oe}`)||e.getAttribute(this.binding(oe));if(t&&!this.ownsElement(e))return;let i=this.liveSocket.getHookCallbacks(t);if(i){e.id||ke(`no DOM ID for hook "${t}". Hooks require a unique ID on each element.`,e);let n=new it(this,e,i);return this.viewHooks[it.elementID(n.el)]=n,n}null!==t&&ke(`unknown hook found for "${t}"`,e)}destroyHook(e){e.__destroyed(),e.__cleanup__(),delete this.viewHooks[it.elementID(e.el)]}applyPendingUpdates(){this.pendingDiffs.forEach((({diff:e,events:t})=>this.update(e,t))),this.pendingDiffs=[],this.eachChild((e=>e.applyPendingUpdates()))}eachChild(e){let t=this.root.children[this.id]||{};for(let i in t)e(this.getChildById(i))}onChannel(e,t){this.liveSocket.onChannel(this.channel,e,(e=>{this.isJoinPending()?this.root.pendingJoinOps.push([this,()=>t(e)]):this.liveSocket.requestDOMUpdate((()=>t(e)))}))}bindChannel(){this.liveSocket.onChannel(this.channel,"diff",(e=>{this.liveSocket.requestDOMUpdate((()=>{this.applyDiff("update",e,(({diff:e,events:t})=>this.update(e,t)))}))})),this.onChannel("redirect",(({to:e,flash:t})=>this.onRedirect({to:e,flash:t}))),this.onChannel("live_patch",(e=>this.onLivePatch(e))),this.onChannel("live_redirect",(e=>this.onLiveRedirect(e))),this.channel.onError((e=>this.onError(e))),this.channel.onClose((e=>this.onClose(e)))}destroyAllChildren(){this.eachChild((e=>e.destroy()))}onLiveRedirect(e){let{to:t,kind:i,flash:n}=e,o=this.expandURL(t);this.liveSocket.historyRedirect(o,i,n)}onLivePatch(e){let{to:t,kind:i}=e;this.href=this.expandURL(t),this.liveSocket.historyPatch(t,i)}expandURL(e){return e.startsWith("/")?`${window.location.protocol}//${window.location.host}${e}`:e}onRedirect({to:e,flash:t}){this.liveSocket.redirect(e,t)}isDestroyed(){return this.destroyed}joinDead(){this.isDead=!0}join(e){this.showLoader(this.liveSocket.loaderTimeout),this.bindChannel(),this.isMain()&&(this.stopCallback=this.liveSocket.withPageLoading({to:this.href,kind:"initial"})),this.joinCallback=t=>{t=t||function(){},e?e(this.joinCount,t):t()},this.liveSocket.wrapPush(this,{timeout:!1},(()=>this.channel.join().receive("ok",(e=>{this.isDestroyed()||this.liveSocket.requestDOMUpdate((()=>this.onJoin(e)))})).receive("error",(e=>!this.isDestroyed()&&this.onJoinError(e))).receive("timeout",(()=>!this.isDestroyed()&&this.onJoinError({reason:"timeout"})))))}onJoinError(e){return"reload"===e.reason?(this.log("error",(()=>[`failed mount with ${e.status}. Falling back to page request`,e])),this.onRedirect({to:this.href})):"unauthorized"===e.reason||"stale"===e.reason?(this.log("error",(()=>["unauthorized live_redirect. Falling back to page request",e])),this.onRedirect({to:this.href})):((e.redirect||e.live_redirect)&&(this.joinPending=!1,this.channel.leave()),e.redirect?this.onRedirect(e.redirect):e.live_redirect?this.onLiveRedirect(e.live_redirect):(this.log("error",(()=>["unable to join",e])),void(this.liveSocket.isConnected()&&this.liveSocket.reloadWithJitter(this))))}onClose(e){if(!this.isDestroyed()){if(this.liveSocket.hasPendingLink()&&"leave"!==e)return this.liveSocket.reloadWithJitter(this);this.destroyAllChildren(),this.liveSocket.dropActiveElement(this),document.activeElement&&document.activeElement.blur(),this.liveSocket.isUnloaded()&&this.showLoader(200)}}onError(e){this.onClose(e),this.liveSocket.isConnected()&&this.log("error",(()=>["view crashed",e])),this.liveSocket.isUnloaded()||this.displayError()}displayError(){this.isMain()&&Pe.dispatchEvent(window,"phx:page-loading-start",{detail:{to:this.href,kind:"error"}}),this.showLoader(),this.setContainerClasses(H,W),this.execAll(this.binding("disconnected"))}pushWithReply(e,t,i,n=function(){}){if(!this.isConnected())return;let[o,[s],r]=e?e():[null,[],{}],a=function(){};return(r.page_loading||s&&null!==s.getAttribute(this.binding(F)))&&(a=this.liveSocket.withPageLoading({kind:"element",target:s})),"number"!=typeof i.cid&&delete i.cid,this.liveSocket.wrapPush(this,{timeout:!0},(()=>this.channel.push(t,i,3e4).receive("ok",(e=>{let t=t=>{e.redirect&&this.onRedirect(e.redirect),e.live_patch&&this.onLivePatch(e.live_patch),e.live_redirect&&this.onLiveRedirect(e.live_redirect),null!==o&&this.undoRefs(o),a(),n(e,t)};e.diff?this.liveSocket.requestDOMUpdate((()=>{this.applyDiff("update",e.diff,(({diff:e,reply:i,events:n})=>{this.update(e,n),t(i)}))})):t(null)}))))}undoRefs(e){this.isConnected()&&Pe.all(document,`[${N}="${this.id}"][${E}="${e}"]`,(e=>{let t=e.getAttribute(te);e.removeAttribute(E),e.removeAttribute(N),null!==e.getAttribute(ee)&&(e.readOnly=!1,e.removeAttribute(ee)),null!==t&&(e.disabled="true"===t,e.removeAttribute(te)),k.forEach((t=>Pe.removeClass(e,t)));let i=e.getAttribute(ne);null!==i&&(e.innerText=i,e.removeAttribute(ne));let n=Pe.private(e,E);if(n){let t=this.triggerBeforeUpdateHook(e,n);Je.patchEl(e,n,this.liveSocket.getActiveElement()),t&&t.__updated(),Pe.deletePrivate(e,E)}}))}putRef(e,t,i={}){let n=this.ref++,o=this.binding(ie);return i.loading&&(e=e.concat(Pe.all(document,i.loading))),e.forEach((e=>{e.classList.add(`phx-${t}-loading`),e.setAttribute(E,n),e.setAttribute(N,this.el.id);let i=e.getAttribute(o);null!==i&&(e.getAttribute(ne)||e.setAttribute(ne,e.innerText),""!==i&&(e.innerText=i),e.setAttribute("disabled",""))})),[n,e,i]}componentID(e){let t=e.getAttribute&&e.getAttribute(x);return t?parseInt(t):null}targetComponentID(e,t,i={}){if(xe(t))return t;let n=e.getAttribute(this.binding("target"));return xe(n)?parseInt(n):t&&(null!==n||i.target)?this.closestComponentID(t):null}closestComponentID(e){return xe(e)?e:e?Ie(e.closest(`[${x}]`),(e=>this.ownsElement(e)&&this.componentID(e))):null}pushHookEvent(e,t,i,n){if(!this.isConnected())return this.log("hook",(()=>["unable to push hook event. LiveView not connected",t,i])),!1;let[o,s,r]=this.putRef([],"hook");return this.pushWithReply((()=>[o,s,r]),"event",{type:"hook",event:t,value:i,cid:this.closestComponentID(e)},((e,t)=>n(t,o))),o}extractMeta(e,t,i){let n=this.binding("value-");for(let i=0;i=0&&!e.checked&&delete t.value),i){t||(t={});for(let e in i)t[e]=i[e]}return t}pushEvent(e,t,i,n,o,s={}){this.pushWithReply((()=>this.putRef([t],e,s)),"event",{type:e,event:n,value:this.extractMeta(t,o,s.value),cid:this.targetComponentID(t,i,s)})}pushFileProgress(e,t,i,n=function(){}){this.liveSocket.withinOwners(e.form,((o,s)=>{o.pushWithReply(null,"progress",{event:e.getAttribute(o.binding("progress")),ref:e.getAttribute(T),entry_ref:t,progress:i,cid:o.targetComponentID(e.form,s)},n)}))}pushInput(e,t,i,n,o,s){let r,a,l=xe(i)?i:this.targetComponentID(e.form,t),c=()=>this.putRef([e,e.form],"change",o);a=e.getAttribute(this.binding("change"))?rt(e.form,{_target:o._target},[e.name]):rt(e.form,{_target:o._target}),Pe.isUploadInput(e)&&e.files&&e.files.length>0&&He.trackFiles(e,Array.from(e.files)),r=He.serializeUploads(e);let h={type:"form",event:n,value:a,uploads:r,cid:l};this.pushWithReply(c,"event",h,(i=>{if(Pe.showError(e,this.liveSocket.binding(K)),Pe.isUploadInput(e)&&null!==e.getAttribute("data-phx-auto-upload")){if(He.filesAwaitingPreflight(e).length>0){let[n,o]=c();this.uploadFiles(e.form,t,n,l,(t=>{s&&s(i),this.triggerAwaitingSubmit(e.form)}))}}else s&&s(i)}))}triggerAwaitingSubmit(e){let t=this.getScheduledSubmit(e);if(t){let[i,n,o,s]=t;this.cancelSubmit(e),s()}}getScheduledSubmit(e){return this.formSubmits.find((([t,i,n,o])=>t.isSameNode(e)))}scheduleSubmit(e,t,i,n){if(this.getScheduledSubmit(e))return!0;this.formSubmits.push([e,t,i,n])}cancelSubmit(e){this.formSubmits=this.formSubmits.filter((([t,i,n])=>!t.isSameNode(e)||(this.undoRefs(i),!1)))}disableForm(e,t={}){let i=e=>!(Ne(e,`${this.binding(se)}=ignore`,e.form)||Ne(e,"data-phx-update=ignore",e.form)),n=Array.from(e.elements),o=n.filter((e=>e.hasAttribute(this.binding(ie)))),s=n.filter((e=>"BUTTON"==e.tagName)).filter(i),r=n.filter((e=>["INPUT","TEXTAREA","SELECT"].includes(e.tagName))).filter(i);return s.forEach((e=>{e.setAttribute(te,e.disabled),e.disabled=!0})),r.forEach((e=>{e.setAttribute(ee,e.readOnly),e.readOnly=!0,e.files&&(e.setAttribute(te,e.disabled),e.disabled=!0)})),e.setAttribute(this.binding(F),""),this.putRef([e].concat(o).concat(s).concat(r),"submit",t)}pushFormSubmit(e,t,i,n,o,s){let r=()=>this.disableForm(e,o),a=this.targetComponentID(e,t);if(He.hasUploadsInProgress(e)){let[a,l]=r(),c=()=>this.pushFormSubmit(e,n,t,i,o,s);return this.scheduleSubmit(e,a,o,c)}if(He.inputsAwaitingPreflight(e).length>0){let[l,c]=r(),h=()=>[l,c,o];this.uploadFiles(e,t,l,a,(t=>{let o=rt(e,{submitter:n});this.pushWithReply(h,"event",{type:"form",event:i,value:o,cid:a},s)}))}else{let t=rt(e,{submitter:n});this.pushWithReply(r,"event",{type:"form",event:i,value:t,cid:a},s)}}uploadFiles(e,t,i,n,o){let s=this.joinCount,r=He.activeFileInputs(e),a=r.length;r.forEach((e=>{let n=new He(e,this,(()=>{a--,0===a&&o()}));this.uploaders[e]=n;let r=n.entries().map((e=>e.toPreflightPayload())),l={ref:e.getAttribute(T),entries:r,cid:this.targetComponentID(e.form,t)};this.log("upload",(()=>["sending preflight request",l])),this.pushWithReply(null,"allow_upload",l,(e=>{if(this.log("upload",(()=>["got preflight response",e])),e.error){this.undoRefs(i);let[t,n]=e.error;this.log("upload",(()=>[`error for entry ${t}`,n]))}else{let t=e=>{this.channel.onError((()=>{this.joinCount===s&&e()}))};n.initAdapterUpload(e,t,this.liveSocket)}}))}))}dispatchUploads(e,t){let i=Pe.findUploadInputs(this.el).filter((t=>t.name===e));0===i.length?ke(`no live file inputs found matching the name "${e}"`):i.length>1?ke(`duplicate live file inputs found matching the name "${e}"`):Pe.dispatchEvent(i[0],D,{detail:{files:t}})}pushFormRecovery(e,t,i){this.liveSocket.withinOwners(e,((n,o)=>{let s=Array.from(e.elements).find((e=>Pe.isFormInput(e)&&"hidden"!==e.type&&!e.hasAttribute(this.binding("change")))),r=e.getAttribute(this.binding(le))||e.getAttribute(this.binding("change"));st.exec("change",r,n,s,["push",{_target:s.name,newCid:t,callback:i}])}))}pushLinkPatch(e,t,i){let n=this.liveSocket.setPendingLink(e),o=t?()=>this.putRef([t],"click"):null,s=()=>this.liveSocket.redirect(window.location.href),r=this.pushWithReply(o,"live_patch",{url:e},(t=>{this.liveSocket.requestDOMUpdate((()=>{t.link_redirect?this.liveSocket.replaceMain(e,null,i,n):(this.liveSocket.commitPendingLink(n)&&(this.href=e),this.applyPendingUpdates(),i&&i(n))}))}));r?r.receive("timeout",s):s()}formsForRecovery(e){if(0===this.joinCount)return[];let t=this.binding("change"),i=document.createElement("template");return i.innerHTML=e,Pe.all(this.el,`form[${t}]`).filter((e=>e.id&&this.ownsElement(e))).filter((e=>e.elements.length>0)).filter((e=>"ignore"!==e.getAttribute(this.binding(le)))).map((e=>{let n=i.content.querySelector(`form[id="${e.id}"][${t}="${e.getAttribute(t)}"]`);return n?[e,n,this.targetComponentID(n)]:[e,null,null]})).filter((([e,t,i])=>t))}maybePushComponentsDestroyed(e){let t=e.filter((e=>0===Pe.findComponentNodeList(this.el,e).length));t.length>0&&(this.pruningCIDs.push(...t),this.pushWithReply(null,"cids_will_destroy",{cids:t},(()=>{this.pruningCIDs=this.pruningCIDs.filter((e=>-1!==t.indexOf(e)));let e=t.filter((e=>0===Pe.findComponentNodeList(this.el,e).length));e.length>0&&this.pushWithReply(null,"cids_destroyed",{cids:e},(e=>{this.rendered.pruneCIDs(e.cids)}))})))}ownsElement(e){let t=e.closest(Z);return e.getAttribute(z)===this.id||t&&t.id===this.id||!t&&this.isDead}submitForm(e,t,i,n,o={}){Pe.putPrivate(e,Q,!0);let s=this.liveSocket.binding(K),r=Array.from(e.elements);r.forEach((e=>Pe.putPrivate(e,Q,!0))),this.liveSocket.blurActiveElement(this),this.pushFormSubmit(e,t,i,n,o,(()=>{r.forEach((e=>Pe.showError(e,s))),this.liveSocket.restorePreviouslyActiveFocus()}))}binding(e){return this.liveSocket.binding(e)}},lt="livebook:";function ct(e){try{var t=localStorage.getItem(lt+e);if(t)return JSON.parse(t)}catch(e){console.error("Failed to load from local storage, reason: ".concat(e.message))}}function ht(e,t){try{var i=JSON.stringify(t);localStorage.setItem(lt+e,i)}catch(e){console.error("Failed to write to local storage, reason: ".concat(e.message))}}var dt="app_auth_token:";function ut(){var e=window.location.pathname;if(e.startsWith("/apps/")){var t=e.split("/")[2],i=ct(dt+t);if(i)return i}return null}const gt={mounted:function(){var e=this;this.handleEvent("persist_app_auth",(function(t){var i,n;i=t.slug,n=t.token,ht(dt+i,n),e.pushEvent("app_auth_persisted")}))}};function pt(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.hasAttribute(t))throw new Error("Missing attribute '".concat(t,"' on element <").concat(e.tagName,":").concat(e.id,">"));var n=e.getAttribute(t);return i?i(n):n}function mt(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(e.hasAttribute(t)){var o=e.getAttribute(t);return n?n(o):o}return i}function ft(e){if("true"===e)return!0;if("false"===e)return!1;throw new Error("Invalid boolean attribute ".concat(e,', should be either "true" or "false"'))}function _t(e){var t=parseInt(e,10);if(Number.isNaN(t))throw new Error("Invalid integer value ".concat(e));return t}var vt=n(68214),bt=n.n(vt),Ct=n(52153),yt=n.n(Ct),wt=n(98269),St=n.n(wt);function kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i=0&&t.top<=window.innerHeight}function Et(e){return null===e.offsetParent}function Nt(e){return!Et(e)&&Lt(e)}function Dt(e){e.getBoundingClientRect().height":">",'"':""","'":"'"};function Bt(e){for(var t="",i=new Uint8Array(e),n=i.byteLength,o=0;oe.length)&&(t=e.length);for(var i=0,n=new Array(t);i0&&void 0!==arguments[0])||arguments[0];this.audioEl.classList.remove("hidden"),this.uploadButton.classList.remove("hidden"),this.recordButton.classList.remove("hidden"),this.stopButton.classList.add("hidden"),this.cancelButton.classList.add("hidden"),t&&this.mediaRecorder.addEventListener("stop",(function(t){new Blob(e.audioChunks).arrayBuffer().then((function(t){e.loadEncodedAudio(t)}))})),this.mediaRecorder.stop()},isRecording:function(){return this.mediaRecorder&&"recording"===this.mediaRecorder.state},loadFile:function(e){var t=this,i=new FileReader;i.onload=function(e){t.loadEncodedAudio(e.target.result)},i.readAsArrayBuffer(e)},loadEncodedAudio:function(e){var t=this;new AudioContext({sampleRate:this.props.samplingRate}).decodeAudioData(e,(function(e){var i=function(e){for(var t=e.numberOfChannels,i=e.sampleRate,n=e.length,o=new ArrayBuffer(4*t*n),s=new Float32Array(o),r=0;r=97?o===s.toUpperCase():n<=90&&i>=97&&s===o.toUpperCase())}function Jt(e,t,i){e[i]!==t[i]&&(e[i]=t[i],e[i]?e.setAttribute(i,""):e.removeAttribute(i))}var ei={OPTION:function(e,t){var i=e.parentNode;if(i){var n=i.nodeName.toUpperCase();"OPTGROUP"===n&&(n=(i=i.parentNode)&&i.nodeName.toUpperCase()),"SELECT"!==n||i.hasAttribute("multiple")||(e.hasAttribute("selected")&&!t.selected&&(e.setAttribute("selected","selected"),e.removeAttribute("selected")),i.selectedIndex=-1)}Jt(e,t,"selected")},INPUT:function(e,t){Jt(e,t,"checked"),Jt(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),t.hasAttribute("value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var i=t.value;e.value!==i&&(e.value=i);var n=e.firstChild;if(n){var o=n.nodeValue;if(o==i||!i&&o==e.placeholder)return;n.nodeValue=i}},SELECT:function(e,t){if(!t.hasAttribute("multiple")){for(var i,n,o=-1,s=0,r=e.firstChild;r;)if("OPTGROUP"===(n=r.nodeName&&r.nodeName.toUpperCase()))r=(i=r).firstChild;else{if("OPTION"===n){if(r.hasAttribute("selected")){o=s;break}s++}!(r=r.nextSibling)&&i&&(r=i.nextSibling,i=null)}e.selectedIndex=o}}};function ti(){}function ii(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}var ni=function(e,t,i){if(i||(i={}),"string"==typeof t)if("#document"===e.nodeName||"HTML"===e.nodeName||"BODY"===e.nodeName){var n=t;(t=Qt.createElement("html")).innerHTML=n}else o=(o=t).trim(),t=Yt?function(e){var t=Qt.createElement("template");return t.innerHTML=e,t.content.childNodes[0]}(o):Zt?function(e){return Gt||(Gt=Qt.createRange()).selectNode(Qt.body),Gt.createContextualFragment(e).childNodes[0]}(o):function(e){var t=Qt.createElement("body");return t.innerHTML=e,t.childNodes[0]}(o);else 11===t.nodeType&&(t=t.firstElementChild);var o,s=i.getNodeKey||ii,r=i.onBeforeNodeAdded||ti,a=i.onNodeAdded||ti,l=i.onBeforeElUpdated||ti,c=i.onElUpdated||ti,h=i.onBeforeNodeDiscarded||ti,d=i.onNodeDiscarded||ti,u=i.onBeforeElChildrenUpdated||ti,g=i.skipFromChildren||ti,p=i.addChild||function(e,t){return e.appendChild(t)},m=!0===i.childrenOnly,f=Object.create(null),_=[];function v(e){_.push(e)}function b(e,t){if(1===e.nodeType)for(var i=e.firstChild;i;){var n=void 0;t&&(n=s(i))?v(n):(d(i),i.firstChild&&b(i,t)),i=i.nextSibling}}function C(e,t,i){!1!==h(e)&&(t&&t.removeChild(e),d(e),b(e,i))}function y(e){a(e);for(var t=e.firstChild;t;){var i=t.nextSibling,n=s(t);if(n){var o=f[n];o&&Xt(t,o)?(t.parentNode.replaceChild(o,t),w(o,t)):y(t)}else y(t);t=i}}function w(e,t,i){var n=s(t);if(n&&delete f[n],!i){if(!1===l(e,t))return;if(function(e,t){var i,n,o,s,r=t.attributes;if(11!==t.nodeType&&11!==e.nodeType){for(var a=r.length-1;a>=0;a--)n=(i=r[a]).name,o=i.namespaceURI,s=i.value,o?(n=i.localName||n,e.getAttributeNS(o,n)!==s&&("xmlns"===i.prefix&&(n=i.name),e.setAttributeNS(o,n,s))):e.getAttribute(n)!==s&&e.setAttribute(n,s);for(var l=e.attributes,c=l.length-1;c>=0;c--)n=(i=l[c]).name,(o=i.namespaceURI)?(n=i.localName||n,t.hasAttributeNS(o,n)||e.removeAttributeNS(o,n)):t.hasAttribute(n)||e.removeAttribute(n)}}(e,t),c(e),!1===u(e,t))return}"TEXTAREA"!==e.nodeName?function(e,t){var i,n,o,a,l,c=g(e),h=t.firstChild,d=e.firstChild;e:for(;h;){for(a=h.nextSibling,i=s(h);!c&&d;){if(o=d.nextSibling,h.isSameNode&&h.isSameNode(d)){h=a,d=o;continue e}n=s(d);var u=d.nodeType,m=void 0;if(u===h.nodeType&&(1===u?(i?i!==n&&((l=f[i])?o===l?m=!1:(e.insertBefore(l,d),n?v(n):C(d,e,!0),d=l):m=!1):n&&(m=!1),(m=!1!==m&&Xt(d,h))&&w(d,h)):3!==u&&8!=u||(m=!0,d.nodeValue!==h.nodeValue&&(d.nodeValue=h.nodeValue))),m){h=a,d=o;continue e}n?v(n):C(d,e,!0),d=o}if(i&&(l=f[i])&&Xt(l,h))c||p(e,l),w(l,h);else{var _=r(h);!1!==_&&(_&&(h=_),h.actualize&&(h=h.actualize(e.ownerDocument||Qt)),p(e,h),y(h))}h=a,d=o}!function(e,t,i){for(;t;){var n=t.nextSibling;(i=s(t))?v(i):C(t,e,!0),t=n}}(e,d,n);var b=ei[e.nodeName];b&&b(e,t)}(e,t):ei.TEXTAREA(e,t)}!function e(t){if(1===t.nodeType||11===t.nodeType)for(var i=t.firstChild;i;){var n=s(i);n&&(f[n]=i),e(i),i=i.nextSibling}}(e);var S,k,x=e,L=x.nodeType,E=t.nodeType;if(!m)if(1===L)1===E?Xt(e,t)||(d(e),x=function(e,t){for(var i=e.firstChild;i;){var n=i.nextSibling;t.appendChild(i),i=n}return t}(e,(S=t.nodeName,(k=t.namespaceURI)&&"http://www.w3.org/1999/xhtml"!==k?Qt.createElementNS(k,S):Qt.createElement(S)))):x=t;else if(3===L||8===L){if(E===L)return x.nodeValue!==t.nodeValue&&(x.nodeValue=t.nodeValue),x;x=t}if(x===t)d(e);else{if(t.isSameNode&&t.isSameNode(x))return;if(w(x,t,m),_)for(var N=0,D=_.length;Ne.length){for(;s--;)if(47===e.charCodeAt(s)){if(i){n=s+1;break}}else o<0&&(i=!0,o=s+1);return o<0?"":e.slice(n,o)}if(t===e)return"";let r=-1,a=t.length-1;for(;s--;)if(47===e.charCodeAt(s)){if(i){n=s+1;break}}else r<0&&(i=!0,r=s+1),a>-1&&(e.charCodeAt(s)===t.charCodeAt(a--)?a<0&&(o=s):(a=-1,o=r));return n===o?o=r:o<0&&(o=e.length),e.slice(n,o)},ui=function(e){if(fi(e),0===e.length)return".";let t,i=-1,n=e.length;for(;--n;)if(47===e.charCodeAt(n)){if(t){i=n;break}}else t||(t=!0);return i<0?47===e.charCodeAt(0)?"/":".":1===i&&47===e.charCodeAt(0)?"//":e.slice(0,i)},gi=function(e){fi(e);let t,i=e.length,n=-1,o=0,s=-1,r=0;for(;i--;){const a=e.charCodeAt(i);if(47!==a)n<0&&(t=!0,n=i+1),46===a?s<0?s=i:1!==r&&(r=1):s>-1&&(r=-1);else if(t){o=i+1;break}}return s<0||n<0||0===r||1===r&&s===n-1&&s===o+1?"":e.slice(s,n)},pi=function(...e){let t,i=-1;for(;++i2){if(n=o.lastIndexOf("/"),n!==o.length-1){n<0?(o="",s=0):(o=o.slice(0,n),s=o.length-1-o.lastIndexOf("/")),r=l,a=0;continue}}else if(o.length>0){o="",s=0,r=l,a=0;continue}t&&(o=o.length>0?o+"/..":"..",s=2)}else o.length>0?o+="/"+e.slice(r+1,l):o=e.slice(r+1,l),s=l-r-1;r=l,a=0}else 46===i&&a>-1?a++:a=-1}return o}(e,!t);return 0!==i.length||t||(i="."),i.length>0&&47===e.charCodeAt(e.length-1)&&(i+="/"),t?"/"+i:i}(t)},mi="/";function fi(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const _i=function(){return"/"};function vi(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}const bi=["history","path","basename","stem","extname","dirname"];class Ci{constructor(e){let t;t=e?"string"==typeof e||ri(e)?{value:e}:vi(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=_i(),this.value,this.stored,this.result,this.map;let i,n=-1;for(;++nt.length;let r;s&&t.push(n);try{r=e.apply(this,t)}catch(e){if(s&&i)throw e;return n(e)}s||(r instanceof Promise?r.then(o,n):r instanceof Error?n(r):o(r))};function n(e,...n){i||(i=!0,t(e,...n))}function o(e){n(null,e)}}(a,o)(...r):n(null,...r)}}(null,...t)},use:function(i){if("function"!=typeof i)throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}};return t}(),i=[];let n,o={},s=-1;return r.data=function(e,t){return"string"==typeof e?2===arguments.length?(Di("data",n),o[e]=t,r):xi.call(o,e)&&o[e]||null:e?(Di("data",n),o=e,r):o},r.Parser=void 0,r.Compiler=void 0,r.freeze=function(){if(n)return r;for(;++s{if(!e&&t&&i){const o=r.stringify(t,i);null==o||("string"==typeof(n=o)||ri(n)?i.value=o:i.result=o),s(e,i)}else s(e);var n}))}i(null,t)},r.processSync=function(e){let t;r.freeze(),Ei("processSync",r.Parser),Ni("processSync",r.Compiler);const i=Ai(e);return r.process(i,(function(e){t=!0,si(e)})),Ii("processSync","process",t),i},r;function r(){const t=e();let n=-1;for(;++n{const i=this.data("settings");return(0,Mi.V)(t,Object.assign({},i,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var Oi=n(4663),Pi=n(32473);const Fi={tokenize:function(e,t,i){return function(t){return e.consume(t),n};function n(t){return 87===t||119===t?(e.consume(t),o):i(t)}function o(t){return 87===t||119===t?(e.consume(t),s):i(t)}function s(t){return 46===t?(e.consume(t),r):i(t)}function r(e){return null===e||(0,Pi.Ch)(e)?i(e):t(e)}},partial:!0},Bi={tokenize:function(e,t,i){let n,o;return s;function s(t){return 38===t?e.check(Wi,a,r)(t):46===t||95===t?e.check(Vi,a,r)(t):null===t||(0,Pi.Av)(t)||(0,Pi.B8)(t)||45!==t&&(0,Pi.Xh)(t)?a(t):(e.consume(t),s)}function r(t){return 46===t?(o=n,n=void 0,e.consume(t),s):(95===t&&(n=!0),e.consume(t),s)}function a(e){return o||n?i(e):t(e)}},partial:!0},Hi={tokenize:function(e,t){let i=0;return n;function n(r){return 38===r?e.check(Wi,t,o)(r):(40===r&&i++,41===r?e.check(Vi,s,o)(r):Qi(r)?t(r):Gi(r)?e.check(Vi,t,o)(r):(e.consume(r),n))}function o(t){return e.consume(t),n}function s(e){return i--,i<0?t(e):o(e)}},partial:!0},Vi={tokenize:function(e,t,i){return function(t){return e.consume(t),n};function n(o){return Gi(o)?(e.consume(o),n):Qi(o)?t(o):i(o)}},partial:!0},Wi={tokenize:function(e,t,i){return function(t){return e.consume(t),n};function n(t){return(0,Pi.jv)(t)?(e.consume(t),n):59===t?(e.consume(t),o):i(t)}function o(e){return Qi(e)?t(e):i(e)}},partial:!0},zi={tokenize:function(e,t,i){const n=this;return function(t){return 87!==t&&119!==t||!Zi(n.previous)||en(n.events)?i(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Fi,e.attempt(Bi,e.attempt(Hi,o),i),i)(t))};function o(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}},previous:Zi},Ui={tokenize:function(e,t,i){const n=this;return function(t){return 72!==t&&104!==t||!Xi(n.previous)||en(n.events)?i(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),o)};function o(t){return 84===t||116===t?(e.consume(t),s):i(t)}function s(t){return 84===t||116===t?(e.consume(t),r):i(t)}function r(t){return 80===t||112===t?(e.consume(t),a):i(t)}function a(t){return 83===t||115===t?(e.consume(t),l):l(t)}function l(t){return 58===t?(e.consume(t),c):i(t)}function c(t){return 47===t?(e.consume(t),h):i(t)}function h(t){return 47===t?(e.consume(t),d):i(t)}function d(t){return null===t||(0,Pi.Av)(t)||(0,Pi.B8)(t)||(0,Pi.Xh)(t)?i(t):e.attempt(Bi,e.attempt(Hi,u),i)(t)}function u(i){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(i)}},previous:Xi},ji={tokenize:function(e,t,i){const n=this;let o,s;return function(t){return Yi(t)&&Ji(n.previous)&&!en(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),r(t)):i(t)};function r(t){return Yi(t)?(e.consume(t),r):64===t?(e.consume(t),a):i(t)}function a(t){return 46===t?e.check(Vi,d,l)(t):45===t||95===t?e.check(Vi,i,c)(t):(0,Pi.H$)(t)?(!s&&(0,Pi.pY)(t)&&(s=!0),e.consume(t),a):d(t)}function l(t){return e.consume(t),o=!0,s=void 0,a}function c(t){return e.consume(t),h}function h(t){return 46===t?e.check(Vi,i,l)(t):a(t)}function d(n){return o&&!s?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(n)):i(n)}},previous:Ji},Ki={},qi={text:Ki};let $i=48;for(;$i<123;)Ki[$i]=ji,$i++,58===$i?$i=65:91===$i&&($i=97);function Gi(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function Qi(e){return null===e||60===e||(0,Pi.z3)(e)}function Yi(e){return 43===e||45===e||46===e||95===e||(0,Pi.H$)(e)}function Zi(e){return null===e||40===e||42===e||95===e||126===e||(0,Pi.z3)(e)}function Xi(e){return null===e||!(0,Pi.jv)(e)}function Ji(e){return 47!==e&&Xi(e)}function en(e){let t=e.length,i=!1;for(;t--;){const n=e[t][1];if(("labelLink"===n.type||"labelImage"===n.type)&&!n._balanced){i=!0;break}if(n._gfmAutolinkLiteralWalkedInto){i=!1;break}}return e.length>0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}Ki[43]=ji,Ki[45]=ji,Ki[46]=ji,Ki[95]=ji,Ki[72]=[ji,Ui],Ki[104]=[ji,Ui],Ki[87]=[ji,zi],Ki[119]=[ji,zi];var tn=n(23402),nn=n(42761),on=n(11098);const sn={tokenize:function(e,t,i){const n=this;return(0,nn.f)(e,(function(e){const o=n.events[n.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):i(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function rn(e,t,i){const n=this;let o=n.events.length;const s=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let r;for(;o--;){const e=n.events[o][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!r||!r._balanced)return i(o);const a=(0,on.d)(n.sliceSerialize({start:r.end,end:n.now()}));return 94===a.charCodeAt(0)&&s.includes(a.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):i(o)}}function an(e,t){let i,n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){i=e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const r={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},r.start),end:Object.assign({},r.end)},l=[e[n+1],e[n+2],["enter",o,t],e[n+3],e[n+4],["enter",s,t],["exit",s,t],["enter",r,t],["enter",a,t],["exit",a,t],["exit",r,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(n,e.length-n+1,...l),e}function ln(e,t,i){const n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s,r=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?i(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(a){let h;return null===a||91===a||r++>999?i(a):93===a?s?(e.exit("chunkString"),h=e.exit("gfmFootnoteCallString"),o.includes((0,on.d)(n.sliceSerialize(h)))?function(i){return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t}(a):i(a)):i(a):(e.consume(a),(0,Pi.z3)(a)||(s=!0),92===a?c:l)}function c(t){return 91===t||92===t||93===t?(e.consume(t),r++,l):l(t)}}function cn(e,t,i){const n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s,r,a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),c):i(t)}function c(t){let o;return null===t||91===t||a>999?i(t):93===t?r?(o=e.exit("gfmFootnoteDefinitionLabelString"),s=(0,on.d)(n.sliceSerialize(o)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),u):i(t):(0,Pi.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a++,c):(e.enter("chunkString").contentType="string",h(t))}function h(t){return null===t||(0,Pi.Ch)(t)||91===t||93===t||a>999?(e.exit("chunkString"),c(t)):((0,Pi.z3)(t)||(r=!0),a++,e.consume(t),92===t?d:h)}function d(t){return 91===t||92===t||93===t?(e.consume(t),a++,h):h(t)}function u(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),(0,nn.f)(e,g,"gfmFootnoteDefinitionWhitespace")):i(t)}function g(e){return o.includes(s)||o.push(s),t(e)}}function hn(e,t,i){return e.check(tn.w,t,e.attempt(sn,t,i))}function dn(e){e.exit("gfmFootnoteDefinition")}var un=n(21905),gn=n(62987),pn=n(63233);function mn(e={}){let t=e.singleTilde;const i={tokenize:function(e,i,n){const o=this.previous,s=this.events;let r=0;return function(t){return 126===o&&"characterEscape"!==s[s.length-1][1].type?n(t):(e.enter("strikethroughSequenceTemporary"),a(t))};function a(s){const l=(0,gn.r)(o);if(126===s)return r>1?n(s):(e.consume(s),r++,a);if(r<2&&!t)return n(s);const c=e.exit("strikethroughSequenceTemporary"),h=(0,gn.r)(s);return c._open=!h||2===h&&Boolean(l),c._close=!l||2===l&&Boolean(h),i(s)}},resolveAll:function(e,t){let i=-1;for(;++i=4?i(o):(n._gfmTableDynamicInterruptHack=!0,e.check(n.parser.constructs.flow,(function(e){return n._gfmTableDynamicInterruptHack=!1,i(e)}),(function(e){return n._gfmTableDynamicInterruptHack=!1,t(e)}))(o))}}},resolve:function(e,t){let i,n,o,s,r,a,l,c=-1;for(;++c":"")+")"})),d;function d(){var c,h,d,u=[];if((!t||o(r,a,l[l.length-1]||null))&&(u=function(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:[e]}(i(r,l)),!1===u[0]))return u;if(r.children&&"skip"!==u[0])for(h=(n?r.children.length:-1)+s,d=l.concat(r);h>-1&&he}const Dn="phrasing",Tn=["autolink","link","image","label"],In={transforms:[function(e){!function(e,t,i,n){let o,s;"string"==typeof t||t instanceof RegExp?(s=[[t,i]],o=n):(s=t,o=i),o||(o={});const r=wn(o.ignore||[]),a=function(e){const t=[];if("object"!=typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let i=-1;for(;++i0?{type:"text",value:t}:void 0),!1!==t&&(s!==o&&c.push({type:"text",value:e.value.slice(s,o)}),Array.isArray(t)?c.push(...t):t&&c.push(t),s=o+h[0].length),!i.global)break;h=i.exec(e.value)}return void 0===o?(c=[e],r--):(s?\]}]+$/.exec(e);let i,n,o,s;if(t)for(e=e.slice(0,t.index),s=t[0],i=s.indexOf(")"),n=yn(e,"("),o=yn(e,")");-1!==i&&n>o;)e+=s.slice(0,i+1),s=s.slice(i+1),i=s.indexOf(")"),o++;return[e,s]}(i+n);if(!r[0])return!1;const a={type:"link",title:null,url:s+t+r[0],children:[{type:"text",value:t+r[0]}]};return r[1]?[a,{type:"text",value:r[1]}]:a}function On(e,t,i,n){return!(!Pn(n,!0)||/[_-\d]$/.test(i))&&{type:"link",title:null,url:"mailto:"+t+"@"+i,children:[{type:"text",value:t+"@"+i}]}}function Pn(e,t){const i=e.input.charCodeAt(e.index-1);return(0===e.index||(0,Pi.B8)(i)||(0,Pi.Xh)(i))&&(!t||47!==i)}var Fn=n(47881);function Bn(e){return e.label||!e.identifier?e.label||"":(0,Fn.v)(e.identifier)}function Hn(e){const t=e||{},i=t.now||{};let n=t.lineShift||0,o=i.line||1,s=i.column||1;return{move:function(e=""){const t=e.split(/\r?\n|\r/g),i=t[t.length-1];return o+=t.length-1,s=1===t.length?s+i.length:1+i.length+n,e},current:function(){return{now:{line:o,column:s},lineShift:n}},shift:function(e){n+=e}}}function Vn(e,t,i){const n=t.indexStack,o=e.children||[],s=Hn(i),r=[];let a=-1;for(n.push(-1);++a=c||e+10?" ":"")),o.shift(4),s+=o.move(zn(Vn(e,i,o.current()),(function(e,t,i){return t?(i?"":" ")+e:e}))),r(),s},footnoteReference:e}};function e(e,t,i,n){const o=Hn(n);let s=o.move("[^");const r=i.enter("footnoteReference"),a=i.enter("reference");return s+=o.move(qn(i,Bn(e),{...o.current(),before:s,after:"]"})),a(),r(),s+=o.move("]"),s}}function Yn(e,t,i){const n=t.indexStack,o=e.children||[],s=[];let r=-1,a=i.before;n.push(-1);let l=Hn(i);for(;++r0&&("\r"===a||"\n"===a)&&"html"===c.type&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),a=" ",l=Hn(i),l.move(s.join(""))),s.push(l.move(t.handle(c,e,t,{...l.current(),before:a,after:h}))),a=s[s.length-1].slice(-1)}return n.pop(),s.join("")}const Zn={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Xn={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:Jn}};function Jn(e,t,i,n){const o=Hn(n),s=i.enter("emphasis");let r=o.move("~~");return r+=Yn(e,i,{...o.current(),before:r,after:"~"}),r+=o.move("~~"),s(),r}function eo(e,t,i){let n=e.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(n);)o+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++s"none"===e?null:e)),children:[]},e),this.setData("inTable",!0)},tableData:so,tableHeader:so,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,ro)),this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:oo,tableHeader:oo,tableRow:oo}};function oo(e){this.exit(e)}function so(e){this.enter({type:"tableCell",children:[]},e)}function ro(e,t){return"|"===t?t:e}function ao(e){const t=e||{},i=t.tableCellPadding,n=t.tablePipeAlign,o=t.stringLength,s=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,i,n){return a(function(e,t,i){const n=e.children;let o=-1;const s=[],r=t.enter("table");for(;++ol&&(l=e[c].length);++da[d])&&(a[d]=e)}i.push(s)}s[c]=i,r[c]=o}var h;let d=-1;if("object"==typeof i&&"length"in i)for(;++da[d]&&(a[d]=s),g[d]=s),u[d]=r}s.splice(1,0,u),r.splice(1,0,g),c=-1;const p=[];for(;++c-1?t.start:1)+(!1===i.options.incrementListMarker?0:t.children.indexOf(e))+s);let r=s.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(r=4*Math.ceil(r/4));const a=Hn(n);a.move(s+" ".repeat(r-s.length)),a.shift(r);const l=i.enter("listItem"),c=zn(Vn(e,i,a.current()),(function(e,t,i){return t?(i?"":" ".repeat(r))+e:(i?s:s+" ".repeat(r-s.length))+e}));return l(),c}(e,t,i,{...n,...a.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+r}))),l}}};function ho(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function uo(e={}){const t=this.data();function i(e,i){(t[e]?t[e]:t[e]=[]).push(i)}i("micromarkExtensions",function(e){return(0,Oi.W)([qi,{document:{91:{tokenize:cn,continuation:{tokenize:hn},exit:dn}},text:{91:{tokenize:ln},93:{add:"after",tokenize:rn,resolveTo:an}}},mn(e),fn,bn])}(e)),i("fromMarkdownExtensions",[In,{enter:{gfmFootnoteDefinition:function(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)},gfmFootnoteDefinitionLabelString:function(){this.buffer()},gfmFootnoteCall:function(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)},gfmFootnoteCallString:function(){this.buffer()}},exit:{gfmFootnoteDefinition:function(e){this.exit(e)},gfmFootnoteDefinitionLabelString:function(e){const t=this.resume(),i=this.stack[this.stack.length-1];i.label=t,i.identifier=(0,on.d)(this.sliceSerialize(e)).toLowerCase()},gfmFootnoteCall:function(e){this.exit(e)},gfmFootnoteCallString:function(e){const t=this.resume(),i=this.stack[this.stack.length-1];i.label=t,i.identifier=(0,on.d)(this.sliceSerialize(e)).toLowerCase()}}},Zn,no,lo]),i("toMarkdownExtensions",function(e){return{extensions:[An,Qn(),Xn,ao(e),co]}}(e))}const go={tokenize:function(e,t,i){const n=this,o=n.events[n.events.length-1],s=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0;let r=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),a(t)};function a(t){return 36===t?(e.consume(t),r++,a):(e.exit("mathFlowFenceSequence"),r<2?i(t):(0,nn.f)(e,l,"whitespace")(t))}function l(t){return null===t||(0,Pi.Ch)(t)?h(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return null===t||(0,Pi.Ch)(t)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),h(t)):36===t?i(t):(e.consume(t),c)}function h(i){return e.exit("mathFlowFence"),n.interrupt?t(i):d(i)}function d(t){return null===t?g(t):(0,Pi.Ch)(t)?e.attempt(po,e.attempt({tokenize:p,partial:!0},g,s?(0,nn.f)(e,d,"linePrefix",s+1):d),g)(t):(e.enter("mathFlowValue"),u(t))}function u(t){return null===t||(0,Pi.Ch)(t)?(e.exit("mathFlowValue"),d(t)):(e.consume(t),u)}function g(i){return e.exit("mathFlow"),t(i)}function p(e,t,i){let n=0;return(0,nn.f)(e,(function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),o(t)}),"linePrefix",4);function o(t){return 36===t?(e.consume(t),n++,o):nr&&(r=s):s=1,o=n+1,n=i.indexOf(t,o);return r}(o,"$")+1,2)),r=i.enter("mathFlow"),a=Hn(n);let l=a.move(s);if(e.meta){const t=i.enter("mathFlowMeta");l+=a.move(qn(i,e.meta,{...a.current(),before:l,after:" ",encode:["$"]})),t()}return l+=a.move("\n"),o&&(l+=a.move(o+"\n")),l+=a.move(s),r(),l},inlineMath:i}};function i(e){const i=e.value||"";let n=1,o="";for(t||n++;new RegExp("(^|[^$])"+"\\$".repeat(n)+"([^$]|$)").test(i);)n++;/[^ \r\n]/.test(i)&&(/[ \r\n$]/.test(i.charAt(0))||/[ \r\n$]/.test(i.charAt(i.length-1)))&&(o=" ");const s="$".repeat(n);return s+o+i+o+s}}(e))}var bo=function(e,t,i){var n={type:String(e)};return null!=i||"string"!=typeof t&&!Array.isArray(t)?Object.assign(n,t):i=t,Array.isArray(i)?n.children=i:null!=i&&(n.value=String(i)),n};const Co=function(e,t,i,n){"function"==typeof t&&"function"!=typeof i&&(n=i,i=t,t=null),function(e,t,i,n){"function"==typeof t&&"function"!=typeof i&&(n=i,i=t,t=null);const o=wn(t),s=n?-1:1;!function e(r,a,l){const c="object"==typeof r&&null!==r?r:{};let h;return"string"==typeof c.type&&(h="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0,Object.defineProperty(d,"name",{value:"node ("+c.type+(h?"<"+h+">":"")+")"})),d;function d(){let c,h,d,u=[];if((!t||o(r,a,l[l.length-1]||null))&&(u=function(e){return Array.isArray(e)?e:"number"==typeof e?[!0,e]:[e]}(i(r,l)),!1===u[0]))return u;if(r.children&&"skip"!==u[0])for(h=(n?r.children.length:-1)+s,d=l.concat(r);h>-1&&h-1?i.offset:null}}}const ko=function(e,t,i,n){"function"==typeof t&&"function"!=typeof i&&(n=i,i=t,t=null),xn(e,t,(function(e,t){var n=t[t.length-1];return i(e,n?n.children.indexOf(e):null,n)}),n)},xo={}.hasOwnProperty;function Lo(e){return String(e||"").toUpperCase()}const Eo={}.hasOwnProperty;function No(e,t){const i=t.data||{};return"value"in t&&!(Eo.call(i,"hName")||Eo.call(i,"hProperties")||Eo.call(i,"hChildren"))?e.augment(t,bo("text",t.value)):e(t,"div",Io(e,t))}function Do(e,t,i){const n=t&&t.type;let o;if(!n)throw new Error("Expected node, got `"+t+"`");return o=Eo.call(e.handlers,n)?e.handlers[n]:e.passThrough&&e.passThrough.includes(n)?To:e.unknownHandler,("function"==typeof o?o:No)(e,t,i)}function To(e,t){return"children"in t?{...t,children:Io(e,t)}:t}function Io(e,t){const i=[];if("children"in t){const n=t.children;let o=-1;for(;++o":"gt"};function Mo(e,t){const i=function(e){return e.replace(/["&<>]/g,(function(e){return"&"+Ao[e]+";"}))}(function(e){const t=[];let i=-1,n=0,o=0;for(;++i55295&&s<57344){const t=e.charCodeAt(i+1);s<56320&&t>56319&&t<57344?(r=String.fromCharCode(s,t),o=1):r="�"}else r=String.fromCharCode(s);r&&(t.push(e.slice(n,i),encodeURIComponent(r)),n=i+o+1,r=""),o&&(i+=o,o=0)}return t.join("")+e.slice(n)}(e||""));if(!t)return i;const n=i.indexOf(":"),o=i.indexOf("?"),s=i.indexOf("#"),r=i.indexOf("/");return n<0||r>-1&&n>r||o>-1&&n>o||s>-1&&n>s||t.test(i.slice(0,n))?i:""}function Ro(e,t){const i=[];let n=-1;for(t&&i.push(bo("text","\n"));++n0&&i.push(bo("text","\n")),i}function Oo(e,t){const i=String(t.identifier),n=Mo(i.toLowerCase()),o=e.footnoteOrder.indexOf(i);let s;-1===o?(e.footnoteOrder.push(i),e.footnoteCounts[i]=1,s=e.footnoteOrder.length):(e.footnoteCounts[i]++,s=o+1);const r=e.footnoteCounts[i];return e(t,"sup",[e(t.position,"a",{href:"#"+e.clobberPrefix+"fn-"+n,id:e.clobberPrefix+"fnref-"+n+(r>1?"-"+r:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[bo("text",String(s))])])}var Po=n(70729);function Fo(e,t){const i=t.referenceType;let n="]";if("collapsed"===i?n+="[]":"full"===i&&(n+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return bo("text","!["+t.alt+n);const o=Io(e,t),s=o[0];s&&"text"===s.type?s.value="["+s.value:o.unshift(bo("text","["));const r=o[o.length-1];return r&&"text"===r.type?r.value+=n:o.push(bo("text",n)),o}function Bo(e){const t=e.spread;return null==t?e.children.length>1:t}const Ho={blockquote:function(e,t){return e(t,"blockquote",Ro(Io(e,t),!0))},break:function(e,t){return[e(t,"br"),bo("text","\n")]},code:function(e,t){const i=t.value?t.value+"\n":"",n=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={};n&&(o.className=["language-"+n]);const s=e(t,"code",o,[bo("text",i)]);return t.meta&&(s.data={meta:t.meta}),e(t.position,"pre",[s])},delete:function(e,t){return e(t,"del",Io(e,t))},emphasis:function(e,t){return e(t,"em",Io(e,t))},footnoteReference:Oo,footnote:function(e,t){const i=e.footnoteById;let n=1;for(;n in i;)n++;const o=String(n);return i[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},Oo(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){return e(t,"h"+t.depth,Io(e,t))},html:function(e,t){return e.dangerous?e.augment(t,bo("raw",t.value)):null},imageReference:function(e,t){const i=e.definition(t.identifier);if(!i)return Fo(e,t);const n={src:Po(i.url||""),alt:t.alt};return null!==i.title&&void 0!==i.title&&(n.title=i.title),e(t,"img",n)},image:function(e,t){const i={src:Po(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(i.title=t.title),e(t,"img",i)},inlineCode:function(e,t){return e(t,"code",[bo("text",t.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,t){const i=e.definition(t.identifier);if(!i)return Fo(e,t);const n={href:Po(i.url||"")};return null!==i.title&&void 0!==i.title&&(n.title=i.title),e(t,"a",n,Io(e,t))},link:function(e,t){const i={href:Po(t.url)};return null!==t.title&&void 0!==t.title&&(i.title=t.title),e(t,"a",i,Io(e,t))},listItem:function(e,t,i){const n=Io(e,t),o=i?function(e){let t=e.spread;const i=e.children;let n=-1;for(;!t&&++n0&&i.children.unshift(bo("text"," ")),i.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),s.className=["task-list-item"]}let a=-1;for(;++a{const t=String(e.identifier).toUpperCase();Wo.call(o,t)||(o[t]=e)})),r;function s(e,t){if(e&&"data"in e&&e.data){const i=e.data;i.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=i.hName),"element"===t.type&&i.hProperties&&(t.properties={...t.properties,...i.hProperties}),"children"in t&&t.children&&i.hChildren&&(t.children=i.hChildren)}if(e){const n="type"in e?e:{position:e};(i=n)&&i.position&&i.position.start&&i.position.start.line&&i.position.start.column&&i.position.end&&i.position.end.line&&i.position.end.column&&(t.position={start:yo(n),end:wo(n)})}var i;return t}function r(e,t,i,n){return Array.isArray(i)&&(n=i,i={}),s(e,{type:"element",tagName:t,properties:i||{},children:n||[]})}}(e,t),n=Do(i,e,null),o=function(e){let t=-1;const i=[];for(;++t1?"-"+a:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};a>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(a)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(t)}const c=o[o.length-1];if(c&&"element"===c.type&&"p"===c.tagName){const e=c.children[c.children.length-1];e&&"text"===e.type?e.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...l)}else o.push(...l);const h={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+r},children:Ro(o,!0)};n.position&&(h.position=n.position),i.push(h)}return 0===i.length?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:"h2",properties:{id:"footnote-label",className:["sr-only"]},children:[bo("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:Ro(i,!0)},{type:"text",value:"\n"}]}}(i);return o&&n.children.push(bo("text","\n"),o),Array.isArray(n)?{type:"root",children:n}:n}const Uo=function(e,t){return e&&"run"in e?function(e,t){return(i,n,o)=>{e.run(zo(i,t),n,(e=>{o(e)}))}}(e,t):function(e){return t=>zo(t,e)}(e||t)};var jo=n(7045);class Ko{constructor(e,t,i){this.property=e,this.normal=t,i&&(this.space=i)}}function qo(e,t){const i={},n={};let o=-1;for(;++o"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),hs=ls({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ds(e,t){return t in e?e[t]:t}function us(e,t){return ds(e,t.toLowerCase())}const gs=ls({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:us,properties:{xmlns:null,xmlnsXLink:null}}),ps=ls({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Zo,ariaAutoComplete:null,ariaBusy:Zo,ariaChecked:Zo,ariaColCount:Jo,ariaColIndex:Jo,ariaColSpan:Jo,ariaControls:es,ariaCurrent:null,ariaDescribedBy:es,ariaDetails:null,ariaDisabled:Zo,ariaDropEffect:es,ariaErrorMessage:null,ariaExpanded:Zo,ariaFlowTo:es,ariaGrabbed:Zo,ariaHasPopup:null,ariaHidden:Zo,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:es,ariaLevel:Jo,ariaLive:null,ariaModal:Zo,ariaMultiLine:Zo,ariaMultiSelectable:Zo,ariaOrientation:null,ariaOwns:es,ariaPlaceholder:null,ariaPosInSet:Jo,ariaPressed:Zo,ariaReadOnly:Zo,ariaRelevant:null,ariaRequired:Zo,ariaRoleDescription:es,ariaRowCount:Jo,ariaRowIndex:Jo,ariaRowSpan:Jo,ariaSelected:Zo,ariaSetSize:Jo,ariaSort:null,ariaValueMax:Jo,ariaValueMin:Jo,ariaValueNow:Jo,ariaValueText:null,role:null}}),ms=ls({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:us,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ts,acceptCharset:es,accessKey:es,action:null,allow:null,allowFullScreen:Yo,allowPaymentRequest:Yo,allowUserMedia:Yo,alt:null,as:null,async:Yo,autoCapitalize:null,autoComplete:es,autoFocus:Yo,autoPlay:Yo,capture:Yo,charSet:null,checked:Yo,cite:null,className:es,cols:Jo,colSpan:null,content:null,contentEditable:Zo,controls:Yo,controlsList:es,coords:Jo|ts,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Yo,defer:Yo,dir:null,dirName:null,disabled:Yo,download:Xo,draggable:Zo,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Yo,formTarget:null,headers:es,height:Jo,hidden:Yo,high:Jo,href:null,hrefLang:null,htmlFor:es,httpEquiv:es,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Yo,itemId:null,itemProp:es,itemRef:es,itemScope:Yo,itemType:es,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Yo,low:Jo,manifest:null,max:null,maxLength:Jo,media:null,method:null,min:null,minLength:Jo,multiple:Yo,muted:Yo,name:null,nonce:null,noModule:Yo,noValidate:Yo,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Yo,optimum:Jo,pattern:null,ping:es,placeholder:null,playsInline:Yo,poster:null,preload:null,readOnly:Yo,referrerPolicy:null,rel:es,required:Yo,reversed:Yo,rows:Jo,rowSpan:Jo,sandbox:es,scope:null,scoped:Yo,seamless:Yo,selected:Yo,shape:null,size:Jo,sizes:null,slot:null,span:Jo,spellCheck:Zo,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Jo,step:null,style:null,tabIndex:Jo,target:null,title:null,translate:null,type:null,typeMustMatch:Yo,useMap:null,value:Zo,width:Jo,wrap:null,align:null,aLink:null,archive:es,axis:null,background:null,bgColor:null,border:Jo,borderColor:null,bottomMargin:Jo,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Yo,declare:Yo,event:null,face:null,frame:null,frameBorder:null,hSpace:Jo,leftMargin:Jo,link:null,longDesc:null,lowSrc:null,marginHeight:Jo,marginWidth:Jo,noResize:Yo,noHref:Yo,noShade:Yo,noWrap:Yo,object:null,profile:null,prompt:null,rev:null,rightMargin:Jo,rules:null,scheme:null,scrolling:Zo,standby:null,summary:null,text:null,topMargin:Jo,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Jo,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Yo,disableRemotePlayback:Yo,prefix:null,property:null,results:Jo,security:null,unselectable:null}}),fs=ls({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:ds,properties:{about:is,accentHeight:Jo,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Jo,amplitude:Jo,arabicForm:null,ascent:Jo,attributeName:null,attributeType:null,azimuth:Jo,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Jo,by:null,calcMode:null,capHeight:Jo,className:es,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Jo,diffuseConstant:Jo,direction:null,display:null,dur:null,divisor:Jo,dominantBaseline:null,download:Yo,dx:null,dy:null,edgeMode:null,editable:null,elevation:Jo,enableBackground:null,end:null,event:null,exponent:Jo,externalResourcesRequired:null,fill:null,fillOpacity:Jo,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ts,g2:ts,glyphName:ts,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Jo,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Jo,horizOriginX:Jo,horizOriginY:Jo,id:null,ideographic:Jo,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Jo,k:Jo,k1:Jo,k2:Jo,k3:Jo,k4:Jo,kernelMatrix:is,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Jo,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Jo,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Jo,overlineThickness:Jo,paintOrder:null,panose1:null,path:null,pathLength:Jo,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:es,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Jo,pointsAtY:Jo,pointsAtZ:Jo,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:is,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:is,rev:is,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:is,requiredFeatures:is,requiredFonts:is,requiredFormats:is,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Jo,specularExponent:Jo,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Jo,strikethroughThickness:Jo,string:null,stroke:null,strokeDashArray:is,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Jo,strokeOpacity:Jo,strokeWidth:null,style:null,surfaceScale:Jo,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:is,tabIndex:Jo,tableValues:null,target:null,targetX:Jo,targetY:Jo,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:is,to:null,transform:null,u1:null,u2:null,underlinePosition:Jo,underlineThickness:Jo,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Jo,values:null,vAlphabetic:Jo,vMathematical:Jo,vectorEffect:null,vHanging:Jo,vIdeographic:Jo,version:null,vertAdvY:Jo,vertOriginX:Jo,vertOriginY:Jo,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Jo,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),_s=qo([hs,cs,gs,ps,ms],"html"),vs=qo([hs,cs,gs,ps,fs],"svg"),bs=/^data[-\w.:]+$/i,Cs=/-[a-z]/g,ys=/[A-Z]/g;function ws(e,t){const i=$o(t);let n=t,o=Go;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&"data"===i.slice(0,4)&&bs.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Cs,ks);n="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Cs.test(e)){let i=e.replace(ys,Ss);"-"!==i.charAt(0)&&(i="-"+i),t="data"+i}}o=ss}return new o(n,t)}function Ss(e){return"-"+e.toLowerCase()}function ks(e){return e.charAt(1).toUpperCase()}var xs=/[#.]/g;function Ls(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Es(e){return e.join(" ").trim()}function Ns(e){for(var t,i,n=[],o=String(e||""),s=o.indexOf(","),r=0;!t;)-1===s&&(s=o.length,t=!0),!(i=o.slice(r,s).trim())&&t||n.push(i),r=s+1,s=o.indexOf(",",r);return n}function Ds(e,t){var i=t||{};return""===e[e.length-1]&&(e=e.concat("")),e.join((i.padRight?" ":"")+","+(!1===i.padLeft?"":" ")).trim()}const Ts=new Set(["menu","submit","reset","button"]),Is={}.hasOwnProperty;function As(e,t,i){const n=i&&function(e){const t={};let i=-1;for(;++i-1&&ee)return{line:t+1,column:e-(i[t-1]||0)+1,offset:e};return{line:void 0,column:void 0,offset:void 0}},toOffset:function(e){var t,n=e&&e.line,o=e&&e.column;return"number"!=typeof n||"number"!=typeof o||Number.isNaN(n)||Number.isNaN(o)||!(n-1 in i)||(t=(i[n-2]||0)+o-1||0),t>-1&&t0?e.call(t,s,r,a):e.call(t,s,r)}function ir(e,t,i,n,o){const s=ws(n.schema,t);let r;null==i||"number"==typeof i&&Number.isNaN(i)||!1===i&&(n.vue||n.vdom||n.hyperscript)||!i&&s.boolean&&(n.vue||n.vdom||n.hyperscript)||(Array.isArray(i)&&(i=s.commaSeparated?Ds(i):Es(i)),s.boolean&&n.hyperscript&&(i=""),"style"===s.property&&"string"==typeof i&&(n.react||n.vue||n.vdom)&&(i=function(e,t){const i={};try{$s(e,((e,t)=>{"-ms-"===e.slice(0,4)&&(e="ms-"+e.slice(4)),i[e.replace(/-([a-z])/g,((e,t)=>t.toUpperCase()))]=t}))}catch(e){throw e.message=t+"[style]"+e.message.slice(9),e}return i}(i,o)),n.vue?"style"!==s.property&&(r="attrs"):s.mustUseProperty||(n.vdom?"style"!==s.property&&(r="attributes"):n.hyperscript&&(r="attrs")),r?e[r]=Object.assign(e[r]||{},{[s.attribute]:i}):s.space&&n.react?e[Qs[s.property]||s.property]=i:e[s.attribute]=i)}function nr(e){return"context"in e&&"cleanup"in e}var or={}.hasOwnProperty;function sr(e,t){var i=t||{};function n(t){var i=n.invalid,o=n.handlers;if(t&&or.call(t,e)&&(i=or.call(o,t[e])?o[t[e]]:n.unknown),i)return i.apply(this,arguments)}return n.handlers=i.handlers||{},n.invalid=i.invalid,n.unknown=i.unknown,n}var rr={}.hasOwnProperty,ar=sr("type",{handlers:{root:function(e,t){var i={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return i.childNodes=lr(e.children,i,t),cr(e,i)},element:function(e,t){var i=t.space;return er((function(i,n){var o,s,r,a,l,c=[];for(r in n)rr.call(n,r)&&!1!==n[r]&&((o=ws(t,r)).boolean&&!n[r]||(s={name:r,value:!0===n[r]?"":String(n[r])},o.space&&"html"!==o.space&&"svg"!==o.space&&((a=r.indexOf(":"))<0?s.prefix="":(s.name=r.slice(a+1),s.prefix=r.slice(0,a)),s.namespace=Bs[o.space]),c.push(s)));return"html"===t.space&&"svg"===e.tagName&&(t=vs),(l=cr(e,{nodeName:i,tagName:i,attrs:c,namespaceURI:Bs[t.space],childNodes:[],parentNode:void 0})).childNodes=lr(e.children,l,t),"template"===i&&(l.content=function(e,t){var i={nodeName:"#document-fragment",childNodes:[]};return i.childNodes=lr(e.children,i,t),cr(e,i)}(e.content,t)),l}),Object.assign({},e,{children:[]}),{space:i})},text:function(e){return cr(e,{nodeName:"#text",value:e.value,parentNode:void 0})},comment:function(e){return cr(e,{nodeName:"#comment",data:e.value,parentNode:void 0})},doctype:function(e){return cr(e,{nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:void 0})}}});function lr(e,t,i){var n,o=-1,s=[];if(e)for(;++o{const n=e;if(n.value.stitch&&null!==i&&null!==t)return i.children[t]=n.value.stitch,t})),"root"!==e.type&&"root"===u.type&&1===u.children.length?u.children[0]:u;function g(e){let t=-1;if(e)for(;++tur(t,i,e)}class _r{constructor(e,t,i){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=i}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new _r(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class vr{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new vr(t,_r.range(this,e))}}class br{constructor(e,t){this.position=void 0;var i,n="KaTeX parse error: "+e,o=t&&t.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start;var r=o.end;i===s.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var a=s.slice(i,r).replace(/[^]/g,"$&̲");n+=(i>15?"…"+s.slice(i-15,i):s.slice(0,i))+a+(r+15":">","<":"<",'"':""","'":"'"},wr=/[&><"']/g,Sr=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},kr=function(e,t){return-1!==e.indexOf(t)},xr=function(e,t){return void 0===e?t:e},Lr=function(e){return String(e).replace(wr,(e=>yr[e]))},Er=function(e){return e.replace(Cr,"-$1").toLowerCase()},Nr=Sr,Dr=function(e){var t=Sr(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},Tr=function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return null!=t?t[1]:"_relative"},Ir={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function Ar(e){if(e.default)return e.default;var t=e.type,i=Array.isArray(t)?t[0]:t;if("string"!=typeof i)return i.enum[0];switch(i){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Mr{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},Ir)if(Ir.hasOwnProperty(t)){var i=Ir[t];this[t]=void 0!==e[t]?i.processor?i.processor(e[t]):e[t]:Ar(i)}}reportNonstrict(e,t,i){var n=this.strict;if("function"==typeof n&&(n=n(e,t,i)),n&&"ignore"!==n){if(!0===n||"error"===n)throw new br("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",i);"warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,i){var n=this.strict;if("function"==typeof n)try{n=n(e,t,i)}catch(e){n="error"}return!(!n||"ignore"===n||!0!==n&&"error"!==n&&("warn"===n?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),1)))}isTrusted(e){e.url&&!e.protocol&&(e.protocol=Tr(e.url));var t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)}}class Rr{constructor(e,t,i){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=i}sup(){return Or[Pr[this.id]]}sub(){return Or[Fr[this.id]]}fracNum(){return Or[Br[this.id]]}fracDen(){return Or[Hr[this.id]]}cramp(){return Or[Vr[this.id]]}text(){return Or[Wr[this.id]]}isTight(){return this.size>=2}}var Or=[new Rr(0,0,!1),new Rr(1,0,!0),new Rr(2,1,!1),new Rr(3,1,!0),new Rr(4,2,!1),new Rr(5,2,!0),new Rr(6,3,!1),new Rr(7,3,!0)],Pr=[4,5,4,5,6,7,6,7],Fr=[5,5,5,5,7,7,7,7],Br=[2,3,4,5,6,7,6,7],Hr=[3,3,5,5,7,7,7,7],Vr=[1,1,3,3,5,5,7,7],Wr=[0,1,2,3,2,3,2,3],zr={DISPLAY:Or[0],TEXT:Or[2],SCRIPT:Or[4],SCRIPTSCRIPT:Or[6]},Ur=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],jr=[];function Kr(e){for(var t=0;t=jr[t]&&e<=jr[t+1])return!0;return!1}Ur.forEach((e=>e.blocks.forEach((e=>jr.push(...e)))));var qr={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class $r{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return kr(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;te.toText())).join("")}}var Gr={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Qr={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Yr={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Zr(e,t,i){if(!Gr[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),o=Gr[t][n];if(!o&&e[0]in Yr&&(n=Yr[e[0]].charCodeAt(0),o=Gr[t][n]),o||"text"!==i||Kr(n)&&(o=Gr[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var Xr={},Jr=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],ea=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],ta=function(e,t){return t.size<2?e:Jr[e-1][t.size-1]};class ia{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||ia.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=ea[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return new ia(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:ta(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:ea[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=ta(ia.BASESIZE,e);return this.size===t&&this.textSize===ia.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==ia.BASESIZE?["sizing","reset-size"+this.size,"size"+ia.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!Xr[t=e>=5?0:e>=3?1:2]){var i=Xr[t]={cssEmPerMu:Qr.quad[t]/18};for(var n in Qr)Qr.hasOwnProperty(n)&&(i[n]=Qr[n][t])}return Xr[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}ia.BASESIZE=6;var na={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},oa={ex:!0,em:!0,mu:!0},sa=function(e){return"string"!=typeof e&&(e=e.unit),e in na||e in oa||"ex"===e},ra=function(e,t){var i;if(e.unit in na)i=na[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)i=t.fontMetrics().cssEmPerMu;else{var n;if(n=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)i=n.fontMetrics().xHeight;else{if("em"!==e.unit)throw new br("Invalid unit: '"+e.unit+"'");i=n.fontMetrics().quad}n!==t&&(i*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*i,t.maxSize)},aa=function(e){return+e.toFixed(4)+"em"},la=function(e){return e.filter((e=>e)).join(" ")},ca=function(e,t,i){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},ha=function(e){var t=document.createElement(e);for(var i in t.className=la(this.classes),this.style)this.style.hasOwnProperty(i)&&(t.style[i]=this.style[i]);for(var n in this.attributes)this.attributes.hasOwnProperty(n)&&t.setAttribute(n,this.attributes[n]);for(var o=0;o"};class ua{constructor(e,t,i,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,ca.call(this,e,i,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return kr(this.classes,e)}toNode(){return ha.call(this,"span")}toMarkup(){return da.call(this,"span")}}class ga{constructor(e,t,i,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,ca.call(this,t,n),this.children=i||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return kr(this.classes,e)}toNode(){return ha.call(this,"a")}toMarkup(){return da.call(this,"a")}}class pa{constructor(e,t,i){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=i}hasClass(e){return kr(this.classes,e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e=""+this.alt+""}}var ma={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class fa{constructor(e,t,i,n,o,s,r,a){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=i||0,this.italic=n||0,this.skew=o||0,this.width=s||0,this.classes=r||[],this.style=a||{},this.maxFontSize=0;var l=function(e){for(var t=0;t=o[0]&&e<=o[1])return i.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=ma[this.text])}hasClass(e){return kr(this.classes,e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var i in this.italic>0&&((t=document.createElement("span")).style.marginRight=aa(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=la(this.classes)),this.style)this.style.hasOwnProperty(i)&&((t=t||document.createElement("span")).style[i]=this.style[i]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="0&&(i+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(n)&&(i+=Er(n)+":"+this.style[n]+";");i&&(e=!0,t+=' style="'+Lr(i)+'"');var o=Lr(this.text);return e?(t+=">",t+=o,t+=""):o}}class _a{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var i=0;i"}}class va{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",qr[this.pathName]),e}toMarkup(){return this.alternate?"":""}}class ba{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=""}}function Ca(e){if(e instanceof fa)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var ya={bin:1,close:1,inner:1,open:1,punct:1,rel:1},wa={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Sa={math:{},text:{}};function ka(e,t,i,n,o,s){Sa[e][o]={font:t,group:i,replace:n},s&&n&&(Sa[e][n]=Sa[e][o])}var xa="math",La="text",Ea="main",Na="ams",Da="accent-token",Ta="bin",Ia="close",Aa="inner",Ma="mathord",Ra="op-token",Oa="open",Pa="punct",Fa="rel",Ba="spacing",Ha="textord";ka(xa,Ea,Fa,"≡","\\equiv",!0),ka(xa,Ea,Fa,"≺","\\prec",!0),ka(xa,Ea,Fa,"≻","\\succ",!0),ka(xa,Ea,Fa,"∼","\\sim",!0),ka(xa,Ea,Fa,"⊥","\\perp"),ka(xa,Ea,Fa,"⪯","\\preceq",!0),ka(xa,Ea,Fa,"⪰","\\succeq",!0),ka(xa,Ea,Fa,"≃","\\simeq",!0),ka(xa,Ea,Fa,"∣","\\mid",!0),ka(xa,Ea,Fa,"≪","\\ll",!0),ka(xa,Ea,Fa,"≫","\\gg",!0),ka(xa,Ea,Fa,"≍","\\asymp",!0),ka(xa,Ea,Fa,"∥","\\parallel"),ka(xa,Ea,Fa,"⋈","\\bowtie",!0),ka(xa,Ea,Fa,"⌣","\\smile",!0),ka(xa,Ea,Fa,"⊑","\\sqsubseteq",!0),ka(xa,Ea,Fa,"⊒","\\sqsupseteq",!0),ka(xa,Ea,Fa,"≐","\\doteq",!0),ka(xa,Ea,Fa,"⌢","\\frown",!0),ka(xa,Ea,Fa,"∋","\\ni",!0),ka(xa,Ea,Fa,"∝","\\propto",!0),ka(xa,Ea,Fa,"⊢","\\vdash",!0),ka(xa,Ea,Fa,"⊣","\\dashv",!0),ka(xa,Ea,Fa,"∋","\\owns"),ka(xa,Ea,Pa,".","\\ldotp"),ka(xa,Ea,Pa,"⋅","\\cdotp"),ka(xa,Ea,Ha,"#","\\#"),ka(La,Ea,Ha,"#","\\#"),ka(xa,Ea,Ha,"&","\\&"),ka(La,Ea,Ha,"&","\\&"),ka(xa,Ea,Ha,"ℵ","\\aleph",!0),ka(xa,Ea,Ha,"∀","\\forall",!0),ka(xa,Ea,Ha,"ℏ","\\hbar",!0),ka(xa,Ea,Ha,"∃","\\exists",!0),ka(xa,Ea,Ha,"∇","\\nabla",!0),ka(xa,Ea,Ha,"♭","\\flat",!0),ka(xa,Ea,Ha,"ℓ","\\ell",!0),ka(xa,Ea,Ha,"♮","\\natural",!0),ka(xa,Ea,Ha,"♣","\\clubsuit",!0),ka(xa,Ea,Ha,"℘","\\wp",!0),ka(xa,Ea,Ha,"♯","\\sharp",!0),ka(xa,Ea,Ha,"♢","\\diamondsuit",!0),ka(xa,Ea,Ha,"ℜ","\\Re",!0),ka(xa,Ea,Ha,"♡","\\heartsuit",!0),ka(xa,Ea,Ha,"ℑ","\\Im",!0),ka(xa,Ea,Ha,"♠","\\spadesuit",!0),ka(xa,Ea,Ha,"§","\\S",!0),ka(La,Ea,Ha,"§","\\S"),ka(xa,Ea,Ha,"¶","\\P",!0),ka(La,Ea,Ha,"¶","\\P"),ka(xa,Ea,Ha,"†","\\dag"),ka(La,Ea,Ha,"†","\\dag"),ka(La,Ea,Ha,"†","\\textdagger"),ka(xa,Ea,Ha,"‡","\\ddag"),ka(La,Ea,Ha,"‡","\\ddag"),ka(La,Ea,Ha,"‡","\\textdaggerdbl"),ka(xa,Ea,Ia,"⎱","\\rmoustache",!0),ka(xa,Ea,Oa,"⎰","\\lmoustache",!0),ka(xa,Ea,Ia,"⟯","\\rgroup",!0),ka(xa,Ea,Oa,"⟮","\\lgroup",!0),ka(xa,Ea,Ta,"∓","\\mp",!0),ka(xa,Ea,Ta,"⊖","\\ominus",!0),ka(xa,Ea,Ta,"⊎","\\uplus",!0),ka(xa,Ea,Ta,"⊓","\\sqcap",!0),ka(xa,Ea,Ta,"∗","\\ast"),ka(xa,Ea,Ta,"⊔","\\sqcup",!0),ka(xa,Ea,Ta,"◯","\\bigcirc",!0),ka(xa,Ea,Ta,"∙","\\bullet",!0),ka(xa,Ea,Ta,"‡","\\ddagger"),ka(xa,Ea,Ta,"≀","\\wr",!0),ka(xa,Ea,Ta,"⨿","\\amalg"),ka(xa,Ea,Ta,"&","\\And"),ka(xa,Ea,Fa,"⟵","\\longleftarrow",!0),ka(xa,Ea,Fa,"⇐","\\Leftarrow",!0),ka(xa,Ea,Fa,"⟸","\\Longleftarrow",!0),ka(xa,Ea,Fa,"⟶","\\longrightarrow",!0),ka(xa,Ea,Fa,"⇒","\\Rightarrow",!0),ka(xa,Ea,Fa,"⟹","\\Longrightarrow",!0),ka(xa,Ea,Fa,"↔","\\leftrightarrow",!0),ka(xa,Ea,Fa,"⟷","\\longleftrightarrow",!0),ka(xa,Ea,Fa,"⇔","\\Leftrightarrow",!0),ka(xa,Ea,Fa,"⟺","\\Longleftrightarrow",!0),ka(xa,Ea,Fa,"↦","\\mapsto",!0),ka(xa,Ea,Fa,"⟼","\\longmapsto",!0),ka(xa,Ea,Fa,"↗","\\nearrow",!0),ka(xa,Ea,Fa,"↩","\\hookleftarrow",!0),ka(xa,Ea,Fa,"↪","\\hookrightarrow",!0),ka(xa,Ea,Fa,"↘","\\searrow",!0),ka(xa,Ea,Fa,"↼","\\leftharpoonup",!0),ka(xa,Ea,Fa,"⇀","\\rightharpoonup",!0),ka(xa,Ea,Fa,"↙","\\swarrow",!0),ka(xa,Ea,Fa,"↽","\\leftharpoondown",!0),ka(xa,Ea,Fa,"⇁","\\rightharpoondown",!0),ka(xa,Ea,Fa,"↖","\\nwarrow",!0),ka(xa,Ea,Fa,"⇌","\\rightleftharpoons",!0),ka(xa,Na,Fa,"≮","\\nless",!0),ka(xa,Na,Fa,"","\\@nleqslant"),ka(xa,Na,Fa,"","\\@nleqq"),ka(xa,Na,Fa,"⪇","\\lneq",!0),ka(xa,Na,Fa,"≨","\\lneqq",!0),ka(xa,Na,Fa,"","\\@lvertneqq"),ka(xa,Na,Fa,"⋦","\\lnsim",!0),ka(xa,Na,Fa,"⪉","\\lnapprox",!0),ka(xa,Na,Fa,"⊀","\\nprec",!0),ka(xa,Na,Fa,"⋠","\\npreceq",!0),ka(xa,Na,Fa,"⋨","\\precnsim",!0),ka(xa,Na,Fa,"⪹","\\precnapprox",!0),ka(xa,Na,Fa,"≁","\\nsim",!0),ka(xa,Na,Fa,"","\\@nshortmid"),ka(xa,Na,Fa,"∤","\\nmid",!0),ka(xa,Na,Fa,"⊬","\\nvdash",!0),ka(xa,Na,Fa,"⊭","\\nvDash",!0),ka(xa,Na,Fa,"⋪","\\ntriangleleft"),ka(xa,Na,Fa,"⋬","\\ntrianglelefteq",!0),ka(xa,Na,Fa,"⊊","\\subsetneq",!0),ka(xa,Na,Fa,"","\\@varsubsetneq"),ka(xa,Na,Fa,"⫋","\\subsetneqq",!0),ka(xa,Na,Fa,"","\\@varsubsetneqq"),ka(xa,Na,Fa,"≯","\\ngtr",!0),ka(xa,Na,Fa,"","\\@ngeqslant"),ka(xa,Na,Fa,"","\\@ngeqq"),ka(xa,Na,Fa,"⪈","\\gneq",!0),ka(xa,Na,Fa,"≩","\\gneqq",!0),ka(xa,Na,Fa,"","\\@gvertneqq"),ka(xa,Na,Fa,"⋧","\\gnsim",!0),ka(xa,Na,Fa,"⪊","\\gnapprox",!0),ka(xa,Na,Fa,"⊁","\\nsucc",!0),ka(xa,Na,Fa,"⋡","\\nsucceq",!0),ka(xa,Na,Fa,"⋩","\\succnsim",!0),ka(xa,Na,Fa,"⪺","\\succnapprox",!0),ka(xa,Na,Fa,"≆","\\ncong",!0),ka(xa,Na,Fa,"","\\@nshortparallel"),ka(xa,Na,Fa,"∦","\\nparallel",!0),ka(xa,Na,Fa,"⊯","\\nVDash",!0),ka(xa,Na,Fa,"⋫","\\ntriangleright"),ka(xa,Na,Fa,"⋭","\\ntrianglerighteq",!0),ka(xa,Na,Fa,"","\\@nsupseteqq"),ka(xa,Na,Fa,"⊋","\\supsetneq",!0),ka(xa,Na,Fa,"","\\@varsupsetneq"),ka(xa,Na,Fa,"⫌","\\supsetneqq",!0),ka(xa,Na,Fa,"","\\@varsupsetneqq"),ka(xa,Na,Fa,"⊮","\\nVdash",!0),ka(xa,Na,Fa,"⪵","\\precneqq",!0),ka(xa,Na,Fa,"⪶","\\succneqq",!0),ka(xa,Na,Fa,"","\\@nsubseteqq"),ka(xa,Na,Ta,"⊴","\\unlhd"),ka(xa,Na,Ta,"⊵","\\unrhd"),ka(xa,Na,Fa,"↚","\\nleftarrow",!0),ka(xa,Na,Fa,"↛","\\nrightarrow",!0),ka(xa,Na,Fa,"⇍","\\nLeftarrow",!0),ka(xa,Na,Fa,"⇏","\\nRightarrow",!0),ka(xa,Na,Fa,"↮","\\nleftrightarrow",!0),ka(xa,Na,Fa,"⇎","\\nLeftrightarrow",!0),ka(xa,Na,Fa,"△","\\vartriangle"),ka(xa,Na,Ha,"ℏ","\\hslash"),ka(xa,Na,Ha,"▽","\\triangledown"),ka(xa,Na,Ha,"◊","\\lozenge"),ka(xa,Na,Ha,"Ⓢ","\\circledS"),ka(xa,Na,Ha,"®","\\circledR"),ka(La,Na,Ha,"®","\\circledR"),ka(xa,Na,Ha,"∡","\\measuredangle",!0),ka(xa,Na,Ha,"∄","\\nexists"),ka(xa,Na,Ha,"℧","\\mho"),ka(xa,Na,Ha,"Ⅎ","\\Finv",!0),ka(xa,Na,Ha,"⅁","\\Game",!0),ka(xa,Na,Ha,"‵","\\backprime"),ka(xa,Na,Ha,"▲","\\blacktriangle"),ka(xa,Na,Ha,"▼","\\blacktriangledown"),ka(xa,Na,Ha,"■","\\blacksquare"),ka(xa,Na,Ha,"⧫","\\blacklozenge"),ka(xa,Na,Ha,"★","\\bigstar"),ka(xa,Na,Ha,"∢","\\sphericalangle",!0),ka(xa,Na,Ha,"∁","\\complement",!0),ka(xa,Na,Ha,"ð","\\eth",!0),ka(La,Ea,Ha,"ð","ð"),ka(xa,Na,Ha,"╱","\\diagup"),ka(xa,Na,Ha,"╲","\\diagdown"),ka(xa,Na,Ha,"□","\\square"),ka(xa,Na,Ha,"□","\\Box"),ka(xa,Na,Ha,"◊","\\Diamond"),ka(xa,Na,Ha,"¥","\\yen",!0),ka(La,Na,Ha,"¥","\\yen",!0),ka(xa,Na,Ha,"✓","\\checkmark",!0),ka(La,Na,Ha,"✓","\\checkmark"),ka(xa,Na,Ha,"ℶ","\\beth",!0),ka(xa,Na,Ha,"ℸ","\\daleth",!0),ka(xa,Na,Ha,"ℷ","\\gimel",!0),ka(xa,Na,Ha,"ϝ","\\digamma",!0),ka(xa,Na,Ha,"ϰ","\\varkappa"),ka(xa,Na,Oa,"┌","\\@ulcorner",!0),ka(xa,Na,Ia,"┐","\\@urcorner",!0),ka(xa,Na,Oa,"└","\\@llcorner",!0),ka(xa,Na,Ia,"┘","\\@lrcorner",!0),ka(xa,Na,Fa,"≦","\\leqq",!0),ka(xa,Na,Fa,"⩽","\\leqslant",!0),ka(xa,Na,Fa,"⪕","\\eqslantless",!0),ka(xa,Na,Fa,"≲","\\lesssim",!0),ka(xa,Na,Fa,"⪅","\\lessapprox",!0),ka(xa,Na,Fa,"≊","\\approxeq",!0),ka(xa,Na,Ta,"⋖","\\lessdot"),ka(xa,Na,Fa,"⋘","\\lll",!0),ka(xa,Na,Fa,"≶","\\lessgtr",!0),ka(xa,Na,Fa,"⋚","\\lesseqgtr",!0),ka(xa,Na,Fa,"⪋","\\lesseqqgtr",!0),ka(xa,Na,Fa,"≑","\\doteqdot"),ka(xa,Na,Fa,"≓","\\risingdotseq",!0),ka(xa,Na,Fa,"≒","\\fallingdotseq",!0),ka(xa,Na,Fa,"∽","\\backsim",!0),ka(xa,Na,Fa,"⋍","\\backsimeq",!0),ka(xa,Na,Fa,"⫅","\\subseteqq",!0),ka(xa,Na,Fa,"⋐","\\Subset",!0),ka(xa,Na,Fa,"⊏","\\sqsubset",!0),ka(xa,Na,Fa,"≼","\\preccurlyeq",!0),ka(xa,Na,Fa,"⋞","\\curlyeqprec",!0),ka(xa,Na,Fa,"≾","\\precsim",!0),ka(xa,Na,Fa,"⪷","\\precapprox",!0),ka(xa,Na,Fa,"⊲","\\vartriangleleft"),ka(xa,Na,Fa,"⊴","\\trianglelefteq"),ka(xa,Na,Fa,"⊨","\\vDash",!0),ka(xa,Na,Fa,"⊪","\\Vvdash",!0),ka(xa,Na,Fa,"⌣","\\smallsmile"),ka(xa,Na,Fa,"⌢","\\smallfrown"),ka(xa,Na,Fa,"≏","\\bumpeq",!0),ka(xa,Na,Fa,"≎","\\Bumpeq",!0),ka(xa,Na,Fa,"≧","\\geqq",!0),ka(xa,Na,Fa,"⩾","\\geqslant",!0),ka(xa,Na,Fa,"⪖","\\eqslantgtr",!0),ka(xa,Na,Fa,"≳","\\gtrsim",!0),ka(xa,Na,Fa,"⪆","\\gtrapprox",!0),ka(xa,Na,Ta,"⋗","\\gtrdot"),ka(xa,Na,Fa,"⋙","\\ggg",!0),ka(xa,Na,Fa,"≷","\\gtrless",!0),ka(xa,Na,Fa,"⋛","\\gtreqless",!0),ka(xa,Na,Fa,"⪌","\\gtreqqless",!0),ka(xa,Na,Fa,"≖","\\eqcirc",!0),ka(xa,Na,Fa,"≗","\\circeq",!0),ka(xa,Na,Fa,"≜","\\triangleq",!0),ka(xa,Na,Fa,"∼","\\thicksim"),ka(xa,Na,Fa,"≈","\\thickapprox"),ka(xa,Na,Fa,"⫆","\\supseteqq",!0),ka(xa,Na,Fa,"⋑","\\Supset",!0),ka(xa,Na,Fa,"⊐","\\sqsupset",!0),ka(xa,Na,Fa,"≽","\\succcurlyeq",!0),ka(xa,Na,Fa,"⋟","\\curlyeqsucc",!0),ka(xa,Na,Fa,"≿","\\succsim",!0),ka(xa,Na,Fa,"⪸","\\succapprox",!0),ka(xa,Na,Fa,"⊳","\\vartriangleright"),ka(xa,Na,Fa,"⊵","\\trianglerighteq"),ka(xa,Na,Fa,"⊩","\\Vdash",!0),ka(xa,Na,Fa,"∣","\\shortmid"),ka(xa,Na,Fa,"∥","\\shortparallel"),ka(xa,Na,Fa,"≬","\\between",!0),ka(xa,Na,Fa,"⋔","\\pitchfork",!0),ka(xa,Na,Fa,"∝","\\varpropto"),ka(xa,Na,Fa,"◀","\\blacktriangleleft"),ka(xa,Na,Fa,"∴","\\therefore",!0),ka(xa,Na,Fa,"∍","\\backepsilon"),ka(xa,Na,Fa,"▶","\\blacktriangleright"),ka(xa,Na,Fa,"∵","\\because",!0),ka(xa,Na,Fa,"⋘","\\llless"),ka(xa,Na,Fa,"⋙","\\gggtr"),ka(xa,Na,Ta,"⊲","\\lhd"),ka(xa,Na,Ta,"⊳","\\rhd"),ka(xa,Na,Fa,"≂","\\eqsim",!0),ka(xa,Ea,Fa,"⋈","\\Join"),ka(xa,Na,Fa,"≑","\\Doteq",!0),ka(xa,Na,Ta,"∔","\\dotplus",!0),ka(xa,Na,Ta,"∖","\\smallsetminus"),ka(xa,Na,Ta,"⋒","\\Cap",!0),ka(xa,Na,Ta,"⋓","\\Cup",!0),ka(xa,Na,Ta,"⩞","\\doublebarwedge",!0),ka(xa,Na,Ta,"⊟","\\boxminus",!0),ka(xa,Na,Ta,"⊞","\\boxplus",!0),ka(xa,Na,Ta,"⋇","\\divideontimes",!0),ka(xa,Na,Ta,"⋉","\\ltimes",!0),ka(xa,Na,Ta,"⋊","\\rtimes",!0),ka(xa,Na,Ta,"⋋","\\leftthreetimes",!0),ka(xa,Na,Ta,"⋌","\\rightthreetimes",!0),ka(xa,Na,Ta,"⋏","\\curlywedge",!0),ka(xa,Na,Ta,"⋎","\\curlyvee",!0),ka(xa,Na,Ta,"⊝","\\circleddash",!0),ka(xa,Na,Ta,"⊛","\\circledast",!0),ka(xa,Na,Ta,"⋅","\\centerdot"),ka(xa,Na,Ta,"⊺","\\intercal",!0),ka(xa,Na,Ta,"⋒","\\doublecap"),ka(xa,Na,Ta,"⋓","\\doublecup"),ka(xa,Na,Ta,"⊠","\\boxtimes",!0),ka(xa,Na,Fa,"⇢","\\dashrightarrow",!0),ka(xa,Na,Fa,"⇠","\\dashleftarrow",!0),ka(xa,Na,Fa,"⇇","\\leftleftarrows",!0),ka(xa,Na,Fa,"⇆","\\leftrightarrows",!0),ka(xa,Na,Fa,"⇚","\\Lleftarrow",!0),ka(xa,Na,Fa,"↞","\\twoheadleftarrow",!0),ka(xa,Na,Fa,"↢","\\leftarrowtail",!0),ka(xa,Na,Fa,"↫","\\looparrowleft",!0),ka(xa,Na,Fa,"⇋","\\leftrightharpoons",!0),ka(xa,Na,Fa,"↶","\\curvearrowleft",!0),ka(xa,Na,Fa,"↺","\\circlearrowleft",!0),ka(xa,Na,Fa,"↰","\\Lsh",!0),ka(xa,Na,Fa,"⇈","\\upuparrows",!0),ka(xa,Na,Fa,"↿","\\upharpoonleft",!0),ka(xa,Na,Fa,"⇃","\\downharpoonleft",!0),ka(xa,Ea,Fa,"⊶","\\origof",!0),ka(xa,Ea,Fa,"⊷","\\imageof",!0),ka(xa,Na,Fa,"⊸","\\multimap",!0),ka(xa,Na,Fa,"↭","\\leftrightsquigarrow",!0),ka(xa,Na,Fa,"⇉","\\rightrightarrows",!0),ka(xa,Na,Fa,"⇄","\\rightleftarrows",!0),ka(xa,Na,Fa,"↠","\\twoheadrightarrow",!0),ka(xa,Na,Fa,"↣","\\rightarrowtail",!0),ka(xa,Na,Fa,"↬","\\looparrowright",!0),ka(xa,Na,Fa,"↷","\\curvearrowright",!0),ka(xa,Na,Fa,"↻","\\circlearrowright",!0),ka(xa,Na,Fa,"↱","\\Rsh",!0),ka(xa,Na,Fa,"⇊","\\downdownarrows",!0),ka(xa,Na,Fa,"↾","\\upharpoonright",!0),ka(xa,Na,Fa,"⇂","\\downharpoonright",!0),ka(xa,Na,Fa,"⇝","\\rightsquigarrow",!0),ka(xa,Na,Fa,"⇝","\\leadsto"),ka(xa,Na,Fa,"⇛","\\Rrightarrow",!0),ka(xa,Na,Fa,"↾","\\restriction"),ka(xa,Ea,Ha,"‘","`"),ka(xa,Ea,Ha,"$","\\$"),ka(La,Ea,Ha,"$","\\$"),ka(La,Ea,Ha,"$","\\textdollar"),ka(xa,Ea,Ha,"%","\\%"),ka(La,Ea,Ha,"%","\\%"),ka(xa,Ea,Ha,"_","\\_"),ka(La,Ea,Ha,"_","\\_"),ka(La,Ea,Ha,"_","\\textunderscore"),ka(xa,Ea,Ha,"∠","\\angle",!0),ka(xa,Ea,Ha,"∞","\\infty",!0),ka(xa,Ea,Ha,"′","\\prime"),ka(xa,Ea,Ha,"△","\\triangle"),ka(xa,Ea,Ha,"Γ","\\Gamma",!0),ka(xa,Ea,Ha,"Δ","\\Delta",!0),ka(xa,Ea,Ha,"Θ","\\Theta",!0),ka(xa,Ea,Ha,"Λ","\\Lambda",!0),ka(xa,Ea,Ha,"Ξ","\\Xi",!0),ka(xa,Ea,Ha,"Π","\\Pi",!0),ka(xa,Ea,Ha,"Σ","\\Sigma",!0),ka(xa,Ea,Ha,"Υ","\\Upsilon",!0),ka(xa,Ea,Ha,"Φ","\\Phi",!0),ka(xa,Ea,Ha,"Ψ","\\Psi",!0),ka(xa,Ea,Ha,"Ω","\\Omega",!0),ka(xa,Ea,Ha,"A","Α"),ka(xa,Ea,Ha,"B","Β"),ka(xa,Ea,Ha,"E","Ε"),ka(xa,Ea,Ha,"Z","Ζ"),ka(xa,Ea,Ha,"H","Η"),ka(xa,Ea,Ha,"I","Ι"),ka(xa,Ea,Ha,"K","Κ"),ka(xa,Ea,Ha,"M","Μ"),ka(xa,Ea,Ha,"N","Ν"),ka(xa,Ea,Ha,"O","Ο"),ka(xa,Ea,Ha,"P","Ρ"),ka(xa,Ea,Ha,"T","Τ"),ka(xa,Ea,Ha,"X","Χ"),ka(xa,Ea,Ha,"¬","\\neg",!0),ka(xa,Ea,Ha,"¬","\\lnot"),ka(xa,Ea,Ha,"⊤","\\top"),ka(xa,Ea,Ha,"⊥","\\bot"),ka(xa,Ea,Ha,"∅","\\emptyset"),ka(xa,Na,Ha,"∅","\\varnothing"),ka(xa,Ea,Ma,"α","\\alpha",!0),ka(xa,Ea,Ma,"β","\\beta",!0),ka(xa,Ea,Ma,"γ","\\gamma",!0),ka(xa,Ea,Ma,"δ","\\delta",!0),ka(xa,Ea,Ma,"ϵ","\\epsilon",!0),ka(xa,Ea,Ma,"ζ","\\zeta",!0),ka(xa,Ea,Ma,"η","\\eta",!0),ka(xa,Ea,Ma,"θ","\\theta",!0),ka(xa,Ea,Ma,"ι","\\iota",!0),ka(xa,Ea,Ma,"κ","\\kappa",!0),ka(xa,Ea,Ma,"λ","\\lambda",!0),ka(xa,Ea,Ma,"μ","\\mu",!0),ka(xa,Ea,Ma,"ν","\\nu",!0),ka(xa,Ea,Ma,"ξ","\\xi",!0),ka(xa,Ea,Ma,"ο","\\omicron",!0),ka(xa,Ea,Ma,"π","\\pi",!0),ka(xa,Ea,Ma,"ρ","\\rho",!0),ka(xa,Ea,Ma,"σ","\\sigma",!0),ka(xa,Ea,Ma,"τ","\\tau",!0),ka(xa,Ea,Ma,"υ","\\upsilon",!0),ka(xa,Ea,Ma,"ϕ","\\phi",!0),ka(xa,Ea,Ma,"χ","\\chi",!0),ka(xa,Ea,Ma,"ψ","\\psi",!0),ka(xa,Ea,Ma,"ω","\\omega",!0),ka(xa,Ea,Ma,"ε","\\varepsilon",!0),ka(xa,Ea,Ma,"ϑ","\\vartheta",!0),ka(xa,Ea,Ma,"ϖ","\\varpi",!0),ka(xa,Ea,Ma,"ϱ","\\varrho",!0),ka(xa,Ea,Ma,"ς","\\varsigma",!0),ka(xa,Ea,Ma,"φ","\\varphi",!0),ka(xa,Ea,Ta,"∗","*",!0),ka(xa,Ea,Ta,"+","+"),ka(xa,Ea,Ta,"−","-",!0),ka(xa,Ea,Ta,"⋅","\\cdot",!0),ka(xa,Ea,Ta,"∘","\\circ",!0),ka(xa,Ea,Ta,"÷","\\div",!0),ka(xa,Ea,Ta,"±","\\pm",!0),ka(xa,Ea,Ta,"×","\\times",!0),ka(xa,Ea,Ta,"∩","\\cap",!0),ka(xa,Ea,Ta,"∪","\\cup",!0),ka(xa,Ea,Ta,"∖","\\setminus",!0),ka(xa,Ea,Ta,"∧","\\land"),ka(xa,Ea,Ta,"∨","\\lor"),ka(xa,Ea,Ta,"∧","\\wedge",!0),ka(xa,Ea,Ta,"∨","\\vee",!0),ka(xa,Ea,Ha,"√","\\surd"),ka(xa,Ea,Oa,"⟨","\\langle",!0),ka(xa,Ea,Oa,"∣","\\lvert"),ka(xa,Ea,Oa,"∥","\\lVert"),ka(xa,Ea,Ia,"?","?"),ka(xa,Ea,Ia,"!","!"),ka(xa,Ea,Ia,"⟩","\\rangle",!0),ka(xa,Ea,Ia,"∣","\\rvert"),ka(xa,Ea,Ia,"∥","\\rVert"),ka(xa,Ea,Fa,"=","="),ka(xa,Ea,Fa,":",":"),ka(xa,Ea,Fa,"≈","\\approx",!0),ka(xa,Ea,Fa,"≅","\\cong",!0),ka(xa,Ea,Fa,"≥","\\ge"),ka(xa,Ea,Fa,"≥","\\geq",!0),ka(xa,Ea,Fa,"←","\\gets"),ka(xa,Ea,Fa,">","\\gt",!0),ka(xa,Ea,Fa,"∈","\\in",!0),ka(xa,Ea,Fa,"","\\@not"),ka(xa,Ea,Fa,"⊂","\\subset",!0),ka(xa,Ea,Fa,"⊃","\\supset",!0),ka(xa,Ea,Fa,"⊆","\\subseteq",!0),ka(xa,Ea,Fa,"⊇","\\supseteq",!0),ka(xa,Na,Fa,"⊈","\\nsubseteq",!0),ka(xa,Na,Fa,"⊉","\\nsupseteq",!0),ka(xa,Ea,Fa,"⊨","\\models"),ka(xa,Ea,Fa,"←","\\leftarrow",!0),ka(xa,Ea,Fa,"≤","\\le"),ka(xa,Ea,Fa,"≤","\\leq",!0),ka(xa,Ea,Fa,"<","\\lt",!0),ka(xa,Ea,Fa,"→","\\rightarrow",!0),ka(xa,Ea,Fa,"→","\\to"),ka(xa,Na,Fa,"≱","\\ngeq",!0),ka(xa,Na,Fa,"≰","\\nleq",!0),ka(xa,Ea,Ba," ","\\ "),ka(xa,Ea,Ba," ","\\space"),ka(xa,Ea,Ba," ","\\nobreakspace"),ka(La,Ea,Ba," ","\\ "),ka(La,Ea,Ba," "," "),ka(La,Ea,Ba," ","\\space"),ka(La,Ea,Ba," ","\\nobreakspace"),ka(xa,Ea,Ba,null,"\\nobreak"),ka(xa,Ea,Ba,null,"\\allowbreak"),ka(xa,Ea,Pa,",",","),ka(xa,Ea,Pa,";",";"),ka(xa,Na,Ta,"⊼","\\barwedge",!0),ka(xa,Na,Ta,"⊻","\\veebar",!0),ka(xa,Ea,Ta,"⊙","\\odot",!0),ka(xa,Ea,Ta,"⊕","\\oplus",!0),ka(xa,Ea,Ta,"⊗","\\otimes",!0),ka(xa,Ea,Ha,"∂","\\partial",!0),ka(xa,Ea,Ta,"⊘","\\oslash",!0),ka(xa,Na,Ta,"⊚","\\circledcirc",!0),ka(xa,Na,Ta,"⊡","\\boxdot",!0),ka(xa,Ea,Ta,"△","\\bigtriangleup"),ka(xa,Ea,Ta,"▽","\\bigtriangledown"),ka(xa,Ea,Ta,"†","\\dagger"),ka(xa,Ea,Ta,"⋄","\\diamond"),ka(xa,Ea,Ta,"⋆","\\star"),ka(xa,Ea,Ta,"◃","\\triangleleft"),ka(xa,Ea,Ta,"▹","\\triangleright"),ka(xa,Ea,Oa,"{","\\{"),ka(La,Ea,Ha,"{","\\{"),ka(La,Ea,Ha,"{","\\textbraceleft"),ka(xa,Ea,Ia,"}","\\}"),ka(La,Ea,Ha,"}","\\}"),ka(La,Ea,Ha,"}","\\textbraceright"),ka(xa,Ea,Oa,"{","\\lbrace"),ka(xa,Ea,Ia,"}","\\rbrace"),ka(xa,Ea,Oa,"[","\\lbrack",!0),ka(La,Ea,Ha,"[","\\lbrack",!0),ka(xa,Ea,Ia,"]","\\rbrack",!0),ka(La,Ea,Ha,"]","\\rbrack",!0),ka(xa,Ea,Oa,"(","\\lparen",!0),ka(xa,Ea,Ia,")","\\rparen",!0),ka(La,Ea,Ha,"<","\\textless",!0),ka(La,Ea,Ha,">","\\textgreater",!0),ka(xa,Ea,Oa,"⌊","\\lfloor",!0),ka(xa,Ea,Ia,"⌋","\\rfloor",!0),ka(xa,Ea,Oa,"⌈","\\lceil",!0),ka(xa,Ea,Ia,"⌉","\\rceil",!0),ka(xa,Ea,Ha,"\\","\\backslash"),ka(xa,Ea,Ha,"∣","|"),ka(xa,Ea,Ha,"∣","\\vert"),ka(La,Ea,Ha,"|","\\textbar",!0),ka(xa,Ea,Ha,"∥","\\|"),ka(xa,Ea,Ha,"∥","\\Vert"),ka(La,Ea,Ha,"∥","\\textbardbl"),ka(La,Ea,Ha,"~","\\textasciitilde"),ka(La,Ea,Ha,"\\","\\textbackslash"),ka(La,Ea,Ha,"^","\\textasciicircum"),ka(xa,Ea,Fa,"↑","\\uparrow",!0),ka(xa,Ea,Fa,"⇑","\\Uparrow",!0),ka(xa,Ea,Fa,"↓","\\downarrow",!0),ka(xa,Ea,Fa,"⇓","\\Downarrow",!0),ka(xa,Ea,Fa,"↕","\\updownarrow",!0),ka(xa,Ea,Fa,"⇕","\\Updownarrow",!0),ka(xa,Ea,Ra,"∐","\\coprod"),ka(xa,Ea,Ra,"⋁","\\bigvee"),ka(xa,Ea,Ra,"⋀","\\bigwedge"),ka(xa,Ea,Ra,"⨄","\\biguplus"),ka(xa,Ea,Ra,"⋂","\\bigcap"),ka(xa,Ea,Ra,"⋃","\\bigcup"),ka(xa,Ea,Ra,"∫","\\int"),ka(xa,Ea,Ra,"∫","\\intop"),ka(xa,Ea,Ra,"∬","\\iint"),ka(xa,Ea,Ra,"∭","\\iiint"),ka(xa,Ea,Ra,"∏","\\prod"),ka(xa,Ea,Ra,"∑","\\sum"),ka(xa,Ea,Ra,"⨂","\\bigotimes"),ka(xa,Ea,Ra,"⨁","\\bigoplus"),ka(xa,Ea,Ra,"⨀","\\bigodot"),ka(xa,Ea,Ra,"∮","\\oint"),ka(xa,Ea,Ra,"∯","\\oiint"),ka(xa,Ea,Ra,"∰","\\oiiint"),ka(xa,Ea,Ra,"⨆","\\bigsqcup"),ka(xa,Ea,Ra,"∫","\\smallint"),ka(La,Ea,Aa,"…","\\textellipsis"),ka(xa,Ea,Aa,"…","\\mathellipsis"),ka(La,Ea,Aa,"…","\\ldots",!0),ka(xa,Ea,Aa,"…","\\ldots",!0),ka(xa,Ea,Aa,"⋯","\\@cdots",!0),ka(xa,Ea,Aa,"⋱","\\ddots",!0),ka(xa,Ea,Ha,"⋮","\\varvdots"),ka(xa,Ea,Da,"ˊ","\\acute"),ka(xa,Ea,Da,"ˋ","\\grave"),ka(xa,Ea,Da,"¨","\\ddot"),ka(xa,Ea,Da,"~","\\tilde"),ka(xa,Ea,Da,"ˉ","\\bar"),ka(xa,Ea,Da,"˘","\\breve"),ka(xa,Ea,Da,"ˇ","\\check"),ka(xa,Ea,Da,"^","\\hat"),ka(xa,Ea,Da,"⃗","\\vec"),ka(xa,Ea,Da,"˙","\\dot"),ka(xa,Ea,Da,"˚","\\mathring"),ka(xa,Ea,Ma,"","\\@imath"),ka(xa,Ea,Ma,"","\\@jmath"),ka(xa,Ea,Ha,"ı","ı"),ka(xa,Ea,Ha,"ȷ","ȷ"),ka(La,Ea,Ha,"ı","\\i",!0),ka(La,Ea,Ha,"ȷ","\\j",!0),ka(La,Ea,Ha,"ß","\\ss",!0),ka(La,Ea,Ha,"æ","\\ae",!0),ka(La,Ea,Ha,"œ","\\oe",!0),ka(La,Ea,Ha,"ø","\\o",!0),ka(La,Ea,Ha,"Æ","\\AE",!0),ka(La,Ea,Ha,"Œ","\\OE",!0),ka(La,Ea,Ha,"Ø","\\O",!0),ka(La,Ea,Da,"ˊ","\\'"),ka(La,Ea,Da,"ˋ","\\`"),ka(La,Ea,Da,"ˆ","\\^"),ka(La,Ea,Da,"˜","\\~"),ka(La,Ea,Da,"ˉ","\\="),ka(La,Ea,Da,"˘","\\u"),ka(La,Ea,Da,"˙","\\."),ka(La,Ea,Da,"¸","\\c"),ka(La,Ea,Da,"˚","\\r"),ka(La,Ea,Da,"ˇ","\\v"),ka(La,Ea,Da,"¨",'\\"'),ka(La,Ea,Da,"˝","\\H"),ka(La,Ea,Da,"◯","\\textcircled");var Va={"--":!0,"---":!0,"``":!0,"''":!0};ka(La,Ea,Ha,"–","--",!0),ka(La,Ea,Ha,"–","\\textendash"),ka(La,Ea,Ha,"—","---",!0),ka(La,Ea,Ha,"—","\\textemdash"),ka(La,Ea,Ha,"‘","`",!0),ka(La,Ea,Ha,"‘","\\textquoteleft"),ka(La,Ea,Ha,"’","'",!0),ka(La,Ea,Ha,"’","\\textquoteright"),ka(La,Ea,Ha,"“","``",!0),ka(La,Ea,Ha,"“","\\textquotedblleft"),ka(La,Ea,Ha,"”","''",!0),ka(La,Ea,Ha,"”","\\textquotedblright"),ka(xa,Ea,Ha,"°","\\degree",!0),ka(La,Ea,Ha,"°","\\degree"),ka(La,Ea,Ha,"°","\\textdegree",!0),ka(xa,Ea,Ha,"£","\\pounds"),ka(xa,Ea,Ha,"£","\\mathsterling",!0),ka(La,Ea,Ha,"£","\\pounds"),ka(La,Ea,Ha,"£","\\textsterling",!0),ka(xa,Na,Ha,"✠","\\maltese"),ka(La,Na,Ha,"✠","\\maltese");for(var Wa=0;Wa<14;Wa++){var za='0123456789/@."'.charAt(Wa);ka(xa,Ea,Ha,za,za)}for(var Ua=0;Ua<25;Ua++){var ja='0123456789!@*()-=+";:?/.,'.charAt(Ua);ka(La,Ea,Ha,ja,ja)}for(var Ka="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",qa=0;qa<52;qa++){var $a=Ka.charAt(qa);ka(xa,Ea,Ma,$a,$a),ka(La,Ea,Ha,$a,$a)}ka(xa,Na,Ha,"C","ℂ"),ka(La,Na,Ha,"C","ℂ"),ka(xa,Na,Ha,"H","ℍ"),ka(La,Na,Ha,"H","ℍ"),ka(xa,Na,Ha,"N","ℕ"),ka(La,Na,Ha,"N","ℕ"),ka(xa,Na,Ha,"P","ℙ"),ka(La,Na,Ha,"P","ℙ"),ka(xa,Na,Ha,"Q","ℚ"),ka(La,Na,Ha,"Q","ℚ"),ka(xa,Na,Ha,"R","ℝ"),ka(La,Na,Ha,"R","ℝ"),ka(xa,Na,Ha,"Z","ℤ"),ka(La,Na,Ha,"Z","ℤ"),ka(xa,Ea,Ma,"h","ℎ"),ka(La,Ea,Ma,"h","ℎ");for(var Ga="",Qa=0;Qa<52;Qa++){var Ya=Ka.charAt(Qa);ka(xa,Ea,Ma,Ya,Ga=String.fromCharCode(55349,56320+Qa)),ka(La,Ea,Ha,Ya,Ga),ka(xa,Ea,Ma,Ya,Ga=String.fromCharCode(55349,56372+Qa)),ka(La,Ea,Ha,Ya,Ga),ka(xa,Ea,Ma,Ya,Ga=String.fromCharCode(55349,56424+Qa)),ka(La,Ea,Ha,Ya,Ga),ka(xa,Ea,Ma,Ya,Ga=String.fromCharCode(55349,56580+Qa)),ka(La,Ea,Ha,Ya,Ga),ka(xa,Ea,Ma,Ya,Ga=String.fromCharCode(55349,56736+Qa)),ka(La,Ea,Ha,Ya,Ga),ka(xa,Ea,Ma,Ya,Ga=String.fromCharCode(55349,56788+Qa)),ka(La,Ea,Ha,Ya,Ga),ka(xa,Ea,Ma,Ya,Ga=String.fromCharCode(55349,56840+Qa)),ka(La,Ea,Ha,Ya,Ga),ka(xa,Ea,Ma,Ya,Ga=String.fromCharCode(55349,56944+Qa)),ka(La,Ea,Ha,Ya,Ga),Qa<26&&(ka(xa,Ea,Ma,Ya,Ga=String.fromCharCode(55349,56632+Qa)),ka(La,Ea,Ha,Ya,Ga),ka(xa,Ea,Ma,Ya,Ga=String.fromCharCode(55349,56476+Qa)),ka(La,Ea,Ha,Ya,Ga))}ka(xa,Ea,Ma,"k",Ga=String.fromCharCode(55349,56668)),ka(La,Ea,Ha,"k",Ga);for(var Za=0;Za<10;Za++){var Xa=Za.toString();ka(xa,Ea,Ma,Xa,Ga=String.fromCharCode(55349,57294+Za)),ka(La,Ea,Ha,Xa,Ga),ka(xa,Ea,Ma,Xa,Ga=String.fromCharCode(55349,57314+Za)),ka(La,Ea,Ha,Xa,Ga),ka(xa,Ea,Ma,Xa,Ga=String.fromCharCode(55349,57324+Za)),ka(La,Ea,Ha,Xa,Ga),ka(xa,Ea,Ma,Xa,Ga=String.fromCharCode(55349,57334+Za)),ka(La,Ea,Ha,Xa,Ga)}for(var Ja=0;Ja<3;Ja++){var el="ÐÞþ".charAt(Ja);ka(xa,Ea,Ma,el,el),ka(La,Ea,Ha,el,el)}var tl=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],il=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],nl=function(e,t,i){return Sa[i][e]&&Sa[i][e].replace&&(e=Sa[i][e].replace),{value:e,metrics:Zr(e,t,i)}},ol=function(e,t,i,n,o){var s,r=nl(e,t,i),a=r.metrics;if(e=r.value,a){var l=a.italic;("text"===i||n&&"mathit"===n.font)&&(l=0),s=new fa(e,a.height,a.depth,l,a.skew,a.width,o)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+i+"'"),s=new fa(e,0,0,0,0,0,o);if(n){s.maxFontSize=n.sizeMultiplier,n.style.isTight()&&s.classes.push("mtight");var c=n.getColor();c&&(s.style.color=c)}return s},sl=(e,t)=>{if(la(e.classes)!==la(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var i=e.classes[0];if("mbin"===i||"mord"===i)return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var o in t.style)if(t.style.hasOwnProperty(o)&&e.style[o]!==t.style[o])return!1;return!0},rl=function(e){for(var t=0,i=0,n=0,o=0;ot&&(t=s.height),s.depth>i&&(i=s.depth),s.maxFontSize>n&&(n=s.maxFontSize)}e.height=t,e.depth=i,e.maxFontSize=n},al=function(e,t,i,n){var o=new ua(e,t,i,n);return rl(o),o},ll=(e,t,i,n)=>new ua(e,t,i,n),cl=function(e){var t=new $r(e);return rl(t),t},hl=function(e,t,i){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===i?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},dl={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},ul={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},gl={fontMap:dl,makeSymbol:ol,mathsym:function(e,t,i,n){return void 0===n&&(n=[]),"boldsymbol"===i.font&&nl(e,"Main-Bold",t).metrics?ol(e,"Main-Bold",t,i,n.concat(["mathbf"])):"\\"===e||"main"===Sa[t][e].font?ol(e,"Main-Regular",t,i,n):ol(e,"AMS-Regular",t,i,n.concat(["amsrm"]))},makeSpan:al,makeSvgSpan:ll,makeLineSpan:function(e,t,i){var n=al([e],[],t);return n.height=Math.max(i||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=aa(n.height),n.maxFontSize=1,n},makeAnchor:function(e,t,i,n){var o=new ga(e,t,i,n);return rl(o),o},makeFragment:cl,wrapFragment:function(e,t){return e instanceof $r?al([],[e],t):e},makeVList:function(e,t){for(var{children:i,depth:n}=function(e){if("individualShift"===e.positionType){for(var t=e.children,i=[t[0]],n=-t[0].shift-t[0].elem.depth,o=n,s=1;s{var i=al(["mspace"],[],t),n=ra(e,t);return i.style.marginRight=aa(n),i},staticSvg:function(e,t){var[i,n,o]=ul[e],s=new va(i),r=new _a([s],{width:aa(n),height:aa(o),style:"width:"+aa(n),viewBox:"0 0 "+1e3*n+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),a=ll(["overlay"],[r],t);return a.height=o,a.style.height=aa(o),a.style.width=aa(n),a},svgData:ul,tryCombineChars:e=>{for(var t=0;t{var i=t.classes[0],n=e.classes[0];"mbin"===i&&kr(Nl,n)?t.classes[0]="mord":"mbin"===n&&kr(El,i)&&(e.classes[0]="mord")}),{node:h},d,u),Al(o,((e,t)=>{var i=Ol(t),n=Ol(e),o=i&&n?e.hasClass("mtight")?vl[i][n]:_l[i][n]:null;if(o)return gl.makeGlue(o,l)}),{node:h},d,u),o},Al=function e(t,i,n,o,s){o&&t.push(o);for(var r=0;ri=>{t.splice(e+1,0,i),r++})(r)}}o&&t.pop()},Ml=function(e){return e instanceof $r||e instanceof ga||e instanceof ua&&e.hasClass("enclosing")?e:null},Rl=function e(t,i){var n=Ml(t);if(n){var o=n.children;if(o.length){if("right"===i)return e(o[o.length-1],"right");if("left"===i)return e(o[0],"left")}}return t},Ol=function(e,t){return e?(t&&(e=Rl(e,t)),Tl[e.classes[0]]||null):null},Pl=function(e,t){var i=["nulldelimiter"].concat(e.baseSizingClasses());return Ll(t.concat(i))},Fl=function(e,t,i){if(!e)return Ll();if(Cl[e.type]){var n=Cl[e.type](e,t);if(i&&t.size!==i.size){n=Ll(t.sizingClasses(i),[n],t);var o=t.sizeMultiplier/i.sizeMultiplier;n.height*=o,n.depth*=o}return n}throw new br("Got group of unknown type: '"+e.type+"'")};function Bl(e,t){var i=Ll(["base"],e,t),n=Ll(["strut"]);return n.style.height=aa(i.height+i.depth),i.depth&&(n.style.verticalAlign=aa(-i.depth)),i.children.unshift(n),i}function Hl(e,t){var i=null;1===e.length&&"tag"===e[0].type&&(i=e[0].tag,e=e[0].body);var n,o=Il(e,t,"root");2===o.length&&o[1].hasClass("tag")&&(n=o.pop());for(var s,r=[],a=[],l=0;l0&&(r.push(Bl(a,t)),a=[]),r.push(o[l]));a.length>0&&r.push(Bl(a,t)),i?((s=Bl(Il(i,t,!0))).classes=["tag"],r.push(s)):n&&r.push(n);var h=Ll(["katex-html"],r);if(h.setAttribute("aria-hidden","true"),s){var d=s.children[0];d.style.height=aa(h.height+h.depth),h.depth&&(d.style.verticalAlign=aa(-h.depth))}return h}function Vl(e){return new $r(e)}class Wl{constructor(e,t,i){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=i||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=la(this.classes));for(var i=0;i0&&(e+=' class ="'+Lr(la(this.classes))+'"'),e+=">";for(var i=0;i"}toText(){return this.children.map((e=>e.toText())).join("")}}class zl{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Lr(this.toText())}toText(){return this.text}}var Ul={MathNode:Wl,TextNode:zl,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?"  ":e>=-.05556&&e<=-.05555?" ⁣":e>=-.1667&&e<=-.1666?" ⁣":e>=-.2223&&e<=-.2222?" ⁣":e>=-.2778&&e<=-.2777?" ⁣":null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",aa(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}},newDocumentFragment:Vl},jl=function(e,t,i){return!Sa[t][e]||!Sa[t][e].replace||55349===e.charCodeAt(0)||Va.hasOwnProperty(e)&&i&&(i.fontFamily&&"tt"===i.fontFamily.slice(4,6)||i.font&&"tt"===i.font.slice(4,6))||(e=Sa[t][e].replace),new Ul.TextNode(e)},Kl=function(e){return 1===e.length?e[0]:new Ul.MathNode("mrow",e)},ql=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var i=t.font;if(!i||"mathnormal"===i)return null;var n=e.mode;if("mathit"===i)return"italic";if("boldsymbol"===i)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===i)return"bold";if("mathbb"===i)return"double-struck";if("mathfrak"===i)return"fraktur";if("mathscr"===i||"mathcal"===i)return"script";if("mathsf"===i)return"sans-serif";if("mathtt"===i)return"monospace";var o=e.text;return kr(["\\imath","\\jmath"],o)?null:(Sa[n][o]&&Sa[n][o].replace&&(o=Sa[n][o].replace),Zr(o,gl.fontMap[i].fontName,n)?gl.fontMap[i].variant:null)},$l=function(e,t,i){if(1===e.length){var n=Ql(e[0],t);return i&&n instanceof Wl&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var o,s=[],r=0;r0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),s.pop())}}}s.push(a),o=a}return s},Gl=function(e,t,i){return Kl($l(e,t,i))},Ql=function(e,t){if(!e)return new Ul.MathNode("mrow");if(yl[e.type])return yl[e.type](e,t);throw new br("Got group of unknown type: '"+e.type+"'")};function Yl(e,t,i,n,o){var s,r=$l(e,i);s=1===r.length&&r[0]instanceof Wl&&kr(["mrow","mtable"],r[0].type)?r[0]:new Ul.MathNode("mrow",r);var a=new Ul.MathNode("annotation",[new Ul.TextNode(t)]);a.setAttribute("encoding","application/x-tex");var l=new Ul.MathNode("semantics",[s,a]),c=new Ul.MathNode("math",[l]);return c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&c.setAttribute("display","block"),gl.makeSpan([o?"katex":"katex-mathml"],[c])}var Zl=function(e){return new ia({style:e.displayMode?zr.DISPLAY:zr.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Xl=function(e,t){if(t.displayMode){var i=["katex-display"];t.leqno&&i.push("leqno"),t.fleqn&&i.push("fleqn"),e=gl.makeSpan(i,[e])}return e},Jl={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},ec={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},tc=function(e){var t=new Ul.MathNode("mo",[new Ul.TextNode(Jl[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},ic=function(e,t){var{span:i,minWidth:n,height:o}=function(){var i=4e5,n=e.label.slice(1);if(kr(["widehat","widecheck","widetilde","utilde"],n)){var o,s,r,a="ordgroup"===(g=e.base).type?g.body.length:1;if(a>5)"widehat"===n||"widecheck"===n?(o=420,i=2364,r=.42,s=n+"4"):(o=312,i=2340,r=.34,s="tilde4");else{var l=[1,1,2,2,3,3][a];"widehat"===n||"widecheck"===n?(i=[0,1062,2364,2364,2364][l],o=[0,239,300,360,420][l],r=[0,.24,.3,.3,.36,.42][l],s=n+l):(i=[0,600,1033,2339,2340][l],o=[0,260,286,306,312][l],r=[0,.26,.286,.3,.306,.34][l],s="tilde"+l)}var c=new va(s),h=new _a([c],{width:"100%",height:aa(r),viewBox:"0 0 "+i+" "+o,preserveAspectRatio:"none"});return{span:gl.makeSvgSpan([],[h],t),minWidth:0,height:r}}var d,u,g,p=[],m=ec[n],[f,_,v]=m,b=v/1e3,C=f.length;if(1===C)d=["hide-tail"],u=[m[3]];else if(2===C)d=["halfarrow-left","halfarrow-right"],u=["xMinYMin","xMaxYMin"];else{if(3!==C)throw new Error("Correct katexImagesData or update code here to support\n "+C+" children.");d=["brace-left","brace-center","brace-right"],u=["xMinYMin","xMidYMin","xMaxYMin"]}for(var y=0;y0&&(i.style.minWidth=aa(n)),i};function nc(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function oc(e){var t=sc(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function sc(e){return e&&("atom"===e.type||wa.hasOwnProperty(e.type))?e:null}var rc=(e,t)=>{var i,n,o;e&&"supsub"===e.type?(i=(n=nc(e.base,"accent")).base,e.base=i,o=function(e){if(e instanceof ua)return e;throw new Error("Expected span but got "+String(e)+".")}(Fl(e,t)),e.base=n):i=(n=nc(e,"accent")).base;var s=Fl(i,t.havingCrampedStyle()),r=0;if(n.isShifty&&Dr(i)){var a=Nr(i);r=Ca(Fl(a,t.havingCrampedStyle())).skew}var l,c="\\c"===n.label,h=c?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight);if(n.isStretchy)l=ic(n,t),l=gl.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:l,wrapperClasses:["svg-align"],wrapperStyle:r>0?{width:"calc(100% - "+aa(2*r)+")",marginLeft:aa(2*r)}:void 0}]},t);else{var d,u;"\\vec"===n.label?(d=gl.staticSvg("vec",t),u=gl.svgData.vec[1]):((d=Ca(d=gl.makeOrd({mode:n.mode,text:n.label},t,"textord"))).italic=0,u=d.width,c&&(h+=d.depth)),l=gl.makeSpan(["accent-body"],[d]);var g="\\textcircled"===n.label;g&&(l.classes.push("accent-full"),h=s.height);var p=r;g||(p-=u/2),l.style.left=aa(p),"\\textcircled"===n.label&&(l.style.top=".2em"),l=gl.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-h},{type:"elem",elem:l}]},t)}var m=gl.makeSpan(["mord","accent"],[l],t);return o?(o.children[0]=m,o.height=Math.max(m.height,o.height),o.classes[0]="mord",o):m},ac=(e,t)=>{var i=e.isStretchy?tc(e.label):new Ul.MathNode("mo",[jl(e.label,e.mode)]),n=new Ul.MathNode("mover",[Ql(e.base,t),i]);return n.setAttribute("accent","true"),n},lc=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((e=>"\\"+e)).join("|"));wl({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var i=kl(t[0]),n=!lc.test(e.funcName),o=!n||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:o,base:i}},htmlBuilder:rc,mathmlBuilder:ac}),wl({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var i=t[0],n=e.parser.mode;return"math"===n&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:i}},htmlBuilder:rc,mathmlBuilder:ac}),wl({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:i,funcName:n}=e,o=t[0];return{type:"accentUnder",mode:i.mode,label:n,base:o}},htmlBuilder:(e,t)=>{var i=Fl(e.base,t),n=ic(e,t),o="\\utilde"===e.label?.12:0,s=gl.makeVList({positionType:"top",positionData:i.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:i}]},t);return gl.makeSpan(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var i=tc(e.label),n=new Ul.MathNode("munder",[Ql(e.base,t),i]);return n.setAttribute("accentunder","true"),n}});var cc=e=>{var t=new Ul.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};wl({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,i){var{parser:n,funcName:o}=e;return{type:"xArrow",mode:n.mode,label:o,body:t[0],below:i[0]}},htmlBuilder(e,t){var i,n=t.style,o=t.havingStyle(n.sup()),s=gl.wrapFragment(Fl(e.body,o,t),t),r="\\x"===e.label.slice(0,2)?"x":"cd";s.classes.push(r+"-arrow-pad"),e.below&&(o=t.havingStyle(n.sub()),(i=gl.wrapFragment(Fl(e.below,o,t),t)).classes.push(r+"-arrow-pad"));var a,l=ic(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,h=-t.fontMetrics().axisHeight-.5*l.height-.111;if((s.depth>.25||"\\xleftequilibrium"===e.label)&&(h-=s.depth),i){var d=-t.fontMetrics().axisHeight+i.height+.5*l.height+.111;a=gl.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:h},{type:"elem",elem:l,shift:c},{type:"elem",elem:i,shift:d}]},t)}else a=gl.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:h},{type:"elem",elem:l,shift:c}]},t);return a.children[0].children[0].children[1].classes.push("svg-align"),gl.makeSpan(["mrel","x-arrow"],[a],t)},mathmlBuilder(e,t){var i,n=tc(e.label);if(n.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var o=cc(Ql(e.body,t));if(e.below){var s=cc(Ql(e.below,t));i=new Ul.MathNode("munderover",[n,s,o])}else i=new Ul.MathNode("mover",[n,o])}else if(e.below){var r=cc(Ql(e.below,t));i=new Ul.MathNode("munder",[n,r])}else i=cc(),i=new Ul.MathNode("mover",[n,i]);return i}});var hc=gl.makeSpan;function dc(e,t){var i=Il(e.body,t,!0);return hc([e.mclass],i,t)}function uc(e,t){var i,n=$l(e.body,t);return"minner"===e.mclass?i=new Ul.MathNode("mpadded",n):"mord"===e.mclass?e.isCharacterBox?(i=n[0]).type="mi":i=new Ul.MathNode("mi",n):(e.isCharacterBox?(i=n[0]).type="mo":i=new Ul.MathNode("mo",n),"mbin"===e.mclass?(i.attributes.lspace="0.22em",i.attributes.rspace="0.22em"):"mpunct"===e.mclass?(i.attributes.lspace="0em",i.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(i.attributes.lspace="0em",i.attributes.rspace="0em"):"minner"===e.mclass&&(i.attributes.lspace="0.0556em",i.attributes.width="+0.1111em")),i}wl({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:i,funcName:n}=e,o=t[0];return{type:"mclass",mode:i.mode,mclass:"m"+n.slice(5),body:xl(o),isCharacterBox:Dr(o)}},htmlBuilder:dc,mathmlBuilder:uc});var gc=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};wl({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:i}=e;return{type:"mclass",mode:i.mode,mclass:gc(t[0]),body:xl(t[1]),isCharacterBox:Dr(t[1])}}}),wl({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var i,{parser:n,funcName:o}=e,s=t[1],r=t[0];i="\\stackrel"!==o?gc(s):"mrel";var a={type:"op",mode:s.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==o,body:xl(s)},l={type:"supsub",mode:r.mode,base:a,sup:"\\underset"===o?null:r,sub:"\\underset"===o?r:null};return{type:"mclass",mode:n.mode,mclass:i,body:[l],isCharacterBox:Dr(l)}},htmlBuilder:dc,mathmlBuilder:uc}),wl({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:i}=e;return{type:"pmb",mode:i.mode,mclass:gc(t[0]),body:xl(t[0])}},htmlBuilder(e,t){var i=Il(e.body,t,!0),n=gl.makeSpan([e.mclass],i,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var i=$l(e.body,t),n=new Ul.MathNode("mstyle",i);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var pc={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},mc=e=>"textord"===e.type&&"@"===e.text;function fc(e,t,i){var n=pc[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return i.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var o={type:"atom",text:n,mode:"math",family:"rel"},s={type:"ordgroup",mode:"math",body:[i.callFunction("\\\\cdleft",[t[0]],[]),i.callFunction("\\Big",[o],[]),i.callFunction("\\\\cdright",[t[1]],[])]};return i.callFunction("\\\\cdparent",[s],[]);case"\\\\cdlongequal":return i.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return i.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}wl({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:i,funcName:n}=e;return{type:"cdlabel",mode:i.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var i=t.havingStyle(t.style.sup()),n=gl.wrapFragment(Fl(e.label,i,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=aa(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var i=new Ul.MathNode("mrow",[Ql(e.label,t)]);return(i=new Ul.MathNode("mpadded",[i])).setAttribute("width","0"),"left"===e.side&&i.setAttribute("lspace","-1width"),i.setAttribute("voffset","0.7em"),(i=new Ul.MathNode("mstyle",[i])).setAttribute("displaystyle","false"),i.setAttribute("scriptlevel","1"),i}}),wl({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:i}=e;return{type:"cdlabelparent",mode:i.mode,fragment:t[0]}},htmlBuilder(e,t){var i=gl.wrapFragment(Fl(e.fragment,t),t);return i.classes.push("cd-vert-arrow"),i},mathmlBuilder:(e,t)=>new Ul.MathNode("mrow",[Ql(e.fragment,t)])}),wl({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:i}=e,n=nc(t[0],"ordgroup").body,o="",s=0;s=1114111)throw new br("\\@char with invalid code point "+o);return a<=65535?r=String.fromCharCode(a):(a-=65536,r=String.fromCharCode(55296+(a>>10),56320+(1023&a))),{type:"textord",mode:i.mode,text:r}}});var _c=(e,t)=>{var i=Il(e.body,t.withColor(e.color),!1);return gl.makeFragment(i)},vc=(e,t)=>{var i=$l(e.body,t.withColor(e.color)),n=new Ul.MathNode("mstyle",i);return n.setAttribute("mathcolor",e.color),n};wl({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:i}=e,n=nc(t[0],"color-token").color,o=t[1];return{type:"color",mode:i.mode,color:n,body:xl(o)}},htmlBuilder:_c,mathmlBuilder:vc}),wl({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:i,breakOnTokenText:n}=e,o=nc(t[0],"color-token").color;i.gullet.macros.set("\\current@color",o);var s=i.parseExpression(!0,n);return{type:"color",mode:i.mode,color:o,body:s}},htmlBuilder:_c,mathmlBuilder:vc}),wl({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,i){var{parser:n}=e,o="["===n.gullet.future().text?n.parseSizeGroup(!0):null,s=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:s,size:o&&nc(o,"size").value}},htmlBuilder(e,t){var i=gl.makeSpan(["mspace"],[],t);return e.newLine&&(i.classes.push("newline"),e.size&&(i.style.marginTop=aa(ra(e.size,t)))),i},mathmlBuilder(e,t){var i=new Ul.MathNode("mspace");return e.newLine&&(i.setAttribute("linebreak","newline"),e.size&&i.setAttribute("height",aa(ra(e.size,t)))),i}});var bc={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Cc=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new br("Expected a control sequence",e);return t},yc=(e,t,i,n)=>{var o=e.gullet.macros.get(i.text);null==o&&(i.noexpand=!0,o={tokens:[i],numArgs:0,unexpandable:!e.gullet.isExpandable(i.text)}),e.gullet.macros.set(t,o,n)};wl({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:i}=e;t.consumeSpaces();var n=t.fetch();if(bc[n.text])return"\\global"!==i&&"\\\\globallong"!==i||(n.text=bc[n.text]),nc(t.parseFunction(),"internal");throw new br("Invalid token after macro prefix",n)}}),wl({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:i}=e,n=t.gullet.popToken(),o=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new br("Expected a control sequence",n);for(var s,r=0,a=[[]];"{"!==t.gullet.future().text;)if("#"===(n=t.gullet.popToken()).text){if("{"===t.gullet.future().text){s=t.gullet.future(),a[r].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new br('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==r+1)throw new br('Argument number "'+n.text+'" out of order');r++,a.push([])}else{if("EOF"===n.text)throw new br("Expected a macro definition");a[r].push(n.text)}var{tokens:l}=t.gullet.consumeArg();return s&&l.unshift(s),"\\edef"!==i&&"\\xdef"!==i||(l=t.gullet.expandTokens(l)).reverse(),t.gullet.macros.set(o,{tokens:l,numArgs:r,delimiters:a},i===bc[i]),{type:"internal",mode:t.mode}}}),wl({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:i}=e,n=Cc(t.gullet.popToken());t.gullet.consumeSpaces();var o=(e=>{var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t})(t);return yc(t,n,o,"\\\\globallet"===i),{type:"internal",mode:t.mode}}}),wl({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:i}=e,n=Cc(t.gullet.popToken()),o=t.gullet.popToken(),s=t.gullet.popToken();return yc(t,n,s,"\\\\globalfuture"===i),t.gullet.pushToken(s),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});var wc=function(e,t,i){var n=Zr(Sa.math[e]&&Sa.math[e].replace||e,t,i);if(!n)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return n},Sc=function(e,t,i,n){var o=i.havingBaseStyle(t),s=gl.makeSpan(n.concat(o.sizingClasses(i)),[e],i),r=o.sizeMultiplier/i.sizeMultiplier;return s.height*=r,s.depth*=r,s.maxFontSize=o.sizeMultiplier,s},kc=function(e,t,i){var n=t.havingBaseStyle(i),o=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=aa(o),e.height-=o,e.depth+=o},xc=function(e,t,i,n,o,s){var r=function(e,t,i,n){return gl.makeSymbol(e,"Size"+t+"-Regular",i,n)}(e,t,o,n),a=Sc(gl.makeSpan(["delimsizing","size"+t],[r],n),zr.TEXT,n,s);return i&&kc(a,n,zr.TEXT),a},Lc=function(e,t,i){return{type:"elem",elem:gl.makeSpan(["delimsizinginner","Size1-Regular"===t?"delim-size1":"delim-size4"],[gl.makeSpan([],[gl.makeSymbol(e,t,i)])])}},Ec=function(e,t,i){var n=Gr["Size4-Regular"][e.charCodeAt(0)]?Gr["Size4-Regular"][e.charCodeAt(0)][4]:Gr["Size1-Regular"][e.charCodeAt(0)][4],o=new va("inner",function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),s=new _a([o],{width:aa(n),height:aa(t),style:"width:"+aa(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),r=gl.makeSvgSpan([],[s],i);return r.height=t,r.style.height=aa(t),r.style.width=aa(n),{type:"elem",elem:r}},Nc={type:"kern",size:-.008},Dc=["|","\\lvert","\\rvert","\\vert"],Tc=["\\|","\\lVert","\\rVert","\\Vert"],Ic=function(e,t,i,n,o,s){var r,a,l,c,h="",d=0;r=l=c=e,a=null;var u="Size1-Regular";"\\uparrow"===e?l=c="⏐":"\\Uparrow"===e?l=c="‖":"\\downarrow"===e?r=l="⏐":"\\Downarrow"===e?r=l="‖":"\\updownarrow"===e?(r="\\uparrow",l="⏐",c="\\downarrow"):"\\Updownarrow"===e?(r="\\Uparrow",l="‖",c="\\Downarrow"):kr(Dc,e)?(l="∣",h="vert",d=333):kr(Tc,e)?(l="∥",h="doublevert",d=556):"["===e||"\\lbrack"===e?(r="⎡",l="⎢",c="⎣",u="Size4-Regular",h="lbrack",d=667):"]"===e||"\\rbrack"===e?(r="⎤",l="⎥",c="⎦",u="Size4-Regular",h="rbrack",d=667):"\\lfloor"===e||"⌊"===e?(l=r="⎢",c="⎣",u="Size4-Regular",h="lfloor",d=667):"\\lceil"===e||"⌈"===e?(r="⎡",l=c="⎢",u="Size4-Regular",h="lceil",d=667):"\\rfloor"===e||"⌋"===e?(l=r="⎥",c="⎦",u="Size4-Regular",h="rfloor",d=667):"\\rceil"===e||"⌉"===e?(r="⎤",l=c="⎥",u="Size4-Regular",h="rceil",d=667):"("===e||"\\lparen"===e?(r="⎛",l="⎜",c="⎝",u="Size4-Regular",h="lparen",d=875):")"===e||"\\rparen"===e?(r="⎞",l="⎟",c="⎠",u="Size4-Regular",h="rparen",d=875):"\\{"===e||"\\lbrace"===e?(r="⎧",a="⎨",c="⎩",l="⎪",u="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(r="⎫",a="⎬",c="⎭",l="⎪",u="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(r="⎧",c="⎩",l="⎪",u="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(r="⎫",c="⎭",l="⎪",u="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(r="⎧",c="⎭",l="⎪",u="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(r="⎫",c="⎩",l="⎪",u="Size4-Regular");var g=wc(r,u,o),p=g.height+g.depth,m=wc(l,u,o),f=m.height+m.depth,_=wc(c,u,o),v=_.height+_.depth,b=0,C=1;if(null!==a){var y=wc(a,u,o);b=y.height+y.depth,C=2}var w=p+v+b,S=w+Math.max(0,Math.ceil((t-w)/(C*f)))*C*f,k=n.fontMetrics().axisHeight;i&&(k*=n.sizeMultiplier);var x=S/2-k,L=[];if(h.length>0){var E=S-p-v,N=Math.round(1e3*S),D=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}}(h,Math.round(1e3*E)),T=new va(h,D),I=(d/1e3).toFixed(3)+"em",A=(N/1e3).toFixed(3)+"em",M=new _a([T],{width:I,height:A,viewBox:"0 0 "+d+" "+N}),R=gl.makeSvgSpan([],[M],n);R.height=N/1e3,R.style.width=I,R.style.height=A,L.push({type:"elem",elem:R})}else{if(L.push(Lc(c,u,o)),L.push(Nc),null===a){var O=S-p-v+.016;L.push(Ec(l,O,n))}else{var P=(S-p-v-b)/2+.016;L.push(Ec(l,P,n)),L.push(Nc),L.push(Lc(a,u,o)),L.push(Nc),L.push(Ec(l,P,n))}L.push(Nc),L.push(Lc(r,u,o))}var F=n.havingBaseStyle(zr.TEXT),B=gl.makeVList({positionType:"bottom",positionData:x,children:L},F);return Sc(gl.makeSpan(["delimsizing","mult"],[B],F),zr.TEXT,n,s)},Ac=.08,Mc=function(e,t,i,n,o){var s=function(e,t,i){t*=1e3;var n="";switch(e){case"sqrtMain":n=function(e,t){return"M95,"+(622+e+80)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" 80h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize1":n=function(e,t){return"M263,"+(601+e+80)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" 80h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize2":n=function(e,t){return"M983 "+(10+e+80)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" 80h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize3":n=function(e,t){return"M424,"+(2398+e+80)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" 80\nh400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize4":n=function(e,t){return"M473,"+(2713+e+80)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" 80h400000v"+(40+e)+"H1017.7z"}(t);break;case"sqrtTall":n=function(e,t,i){return"M702 "+(e+80)+"H400000"+(40+e)+"\nH742v"+(i-54-80-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 80H400000v"+(40+e)+"H742z"}(t,0,i)}return n}(e,n,i),r=new va(e,s),a=new _a([r],{width:"400em",height:aa(t),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return gl.makeSvgSpan(["hide-tail"],[a],o)},Rc=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Oc=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Pc=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Fc=[0,1.2,1.8,2.4,3],Bc=[{type:"small",style:zr.SCRIPTSCRIPT},{type:"small",style:zr.SCRIPT},{type:"small",style:zr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Hc=[{type:"small",style:zr.SCRIPTSCRIPT},{type:"small",style:zr.SCRIPT},{type:"small",style:zr.TEXT},{type:"stack"}],Vc=[{type:"small",style:zr.SCRIPTSCRIPT},{type:"small",style:zr.SCRIPT},{type:"small",style:zr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Wc=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},zc=function(e,t,i,n){for(var o=Math.min(2,3-n.style.size);ot)return i[o]}return i[i.length-1]},Uc=function(e,t,i,n,o,s){var r;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),r=kr(Pc,e)?Bc:kr(Rc,e)?Vc:Hc;var a=zc(e,t,r,n);return"small"===a.type?function(e,t,i,n,o,s){var r=gl.makeSymbol(e,"Main-Regular",o,n),a=Sc(r,t,n,s);return i&&kc(a,n,t),a}(e,a.style,i,n,o,s):"large"===a.type?xc(e,a.size,i,n,o,s):Ic(e,t,i,n,o,s)},jc={sqrtImage:function(e,t){var i,n,o=t.havingBaseSizing(),s=zc("\\surd",e*o.sizeMultiplier,Vc,o),r=o.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,c=0,h=0;return"small"===s.type?(e<1?r=1:e<1.4&&(r=.7),c=(1+a)/r,(i=Mc("sqrtMain",l=(1+a+Ac)/r,h=1e3+1e3*a+80,a,t)).style.minWidth="0.853em",n=.833/r):"large"===s.type?(h=1080*Fc[s.size],c=(Fc[s.size]+a)/r,l=(Fc[s.size]+a+Ac)/r,(i=Mc("sqrtSize"+s.size,l,h,a,t)).style.minWidth="1.02em",n=1/r):(l=e+a+Ac,c=e+a,h=Math.floor(1e3*e+a)+80,(i=Mc("sqrtTall",l,h,a,t)).style.minWidth="0.742em",n=1.056),i.height=c,i.style.height=aa(l),{span:i,advanceWidth:n,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*r}},sizedDelim:function(e,t,i,n,o){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),kr(Rc,e)||kr(Pc,e))return xc(e,t,!1,i,n,o);if(kr(Oc,e))return Ic(e,Fc[t],!1,i,n,o);throw new br("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:Fc,customSizedDelim:Uc,leftRightDelim:function(e,t,i,n,o,s){var r=n.fontMetrics().axisHeight*n.sizeMultiplier,a=5/n.fontMetrics().ptPerEm,l=Math.max(t-r,i+r),c=Math.max(l/500*901,2*l-a);return Uc(e,c,!0,n,o,s)}},Kc={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},qc=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function $c(e,t){var i=sc(e);if(i&&kr(qc,i.text))return i;throw new br(i?"Invalid delimiter '"+i.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function Gc(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}wl({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var i=$c(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Kc[e.funcName].size,mclass:Kc[e.funcName].mclass,delim:i.text}},htmlBuilder:(e,t)=>"."===e.delim?gl.makeSpan([e.mclass]):jc.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(jl(e.delim,e.mode));var i=new Ul.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?i.setAttribute("fence","true"):i.setAttribute("fence","false"),i.setAttribute("stretchy","true");var n=aa(jc.sizeToMaxHeight[e.size]);return i.setAttribute("minsize",n),i.setAttribute("maxsize",n),i}}),wl({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var i=e.parser.gullet.macros.get("\\current@color");if(i&&"string"!=typeof i)throw new br("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:$c(t[0],e).text,color:i}}}),wl({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var i=$c(t[0],e),n=e.parser;++n.leftrightDepth;var o=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var s=nc(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:o,left:i.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{Gc(e);for(var i,n,o=Il(e.body,t,!0,["mopen","mclose"]),s=0,r=0,a=!1,l=0;l{Gc(e);var i=$l(e.body,t);if("."!==e.left){var n=new Ul.MathNode("mo",[jl(e.left,e.mode)]);n.setAttribute("fence","true"),i.unshift(n)}if("."!==e.right){var o=new Ul.MathNode("mo",[jl(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),i.push(o)}return Kl(i)}}),wl({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var i=$c(t[0],e);if(!e.parser.leftrightDepth)throw new br("\\middle without preceding \\left",i);return{type:"middle",mode:e.parser.mode,delim:i.text}},htmlBuilder:(e,t)=>{var i;if("."===e.delim)i=Pl(t,[]);else{i=jc.sizedDelim(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};i.isMiddle=n}return i},mathmlBuilder:(e,t)=>{var i="\\vert"===e.delim||"|"===e.delim?jl("|","text"):jl(e.delim,e.mode),n=new Ul.MathNode("mo",[i]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var Qc=(e,t)=>{var i,n,o=gl.wrapFragment(Fl(e.body,t),t),s=e.label.slice(1),r=t.sizeMultiplier,a=0,l=Dr(e.body);if("sout"===s)(i=gl.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/r,a=-.5*t.fontMetrics().xHeight;else if("phase"===s){var c=ra({number:.6,unit:"pt"},t),h=ra({number:.35,unit:"ex"},t);r/=t.havingBaseSizing().sizeMultiplier;var d=o.height+o.depth+c+h;o.style.paddingLeft=aa(d/2+c);var u=Math.floor(1e3*d*r),g=function(e){return"M400000 "+e+" H0 L"+e/2+" 0 l65 45 L145 "+(e-80)+" H400000z"}(u),p=new _a([new va("phase",g)],{width:"400em",height:aa(u/1e3),viewBox:"0 0 400000 "+u,preserveAspectRatio:"xMinYMin slice"});(i=gl.makeSvgSpan(["hide-tail"],[p],t)).style.height=aa(d),a=o.depth+c+h}else{/cancel/.test(s)?l||o.classes.push("cancel-pad"):"angl"===s?o.classes.push("anglpad"):o.classes.push("boxpad");var m=0,f=0,_=0;/box/.test(s)?(_=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),f=m=t.fontMetrics().fboxsep+("colorbox"===s?0:_)):"angl"===s?(m=4*(_=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),f=Math.max(0,.25-o.depth)):f=m=l?.2:0,i=function(e,t,i,n,o){var s,r=e.height+e.depth+i+n;if(/fbox|color|angl/.test(t)){if(s=gl.makeSpan(["stretchy",t],[],o),"fbox"===t){var a=o.color&&o.getColor();a&&(s.style.borderColor=a)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new ba({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new ba({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new _a(l,{width:"100%",height:aa(r)});s=gl.makeSvgSpan([],[c],o)}return s.height=r,s.style.height=aa(r),s}(o,s,m,f,t),/fbox|boxed|fcolorbox/.test(s)?(i.style.borderStyle="solid",i.style.borderWidth=aa(_)):"angl"===s&&.049!==_&&(i.style.borderTopWidth=aa(_),i.style.borderRightWidth=aa(_)),a=o.depth+f,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}if(e.backgroundColor)n=gl.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:a},{type:"elem",elem:o,shift:0}]},t);else{var v=/cancel|phase/.test(s)?["svg-align"]:[];n=gl.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:i,shift:a,wrapperClasses:v}]},t)}return/cancel/.test(s)&&(n.height=o.height,n.depth=o.depth),/cancel/.test(s)&&!l?gl.makeSpan(["mord","cancel-lap"],[n],t):gl.makeSpan(["mord"],[n],t)},Yc=(e,t)=>{var i=0,n=new Ul.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ql(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(i=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*i+"pt"),n.setAttribute("height","+"+2*i+"pt"),n.setAttribute("lspace",i+"pt"),n.setAttribute("voffset",i+"pt"),"\\fcolorbox"===e.label){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+o+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};wl({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,i){var{parser:n,funcName:o}=e,s=nc(t[0],"color-token").color,r=t[1];return{type:"enclose",mode:n.mode,label:o,backgroundColor:s,body:r}},htmlBuilder:Qc,mathmlBuilder:Yc}),wl({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,i){var{parser:n,funcName:o}=e,s=nc(t[0],"color-token").color,r=nc(t[1],"color-token").color,a=t[2];return{type:"enclose",mode:n.mode,label:o,backgroundColor:r,borderColor:s,body:a}},htmlBuilder:Qc,mathmlBuilder:Yc}),wl({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:i}=e;return{type:"enclose",mode:i.mode,label:"\\fbox",body:t[0]}}}),wl({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:i,funcName:n}=e,o=t[0];return{type:"enclose",mode:i.mode,label:n,body:o}},htmlBuilder:Qc,mathmlBuilder:Yc}),wl({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:i}=e;return{type:"enclose",mode:i.mode,label:"\\angl",body:t[0]}}});var Zc={};function Xc(e){for(var{type:t,names:i,props:n,handler:o,htmlBuilder:s,mathmlBuilder:r}=e,a={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},l=0;l{if(!e.parser.settings.displayMode)throw new br("{"+e.envName+"} can be used only in display mode.")};function nh(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function oh(e,t,i){var{hskipBeforeAndAfter:n,addJot:o,cols:s,arraystretch:r,colSeparationType:a,autoTag:l,singleRow:c,emptySingleRow:h,maxNumCols:d,leqno:u}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!r){var g=e.gullet.expandMacroAsText("\\arraystretch");if(null==g)r=1;else if(!(r=parseFloat(g))||r<0)throw new br("Invalid \\arraystretch: "+g)}e.gullet.beginGroup();var p=[],m=[p],f=[],_=[],v=null!=l?[]:void 0;function b(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function C(){v&&(e.gullet.macros.get("\\df@tag")?(v.push(e.subparse([new vr("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):v.push(Boolean(l)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(b(),_.push(th(e));;){var y=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),y={type:"ordgroup",mode:e.mode,body:y},i&&(y={type:"styling",mode:e.mode,style:i,body:[y]}),p.push(y);var w=e.fetch().text;if("&"===w){if(d&&p.length===d){if(c||a)throw new br("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===w){C(),1===p.length&&"styling"===y.type&&0===y.body[0].body.length&&(m.length>1||!h)&&m.pop(),_.length0&&(_+=.25),l.push({pos:_,isDashed:e[t]})}for(v(s[0]),i=0;i0&&(y<(x+=f)&&(y=x),x=0),e.addJot&&(y+=g),w.height=C,w.depth=y,_+=C,w.pos=_,_+=y+x,a[i]=w,v(s[i+1])}var L,E,N=_/2+t.fontMetrics().axisHeight,D=e.cols||[],T=[],I=[];if(e.tags&&e.tags.some((e=>e)))for(i=0;i=r)){var W=void 0;(n>0||e.hskipBeforeAndAfter)&&0!==(W=xr(P.pregap,d))&&((L=gl.makeSpan(["arraycolsep"],[])).style.width=aa(W),T.push(L));var z=[];for(i=0;i0){for(var q=gl.makeLineSpan("hline",t,c),$=gl.makeLineSpan("hdashline",t,c),G=[{type:"elem",elem:a,shift:0}];l.length>0;){var Q=l.pop(),Y=Q.pos-N;Q.isDashed?G.push({type:"elem",elem:$,shift:Y}):G.push({type:"elem",elem:q,shift:Y})}a=gl.makeVList({positionType:"individualShift",children:G},t)}if(0===I.length)return gl.makeSpan(["mord"],[a],t);var Z=gl.makeVList({positionType:"individualShift",children:I},t);return Z=gl.makeSpan(["tag"],[Z],t),gl.makeFragment([a,Z])},ah={c:"center ",l:"left ",r:"right "},lh=function(e,t){for(var i=[],n=new Ul.MathNode("mtd",[],["mtr-glue"]),o=new Ul.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var g=e.cols,p="",m=!1,f=0,_=g.length;"separator"===g[0].type&&(d+="top ",f=1),"separator"===g[g.length-1].type&&(d+="bottom ",_-=1);for(var v=f;v<_;v++)"align"===g[v].type?(u+=ah[g[v].align],m&&(p+="none "),m=!0):"separator"===g[v].type&&m&&(p+="|"===g[v].separator?"solid ":"dashed ",m=!1);c.setAttribute("columnalign",u.trim()),/[sd]/.test(p)&&c.setAttribute("columnlines",p.trim())}if("align"===e.colSeparationType){for(var b=e.cols||[],C="",y=1;y0?"left ":"",d+=S[S.length-1].length>0?"right ":"";for(var k=1;k-1?"alignat":"align",s="split"===e.envName,r=oh(e.parser,{cols:n,addJot:!0,autoTag:s?void 0:nh(e.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:s?2:void 0,leqno:e.parser.settings.leqno},"display"),a=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var c="",h=0;h0&&d&&(p=1),n[u]={type:"align",align:g,pregap:p,postgap:0}}return r.colSeparationType=d?"align":"alignat",r};Xc({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var i=(sc(t[0])?[t[0]]:nc(t[0],"ordgroup").body).map((function(e){var t=oc(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new br("Unknown column alignment: "+t,e)})),n={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return oh(e.parser,n,sh(e.envName))},htmlBuilder:rh,mathmlBuilder:lh}),Xc({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],i="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:i}]};if("*"===e.envName.charAt(e.envName.length-1)){var o=e.parser;if(o.consumeSpaces(),"["===o.fetch().text){if(o.consume(),o.consumeSpaces(),i=o.fetch().text,-1==="lcr".indexOf(i))throw new br("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),n.cols=[{type:"align",align:i}]}}var s=oh(e.parser,n,sh(e.envName)),r=Math.max(0,...s.body.map((e=>e.length)));return s.cols=new Array(r).fill({type:"align",align:i}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:rh,mathmlBuilder:lh}),Xc({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=oh(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:rh,mathmlBuilder:lh}),Xc({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var i=(sc(t[0])?[t[0]]:nc(t[0],"ordgroup").body).map((function(e){var t=oc(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new br("Unknown column alignment: "+t,e)}));if(i.length>1)throw new br("{subarray} can contain only one column");var n={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if((n=oh(e.parser,n,"script")).body.length>0&&n.body[0].length>1)throw new br("{subarray} can contain only one column");return n},htmlBuilder:rh,mathmlBuilder:lh}),Xc({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=oh(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},sh(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:rh,mathmlBuilder:lh}),Xc({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:ch,htmlBuilder:rh,mathmlBuilder:lh}),Xc({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){kr(["gather","gather*"],e.envName)&&ih(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:nh(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return oh(e.parser,t,"display")},htmlBuilder:rh,mathmlBuilder:lh}),Xc({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:ch,htmlBuilder:rh,mathmlBuilder:lh}),Xc({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){ih(e);var t={autoTag:nh(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return oh(e.parser,t,"display")},htmlBuilder:rh,mathmlBuilder:lh}),Xc({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(ih(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var i=e.fetch().text;if("&"!==i&&"\\\\"!==i){if("\\end"===i){0===t[t.length-1].length&&t.pop();break}throw new br("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var n,o,s=[],r=[s],a=0;a-1);else{if(!("<>AV".indexOf(d)>-1))throw new br('Expected one of "<>AV=|." after @',l[h]);for(var g=0;g<2;g++){for(var p=!0,m=h+1;m{var i=e.font,n=t.withFont(i);return Fl(e.body,n)},uh=(e,t)=>{var i=e.font,n=t.withFont(i);return Ql(e.body,n)},gh={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};wl({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:i,funcName:n}=e,o=kl(t[0]),s=n;return s in gh&&(s=gh[s]),{type:"font",mode:i.mode,font:s.slice(1),body:o}},htmlBuilder:dh,mathmlBuilder:uh}),wl({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:i}=e,n=t[0],o=Dr(n);return{type:"mclass",mode:i.mode,mclass:gc(n),body:[{type:"font",mode:i.mode,font:"boldsymbol",body:n}],isCharacterBox:o}}}),wl({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:i,funcName:n,breakOnTokenText:o}=e,{mode:s}=i,r=i.parseExpression(!0,o);return{type:"font",mode:s,font:"math"+n.slice(1),body:{type:"ordgroup",mode:i.mode,body:r}}},htmlBuilder:dh,mathmlBuilder:uh});var ph=(e,t)=>{var i=t;return"display"===e?i=i.id>=zr.SCRIPT.id?i.text():zr.DISPLAY:"text"===e&&i.size===zr.DISPLAY.size?i=zr.TEXT:"script"===e?i=zr.SCRIPT:"scriptscript"===e&&(i=zr.SCRIPTSCRIPT),i},mh=(e,t)=>{var i,n=ph(e.size,t.style),o=n.fracNum(),s=n.fracDen();i=t.havingStyle(o);var r=Fl(e.numer,i,t);if(e.continued){var a=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;r.height=r.height0?3*d:7*d,p=t.fontMetrics().denom1):(h>0?(u=t.fontMetrics().num2,g=d):(u=t.fontMetrics().num3,g=3*d),p=t.fontMetrics().denom2),c){var C=t.fontMetrics().axisHeight;u-r.depth-(C+.5*h){var i=new Ul.MathNode("mfrac",[Ql(e.numer,t),Ql(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var n=ra(e.barSize,t);i.setAttribute("linethickness",aa(n))}}else i.setAttribute("linethickness","0px");var o=ph(e.size,t.style);if(o.size!==t.style.size){i=new Ul.MathNode("mstyle",[i]);var s=o.size===zr.DISPLAY.size?"true":"false";i.setAttribute("displaystyle",s),i.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var r=[];if(null!=e.leftDelim){var a=new Ul.MathNode("mo",[new Ul.TextNode(e.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),r.push(a)}if(r.push(i),null!=e.rightDelim){var l=new Ul.MathNode("mo",[new Ul.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),r.push(l)}return Kl(r)}return i};wl({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var i,{parser:n,funcName:o}=e,s=t[0],r=t[1],a=null,l=null,c="auto";switch(o){case"\\dfrac":case"\\frac":case"\\tfrac":i=!0;break;case"\\\\atopfrac":i=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i=!1,a="(",l=")";break;case"\\\\bracefrac":i=!1,a="\\{",l="\\}";break;case"\\\\brackfrac":i=!1,a="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(o){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text"}return{type:"genfrac",mode:n.mode,continued:!1,numer:s,denom:r,hasBarLine:i,leftDelim:a,rightDelim:l,size:c,barSize:null}},htmlBuilder:mh,mathmlBuilder:fh}),wl({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:i,funcName:n}=e,o=t[0],s=t[1];return{type:"genfrac",mode:i.mode,continued:!0,numer:o,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),wl({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:i,funcName:n,token:o}=e;switch(n){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:i.mode,replaceWith:t,token:o}}});var _h=["display","text","script","scriptscript"],vh=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};wl({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var i,{parser:n}=e,o=t[4],s=t[5],r=kl(t[0]),a="atom"===r.type&&"open"===r.family?vh(r.text):null,l=kl(t[1]),c="atom"===l.type&&"close"===l.family?vh(l.text):null,h=nc(t[2],"size"),d=null;i=!!h.isBlank||(d=h.value).number>0;var u="auto",g=t[3];if("ordgroup"===g.type){if(g.body.length>0){var p=nc(g.body[0],"textord");u=_h[Number(p.text)]}}else g=nc(g,"textord"),u=_h[Number(g.text)];return{type:"genfrac",mode:n.mode,numer:o,denom:s,continued:!1,hasBarLine:i,barSize:d,leftDelim:a,rightDelim:c,size:u}},htmlBuilder:mh,mathmlBuilder:fh}),wl({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:i,funcName:n,token:o}=e;return{type:"infix",mode:i.mode,replaceWith:"\\\\abovefrac",size:nc(t[0],"size").value,token:o}}}),wl({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:i,funcName:n}=e,o=t[0],s=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(nc(t[1],"infix").size),r=t[2],a=s.number>0;return{type:"genfrac",mode:i.mode,numer:o,denom:r,continued:!1,hasBarLine:a,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:mh,mathmlBuilder:fh});var bh=(e,t)=>{var i,n,o=t.style;"supsub"===e.type?(i=e.sup?Fl(e.sup,t.havingStyle(o.sup()),t):Fl(e.sub,t.havingStyle(o.sub()),t),n=nc(e.base,"horizBrace")):n=nc(e,"horizBrace");var s,r=Fl(n.base,t.havingBaseStyle(zr.DISPLAY)),a=ic(n,t);if(n.isOver?(s=gl.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:.1},{type:"elem",elem:a}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(s=gl.makeVList({positionType:"bottom",positionData:r.depth+.1+a.height,children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:r}]},t)).children[0].children[0].children[0].classes.push("svg-align"),i){var l=gl.makeSpan(["mord",n.isOver?"mover":"munder"],[s],t);s=n.isOver?gl.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:i}]},t):gl.makeVList({positionType:"bottom",positionData:l.depth+.2+i.height+i.depth,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return gl.makeSpan(["mord",n.isOver?"mover":"munder"],[s],t)};wl({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:i,funcName:n}=e;return{type:"horizBrace",mode:i.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:bh,mathmlBuilder:(e,t)=>{var i=tc(e.label);return new Ul.MathNode(e.isOver?"mover":"munder",[Ql(e.base,t),i])}}),wl({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:i}=e,n=t[1],o=nc(t[0],"url").url;return i.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:i.mode,href:o,body:xl(n)}:i.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var i=Il(e.body,t,!1);return gl.makeAnchor(e.href,[],i,t)},mathmlBuilder:(e,t)=>{var i=Gl(e.body,t);return i instanceof Wl||(i=new Wl("mrow",[i])),i.setAttribute("href",e.href),i}}),wl({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:i}=e,n=nc(t[0],"url").url;if(!i.settings.isTrusted({command:"\\url",url:n}))return i.formatUnsupportedCmd("\\url");for(var o=[],s=0;snew Ul.MathNode("mrow",$l(e.body,t))}),wl({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var i,{parser:n,funcName:o,token:s}=e,r=nc(t[0],"raw").string,a=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(o){case"\\htmlClass":l.class=r,i={command:"\\htmlClass",class:r};break;case"\\htmlId":l.id=r,i={command:"\\htmlId",id:r};break;case"\\htmlStyle":l.style=r,i={command:"\\htmlStyle",style:r};break;case"\\htmlData":for(var c=r.split(","),h=0;h{var i=Il(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var o=gl.makeSpan(n,i,t);for(var s in e.attributes)"class"!==s&&e.attributes.hasOwnProperty(s)&&o.setAttribute(s,e.attributes[s]);return o},mathmlBuilder:(e,t)=>Gl(e.body,t)}),wl({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:i}=e;return{type:"htmlmathml",mode:i.mode,html:xl(t[0]),mathml:xl(t[1])}},htmlBuilder:(e,t)=>{var i=Il(e.html,t,!1);return gl.makeFragment(i)},mathmlBuilder:(e,t)=>Gl(e.mathml,t)});var Ch=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new br("Invalid size: '"+e+"' in \\includegraphics");var i={number:+(t[1]+t[2]),unit:t[3]};if(!sa(i))throw new br("Invalid unit: '"+i.unit+"' in \\includegraphics.");return i};wl({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,i)=>{var{parser:n}=e,o={number:0,unit:"em"},s={number:.9,unit:"em"},r={number:0,unit:"em"},a="";if(i[0])for(var l=nc(i[0],"raw").string.split(","),c=0;c{var i=ra(e.height,t),n=0;e.totalheight.number>0&&(n=ra(e.totalheight,t)-i);var o=0;e.width.number>0&&(o=ra(e.width,t));var s={height:aa(i+n)};o>0&&(s.width=aa(o)),n>0&&(s.verticalAlign=aa(-n));var r=new pa(e.src,e.alt,s);return r.height=i,r.depth=n,r},mathmlBuilder:(e,t)=>{var i=new Ul.MathNode("mglyph",[]);i.setAttribute("alt",e.alt);var n=ra(e.height,t),o=0;if(e.totalheight.number>0&&(o=ra(e.totalheight,t)-n,i.setAttribute("valign",aa(-o))),i.setAttribute("height",aa(n+o)),e.width.number>0){var s=ra(e.width,t);i.setAttribute("width",aa(s))}return i.setAttribute("src",e.src),i}}),wl({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:i,funcName:n}=e,o=nc(t[0],"size");if(i.settings.strict){var s="m"===n[1],r="mu"===o.value.unit;s?(r||i.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, not "+o.value.unit+" units"),"math"!==i.mode&&i.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):r&&i.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:i.mode,dimension:o.value}},htmlBuilder:(e,t)=>gl.makeGlue(e.dimension,t),mathmlBuilder(e,t){var i=ra(e.dimension,t);return new Ul.SpaceNode(i)}}),wl({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:i,funcName:n}=e,o=t[0];return{type:"lap",mode:i.mode,alignment:n.slice(5),body:o}},htmlBuilder:(e,t)=>{var i;"clap"===e.alignment?(i=gl.makeSpan([],[Fl(e.body,t)]),i=gl.makeSpan(["inner"],[i],t)):i=gl.makeSpan(["inner"],[Fl(e.body,t)]);var n=gl.makeSpan(["fix"],[]),o=gl.makeSpan([e.alignment],[i,n],t),s=gl.makeSpan(["strut"]);return s.style.height=aa(o.height+o.depth),o.depth&&(s.style.verticalAlign=aa(-o.depth)),o.children.unshift(s),o=gl.makeSpan(["thinbox"],[o],t),gl.makeSpan(["mord","vbox"],[o],t)},mathmlBuilder:(e,t)=>{var i=new Ul.MathNode("mpadded",[Ql(e.body,t)]);if("rlap"!==e.alignment){var n="llap"===e.alignment?"-1":"-0.5";i.setAttribute("lspace",n+"width")}return i.setAttribute("width","0px"),i}}),wl({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:i,parser:n}=e,o=n.mode;n.switchMode("math");var s="\\("===i?"\\)":"$",r=n.parseExpression(!1,s);return n.expect(s),n.switchMode(o),{type:"styling",mode:n.mode,style:"text",body:r}}}),wl({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new br("Mismatched "+e.funcName)}});var yh=(e,t)=>{switch(t.style.size){case zr.DISPLAY.size:return e.display;case zr.TEXT.size:return e.text;case zr.SCRIPT.size:return e.script;case zr.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};wl({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:i}=e;return{type:"mathchoice",mode:i.mode,display:xl(t[0]),text:xl(t[1]),script:xl(t[2]),scriptscript:xl(t[3])}},htmlBuilder:(e,t)=>{var i=yh(e,t),n=Il(i,t,!1);return gl.makeFragment(n)},mathmlBuilder:(e,t)=>{var i=yh(e,t);return Gl(i,t)}});var wh=(e,t,i,n,o,s,r)=>{e=gl.makeSpan([],[e]);var a,l,c,h=i&&Dr(i);if(t){var d=Fl(t,n.havingStyle(o.sup()),n);l={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(i){var u=Fl(i,n.havingStyle(o.sub()),n);a={elem:u,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-u.height)}}if(l&&a){var g=n.fontMetrics().bigOpSpacing5+a.elem.height+a.elem.depth+a.kern+e.depth+r;c=gl.makeVList({positionType:"bottom",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:a.elem,marginLeft:aa(-s)},{type:"kern",size:a.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:aa(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(a){var p=e.height-r;c=gl.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:a.elem,marginLeft:aa(-s)},{type:"kern",size:a.kern},{type:"elem",elem:e}]},n)}else{if(!l)return e;var m=e.depth+r;c=gl.makeVList({positionType:"bottom",positionData:m,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:aa(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}var f=[c];if(a&&0!==s&&!h){var _=gl.makeSpan(["mspace"],[],n);_.style.marginRight=aa(s),f.unshift(_)}return gl.makeSpan(["mop","op-limits"],f,n)},Sh=["\\smallint"],kh=(e,t)=>{var i,n,o,s=!1;"supsub"===e.type?(i=e.sup,n=e.sub,o=nc(e.base,"op"),s=!0):o=nc(e,"op");var r,a=t.style,l=!1;if(a.size===zr.DISPLAY.size&&o.symbol&&!kr(Sh,o.name)&&(l=!0),o.symbol){var c=l?"Size2-Regular":"Size1-Regular",h="";if("\\oiint"!==o.name&&"\\oiiint"!==o.name||(h=o.name.slice(1),o.name="oiint"===h?"\\iint":"\\iiint"),r=gl.makeSymbol(o.name,c,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),h.length>0){var d=r.italic,u=gl.staticSvg(h+"Size"+(l?"2":"1"),t);r=gl.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:u,shift:l?.08:0}]},t),o.name="\\"+h,r.classes.unshift("mop"),r.italic=d}}else if(o.body){var g=Il(o.body,t,!0);1===g.length&&g[0]instanceof fa?(r=g[0]).classes[0]="mop":r=gl.makeSpan(["mop"],g,t)}else{for(var p=[],m=1;m{var i;if(e.symbol)i=new Wl("mo",[jl(e.name,e.mode)]),kr(Sh,e.name)&&i.setAttribute("largeop","false");else if(e.body)i=new Wl("mo",$l(e.body,t));else{i=new Wl("mi",[new zl(e.name.slice(1))]);var n=new Wl("mo",[jl("⁡","text")]);i=e.parentIsSupSub?new Wl("mrow",[i,n]):Vl([i,n])}return i},Lh={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};wl({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:i,funcName:n}=e,o=n;return 1===o.length&&(o=Lh[o]),{type:"op",mode:i.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:kh,mathmlBuilder:xh}),wl({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:i}=e,n=t[0];return{type:"op",mode:i.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:xl(n)}},htmlBuilder:kh,mathmlBuilder:xh});var Eh={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};wl({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:i}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:i}},htmlBuilder:kh,mathmlBuilder:xh}),wl({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:i}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:i}},htmlBuilder:kh,mathmlBuilder:xh}),wl({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:i}=e,n=i;return 1===n.length&&(n=Eh[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:kh,mathmlBuilder:xh});var Nh=(e,t)=>{var i,n,o,s,r=!1;if("supsub"===e.type?(i=e.sup,n=e.sub,o=nc(e.base,"operatorname"),r=!0):o=nc(e,"operatorname"),o.body.length>0){for(var a=o.body.map((e=>{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),l=Il(a,t.withFont("mathrm"),!0),c=0;c{var{parser:i,funcName:n}=e,o=t[0];return{type:"operatorname",mode:i.mode,body:xl(o),alwaysHandleSupSub:"\\operatornamewithlimits"===n,limits:!1,parentIsSupSub:!1}},htmlBuilder:Nh,mathmlBuilder:(e,t)=>{for(var i=$l(e.body,t.withFont("mathrm")),n=!0,o=0;oe.toText())).join("");i=[new Ul.TextNode(a)]}var l=new Ul.MathNode("mi",i);l.setAttribute("mathvariant","normal");var c=new Ul.MathNode("mo",[jl("⁡","text")]);return e.parentIsSupSub?new Ul.MathNode("mrow",[l,c]):Ul.newDocumentFragment([l,c])}}),eh("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Sl({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?gl.makeFragment(Il(e.body,t,!1)):gl.makeSpan(["mord"],Il(e.body,t,!0),t),mathmlBuilder:(e,t)=>Gl(e.body,t,!0)}),wl({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:i}=e,n=t[0];return{type:"overline",mode:i.mode,body:n}},htmlBuilder(e,t){var i=Fl(e.body,t.havingCrampedStyle()),n=gl.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,s=gl.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:3*o},{type:"elem",elem:n},{type:"kern",size:o}]},t);return gl.makeSpan(["mord","overline"],[s],t)},mathmlBuilder(e,t){var i=new Ul.MathNode("mo",[new Ul.TextNode("‾")]);i.setAttribute("stretchy","true");var n=new Ul.MathNode("mover",[Ql(e.body,t),i]);return n.setAttribute("accent","true"),n}}),wl({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:i}=e,n=t[0];return{type:"phantom",mode:i.mode,body:xl(n)}},htmlBuilder:(e,t)=>{var i=Il(e.body,t.withPhantom(),!1);return gl.makeFragment(i)},mathmlBuilder:(e,t)=>{var i=$l(e.body,t);return new Ul.MathNode("mphantom",i)}}),wl({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:i}=e,n=t[0];return{type:"hphantom",mode:i.mode,body:n}},htmlBuilder:(e,t)=>{var i=gl.makeSpan([],[Fl(e.body,t.withPhantom())]);if(i.height=0,i.depth=0,i.children)for(var n=0;n{var i=$l(xl(e.body),t),n=new Ul.MathNode("mphantom",i),o=new Ul.MathNode("mpadded",[n]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}}),wl({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:i}=e,n=t[0];return{type:"vphantom",mode:i.mode,body:n}},htmlBuilder:(e,t)=>{var i=gl.makeSpan(["inner"],[Fl(e.body,t.withPhantom())]),n=gl.makeSpan(["fix"],[]);return gl.makeSpan(["mord","rlap"],[i,n],t)},mathmlBuilder:(e,t)=>{var i=$l(xl(e.body),t),n=new Ul.MathNode("mphantom",i),o=new Ul.MathNode("mpadded",[n]);return o.setAttribute("width","0px"),o}}),wl({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:i}=e,n=nc(t[0],"size").value,o=t[1];return{type:"raisebox",mode:i.mode,dy:n,body:o}},htmlBuilder(e,t){var i=Fl(e.body,t),n=ra(e.dy,t);return gl.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:i}]},t)},mathmlBuilder(e,t){var i=new Ul.MathNode("mpadded",[Ql(e.body,t)]),n=e.dy.number+e.dy.unit;return i.setAttribute("voffset",n),i}}),wl({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),wl({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,i){var{parser:n}=e,o=i[0],s=nc(t[0],"size"),r=nc(t[1],"size");return{type:"rule",mode:n.mode,shift:o&&nc(o,"size").value,width:s.value,height:r.value}},htmlBuilder(e,t){var i=gl.makeSpan(["mord","rule"],[],t),n=ra(e.width,t),o=ra(e.height,t),s=e.shift?ra(e.shift,t):0;return i.style.borderRightWidth=aa(n),i.style.borderTopWidth=aa(o),i.style.bottom=aa(s),i.width=n,i.height=o+s,i.depth=-s,i.maxFontSize=1.125*o*t.sizeMultiplier,i},mathmlBuilder(e,t){var i=ra(e.width,t),n=ra(e.height,t),o=e.shift?ra(e.shift,t):0,s=t.color&&t.getColor()||"black",r=new Ul.MathNode("mspace");r.setAttribute("mathbackground",s),r.setAttribute("width",aa(i)),r.setAttribute("height",aa(n));var a=new Ul.MathNode("mpadded",[r]);return o>=0?a.setAttribute("height",aa(o)):(a.setAttribute("height",aa(o)),a.setAttribute("depth",aa(-o))),a.setAttribute("voffset",aa(o)),a}});var Th=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];wl({type:"sizing",names:Th,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:i,funcName:n,parser:o}=e,s=o.parseExpression(!1,i);return{type:"sizing",mode:o.mode,size:Th.indexOf(n)+1,body:s}},htmlBuilder:(e,t)=>{var i=t.havingSize(e.size);return Dh(e.body,i,t)},mathmlBuilder:(e,t)=>{var i=t.havingSize(e.size),n=$l(e.body,i),o=new Ul.MathNode("mstyle",n);return o.setAttribute("mathsize",aa(i.sizeMultiplier)),o}}),wl({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,i)=>{var{parser:n}=e,o=!1,s=!1,r=i[0]&&nc(i[0],"ordgroup");if(r)for(var a="",l=0;l{var i=gl.makeSpan([],[Fl(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return i;if(e.smashHeight&&(i.height=0,i.children))for(var n=0;n{var i=new Ul.MathNode("mpadded",[Ql(e.body,t)]);return e.smashHeight&&i.setAttribute("height","0px"),e.smashDepth&&i.setAttribute("depth","0px"),i}}),wl({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,i){var{parser:n}=e,o=i[0],s=t[0];return{type:"sqrt",mode:n.mode,body:s,index:o}},htmlBuilder(e,t){var i=Fl(e.body,t.havingCrampedStyle());0===i.height&&(i.height=t.fontMetrics().xHeight),i=gl.wrapFragment(i,t);var n=t.fontMetrics().defaultRuleThickness,o=n;t.style.idi.height+i.depth+s&&(s=(s+h-i.height-i.depth)/2);var d=a.height-i.height-s-l;i.style.paddingLeft=aa(c);var u=gl.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:-(i.height+d)},{type:"elem",elem:a},{type:"kern",size:l}]},t);if(e.index){var g=t.havingStyle(zr.SCRIPTSCRIPT),p=Fl(e.index,g,t),m=.6*(u.height-u.depth),f=gl.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:p}]},t),_=gl.makeSpan(["root"],[f]);return gl.makeSpan(["mord","sqrt"],[_,u],t)}return gl.makeSpan(["mord","sqrt"],[u],t)},mathmlBuilder(e,t){var{body:i,index:n}=e;return n?new Ul.MathNode("mroot",[Ql(i,t),Ql(n,t)]):new Ul.MathNode("msqrt",[Ql(i,t)])}});var Ih={display:zr.DISPLAY,text:zr.TEXT,script:zr.SCRIPT,scriptscript:zr.SCRIPTSCRIPT};wl({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:i,funcName:n,parser:o}=e,s=o.parseExpression(!0,i),r=n.slice(1,n.length-5);return{type:"styling",mode:o.mode,style:r,body:s}},htmlBuilder(e,t){var i=Ih[e.style],n=t.havingStyle(i).withFont("");return Dh(e.body,n,t)},mathmlBuilder(e,t){var i=Ih[e.style],n=t.havingStyle(i),o=$l(e.body,n),s=new Ul.MathNode("mstyle",o),r={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return s.setAttribute("scriptlevel",r[0]),s.setAttribute("displaystyle",r[1]),s}}),Sl({type:"supsub",htmlBuilder(e,t){var i=function(e,t){var i=e.base;return i?"op"===i.type?i.limits&&(t.style.size===zr.DISPLAY.size||i.alwaysHandleSupSub)?kh:null:"operatorname"===i.type?i.alwaysHandleSupSub&&(t.style.size===zr.DISPLAY.size||i.limits)?Nh:null:"accent"===i.type?Dr(i.base)?rc:null:"horizBrace"===i.type&&!e.sub===i.isOver?bh:null:null}(e,t);if(i)return i(e,t);var n,o,s,{base:r,sup:a,sub:l}=e,c=Fl(r,t),h=t.fontMetrics(),d=0,u=0,g=r&&Dr(r);if(a){var p=t.havingStyle(t.style.sup());n=Fl(a,p,t),g||(d=c.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(l){var m=t.havingStyle(t.style.sub());o=Fl(l,m,t),g||(u=c.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}s=t.style===zr.DISPLAY?h.sup1:t.style.cramped?h.sup3:h.sup2;var f,_=t.sizeMultiplier,v=aa(.5/h.ptPerEm/_),b=null;if(o){var C=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(c instanceof fa||C)&&(b=aa(-c.italic))}if(n&&o){d=Math.max(d,s,n.depth+.25*h.xHeight),u=Math.max(u,h.sub2);var y=4*h.defaultRuleThickness;if(d-n.depth-(o.height-u)0&&(d+=w,u-=w)}f=gl.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u,marginRight:v,marginLeft:b},{type:"elem",elem:n,shift:-d,marginRight:v}]},t)}else if(o){u=Math.max(u,h.sub1,o.height-.8*h.xHeight),f=gl.makeVList({positionType:"shift",positionData:u,children:[{type:"elem",elem:o,marginLeft:b,marginRight:v}]},t)}else{if(!n)throw new Error("supsub must have either sup or sub.");d=Math.max(d,s,n.depth+.25*h.xHeight),f=gl.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:n,marginRight:v}]},t)}var S=Ol(c,"right")||"mord";return gl.makeSpan([S],[c,gl.makeSpan(["msupsub"],[f])],t)},mathmlBuilder(e,t){var i,n=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(n=!0,i=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var o,s=[Ql(e.base,t)];if(e.sub&&s.push(Ql(e.sub,t)),e.sup&&s.push(Ql(e.sup,t)),n)o=i?"mover":"munder";else if(e.sub)if(e.sup){var r=e.base;o=r&&"op"===r.type&&r.limits&&t.style===zr.DISPLAY||r&&"operatorname"===r.type&&r.alwaysHandleSupSub&&(t.style===zr.DISPLAY||r.limits)?"munderover":"msubsup"}else{var a=e.base;o=a&&"op"===a.type&&a.limits&&(t.style===zr.DISPLAY||a.alwaysHandleSupSub)||a&&"operatorname"===a.type&&a.alwaysHandleSupSub&&(a.limits||t.style===zr.DISPLAY)?"munder":"msub"}else{var l=e.base;o=l&&"op"===l.type&&l.limits&&(t.style===zr.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===zr.DISPLAY)?"mover":"msup"}return new Ul.MathNode(o,s)}}),Sl({type:"atom",htmlBuilder:(e,t)=>gl.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var i=new Ul.MathNode("mo",[jl(e.text,e.mode)]);if("bin"===e.family){var n=ql(e,t);"bold-italic"===n&&i.setAttribute("mathvariant",n)}else"punct"===e.family?i.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||i.setAttribute("stretchy","false");return i}});var Ah={mi:"italic",mn:"normal",mtext:"normal"};Sl({type:"mathord",htmlBuilder:(e,t)=>gl.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){var i=new Ul.MathNode("mi",[jl(e.text,e.mode,t)]),n=ql(e,t)||"italic";return n!==Ah[i.type]&&i.setAttribute("mathvariant",n),i}}),Sl({type:"textord",htmlBuilder:(e,t)=>gl.makeOrd(e,t,"textord"),mathmlBuilder(e,t){var i,n=jl(e.text,e.mode,t),o=ql(e,t)||"normal";return i="text"===e.mode?new Ul.MathNode("mtext",[n]):/[0-9]/.test(e.text)?new Ul.MathNode("mn",[n]):"\\prime"===e.text?new Ul.MathNode("mo",[n]):new Ul.MathNode("mi",[n]),o!==Ah[i.type]&&i.setAttribute("mathvariant",o),i}});var Mh={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Rh={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Sl({type:"spacing",htmlBuilder(e,t){if(Rh.hasOwnProperty(e.text)){var i=Rh[e.text].className||"";if("text"===e.mode){var n=gl.makeOrd(e,t,"textord");return n.classes.push(i),n}return gl.makeSpan(["mspace",i],[gl.mathsym(e.text,e.mode,t)],t)}if(Mh.hasOwnProperty(e.text))return gl.makeSpan(["mspace",Mh[e.text]],[],t);throw new br('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(!Rh.hasOwnProperty(e.text)){if(Mh.hasOwnProperty(e.text))return new Ul.MathNode("mspace");throw new br('Unknown type of space "'+e.text+'"')}return new Ul.MathNode("mtext",[new Ul.TextNode(" ")])}});var Oh=()=>{var e=new Ul.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Sl({type:"tag",mathmlBuilder(e,t){var i=new Ul.MathNode("mtable",[new Ul.MathNode("mtr",[Oh(),new Ul.MathNode("mtd",[Gl(e.body,t)]),Oh(),new Ul.MathNode("mtd",[Gl(e.tag,t)])])]);return i.setAttribute("width","100%"),i}});var Ph={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Fh={"\\textbf":"textbf","\\textmd":"textmd"},Bh={"\\textit":"textit","\\textup":"textup"},Hh=(e,t)=>{var i=e.font;return i?Ph[i]?t.withTextFontFamily(Ph[i]):Fh[i]?t.withTextFontWeight(Fh[i]):t.withTextFontShape(Bh[i]):t};wl({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:i,funcName:n}=e,o=t[0];return{type:"text",mode:i.mode,body:xl(o),font:n}},htmlBuilder(e,t){var i=Hh(e,t),n=Il(e.body,i,!0);return gl.makeSpan(["mord","text"],n,i)},mathmlBuilder(e,t){var i=Hh(e,t);return Gl(e.body,i)}}),wl({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:i}=e;return{type:"underline",mode:i.mode,body:t[0]}},htmlBuilder(e,t){var i=Fl(e.body,t),n=gl.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,s=gl.makeVList({positionType:"top",positionData:i.height,children:[{type:"kern",size:o},{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:i}]},t);return gl.makeSpan(["mord","underline"],[s],t)},mathmlBuilder(e,t){var i=new Ul.MathNode("mo",[new Ul.TextNode("‾")]);i.setAttribute("stretchy","true");var n=new Ul.MathNode("munder",[Ql(e.body,t),i]);return n.setAttribute("accentunder","true"),n}}),wl({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:i}=e;return{type:"vcenter",mode:i.mode,body:t[0]}},htmlBuilder(e,t){var i=Fl(e.body,t),n=t.fontMetrics().axisHeight,o=.5*(i.height-n-(i.depth+n));return gl.makeVList({positionType:"shift",positionData:o,children:[{type:"elem",elem:i}]},t)},mathmlBuilder:(e,t)=>new Ul.MathNode("mpadded",[Ql(e.body,t)],["vcenter"])}),wl({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,i){throw new br("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var i=Vh(e),n=[],o=t.havingStyle(t.style.text()),s=0;se.body.replace(/ /g,e.star?"␣":" "),Wh=bl,zh="[ \r\n\t]",Uh="(\\\\[a-zA-Z@]+)"+zh+"*",jh="[̀-ͯ]",Kh=new RegExp(jh+"+$"),qh="("+zh+"+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧‪-퟿豈-￿]"+jh+"*|[\ud800-\udbff][\udc00-\udfff]"+jh+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+Uh+"|\\\\[^\ud800-\udfff])";class $h{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(qh,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new vr("EOF",new _r(this,t,t));var i=this.tokenRegex.exec(e);if(null===i||i.index!==t)throw new br("Unexpected character: '"+e[t]+"'",new vr(e[t],new _r(this,t,t+1)));var n=i[6]||i[3]||(i[2]?"\\ ":" ");if(14===this.catcodes[n]){var o=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===o?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=o+1,this.lex()}return new vr(n,new _r(this,t,this.tokenRegex.lastIndex))}}class Gh{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new br("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,i){if(void 0===i&&(i=!1),i){for(var n=0;n0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var Qh=Jc;eh("\\noexpand",(function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),eh("\\expandafter",(function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),eh("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),eh("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),eh("\\@ifnextchar",(function(e){var t=e.consumeArgs(3);e.consumeSpaces();var i=e.future();return 1===t[0].length&&t[0][0].text===i.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),eh("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),eh("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var Yh={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};eh("\\char",(function(e){var t,i=e.popToken(),n="";if("'"===i.text)t=8,i=e.popToken();else if('"'===i.text)t=16,i=e.popToken();else if("`"===i.text)if("\\"===(i=e.popToken()).text[0])n=i.text.charCodeAt(1);else{if("EOF"===i.text)throw new br("\\char` missing argument");n=i.text.charCodeAt(0)}else t=10;if(t){if(null==(n=Yh[i.text])||n>=t)throw new br("Invalid base-"+t+" digit "+i.text);for(var o;null!=(o=Yh[e.future().text])&&o{var n=e.consumeArg().tokens;if(1!==n.length)throw new br("\\newcommand's first argument must be a macro name");var o=n[0].text,s=e.isDefined(o);if(s&&!t)throw new br("\\newcommand{"+o+"} attempting to redefine "+o+"; use \\renewcommand");if(!s&&!i)throw new br("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var r=0;if(1===(n=e.consumeArg().tokens).length&&"["===n[0].text){for(var a="",l=e.expandNextToken();"]"!==l.text&&"EOF"!==l.text;)a+=l.text,l=e.expandNextToken();if(!a.match(/^\s*[0-9]+\s*$/))throw new br("Invalid number of arguments: "+a);r=parseInt(a),n=e.consumeArg().tokens}return e.macros.set(o,{tokens:n,numArgs:r}),""};eh("\\newcommand",(e=>Zh(e,!1,!0))),eh("\\renewcommand",(e=>Zh(e,!0,!1))),eh("\\providecommand",(e=>Zh(e,!0,!0))),eh("\\message",(e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map((e=>e.text)).join("")),""})),eh("\\errmessage",(e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map((e=>e.text)).join("")),""})),eh("\\show",(e=>{var t=e.popToken(),i=t.text;return console.log(t,e.macros.get(i),Wh[i],Sa.math[i],Sa.text[i]),""})),eh("\\bgroup","{"),eh("\\egroup","}"),eh("~","\\nobreakspace"),eh("\\lq","`"),eh("\\rq","'"),eh("\\aa","\\r a"),eh("\\AA","\\r A"),eh("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),eh("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),eh("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),eh("ℬ","\\mathscr{B}"),eh("ℰ","\\mathscr{E}"),eh("ℱ","\\mathscr{F}"),eh("ℋ","\\mathscr{H}"),eh("ℐ","\\mathscr{I}"),eh("ℒ","\\mathscr{L}"),eh("ℳ","\\mathscr{M}"),eh("ℛ","\\mathscr{R}"),eh("ℭ","\\mathfrak{C}"),eh("ℌ","\\mathfrak{H}"),eh("ℨ","\\mathfrak{Z}"),eh("\\Bbbk","\\Bbb{k}"),eh("·","\\cdotp"),eh("\\llap","\\mathllap{\\textrm{#1}}"),eh("\\rlap","\\mathrlap{\\textrm{#1}}"),eh("\\clap","\\mathclap{\\textrm{#1}}"),eh("\\mathstrut","\\vphantom{(}"),eh("\\underbar","\\underline{\\text{#1}}"),eh("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),eh("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),eh("\\ne","\\neq"),eh("≠","\\neq"),eh("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),eh("∉","\\notin"),eh("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),eh("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),eh("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),eh("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),eh("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),eh("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),eh("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),eh("⟂","\\perp"),eh("‼","\\mathclose{!\\mkern-0.8mu!}"),eh("∌","\\notni"),eh("⌜","\\ulcorner"),eh("⌝","\\urcorner"),eh("⌞","\\llcorner"),eh("⌟","\\lrcorner"),eh("©","\\copyright"),eh("®","\\textregistered"),eh("️","\\textregistered"),eh("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),eh("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),eh("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),eh("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),eh("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),eh("⋮","\\vdots"),eh("\\varGamma","\\mathit{\\Gamma}"),eh("\\varDelta","\\mathit{\\Delta}"),eh("\\varTheta","\\mathit{\\Theta}"),eh("\\varLambda","\\mathit{\\Lambda}"),eh("\\varXi","\\mathit{\\Xi}"),eh("\\varPi","\\mathit{\\Pi}"),eh("\\varSigma","\\mathit{\\Sigma}"),eh("\\varUpsilon","\\mathit{\\Upsilon}"),eh("\\varPhi","\\mathit{\\Phi}"),eh("\\varPsi","\\mathit{\\Psi}"),eh("\\varOmega","\\mathit{\\Omega}"),eh("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),eh("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),eh("\\boxed","\\fbox{$\\displaystyle{#1}$}"),eh("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),eh("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),eh("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Xh={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};eh("\\dots",(function(e){var t="\\dotso",i=e.expandAfterFuture().text;return i in Xh?t=Xh[i]:("\\not"===i.slice(0,4)||i in Sa.math&&kr(["bin","rel"],Sa.math[i].group))&&(t="\\dotsb"),t}));var Jh={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};eh("\\dotso",(function(e){return e.future().text in Jh?"\\ldots\\,":"\\ldots"})),eh("\\dotsc",(function(e){var t=e.future().text;return t in Jh&&","!==t?"\\ldots\\,":"\\ldots"})),eh("\\cdots",(function(e){return e.future().text in Jh?"\\@cdots\\,":"\\@cdots"})),eh("\\dotsb","\\cdots"),eh("\\dotsm","\\cdots"),eh("\\dotsi","\\!\\cdots"),eh("\\dotsx","\\ldots\\,"),eh("\\DOTSI","\\relax"),eh("\\DOTSB","\\relax"),eh("\\DOTSX","\\relax"),eh("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),eh("\\,","\\tmspace+{3mu}{.1667em}"),eh("\\thinspace","\\,"),eh("\\>","\\mskip{4mu}"),eh("\\:","\\tmspace+{4mu}{.2222em}"),eh("\\medspace","\\:"),eh("\\;","\\tmspace+{5mu}{.2777em}"),eh("\\thickspace","\\;"),eh("\\!","\\tmspace-{3mu}{.1667em}"),eh("\\negthinspace","\\!"),eh("\\negmedspace","\\tmspace-{4mu}{.2222em}"),eh("\\negthickspace","\\tmspace-{5mu}{.277em}"),eh("\\enspace","\\kern.5em "),eh("\\enskip","\\hskip.5em\\relax"),eh("\\quad","\\hskip1em\\relax"),eh("\\qquad","\\hskip2em\\relax"),eh("\\tag","\\@ifstar\\tag@literal\\tag@paren"),eh("\\tag@paren","\\tag@literal{({#1})}"),eh("\\tag@literal",(e=>{if(e.macros.get("\\df@tag"))throw new br("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),eh("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),eh("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),eh("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),eh("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),eh("\\newline","\\\\\\relax"),eh("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ed=aa(Gr["Main-Regular"]["T".charCodeAt(0)][1]-.7*Gr["Main-Regular"]["A".charCodeAt(0)][1]);eh("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+ed+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),eh("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+ed+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),eh("\\hspace","\\@ifstar\\@hspacer\\@hspace"),eh("\\@hspace","\\hskip #1\\relax"),eh("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),eh("\\ordinarycolon",":"),eh("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),eh("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),eh("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),eh("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),eh("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),eh("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),eh("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),eh("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),eh("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),eh("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),eh("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),eh("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),eh("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),eh("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),eh("∷","\\dblcolon"),eh("∹","\\eqcolon"),eh("≔","\\coloneqq"),eh("≕","\\eqqcolon"),eh("⩴","\\Coloneqq"),eh("\\ratio","\\vcentcolon"),eh("\\coloncolon","\\dblcolon"),eh("\\colonequals","\\coloneqq"),eh("\\coloncolonequals","\\Coloneqq"),eh("\\equalscolon","\\eqqcolon"),eh("\\equalscoloncolon","\\Eqqcolon"),eh("\\colonminus","\\coloneq"),eh("\\coloncolonminus","\\Coloneq"),eh("\\minuscolon","\\eqcolon"),eh("\\minuscoloncolon","\\Eqcolon"),eh("\\coloncolonapprox","\\Colonapprox"),eh("\\coloncolonsim","\\Colonsim"),eh("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),eh("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),eh("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),eh("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),eh("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),eh("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),eh("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),eh("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),eh("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),eh("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),eh("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),eh("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),eh("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),eh("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),eh("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),eh("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),eh("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),eh("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),eh("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),eh("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),eh("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),eh("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),eh("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),eh("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),eh("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),eh("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),eh("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),eh("\\imath","\\html@mathml{\\@imath}{ı}"),eh("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),eh("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),eh("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),eh("⟦","\\llbracket"),eh("⟧","\\rrbracket"),eh("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),eh("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),eh("⦃","\\lBrace"),eh("⦄","\\rBrace"),eh("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),eh("⦵","\\minuso"),eh("\\darr","\\downarrow"),eh("\\dArr","\\Downarrow"),eh("\\Darr","\\Downarrow"),eh("\\lang","\\langle"),eh("\\rang","\\rangle"),eh("\\uarr","\\uparrow"),eh("\\uArr","\\Uparrow"),eh("\\Uarr","\\Uparrow"),eh("\\N","\\mathbb{N}"),eh("\\R","\\mathbb{R}"),eh("\\Z","\\mathbb{Z}"),eh("\\alef","\\aleph"),eh("\\alefsym","\\aleph"),eh("\\Alpha","\\mathrm{A}"),eh("\\Beta","\\mathrm{B}"),eh("\\bull","\\bullet"),eh("\\Chi","\\mathrm{X}"),eh("\\clubs","\\clubsuit"),eh("\\cnums","\\mathbb{C}"),eh("\\Complex","\\mathbb{C}"),eh("\\Dagger","\\ddagger"),eh("\\diamonds","\\diamondsuit"),eh("\\empty","\\emptyset"),eh("\\Epsilon","\\mathrm{E}"),eh("\\Eta","\\mathrm{H}"),eh("\\exist","\\exists"),eh("\\harr","\\leftrightarrow"),eh("\\hArr","\\Leftrightarrow"),eh("\\Harr","\\Leftrightarrow"),eh("\\hearts","\\heartsuit"),eh("\\image","\\Im"),eh("\\infin","\\infty"),eh("\\Iota","\\mathrm{I}"),eh("\\isin","\\in"),eh("\\Kappa","\\mathrm{K}"),eh("\\larr","\\leftarrow"),eh("\\lArr","\\Leftarrow"),eh("\\Larr","\\Leftarrow"),eh("\\lrarr","\\leftrightarrow"),eh("\\lrArr","\\Leftrightarrow"),eh("\\Lrarr","\\Leftrightarrow"),eh("\\Mu","\\mathrm{M}"),eh("\\natnums","\\mathbb{N}"),eh("\\Nu","\\mathrm{N}"),eh("\\Omicron","\\mathrm{O}"),eh("\\plusmn","\\pm"),eh("\\rarr","\\rightarrow"),eh("\\rArr","\\Rightarrow"),eh("\\Rarr","\\Rightarrow"),eh("\\real","\\Re"),eh("\\reals","\\mathbb{R}"),eh("\\Reals","\\mathbb{R}"),eh("\\Rho","\\mathrm{P}"),eh("\\sdot","\\cdot"),eh("\\sect","\\S"),eh("\\spades","\\spadesuit"),eh("\\sub","\\subset"),eh("\\sube","\\subseteq"),eh("\\supe","\\supseteq"),eh("\\Tau","\\mathrm{T}"),eh("\\thetasym","\\vartheta"),eh("\\weierp","\\wp"),eh("\\Zeta","\\mathrm{Z}"),eh("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),eh("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),eh("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),eh("\\bra","\\mathinner{\\langle{#1}|}"),eh("\\ket","\\mathinner{|{#1}\\rangle}"),eh("\\braket","\\mathinner{\\langle{#1}\\rangle}"),eh("\\Bra","\\left\\langle#1\\right|"),eh("\\Ket","\\left|#1\\right\\rangle");var td=e=>t=>{var i=t.consumeArg().tokens,n=t.consumeArg().tokens,o=t.consumeArg().tokens,s=t.consumeArg().tokens,r=t.macros.get("|"),a=t.macros.get("\\|");t.macros.beginGroup();var l=t=>i=>{e&&(i.macros.set("|",r),o.length&&i.macros.set("\\|",a));var s=t;return!t&&o.length&&"|"===i.future().text&&(i.popToken(),s=!0),{tokens:s?o:n,numArgs:0}};t.macros.set("|",l(!1)),o.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,h=t.expandTokens([...s,...c,...i]);return t.macros.endGroup(),{tokens:h.reverse(),numArgs:0}};eh("\\bra@ket",td(!1)),eh("\\bra@set",td(!0)),eh("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),eh("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),eh("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),eh("\\angln","{\\angl n}"),eh("\\blue","\\textcolor{##6495ed}{#1}"),eh("\\orange","\\textcolor{##ffa500}{#1}"),eh("\\pink","\\textcolor{##ff00af}{#1}"),eh("\\red","\\textcolor{##df0030}{#1}"),eh("\\green","\\textcolor{##28ae7b}{#1}"),eh("\\gray","\\textcolor{gray}{#1}"),eh("\\purple","\\textcolor{##9d38bd}{#1}"),eh("\\blueA","\\textcolor{##ccfaff}{#1}"),eh("\\blueB","\\textcolor{##80f6ff}{#1}"),eh("\\blueC","\\textcolor{##63d9ea}{#1}"),eh("\\blueD","\\textcolor{##11accd}{#1}"),eh("\\blueE","\\textcolor{##0c7f99}{#1}"),eh("\\tealA","\\textcolor{##94fff5}{#1}"),eh("\\tealB","\\textcolor{##26edd5}{#1}"),eh("\\tealC","\\textcolor{##01d1c1}{#1}"),eh("\\tealD","\\textcolor{##01a995}{#1}"),eh("\\tealE","\\textcolor{##208170}{#1}"),eh("\\greenA","\\textcolor{##b6ffb0}{#1}"),eh("\\greenB","\\textcolor{##8af281}{#1}"),eh("\\greenC","\\textcolor{##74cf70}{#1}"),eh("\\greenD","\\textcolor{##1fab54}{#1}"),eh("\\greenE","\\textcolor{##0d923f}{#1}"),eh("\\goldA","\\textcolor{##ffd0a9}{#1}"),eh("\\goldB","\\textcolor{##ffbb71}{#1}"),eh("\\goldC","\\textcolor{##ff9c39}{#1}"),eh("\\goldD","\\textcolor{##e07d10}{#1}"),eh("\\goldE","\\textcolor{##a75a05}{#1}"),eh("\\redA","\\textcolor{##fca9a9}{#1}"),eh("\\redB","\\textcolor{##ff8482}{#1}"),eh("\\redC","\\textcolor{##f9685d}{#1}"),eh("\\redD","\\textcolor{##e84d39}{#1}"),eh("\\redE","\\textcolor{##bc2612}{#1}"),eh("\\maroonA","\\textcolor{##ffbde0}{#1}"),eh("\\maroonB","\\textcolor{##ff92c6}{#1}"),eh("\\maroonC","\\textcolor{##ed5fa6}{#1}"),eh("\\maroonD","\\textcolor{##ca337c}{#1}"),eh("\\maroonE","\\textcolor{##9e034e}{#1}"),eh("\\purpleA","\\textcolor{##ddd7ff}{#1}"),eh("\\purpleB","\\textcolor{##c6b9fc}{#1}"),eh("\\purpleC","\\textcolor{##aa87ff}{#1}"),eh("\\purpleD","\\textcolor{##7854ab}{#1}"),eh("\\purpleE","\\textcolor{##543b78}{#1}"),eh("\\mintA","\\textcolor{##f5f9e8}{#1}"),eh("\\mintB","\\textcolor{##edf2df}{#1}"),eh("\\mintC","\\textcolor{##e0e5cc}{#1}"),eh("\\grayA","\\textcolor{##f6f7f7}{#1}"),eh("\\grayB","\\textcolor{##f0f1f2}{#1}"),eh("\\grayC","\\textcolor{##e3e5e6}{#1}"),eh("\\grayD","\\textcolor{##d6d8da}{#1}"),eh("\\grayE","\\textcolor{##babec2}{#1}"),eh("\\grayF","\\textcolor{##888d93}{#1}"),eh("\\grayG","\\textcolor{##626569}{#1}"),eh("\\grayH","\\textcolor{##3b3e40}{#1}"),eh("\\grayI","\\textcolor{##21242c}{#1}"),eh("\\kaBlue","\\textcolor{##314453}{#1}"),eh("\\kaGreen","\\textcolor{##71B307}{#1}");var id={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class nd{constructor(e,t,i){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Gh(Qh,t.macros),this.mode=i,this.stack=[]}feed(e){this.lexer=new $h(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,i,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:n,end:i}=this.consumeArg(["]"]))}else({tokens:n,start:t,end:i}=this.consumeArg());return this.pushToken(new vr("EOF",i.loc)),this.pushTokens(n),t.range(i,"")}consumeSpaces(){for(;" "===this.future().text;)this.stack.pop()}consumeArg(e){var t=[],i=e&&e.length>0;i||this.consumeSpaces();var n,o=this.future(),s=0,r=0;do{if(n=this.popToken(),t.push(n),"{"===n.text)++s;else if("}"===n.text){if(-1==--s)throw new br("Extra }",n)}else if("EOF"===n.text)throw new br("Unexpected end of input in a macro argument, expected '"+(e&&i?e[r]:"}")+"'",n);if(e&&i)if((0===s||1===s&&"{"===e[r])&&n.text===e[r]){if(++r===e.length){t.splice(-r,r);break}}else r=0}while(0!==s||i);return"{"===o.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:o,end:n}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new br("The length of delimiters doesn't match the number of args!");for(var i=t[0],n=0;nthis.settings.maxExpand)throw new br("Too many expansions: infinite loop or need to increase maxExpand setting");var o=n.tokens,s=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs)for(var r=(o=o.slice()).length-1;r>=0;--r){var a=o[r];if("#"===a.text){if(0===r)throw new br("Incomplete placeholder at end of macro body",a);if("#"===(a=o[--r]).text)o.splice(r+1,1);else{if(!/^[1-9]$/.test(a.text))throw new br("Not a valid argument number",a);o.splice(r,2,...s[+a.text-1])}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new vr(e)]):void 0}expandTokens(e){var t=[],i=this.stack.length;for(this.pushTokens(e);this.stack.length>i;)if(!1===this.expandOnce(!0)){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map((e=>e.text)).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var i=this.lexer.catcodes[e];if(null!=i&&13!==i)return}var n="function"==typeof t?t(this):t;if("string"==typeof n){var o=0;if(-1!==n.indexOf("#"))for(var s=n.replace(/##/g,"");-1!==s.indexOf("#"+(o+1));)++o;for(var r=new $h(n,this.settings),a=[],l=r.lex();"EOF"!==l.text;)a.push(l),l=r.lex();return a.reverse(),{tokens:a,numArgs:o}}return n}isDefined(e){return this.macros.has(e)||Wh.hasOwnProperty(e)||Sa.math.hasOwnProperty(e)||Sa.text.hasOwnProperty(e)||id.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:Wh.hasOwnProperty(e)&&!Wh[e].primitive}}var od=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,sd=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9",ₐ:"a",ₑ:"e",ₕ:"h",ᵢ:"i",ⱼ:"j",ₖ:"k",ₗ:"l",ₘ:"m",ₙ:"n",ₒ:"o",ₚ:"p",ᵣ:"r",ₛ:"s",ₜ:"t",ᵤ:"u",ᵥ:"v",ₓ:"x",ᵦ:"β",ᵧ:"γ",ᵨ:"ρ",ᵩ:"ϕ",ᵪ:"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9",ᴬ:"A",ᴮ:"B",ᴰ:"D",ᴱ:"E",ᴳ:"G",ᴴ:"H",ᴵ:"I",ᴶ:"J",ᴷ:"K",ᴸ:"L",ᴹ:"M",ᴺ:"N",ᴼ:"O",ᴾ:"P",ᴿ:"R",ᵀ:"T",ᵁ:"U",ⱽ:"V",ᵂ:"W",ᵃ:"a",ᵇ:"b",ᶜ:"c",ᵈ:"d",ᵉ:"e",ᶠ:"f",ᵍ:"g",ʰ:"h",ⁱ:"i",ʲ:"j",ᵏ:"k",ˡ:"l",ᵐ:"m",ⁿ:"n",ᵒ:"o",ᵖ:"p",ʳ:"r",ˢ:"s",ᵗ:"t",ᵘ:"u",ᵛ:"v",ʷ:"w",ˣ:"x",ʸ:"y",ᶻ:"z",ᵝ:"β",ᵞ:"γ",ᵟ:"δ",ᵠ:"ϕ",ᵡ:"χ",ᶿ:"θ"}),rd={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},ad={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class ld{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new nd(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new br("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new vr("}")),this.gullet.pushTokens(e);var i=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,i}parseExpression(e,t){for(var i=[];;){"math"===this.mode&&this.consumeSpaces();var n=this.fetch();if(-1!==ld.endOfExpression.indexOf(n.text))break;if(t&&n.text===t)break;if(e&&Wh[n.text]&&Wh[n.text].infix)break;var o=this.parseAtom(t);if(!o)break;"internal"!==o.type&&i.push(o)}return"text"===this.mode&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(e){for(var t,i=-1,n=0;n=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var r,a=Sa[this.mode][t].group,l=_r.range(e);if(ya.hasOwnProperty(a)){var c=a;r={type:"atom",mode:this.mode,family:c,loc:l,text:t}}else r={type:a,mode:this.mode,loc:l,text:t};o=r}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(Kr(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),o={type:"textord",mode:"text",loc:_r.range(e),text:t}}if(this.consume(),s)for(var h=0;hl&&(l=e):e&&(void 0!==l&&l>-1&&a.push("\n".repeat(l)||" "),l=-1,a.push(e))}return a.join("")}function Nd(e,t,i){return"element"===e.type?function(e,t,i){const n=Id(e,i),o=e.children||[];let s,r,a=-1,l=[];if(xd(e))return l;for(yd(e)||kd(e)&&vd(t,e,kd)?r="\n":wd(e)?(s=2,r=2):Ld(e)&&(s=1,r=1);++a{Co(e,"element",(e=>{const o=e.properties&&Array.isArray(e.properties.className)?e.properties.className:[],s=o.includes("math-inline"),r=o.includes("math-display");if(!s&&!r)return;const a=Ed(e,{whitespace:"pre"});let l;try{l=gd.renderToString(a,Od({},t,{displayMode:r,throwOnError:!0}))}catch(o){const s=o,c=i?"fail":"message",h=[Pd,s.name.toLowerCase()].join(":");if(n[c](s.message,e.position,h),"ParseError"!==s.name)return void(e.children=[{type:"element",tagName:"span",properties:{className:["katex-error"],title:String(s),style:"color:"+(t.errorColor||"#cc0000")},children:[{type:"text",value:a}]}]);l=gd.renderToString(a,Od({},t,{displayMode:r,throwOnError:!1,strict:"ignore"}))}const c=function(e,t){return((i=t?.fragment?function(e){const t=document.createElement("template");return t.innerHTML=e,t.content}(e):Rd.parseFromString(e,"text/html"))?Ad(i,{}):void 0)||{type:"root",children:[]};var i}(l,{fragment:!0});e.children=c.children}))}}const Bd={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before ``",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `` in ``",description:"Unexpected text character `%c`. Only use text in `